Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5945 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.inventory;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class InventoryService {
24
 
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
26
 
27
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException;
28
 
29
    /**
30
     * add a new vendor
31
     * 
32
     * @param vendor
33
     */
34
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException;
35
 
36
    /**
37
     * Stores the incremental warehouse updates of items.
38
     * 
39
     * @param warehouse_id
40
     * @param timestamp
41
     * @param availability
42
     */
43
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException;
44
 
45
    /**
46
     * Stores the final inventory stocks of items.
47
     * 
48
     * @param warehouse_id
49
     * @param timestamp
50
     * @param availability
51
     */
52
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException;
53
 
54
    /**
55
     * Add the inventory to existing stock.
56
     * 
57
     * @param itemId
58
     * @param warehouseId
59
     * @param quantity
60
     */
61
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
62
 
63
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
64
 
65
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException;
66
 
67
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException;
68
 
69
    /**
70
     * Determines the warehouse that should be used to fulfil an order for the given item.
71
     * It first checks all the warehouses which are in the logistics location given by the
72
     * warehouse_loc parameter. If none of the warehouses there have any inventory, then the
73
     * preferred warehouse for the item is used.
74
     * 
75
     * Returns an ordered list of size 4 with following elements in the given order:
76
     * 1. Id of the fulfillment warehouse which was finally picked up.
77
     * 2. Expected delay added by the category manager.
78
     * 3. Id of the billing warehouse which was finally picked up.
79
     * 
80
     * @param itemId
5978 rajveer 81
     * @param sourceId
5945 mandeep.dh 82
     */
5978 rajveer 83
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 84
 
85
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException;
86
 
87
    /**
88
     * Returns the warehouse with the given id.
89
     * 
90
     * @param warehouse_id
91
     */
92
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
93
 
94
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException;
95
 
96
    /**
5978 rajveer 97
     * Depending on reservation in the table, verify if we can bill this order or not.
5967 rajveer 98
     * 
99
     * @param itemId
100
     * @param warehouseId
101
     * @param sourceId
102
     * @param orderId
103
     */
104
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException;
105
 
106
    /**
5945 mandeep.dh 107
     * Increases the reservation count for an item in a warehouse. Should always succeed normally.
108
     * 
109
     * @param itemId
110
     * @param warehouseId
5967 rajveer 111
     * @param sourceId
112
     * @param orderId
113
     * @param createdTimestamp
114
     * @param promisedShippingTimestamp
5945 mandeep.dh 115
     * @param quantity
116
     */
5967 rajveer 117
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 118
 
119
    /**
7968 amar.kumar 120
     * Updates the reservation for Order
121
     * 
122
     * @param itemId
123
     * @param warehouseId
124
     * @param sourceId
125
     * @param orderId
126
     * @param createdTimestamp
127
     * @param promisedShippingTimestamp
128
     * @param quantity
129
     */
130
    public boolean updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
131
 
132
    /**
5945 mandeep.dh 133
     * Decreases the reservation count for an item in a warehouse. Should always succeed normally.
134
     * 
135
     * @param itemId
136
     * @param warehouseId
5967 rajveer 137
     * @param sourceId
138
     * @param orderId
5945 mandeep.dh 139
     * @param quantity
140
     */
5967 rajveer 141
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 142
 
143
    /**
144
     * Returns the pricing information of an item associated with the vendor of the given warehouse.
145
     * Raises an exception if either the item, vendor or the associated pricing information can't be found.
146
     * 
147
     * @param itemId
148
     * @param vendorId
149
     */
150
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException;
151
 
152
    /**
153
     * Returns the list of vendor pricing information of an item.
154
     * Raises an exception if item not found corresponding to itemId
155
     * 
156
     * @param itemId
157
     */
158
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
159
 
160
    /**
161
     * Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
162
     * Raises an exception if either the item or vendor can't be found corresponding to their ids.
163
     * 
164
     * @param vendorItemPricing
165
     */
166
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException;
167
 
168
    /**
169
     * Returns a vendor given its id
170
     * 
171
     * @param vendorId
172
     */
173
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException;
174
 
175
    /**
176
     * Return list of all vendors
177
     */
178
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException;
179
 
180
    /**
181
     * Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
182
     * 
183
     * @param key
184
     * @param vendorItemMapping
185
     */
186
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException;
187
 
188
    /**
189
     * Returns the list of vendor item mapping corresponding to itemId passed as parameter.
190
     * Raises an exception if item not found corresponding to itemId
191
     * 
192
     * @param itemId
193
     */
194
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
195
 
196
    /**
197
     * Returns a list of inventory stock for items for which there are pending orders for the given vendor.
198
     * 
199
     * @param vendorid
200
     */
201
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException;
202
 
203
    /**
204
     * This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
205
     * getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 1 for billing warehouse 7 and shipping warehouse 7
206
     * getWarehouses(WarehouseType.OURS, InventoryType.GOOD, 3, 7, 7) would return ours warehouse with GOOD type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
207
     *    getWarehouses(null, null, 3, 7, 7) would return all type warehouses with all type inventory for vendor 3 for billing warehouse 7 and shipping warehouse 7
208
     *    getWarehouses(null, null, 0, 0, 7) would return all type warehouses with all type inventory for all vendors for all billing warehouses at shipping warehouse 7
209
     * 
210
     * @param warehouseType
211
     * @param inventoryType
212
     * @param vendorId
213
     * @param billingWarehouseId
214
     * @param shippingWarehouseId
215
     */
216
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException;
217
 
218
    /**
219
     * Resets availability of an item to the quantity mentioned in a warehouse.
220
     * 
221
     * @param itemKey
222
     * @param vendorId
223
     * @param quantity
224
     * @param warehouseId
225
     */
226
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
227
 
228
    /**
229
     * Resets availability of a warehouse to zero.
230
     * 
231
     * @param warehouseId
232
     */
233
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
234
 
235
    /**
236
     * Returns the list of item keys which need to be processed for a given warehouse.
237
     * This is currently used by Support application to send item keys whose inventory needs
238
     * to be updated from PLB
239
     * 
240
     * @param warehouseId
241
     */
242
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException;
243
 
244
    /**
245
     * Marks/Deletes missed inventory updates for a given key and warehouse.
246
     * This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
247
     * 
248
     * @param itemKey
249
     * @param warehouseId
250
     */
251
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException;
252
 
253
    /**
254
     * Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
255
     * and the timestamp from where alert was raised.
256
     */
257
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException;
258
 
259
    /**
260
     * Add the BAD type inventory to existing stock.
261
     * 
262
     * @param itemId
263
     * @param warehouseId
264
     * @param quantity
265
     */
266
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
267
 
268
    /**
269
     * Returns all shipping locations
270
     */
271
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException;
272
 
273
    /**
274
     * Fetches all the vendor item mappings present.
275
     */
276
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException;
277
 
278
    /**
279
     * Gets items' inventory for a warehouse
280
     * If warehouse is passed as zero, items' inventory across all warehouses is sent
281
     * 
282
     * @param warehouseId
283
     */
284
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException;
285
 
286
    /**
287
     * Clear item availability cache.
288
     */
289
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
290
 
291
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
292
 
6096 amit.gupta 293
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
294
 
7718 amar.kumar 295
    public long getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException;
6467 amar.kumar 296
 
6484 amar.kumar 297
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException;
298
 
6531 vikram.rag 299
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException;
300
 
301
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException;
302
 
303
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException;
304
 
305
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException;
306
 
307
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException;
308
 
309
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException;
310
 
6821 amar.kumar 311
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException;
312
 
313
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException;
314
 
315
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
316
 
9665 rajveer 317
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int sourceId, int days) throws org.apache.thrift.TException;
6832 amar.kumar 318
 
10126 amar.kumar 319
    public List<OOSStatus> getOosStatusesForXDays(int sourceId, int days) throws org.apache.thrift.TException;
320
 
321
    public List<VendorItemPricing> getAllVendorItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException;
322
 
6857 amar.kumar 323
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException;
324
 
7149 amar.kumar 325
    /**
326
     * Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
327
     */
328
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException;
329
 
7281 kshitij.so 330
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException;
331
 
332
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException;
333
 
334
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException;
335
 
10450 vikram.rag 336
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time) throws org.apache.thrift.TException;
7281 kshitij.so 337
 
7972 amar.kumar 338
    public String getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException;
339
 
8282 kshitij.so 340
    public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException;
341
 
9762 amar.kumar 342
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws InventoryServiceException, org.apache.thrift.TException;
8182 amar.kumar 343
 
11173 vikram.rag 344
    public List<AmazonFbaInventorySnapshot> getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException;
8282 kshitij.so 345
 
8363 vikram.rag 346
    public List<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory() throws org.apache.thrift.TException;
8282 kshitij.so 347
 
8363 vikram.rag 348
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException;
349
 
8958 vikram.rag 350
    public long getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException;
351
 
9404 vikram.rag 352
    public SnapdealInventoryItem getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException;
353
 
354
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException;
355
 
356
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException;
357
 
9640 amar.kumar 358
    public Map<Integer,Long> getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException;
359
 
9482 vikram.rag 360
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException;
361
 
9495 vikram.rag 362
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException;
363
 
364
    public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException;
365
 
9761 amar.kumar 366
    public List<HoldInventoryDetail> getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException;
367
 
10450 vikram.rag 368
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time) throws org.apache.thrift.TException;
10050 vikram.rag 369
 
370
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException;
371
 
10097 kshitij.so 372
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException;
373
 
10485 vikram.rag 374
    public Map<Long,String> getStateMaster() throws org.apache.thrift.TException;
375
 
10546 vikram.rag 376
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException;
377
 
378
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException;
379
 
5945 mandeep.dh 380
  }
381
 
382
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
383
 
384
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
385
 
386
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
387
 
388
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateInventoryHistory_call> resultHandler) throws org.apache.thrift.TException;
389
 
390
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateInventory_call> resultHandler) throws org.apache.thrift.TException;
391
 
392
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
393
 
394
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
395
 
396
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
397
 
398
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
399
 
5978 rajveer 400
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 401
 
402
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
403
 
404
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
405
 
406
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
407
 
5967 rajveer 408
    public void isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isOrderBillable_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 409
 
5967 rajveer 410
    public void reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 411
 
7968 amar.kumar 412
    public void updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateReservationForOrder_call> resultHandler) throws org.apache.thrift.TException;
413
 
5967 rajveer 414
    public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException;
415
 
5945 mandeep.dh 416
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
417
 
418
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
419
 
420
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
421
 
422
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
423
 
424
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
425
 
426
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
427
 
428
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
429
 
430
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
431
 
432
    public void getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouses_call> resultHandler) throws org.apache.thrift.TException;
433
 
434
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailability_call> resultHandler) throws org.apache.thrift.TException;
435
 
436
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
437
 
438
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
439
 
440
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
441
 
442
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
443
 
444
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
445
 
446
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
447
 
448
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
449
 
450
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
451
 
452
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
453
 
454
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
455
 
6096 amit.gupta 456
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
457
 
7718 amar.kumar 458
    public void getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
6467 amar.kumar 459
 
6484 amar.kumar 460
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
461
 
6531 vikram.rag 462
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException;
463
 
464
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException;
465
 
466
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException;
467
 
468
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException;
469
 
470
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
471
 
472
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
473
 
6821 amar.kumar 474
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
475
 
476
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
477
 
478
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
479
 
9665 rajveer 480
    public void getOosStatusesForXDaysForItem(long itemId, int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
6832 amar.kumar 481
 
10126 amar.kumar 482
    public void getOosStatusesForXDays(int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDays_call> resultHandler) throws org.apache.thrift.TException;
483
 
484
    public void getAllVendorItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
485
 
6857 amar.kumar 486
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
487
 
7149 amar.kumar 488
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException;
489
 
7281 kshitij.so 490
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseName_call> resultHandler) throws org.apache.thrift.TException;
491
 
492
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
493
 
494
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException;
495
 
10450 vikram.rag 496
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
7281 kshitij.so 497
 
7972 amar.kumar 498
    public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException;
499
 
8282 kshitij.so 500
    public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
501
 
8182 amar.kumar 502
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
503
 
8282 kshitij.so 504
    public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
505
 
8363 vikram.rag 506
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
8282 kshitij.so 507
 
8363 vikram.rag 508
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException;
509
 
8958 vikram.rag 510
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException;
511
 
9404 vikram.rag 512
    public void getSnapdealInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
513
 
514
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
515
 
516
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
517
 
9640 amar.kumar 518
    public void getHeldInventoryMapForItem(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHeldInventoryMapForItem_call> resultHandler) throws org.apache.thrift.TException;
519
 
9482 vikram.rag 520
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
521
 
9495 vikram.rag 522
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
523
 
524
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
525
 
9761 amar.kumar 526
    public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException;
527
 
10450 vikram.rag 528
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
10050 vikram.rag 529
 
530
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
531
 
10097 kshitij.so 532
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
533
 
10485 vikram.rag 534
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateMaster_call> resultHandler) throws org.apache.thrift.TException;
535
 
10546 vikram.rag 536
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
537
 
538
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
539
 
5945 mandeep.dh 540
  }
541
 
542
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
543
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
544
      public Factory() {}
545
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
546
        return new Client(prot);
547
      }
548
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
549
        return new Client(iprot, oprot);
550
      }
551
    }
552
 
553
    public Client(org.apache.thrift.protocol.TProtocol prot)
554
    {
555
      super(prot, prot);
556
    }
557
 
558
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
559
      super(iprot, oprot);
560
    }
561
 
562
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
563
    {
564
      send_addWarehouse(warehouse);
565
      return recv_addWarehouse();
566
    }
567
 
568
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
569
    {
570
      addWarehouse_args args = new addWarehouse_args();
571
      args.setWarehouse(warehouse);
572
      sendBase("addWarehouse", args);
573
    }
574
 
575
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
576
    {
577
      addWarehouse_result result = new addWarehouse_result();
578
      receiveBase(result, "addWarehouse");
579
      if (result.isSetSuccess()) {
580
        return result.success;
581
      }
582
      if (result.cex != null) {
583
        throw result.cex;
584
      }
585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
586
    }
587
 
588
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
589
    {
590
      send_addVendor(vendor);
591
      return recv_addVendor();
592
    }
593
 
594
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
595
    {
596
      addVendor_args args = new addVendor_args();
597
      args.setVendor(vendor);
598
      sendBase("addVendor", args);
599
    }
600
 
601
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
602
    {
603
      addVendor_result result = new addVendor_result();
604
      receiveBase(result, "addVendor");
605
      if (result.isSetSuccess()) {
606
        return result.success;
607
      }
608
      if (result.cex != null) {
609
        throw result.cex;
610
      }
611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
612
    }
613
 
614
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
615
    {
616
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
617
      recv_updateInventoryHistory();
618
    }
619
 
620
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
621
    {
622
      updateInventoryHistory_args args = new updateInventoryHistory_args();
623
      args.setWarehouse_id(warehouse_id);
624
      args.setTimestamp(timestamp);
625
      args.setAvailability(availability);
626
      sendBase("updateInventoryHistory", args);
627
    }
628
 
629
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
630
    {
631
      updateInventoryHistory_result result = new updateInventoryHistory_result();
632
      receiveBase(result, "updateInventoryHistory");
633
      if (result.cex != null) {
634
        throw result.cex;
635
      }
636
      return;
637
    }
638
 
639
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
640
    {
641
      send_updateInventory(warehouse_id, timestamp, availability);
642
      recv_updateInventory();
643
    }
644
 
645
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
646
    {
647
      updateInventory_args args = new updateInventory_args();
648
      args.setWarehouse_id(warehouse_id);
649
      args.setTimestamp(timestamp);
650
      args.setAvailability(availability);
651
      sendBase("updateInventory", args);
652
    }
653
 
654
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
655
    {
656
      updateInventory_result result = new updateInventory_result();
657
      receiveBase(result, "updateInventory");
658
      if (result.cex != null) {
659
        throw result.cex;
660
      }
661
      return;
662
    }
663
 
664
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
665
    {
666
      send_addInventory(itemId, warehouseId, quantity);
667
      recv_addInventory();
668
    }
669
 
670
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
671
    {
672
      addInventory_args args = new addInventory_args();
673
      args.setItemId(itemId);
674
      args.setWarehouseId(warehouseId);
675
      args.setQuantity(quantity);
676
      sendBase("addInventory", args);
677
    }
678
 
679
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
680
    {
681
      addInventory_result result = new addInventory_result();
682
      receiveBase(result, "addInventory");
683
      if (result.cex != null) {
684
        throw result.cex;
685
      }
686
      return;
687
    }
688
 
689
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
690
    {
691
      send_retireWarehouse(warehouse_id);
692
      recv_retireWarehouse();
693
    }
694
 
695
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
696
    {
697
      retireWarehouse_args args = new retireWarehouse_args();
698
      args.setWarehouse_id(warehouse_id);
699
      sendBase("retireWarehouse", args);
700
    }
701
 
702
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
703
    {
704
      retireWarehouse_result result = new retireWarehouse_result();
705
      receiveBase(result, "retireWarehouse");
706
      if (result.cex != null) {
707
        throw result.cex;
708
      }
709
      return;
710
    }
711
 
712
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
713
    {
714
      send_getItemInventoryByItemId(item_id);
715
      return recv_getItemInventoryByItemId();
716
    }
717
 
718
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
719
    {
720
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
721
      args.setItem_id(item_id);
722
      sendBase("getItemInventoryByItemId", args);
723
    }
724
 
725
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
726
    {
727
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
728
      receiveBase(result, "getItemInventoryByItemId");
729
      if (result.isSetSuccess()) {
730
        return result.success;
731
      }
732
      if (result.cex != null) {
733
        throw result.cex;
734
      }
735
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
736
    }
737
 
738
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
739
    {
740
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
741
      return recv_getItemAvailibilityAtWarehouse();
742
    }
743
 
744
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
745
    {
746
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
747
      args.setWarehouse_id(warehouse_id);
748
      args.setItem_id(item_id);
749
      sendBase("getItemAvailibilityAtWarehouse", args);
750
    }
751
 
752
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
753
    {
754
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
755
      receiveBase(result, "getItemAvailibilityAtWarehouse");
756
      if (result.isSetSuccess()) {
757
        return result.success;
758
      }
759
      if (result.cex != null) {
760
        throw result.cex;
761
      }
762
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
763
    }
764
 
5978 rajveer 765
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 766
    {
5978 rajveer 767
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 768
      return recv_getItemAvailabilityAtLocation();
769
    }
770
 
5978 rajveer 771
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 772
    {
773
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
774
      args.setItemId(itemId);
5978 rajveer 775
      args.setSourceId(sourceId);
5945 mandeep.dh 776
      sendBase("getItemAvailabilityAtLocation", args);
777
    }
778
 
779
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
780
    {
781
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
782
      receiveBase(result, "getItemAvailabilityAtLocation");
783
      if (result.isSetSuccess()) {
784
        return result.success;
785
      }
786
      if (result.isex != null) {
787
        throw result.isex;
788
      }
789
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
790
    }
791
 
792
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
793
    {
794
      send_getAllWarehouses(isActive);
795
      return recv_getAllWarehouses();
796
    }
797
 
798
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
799
    {
800
      getAllWarehouses_args args = new getAllWarehouses_args();
801
      args.setIsActive(isActive);
802
      sendBase("getAllWarehouses", args);
803
    }
804
 
805
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
806
    {
807
      getAllWarehouses_result result = new getAllWarehouses_result();
808
      receiveBase(result, "getAllWarehouses");
809
      if (result.isSetSuccess()) {
810
        return result.success;
811
      }
812
      if (result.cex != null) {
813
        throw result.cex;
814
      }
815
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
816
    }
817
 
818
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
819
    {
820
      send_getWarehouse(warehouse_id);
821
      return recv_getWarehouse();
822
    }
823
 
824
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
825
    {
826
      getWarehouse_args args = new getWarehouse_args();
827
      args.setWarehouse_id(warehouse_id);
828
      sendBase("getWarehouse", args);
829
    }
830
 
831
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
832
    {
833
      getWarehouse_result result = new getWarehouse_result();
834
      receiveBase(result, "getWarehouse");
835
      if (result.isSetSuccess()) {
836
        return result.success;
837
      }
838
      if (result.cex != null) {
839
        throw result.cex;
840
      }
841
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
842
    }
843
 
844
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
845
    {
846
      send_getAllItemsForWarehouse(warehouse_id);
847
      return recv_getAllItemsForWarehouse();
848
    }
849
 
850
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
851
    {
852
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
853
      args.setWarehouse_id(warehouse_id);
854
      sendBase("getAllItemsForWarehouse", args);
855
    }
856
 
857
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
858
    {
859
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
860
      receiveBase(result, "getAllItemsForWarehouse");
861
      if (result.isSetSuccess()) {
862
        return result.success;
863
      }
864
      if (result.cex != null) {
865
        throw result.cex;
866
      }
867
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
868
    }
869
 
5967 rajveer 870
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 871
    {
5967 rajveer 872
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
873
      return recv_isOrderBillable();
874
    }
875
 
876
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
877
    {
878
      isOrderBillable_args args = new isOrderBillable_args();
879
      args.setItemId(itemId);
880
      args.setWarehouseId(warehouseId);
881
      args.setSourceId(sourceId);
882
      args.setOrderId(orderId);
883
      sendBase("isOrderBillable", args);
884
    }
885
 
886
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
887
    {
888
      isOrderBillable_result result = new isOrderBillable_result();
889
      receiveBase(result, "isOrderBillable");
890
      if (result.isSetSuccess()) {
891
        return result.success;
892
      }
893
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
894
    }
895
 
896
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
897
    {
898
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 899
      return recv_reserveItemInWarehouse();
900
    }
901
 
5967 rajveer 902
    public void send_reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 903
    {
904
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
905
      args.setItemId(itemId);
906
      args.setWarehouseId(warehouseId);
5967 rajveer 907
      args.setSourceId(sourceId);
908
      args.setOrderId(orderId);
909
      args.setCreatedTimestamp(createdTimestamp);
910
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 911
      args.setQuantity(quantity);
912
      sendBase("reserveItemInWarehouse", args);
913
    }
914
 
915
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
916
    {
917
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
918
      receiveBase(result, "reserveItemInWarehouse");
919
      if (result.isSetSuccess()) {
920
        return result.success;
921
      }
922
      if (result.cex != null) {
923
        throw result.cex;
924
      }
925
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
926
    }
927
 
7968 amar.kumar 928
    public boolean updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
929
    {
930
      send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
931
      return recv_updateReservationForOrder();
932
    }
933
 
934
    public void send_updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws org.apache.thrift.TException
935
    {
936
      updateReservationForOrder_args args = new updateReservationForOrder_args();
937
      args.setItemId(itemId);
938
      args.setWarehouseId(warehouseId);
939
      args.setSourceId(sourceId);
940
      args.setOrderId(orderId);
941
      args.setCreatedTimestamp(createdTimestamp);
942
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
943
      args.setQuantity(quantity);
944
      sendBase("updateReservationForOrder", args);
945
    }
946
 
947
    public boolean recv_updateReservationForOrder() throws InventoryServiceException, org.apache.thrift.TException
948
    {
949
      updateReservationForOrder_result result = new updateReservationForOrder_result();
950
      receiveBase(result, "updateReservationForOrder");
951
      if (result.isSetSuccess()) {
952
        return result.success;
953
      }
954
      if (result.cex != null) {
955
        throw result.cex;
956
      }
957
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
958
    }
959
 
5967 rajveer 960
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 961
    {
5967 rajveer 962
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 963
      return recv_reduceReservationCount();
964
    }
965
 
5967 rajveer 966
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 967
    {
968
      reduceReservationCount_args args = new reduceReservationCount_args();
969
      args.setItemId(itemId);
970
      args.setWarehouseId(warehouseId);
5967 rajveer 971
      args.setSourceId(sourceId);
972
      args.setOrderId(orderId);
5945 mandeep.dh 973
      args.setQuantity(quantity);
974
      sendBase("reduceReservationCount", args);
975
    }
976
 
977
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
978
    {
979
      reduceReservationCount_result result = new reduceReservationCount_result();
980
      receiveBase(result, "reduceReservationCount");
981
      if (result.isSetSuccess()) {
982
        return result.success;
983
      }
984
      if (result.cex != null) {
985
        throw result.cex;
986
      }
987
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
988
    }
989
 
990
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
991
    {
992
      send_getItemPricing(itemId, vendorId);
993
      return recv_getItemPricing();
994
    }
995
 
996
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
997
    {
998
      getItemPricing_args args = new getItemPricing_args();
999
      args.setItemId(itemId);
1000
      args.setVendorId(vendorId);
1001
      sendBase("getItemPricing", args);
1002
    }
1003
 
1004
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
1005
    {
1006
      getItemPricing_result result = new getItemPricing_result();
1007
      receiveBase(result, "getItemPricing");
1008
      if (result.isSetSuccess()) {
1009
        return result.success;
1010
      }
1011
      if (result.cex != null) {
1012
        throw result.cex;
1013
      }
1014
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1015
    }
1016
 
1017
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
1018
    {
1019
      send_getAllItemPricing(itemId);
1020
      return recv_getAllItemPricing();
1021
    }
1022
 
1023
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
1024
    {
1025
      getAllItemPricing_args args = new getAllItemPricing_args();
1026
      args.setItemId(itemId);
1027
      sendBase("getAllItemPricing", args);
1028
    }
1029
 
1030
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
1031
    {
1032
      getAllItemPricing_result result = new getAllItemPricing_result();
1033
      receiveBase(result, "getAllItemPricing");
1034
      if (result.isSetSuccess()) {
1035
        return result.success;
1036
      }
1037
      if (result.cex != null) {
1038
        throw result.cex;
1039
      }
1040
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1041
    }
1042
 
1043
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
1044
    {
1045
      send_addVendorItemPricing(vendorItemPricing);
1046
      recv_addVendorItemPricing();
1047
    }
1048
 
1049
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
1050
    {
1051
      addVendorItemPricing_args args = new addVendorItemPricing_args();
1052
      args.setVendorItemPricing(vendorItemPricing);
1053
      sendBase("addVendorItemPricing", args);
1054
    }
1055
 
1056
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
1057
    {
1058
      addVendorItemPricing_result result = new addVendorItemPricing_result();
1059
      receiveBase(result, "addVendorItemPricing");
1060
      if (result.cex != null) {
1061
        throw result.cex;
1062
      }
1063
      return;
1064
    }
1065
 
1066
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
1067
    {
1068
      send_getVendor(vendorId);
1069
      return recv_getVendor();
1070
    }
1071
 
1072
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
1073
    {
1074
      getVendor_args args = new getVendor_args();
1075
      args.setVendorId(vendorId);
1076
      sendBase("getVendor", args);
1077
    }
1078
 
1079
    public Vendor recv_getVendor() throws org.apache.thrift.TException
1080
    {
1081
      getVendor_result result = new getVendor_result();
1082
      receiveBase(result, "getVendor");
1083
      if (result.isSetSuccess()) {
1084
        return result.success;
1085
      }
1086
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1087
    }
1088
 
1089
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
1090
    {
1091
      send_getAllVendors();
1092
      return recv_getAllVendors();
1093
    }
1094
 
1095
    public void send_getAllVendors() throws org.apache.thrift.TException
1096
    {
1097
      getAllVendors_args args = new getAllVendors_args();
1098
      sendBase("getAllVendors", args);
1099
    }
1100
 
1101
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
1102
    {
1103
      getAllVendors_result result = new getAllVendors_result();
1104
      receiveBase(result, "getAllVendors");
1105
      if (result.isSetSuccess()) {
1106
        return result.success;
1107
      }
1108
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1109
    }
1110
 
1111
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
1112
    {
1113
      send_addVendorItemMapping(key, vendorItemMapping);
1114
      recv_addVendorItemMapping();
1115
    }
1116
 
1117
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
1118
    {
1119
      addVendorItemMapping_args args = new addVendorItemMapping_args();
1120
      args.setKey(key);
1121
      args.setVendorItemMapping(vendorItemMapping);
1122
      sendBase("addVendorItemMapping", args);
1123
    }
1124
 
1125
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
1126
    {
1127
      addVendorItemMapping_result result = new addVendorItemMapping_result();
1128
      receiveBase(result, "addVendorItemMapping");
1129
      if (result.cex != null) {
1130
        throw result.cex;
1131
      }
1132
      return;
1133
    }
1134
 
1135
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
1136
    {
1137
      send_getVendorItemMappings(itemId);
1138
      return recv_getVendorItemMappings();
1139
    }
1140
 
1141
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
1142
    {
1143
      getVendorItemMappings_args args = new getVendorItemMappings_args();
1144
      args.setItemId(itemId);
1145
      sendBase("getVendorItemMappings", args);
1146
    }
1147
 
1148
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
1149
    {
1150
      getVendorItemMappings_result result = new getVendorItemMappings_result();
1151
      receiveBase(result, "getVendorItemMappings");
1152
      if (result.isSetSuccess()) {
1153
        return result.success;
1154
      }
1155
      if (result.cex != null) {
1156
        throw result.cex;
1157
      }
1158
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1159
    }
1160
 
1161
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1162
    {
1163
      send_getPendingOrdersInventory(vendorid);
1164
      return recv_getPendingOrdersInventory();
1165
    }
1166
 
1167
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1168
    {
1169
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
1170
      args.setVendorid(vendorid);
1171
      sendBase("getPendingOrdersInventory", args);
1172
    }
1173
 
1174
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
1175
    {
1176
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
1177
      receiveBase(result, "getPendingOrdersInventory");
1178
      if (result.isSetSuccess()) {
1179
        return result.success;
1180
      }
1181
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1182
    }
1183
 
1184
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1185
    {
1186
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
1187
      return recv_getWarehouses();
1188
    }
1189
 
1190
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1191
    {
1192
      getWarehouses_args args = new getWarehouses_args();
1193
      args.setWarehouseType(warehouseType);
1194
      args.setInventoryType(inventoryType);
1195
      args.setVendorId(vendorId);
1196
      args.setBillingWarehouseId(billingWarehouseId);
1197
      args.setShippingWarehouseId(shippingWarehouseId);
1198
      sendBase("getWarehouses", args);
1199
    }
1200
 
1201
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
1202
    {
1203
      getWarehouses_result result = new getWarehouses_result();
1204
      receiveBase(result, "getWarehouses");
1205
      if (result.isSetSuccess()) {
1206
        return result.success;
1207
      }
1208
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1209
    }
1210
 
1211
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1212
    {
1213
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1214
      recv_resetAvailability();
1215
    }
1216
 
1217
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1218
    {
1219
      resetAvailability_args args = new resetAvailability_args();
1220
      args.setItemKey(itemKey);
1221
      args.setVendorId(vendorId);
1222
      args.setQuantity(quantity);
1223
      args.setWarehouseId(warehouseId);
1224
      sendBase("resetAvailability", args);
1225
    }
1226
 
1227
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1228
    {
1229
      resetAvailability_result result = new resetAvailability_result();
1230
      receiveBase(result, "resetAvailability");
1231
      if (result.cex != null) {
1232
        throw result.cex;
1233
      }
1234
      return;
1235
    }
1236
 
1237
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1238
    {
1239
      send_resetAvailabilityForWarehouse(warehouseId);
1240
      recv_resetAvailabilityForWarehouse();
1241
    }
1242
 
1243
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1244
    {
1245
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1246
      args.setWarehouseId(warehouseId);
1247
      sendBase("resetAvailabilityForWarehouse", args);
1248
    }
1249
 
1250
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1251
    {
1252
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1253
      receiveBase(result, "resetAvailabilityForWarehouse");
1254
      if (result.cex != null) {
1255
        throw result.cex;
1256
      }
1257
      return;
1258
    }
1259
 
1260
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1261
    {
1262
      send_getItemKeysToBeProcessed(warehouseId);
1263
      return recv_getItemKeysToBeProcessed();
1264
    }
1265
 
1266
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1267
    {
1268
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1269
      args.setWarehouseId(warehouseId);
1270
      sendBase("getItemKeysToBeProcessed", args);
1271
    }
1272
 
1273
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1274
    {
1275
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1276
      receiveBase(result, "getItemKeysToBeProcessed");
1277
      if (result.isSetSuccess()) {
1278
        return result.success;
1279
      }
1280
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1281
    }
1282
 
1283
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1284
    {
1285
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1286
      recv_markMissedInventoryUpdatesAsProcessed();
1287
    }
1288
 
1289
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1290
    {
1291
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1292
      args.setItemKey(itemKey);
1293
      args.setWarehouseId(warehouseId);
1294
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1295
    }
1296
 
1297
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1298
    {
1299
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1300
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1301
      return;
1302
    }
1303
 
1304
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1305
    {
1306
      send_getIgnoredItemKeys();
1307
      return recv_getIgnoredItemKeys();
1308
    }
1309
 
1310
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1311
    {
1312
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1313
      sendBase("getIgnoredItemKeys", args);
1314
    }
1315
 
1316
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1317
    {
1318
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1319
      receiveBase(result, "getIgnoredItemKeys");
1320
      if (result.isSetSuccess()) {
1321
        return result.success;
1322
      }
1323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1324
    }
1325
 
1326
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1327
    {
1328
      send_addBadInventory(itemId, warehouseId, quantity);
1329
      recv_addBadInventory();
1330
    }
1331
 
1332
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1333
    {
1334
      addBadInventory_args args = new addBadInventory_args();
1335
      args.setItemId(itemId);
1336
      args.setWarehouseId(warehouseId);
1337
      args.setQuantity(quantity);
1338
      sendBase("addBadInventory", args);
1339
    }
1340
 
1341
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1342
    {
1343
      addBadInventory_result result = new addBadInventory_result();
1344
      receiveBase(result, "addBadInventory");
1345
      if (result.cex != null) {
1346
        throw result.cex;
1347
      }
1348
      return;
1349
    }
1350
 
1351
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1352
    {
1353
      send_getShippingLocations();
1354
      return recv_getShippingLocations();
1355
    }
1356
 
1357
    public void send_getShippingLocations() throws org.apache.thrift.TException
1358
    {
1359
      getShippingLocations_args args = new getShippingLocations_args();
1360
      sendBase("getShippingLocations", args);
1361
    }
1362
 
1363
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1364
    {
1365
      getShippingLocations_result result = new getShippingLocations_result();
1366
      receiveBase(result, "getShippingLocations");
1367
      if (result.isSetSuccess()) {
1368
        return result.success;
1369
      }
1370
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1371
    }
1372
 
1373
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1374
    {
1375
      send_getAllVendorItemMappings();
1376
      return recv_getAllVendorItemMappings();
1377
    }
1378
 
1379
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1380
    {
1381
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1382
      sendBase("getAllVendorItemMappings", args);
1383
    }
1384
 
1385
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1386
    {
1387
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1388
      receiveBase(result, "getAllVendorItemMappings");
1389
      if (result.isSetSuccess()) {
1390
        return result.success;
1391
      }
1392
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1393
    }
1394
 
1395
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1396
    {
1397
      send_getInventorySnapshot(warehouseId);
1398
      return recv_getInventorySnapshot();
1399
    }
1400
 
1401
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1402
    {
1403
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1404
      args.setWarehouseId(warehouseId);
1405
      sendBase("getInventorySnapshot", args);
1406
    }
1407
 
1408
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1409
    {
1410
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1411
      receiveBase(result, "getInventorySnapshot");
1412
      if (result.isSetSuccess()) {
1413
        return result.success;
1414
      }
1415
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1416
    }
1417
 
1418
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1419
    {
1420
      send_clearItemAvailabilityCache();
1421
      recv_clearItemAvailabilityCache();
1422
    }
1423
 
1424
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1425
    {
1426
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1427
      sendBase("clearItemAvailabilityCache", args);
1428
    }
1429
 
1430
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1431
    {
1432
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1433
      receiveBase(result, "clearItemAvailabilityCache");
1434
      return;
1435
    }
1436
 
1437
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1438
    {
1439
      send_updateVendorString(warehouseId, vendorString);
1440
      recv_updateVendorString();
1441
    }
1442
 
1443
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1444
    {
1445
      updateVendorString_args args = new updateVendorString_args();
1446
      args.setWarehouseId(warehouseId);
1447
      args.setVendorString(vendorString);
1448
      sendBase("updateVendorString", args);
1449
    }
1450
 
1451
    public void recv_updateVendorString() throws org.apache.thrift.TException
1452
    {
1453
      updateVendorString_result result = new updateVendorString_result();
1454
      receiveBase(result, "updateVendorString");
1455
      return;
1456
    }
1457
 
6096 amit.gupta 1458
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1459
    {
1460
      send_clearItemAvailabilityCacheForItem(item_id);
1461
      recv_clearItemAvailabilityCacheForItem();
1462
    }
1463
 
1464
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1465
    {
1466
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1467
      args.setItem_id(item_id);
1468
      sendBase("clearItemAvailabilityCacheForItem", args);
1469
    }
1470
 
1471
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1472
    {
1473
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1474
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1475
      return;
1476
    }
1477
 
7718 amar.kumar 1478
    public long getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
6467 amar.kumar 1479
    {
7718 amar.kumar 1480
      send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId);
6467 amar.kumar 1481
      return recv_getOurWarehouseIdForVendor();
1482
    }
1483
 
7718 amar.kumar 1484
    public void send_getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
6467 amar.kumar 1485
    {
1486
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1487
      args.setVendorId(vendorId);
7718 amar.kumar 1488
      args.setBillingWarehouseId(billingWarehouseId);
6467 amar.kumar 1489
      sendBase("getOurWarehouseIdForVendor", args);
1490
    }
1491
 
1492
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1493
    {
1494
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1495
      receiveBase(result, "getOurWarehouseIdForVendor");
1496
      if (result.isSetSuccess()) {
1497
        return result.success;
1498
      }
1499
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1500
    }
1501
 
6484 amar.kumar 1502
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1503
    {
1504
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
1505
      return recv_getItemAvailabilitiesAtOurWarehouses();
1506
    }
1507
 
1508
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1509
    {
1510
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
1511
      args.setItem_ids(item_ids);
1512
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
1513
    }
1514
 
1515
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
1516
    {
1517
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
1518
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
1519
      if (result.isSetSuccess()) {
1520
        return result.success;
1521
      }
1522
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1523
    }
1524
 
6531 vikram.rag 1525
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1526
    {
1527
      send_getMonitoredWarehouseForVendors(vendorIds);
1528
      return recv_getMonitoredWarehouseForVendors();
1529
    }
1530
 
1531
    public void send_getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1532
    {
1533
      getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
1534
      args.setVendorIds(vendorIds);
1535
      sendBase("getMonitoredWarehouseForVendors", args);
1536
    }
1537
 
1538
    public List<Long> recv_getMonitoredWarehouseForVendors() throws org.apache.thrift.TException
1539
    {
1540
      getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
1541
      receiveBase(result, "getMonitoredWarehouseForVendors");
1542
      if (result.isSetSuccess()) {
1543
        return result.success;
1544
      }
1545
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1546
    }
1547
 
1548
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1549
    {
1550
      send_getIgnoredWarehouseidsAndItemids();
1551
      return recv_getIgnoredWarehouseidsAndItemids();
1552
    }
1553
 
1554
    public void send_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1555
    {
1556
      getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
1557
      sendBase("getIgnoredWarehouseidsAndItemids", args);
1558
    }
1559
 
1560
    public List<IgnoredInventoryUpdateItems> recv_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1561
    {
1562
      getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
1563
      receiveBase(result, "getIgnoredWarehouseidsAndItemids");
1564
      if (result.isSetSuccess()) {
1565
        return result.success;
1566
      }
1567
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1568
    }
1569
 
1570
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1571
    {
1572
      send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id);
1573
      return recv_insertItemtoIgnoreInventoryUpdatelist();
1574
    }
1575
 
1576
    public void send_insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1577
    {
1578
      insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
1579
      args.setItem_id(item_id);
1580
      args.setWarehouse_id(warehouse_id);
1581
      sendBase("insertItemtoIgnoreInventoryUpdatelist", args);
1582
    }
1583
 
1584
    public boolean recv_insertItemtoIgnoreInventoryUpdatelist() throws org.apache.thrift.TException
1585
    {
1586
      insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
1587
      receiveBase(result, "insertItemtoIgnoreInventoryUpdatelist");
1588
      if (result.isSetSuccess()) {
1589
        return result.success;
1590
      }
1591
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
1592
    }
1593
 
1594
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1595
    {
1596
      send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id);
1597
      return recv_deleteItemFromIgnoredInventoryUpdateList();
1598
    }
1599
 
1600
    public void send_deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1601
    {
1602
      deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
1603
      args.setItem_id(item_id);
1604
      args.setWarehouse_id(warehouse_id);
1605
      sendBase("deleteItemFromIgnoredInventoryUpdateList", args);
1606
    }
1607
 
1608
    public boolean recv_deleteItemFromIgnoredInventoryUpdateList() throws org.apache.thrift.TException
1609
    {
1610
      deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
1611
      receiveBase(result, "deleteItemFromIgnoredInventoryUpdateList");
1612
      if (result.isSetSuccess()) {
1613
        return result.success;
1614
      }
1615
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
1616
    }
1617
 
1618
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1619
    {
1620
      send_getAllIgnoredInventoryupdateItemsCount();
1621
      return recv_getAllIgnoredInventoryupdateItemsCount();
1622
    }
1623
 
1624
    public void send_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1625
    {
1626
      getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
1627
      sendBase("getAllIgnoredInventoryupdateItemsCount", args);
1628
    }
1629
 
1630
    public int recv_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1631
    {
1632
      getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
1633
      receiveBase(result, "getAllIgnoredInventoryupdateItemsCount");
1634
      if (result.isSetSuccess()) {
1635
        return result.success;
1636
      }
1637
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
1638
    }
1639
 
1640
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1641
    {
1642
      send_getIgnoredInventoryUpdateItemids(offset, limit);
1643
      return recv_getIgnoredInventoryUpdateItemids();
1644
    }
1645
 
1646
    public void send_getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1647
    {
1648
      getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
1649
      args.setOffset(offset);
1650
      args.setLimit(limit);
1651
      sendBase("getIgnoredInventoryUpdateItemids", args);
1652
    }
1653
 
1654
    public List<Long> recv_getIgnoredInventoryUpdateItemids() throws org.apache.thrift.TException
1655
    {
1656
      getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
1657
      receiveBase(result, "getIgnoredInventoryUpdateItemids");
1658
      if (result.isSetSuccess()) {
1659
        return result.success;
1660
      }
1661
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1662
    }
1663
 
6821 amar.kumar 1664
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1665
    {
1666
      send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel);
1667
      recv_updateItemStockPurchaseParams();
1668
    }
1669
 
1670
    public void send_updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1671
    {
1672
      updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
1673
      args.setItem_id(item_id);
1674
      args.setNumOfDaysStock(numOfDaysStock);
1675
      args.setMinStockLevel(minStockLevel);
1676
      sendBase("updateItemStockPurchaseParams", args);
1677
    }
1678
 
1679
    public void recv_updateItemStockPurchaseParams() throws org.apache.thrift.TException
1680
    {
1681
      updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
1682
      receiveBase(result, "updateItemStockPurchaseParams");
1683
      return;
1684
    }
1685
 
1686
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1687
    {
1688
      send_getItemStockPurchaseParams(itemId);
1689
      return recv_getItemStockPurchaseParams();
1690
    }
1691
 
1692
    public void send_getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1693
    {
1694
      getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
1695
      args.setItemId(itemId);
1696
      sendBase("getItemStockPurchaseParams", args);
1697
    }
1698
 
1699
    public ItemStockPurchaseParams recv_getItemStockPurchaseParams() throws org.apache.thrift.TException
1700
    {
1701
      getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
1702
      receiveBase(result, "getItemStockPurchaseParams");
1703
      if (result.isSetSuccess()) {
1704
        return result.success;
1705
      }
1706
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
1707
    }
1708
 
1709
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1710
    {
1711
      send_addOosStatusForItem(oosStatusMap, date);
1712
      recv_addOosStatusForItem();
1713
    }
1714
 
1715
    public void send_addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1716
    {
1717
      addOosStatusForItem_args args = new addOosStatusForItem_args();
1718
      args.setOosStatusMap(oosStatusMap);
1719
      args.setDate(date);
1720
      sendBase("addOosStatusForItem", args);
1721
    }
1722
 
1723
    public void recv_addOosStatusForItem() throws org.apache.thrift.TException
1724
    {
1725
      addOosStatusForItem_result result = new addOosStatusForItem_result();
1726
      receiveBase(result, "addOosStatusForItem");
1727
      return;
1728
    }
1729
 
9665 rajveer 1730
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int sourceId, int days) throws org.apache.thrift.TException
6832 amar.kumar 1731
    {
9665 rajveer 1732
      send_getOosStatusesForXDaysForItem(itemId, sourceId, days);
6832 amar.kumar 1733
      return recv_getOosStatusesForXDaysForItem();
1734
    }
1735
 
9665 rajveer 1736
    public void send_getOosStatusesForXDaysForItem(long itemId, int sourceId, int days) throws org.apache.thrift.TException
6832 amar.kumar 1737
    {
1738
      getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
1739
      args.setItemId(itemId);
9665 rajveer 1740
      args.setSourceId(sourceId);
6832 amar.kumar 1741
      args.setDays(days);
1742
      sendBase("getOosStatusesForXDaysForItem", args);
1743
    }
1744
 
1745
    public List<OOSStatus> recv_getOosStatusesForXDaysForItem() throws org.apache.thrift.TException
1746
    {
1747
      getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
1748
      receiveBase(result, "getOosStatusesForXDaysForItem");
1749
      if (result.isSetSuccess()) {
1750
        return result.success;
1751
      }
1752
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
1753
    }
1754
 
10126 amar.kumar 1755
    public List<OOSStatus> getOosStatusesForXDays(int sourceId, int days) throws org.apache.thrift.TException
1756
    {
1757
      send_getOosStatusesForXDays(sourceId, days);
1758
      return recv_getOosStatusesForXDays();
1759
    }
1760
 
1761
    public void send_getOosStatusesForXDays(int sourceId, int days) throws org.apache.thrift.TException
1762
    {
1763
      getOosStatusesForXDays_args args = new getOosStatusesForXDays_args();
1764
      args.setSourceId(sourceId);
1765
      args.setDays(days);
1766
      sendBase("getOosStatusesForXDays", args);
1767
    }
1768
 
1769
    public List<OOSStatus> recv_getOosStatusesForXDays() throws org.apache.thrift.TException
1770
    {
1771
      getOosStatusesForXDays_result result = new getOosStatusesForXDays_result();
1772
      receiveBase(result, "getOosStatusesForXDays");
1773
      if (result.isSetSuccess()) {
1774
        return result.success;
1775
      }
1776
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
1777
    }
1778
 
1779
    public List<VendorItemPricing> getAllVendorItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
1780
    {
1781
      send_getAllVendorItemPricing(itemId, vendorId);
1782
      return recv_getAllVendorItemPricing();
1783
    }
1784
 
1785
    public void send_getAllVendorItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
1786
    {
1787
      getAllVendorItemPricing_args args = new getAllVendorItemPricing_args();
1788
      args.setItemId(itemId);
1789
      args.setVendorId(vendorId);
1790
      sendBase("getAllVendorItemPricing", args);
1791
    }
1792
 
1793
    public List<VendorItemPricing> recv_getAllVendorItemPricing() throws org.apache.thrift.TException
1794
    {
1795
      getAllVendorItemPricing_result result = new getAllVendorItemPricing_result();
1796
      receiveBase(result, "getAllVendorItemPricing");
1797
      if (result.isSetSuccess()) {
1798
        return result.success;
1799
      }
1800
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
1801
    }
1802
 
6857 amar.kumar 1803
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1804
    {
1805
      send_getNonZeroItemStockPurchaseParams();
1806
      return recv_getNonZeroItemStockPurchaseParams();
1807
    }
1808
 
1809
    public void send_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1810
    {
1811
      getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
1812
      sendBase("getNonZeroItemStockPurchaseParams", args);
1813
    }
1814
 
1815
    public List<ItemStockPurchaseParams> recv_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1816
    {
1817
      getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
1818
      receiveBase(result, "getNonZeroItemStockPurchaseParams");
1819
      if (result.isSetSuccess()) {
1820
        return result.success;
1821
      }
1822
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
1823
    }
1824
 
7149 amar.kumar 1825
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1826
    {
1827
      send_getBillableInventoryAndPendingOrders();
1828
      return recv_getBillableInventoryAndPendingOrders();
1829
    }
1830
 
1831
    public void send_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1832
    {
1833
      getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
1834
      sendBase("getBillableInventoryAndPendingOrders", args);
1835
    }
1836
 
1837
    public List<AvailableAndReservedStock> recv_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1838
    {
1839
      getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
1840
      receiveBase(result, "getBillableInventoryAndPendingOrders");
1841
      if (result.isSetSuccess()) {
1842
        return result.success;
1843
      }
1844
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
1845
    }
1846
 
7281 kshitij.so 1847
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1848
    {
1849
      send_getWarehouseName(warehouse_id);
1850
      return recv_getWarehouseName();
1851
    }
1852
 
1853
    public void send_getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1854
    {
1855
      getWarehouseName_args args = new getWarehouseName_args();
1856
      args.setWarehouse_id(warehouse_id);
1857
      sendBase("getWarehouseName", args);
1858
    }
1859
 
1860
    public String recv_getWarehouseName() throws org.apache.thrift.TException
1861
    {
1862
      getWarehouseName_result result = new getWarehouseName_result();
1863
      receiveBase(result, "getWarehouseName");
1864
      if (result.isSetSuccess()) {
1865
        return result.success;
1866
      }
1867
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
1868
    }
1869
 
1870
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1871
    {
1872
      send_getAmazonInventoryForItem(item_id);
1873
      return recv_getAmazonInventoryForItem();
1874
    }
1875
 
1876
    public void send_getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1877
    {
1878
      getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
1879
      args.setItem_id(item_id);
1880
      sendBase("getAmazonInventoryForItem", args);
1881
    }
1882
 
1883
    public AmazonInventorySnapshot recv_getAmazonInventoryForItem() throws org.apache.thrift.TException
1884
    {
1885
      getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
1886
      receiveBase(result, "getAmazonInventoryForItem");
1887
      if (result.isSetSuccess()) {
1888
        return result.success;
1889
      }
1890
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
1891
    }
1892
 
1893
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException
1894
    {
1895
      send_getAllAmazonInventory();
1896
      return recv_getAllAmazonInventory();
1897
    }
1898
 
1899
    public void send_getAllAmazonInventory() throws org.apache.thrift.TException
1900
    {
1901
      getAllAmazonInventory_args args = new getAllAmazonInventory_args();
1902
      sendBase("getAllAmazonInventory", args);
1903
    }
1904
 
1905
    public List<AmazonInventorySnapshot> recv_getAllAmazonInventory() throws org.apache.thrift.TException
1906
    {
1907
      getAllAmazonInventory_result result = new getAllAmazonInventory_result();
1908
      receiveBase(result, "getAllAmazonInventory");
1909
      if (result.isSetSuccess()) {
1910
        return result.success;
1911
      }
1912
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
1913
    }
1914
 
10450 vikram.rag 1915
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time) throws org.apache.thrift.TException
7281 kshitij.so 1916
    {
10450 vikram.rag 1917
      send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time);
7281 kshitij.so 1918
      recv_addOrUpdateAmazonInventoryForItem();
1919
    }
1920
 
10450 vikram.rag 1921
    public void send_addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time) throws org.apache.thrift.TException
7281 kshitij.so 1922
    {
1923
      addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
1924
      args.setAmazonInventorySnapshot(amazonInventorySnapshot);
10450 vikram.rag 1925
      args.setTime(time);
7281 kshitij.so 1926
      sendBase("addOrUpdateAmazonInventoryForItem", args);
1927
    }
1928
 
1929
    public void recv_addOrUpdateAmazonInventoryForItem() throws org.apache.thrift.TException
1930
    {
1931
      addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
1932
      receiveBase(result, "addOrUpdateAmazonInventoryForItem");
1933
      return;
1934
    }
1935
 
7972 amar.kumar 1936
    public String getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException
1937
    {
1938
      send_getLastNdaySaleForItem(itemId, numberOfDays);
1939
      return recv_getLastNdaySaleForItem();
1940
    }
1941
 
1942
    public void send_getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException
1943
    {
1944
      getLastNdaySaleForItem_args args = new getLastNdaySaleForItem_args();
1945
      args.setItemId(itemId);
1946
      args.setNumberOfDays(numberOfDays);
1947
      sendBase("getLastNdaySaleForItem", args);
1948
    }
1949
 
1950
    public String recv_getLastNdaySaleForItem() throws org.apache.thrift.TException
1951
    {
1952
      getLastNdaySaleForItem_result result = new getLastNdaySaleForItem_result();
1953
      receiveBase(result, "getLastNdaySaleForItem");
1954
      if (result.isSetSuccess()) {
1955
        return result.success;
1956
      }
1957
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
1958
    }
1959
 
8282 kshitij.so 1960
    public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException
1961
    {
1962
      send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot);
1963
      recv_addOrUpdateAmazonFbaInventory();
1964
    }
1965
 
1966
    public void send_addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException
1967
    {
1968
      addOrUpdateAmazonFbaInventory_args args = new addOrUpdateAmazonFbaInventory_args();
1969
      args.setAmazonfbainventorysnapshot(amazonfbainventorysnapshot);
1970
      sendBase("addOrUpdateAmazonFbaInventory", args);
1971
    }
1972
 
1973
    public void recv_addOrUpdateAmazonFbaInventory() throws org.apache.thrift.TException
1974
    {
1975
      addOrUpdateAmazonFbaInventory_result result = new addOrUpdateAmazonFbaInventory_result();
1976
      receiveBase(result, "addOrUpdateAmazonFbaInventory");
1977
      return;
1978
    }
1979
 
9762 amar.kumar 1980
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws InventoryServiceException, org.apache.thrift.TException
8182 amar.kumar 1981
    {
1982
      send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source);
1983
      recv_addUpdateHoldInventory();
1984
    }
1985
 
1986
    public void send_addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException
1987
    {
1988
      addUpdateHoldInventory_args args = new addUpdateHoldInventory_args();
1989
      args.setItemId(itemId);
1990
      args.setWarehouseId(warehouseId);
1991
      args.setHoldQuantity(holdQuantity);
1992
      args.setSource(source);
1993
      sendBase("addUpdateHoldInventory", args);
1994
    }
1995
 
9762 amar.kumar 1996
    public void recv_addUpdateHoldInventory() throws InventoryServiceException, org.apache.thrift.TException
8182 amar.kumar 1997
    {
1998
      addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
1999
      receiveBase(result, "addUpdateHoldInventory");
9762 amar.kumar 2000
      if (result.cex != null) {
2001
        throw result.cex;
2002
      }
8182 amar.kumar 2003
      return;
2004
    }
2005
 
11173 vikram.rag 2006
    public List<AmazonFbaInventorySnapshot> getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException
8282 kshitij.so 2007
    {
2008
      send_getAmazonFbaItemInventory(itemId);
2009
      return recv_getAmazonFbaItemInventory();
2010
    }
2011
 
2012
    public void send_getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException
2013
    {
2014
      getAmazonFbaItemInventory_args args = new getAmazonFbaItemInventory_args();
2015
      args.setItemId(itemId);
2016
      sendBase("getAmazonFbaItemInventory", args);
2017
    }
2018
 
11173 vikram.rag 2019
    public List<AmazonFbaInventorySnapshot> recv_getAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2020
    {
2021
      getAmazonFbaItemInventory_result result = new getAmazonFbaItemInventory_result();
2022
      receiveBase(result, "getAmazonFbaItemInventory");
2023
      if (result.isSetSuccess()) {
2024
        return result.success;
2025
      }
2026
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2027
    }
2028
 
8363 vikram.rag 2029
    public List<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2030
    {
8363 vikram.rag 2031
      send_getAllAmazonFbaItemInventory();
2032
      return recv_getAllAmazonFbaItemInventory();
8282 kshitij.so 2033
    }
2034
 
8363 vikram.rag 2035
    public void send_getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2036
    {
8363 vikram.rag 2037
      getAllAmazonFbaItemInventory_args args = new getAllAmazonFbaItemInventory_args();
2038
      sendBase("getAllAmazonFbaItemInventory", args);
8282 kshitij.so 2039
    }
2040
 
8363 vikram.rag 2041
    public List<AmazonFbaInventorySnapshot> recv_getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2042
    {
8363 vikram.rag 2043
      getAllAmazonFbaItemInventory_result result = new getAllAmazonFbaItemInventory_result();
2044
      receiveBase(result, "getAllAmazonFbaItemInventory");
8282 kshitij.so 2045
      if (result.isSetSuccess()) {
2046
        return result.success;
2047
      }
8363 vikram.rag 2048
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2049
    }
2050
 
8363 vikram.rag 2051
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException
2052
    {
2053
      send_getOursGoodWarehouseIdsForLocation(state_id);
2054
      return recv_getOursGoodWarehouseIdsForLocation();
2055
    }
2056
 
2057
    public void send_getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException
2058
    {
2059
      getOursGoodWarehouseIdsForLocation_args args = new getOursGoodWarehouseIdsForLocation_args();
2060
      args.setState_id(state_id);
2061
      sendBase("getOursGoodWarehouseIdsForLocation", args);
2062
    }
2063
 
2064
    public List<Long> recv_getOursGoodWarehouseIdsForLocation() throws org.apache.thrift.TException
2065
    {
2066
      getOursGoodWarehouseIdsForLocation_result result = new getOursGoodWarehouseIdsForLocation_result();
2067
      receiveBase(result, "getOursGoodWarehouseIdsForLocation");
2068
      if (result.isSetSuccess()) {
2069
        return result.success;
2070
      }
2071
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2072
    }
2073
 
8958 vikram.rag 2074
    public long getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException
2075
    {
2076
      send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source);
2077
      return recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
2078
    }
2079
 
2080
    public void send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException
2081
    {
2082
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
2083
      args.setId(id);
2084
      args.setWarehouse_id(warehouse_id);
2085
      args.setSource(source);
2086
      sendBase("getHoldInventoryDetailForItemForWarehouseIdExceptSource", args);
2087
    }
2088
 
2089
    public long recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource() throws org.apache.thrift.TException
2090
    {
2091
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_result result = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result();
2092
      receiveBase(result, "getHoldInventoryDetailForItemForWarehouseIdExceptSource");
2093
      if (result.isSetSuccess()) {
2094
        return result.success;
2095
      }
2096
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2097
    }
2098
 
9404 vikram.rag 2099
    public SnapdealInventoryItem getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException
2100
    {
2101
      send_getSnapdealInventoryForItem(item_id);
2102
      return recv_getSnapdealInventoryForItem();
2103
    }
2104
 
2105
    public void send_getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException
2106
    {
2107
      getSnapdealInventoryForItem_args args = new getSnapdealInventoryForItem_args();
2108
      args.setItem_id(item_id);
2109
      sendBase("getSnapdealInventoryForItem", args);
2110
    }
2111
 
2112
    public SnapdealInventoryItem recv_getSnapdealInventoryForItem() throws org.apache.thrift.TException
2113
    {
2114
      getSnapdealInventoryForItem_result result = new getSnapdealInventoryForItem_result();
2115
      receiveBase(result, "getSnapdealInventoryForItem");
2116
      if (result.isSetSuccess()) {
2117
        return result.success;
2118
      }
2119
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2120
    }
2121
 
2122
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException
2123
    {
2124
      send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem);
2125
      recv_addOrUpdateSnapdealInventoryForItem();
2126
    }
2127
 
2128
    public void send_addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException
2129
    {
2130
      addOrUpdateSnapdealInventoryForItem_args args = new addOrUpdateSnapdealInventoryForItem_args();
2131
      args.setSnapdealinventoryitem(snapdealinventoryitem);
2132
      sendBase("addOrUpdateSnapdealInventoryForItem", args);
2133
    }
2134
 
2135
    public void recv_addOrUpdateSnapdealInventoryForItem() throws org.apache.thrift.TException
2136
    {
2137
      addOrUpdateSnapdealInventoryForItem_result result = new addOrUpdateSnapdealInventoryForItem_result();
2138
      receiveBase(result, "addOrUpdateSnapdealInventoryForItem");
2139
      return;
2140
    }
2141
 
2142
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
2143
    {
2144
      send_getNlcForWarehouse(warehouse_id, item_id);
2145
      return recv_getNlcForWarehouse();
2146
    }
2147
 
2148
    public void send_getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
2149
    {
2150
      getNlcForWarehouse_args args = new getNlcForWarehouse_args();
2151
      args.setWarehouse_id(warehouse_id);
2152
      args.setItem_id(item_id);
2153
      sendBase("getNlcForWarehouse", args);
2154
    }
2155
 
2156
    public double recv_getNlcForWarehouse() throws org.apache.thrift.TException
2157
    {
2158
      getNlcForWarehouse_result result = new getNlcForWarehouse_result();
2159
      receiveBase(result, "getNlcForWarehouse");
2160
      if (result.isSetSuccess()) {
2161
        return result.success;
2162
      }
2163
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2164
    }
2165
 
9640 amar.kumar 2166
    public Map<Integer,Long> getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException
2167
    {
2168
      send_getHeldInventoryMapForItem(item_id, warehouse_id);
2169
      return recv_getHeldInventoryMapForItem();
2170
    }
2171
 
2172
    public void send_getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException
2173
    {
2174
      getHeldInventoryMapForItem_args args = new getHeldInventoryMapForItem_args();
2175
      args.setItem_id(item_id);
2176
      args.setWarehouse_id(warehouse_id);
2177
      sendBase("getHeldInventoryMapForItem", args);
2178
    }
2179
 
2180
    public Map<Integer,Long> recv_getHeldInventoryMapForItem() throws org.apache.thrift.TException
2181
    {
2182
      getHeldInventoryMapForItem_result result = new getHeldInventoryMapForItem_result();
2183
      receiveBase(result, "getHeldInventoryMapForItem");
2184
      if (result.isSetSuccess()) {
2185
        return result.success;
2186
      }
2187
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2188
    }
2189
 
9482 vikram.rag 2190
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
2191
    {
2192
      send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot);
2193
      recv_addOrUpdateAllAmazonFbaInventory();
2194
    }
2195
 
2196
    public void send_addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
2197
    {
2198
      addOrUpdateAllAmazonFbaInventory_args args = new addOrUpdateAllAmazonFbaInventory_args();
2199
      args.setAllamazonfbainventorysnapshot(allamazonfbainventorysnapshot);
2200
      sendBase("addOrUpdateAllAmazonFbaInventory", args);
2201
    }
2202
 
2203
    public void recv_addOrUpdateAllAmazonFbaInventory() throws org.apache.thrift.TException
2204
    {
2205
      addOrUpdateAllAmazonFbaInventory_result result = new addOrUpdateAllAmazonFbaInventory_result();
2206
      receiveBase(result, "addOrUpdateAllAmazonFbaInventory");
2207
      return;
2208
    }
2209
 
9495 vikram.rag 2210
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException
2211
    {
2212
      send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot);
2213
      recv_addOrUpdateAllSnapdealInventory();
2214
    }
2215
 
2216
    public void send_addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException
2217
    {
2218
      addOrUpdateAllSnapdealInventory_args args = new addOrUpdateAllSnapdealInventory_args();
2219
      args.setAllsnapdealinventorysnapshot(allsnapdealinventorysnapshot);
2220
      sendBase("addOrUpdateAllSnapdealInventory", args);
2221
    }
2222
 
2223
    public void recv_addOrUpdateAllSnapdealInventory() throws org.apache.thrift.TException
2224
    {
2225
      addOrUpdateAllSnapdealInventory_result result = new addOrUpdateAllSnapdealInventory_result();
2226
      receiveBase(result, "addOrUpdateAllSnapdealInventory");
2227
      return;
2228
    }
2229
 
2230
    public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException
2231
    {
2232
      send_getSnapdealInventorySnapshot();
2233
      return recv_getSnapdealInventorySnapshot();
2234
    }
2235
 
2236
    public void send_getSnapdealInventorySnapshot() throws org.apache.thrift.TException
2237
    {
2238
      getSnapdealInventorySnapshot_args args = new getSnapdealInventorySnapshot_args();
2239
      sendBase("getSnapdealInventorySnapshot", args);
2240
    }
2241
 
2242
    public List<SnapdealInventoryItem> recv_getSnapdealInventorySnapshot() throws org.apache.thrift.TException
2243
    {
2244
      getSnapdealInventorySnapshot_result result = new getSnapdealInventorySnapshot_result();
2245
      receiveBase(result, "getSnapdealInventorySnapshot");
2246
      if (result.isSetSuccess()) {
2247
        return result.success;
2248
      }
2249
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2250
    }
2251
 
9761 amar.kumar 2252
    public List<HoldInventoryDetail> getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException
2253
    {
2254
      send_getHoldInventoryDetails(itemId, warehouseId, source);
2255
      return recv_getHoldInventoryDetails();
2256
    }
2257
 
2258
    public void send_getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException
2259
    {
2260
      getHoldInventoryDetails_args args = new getHoldInventoryDetails_args();
2261
      args.setItemId(itemId);
2262
      args.setWarehouseId(warehouseId);
2263
      args.setSource(source);
2264
      sendBase("getHoldInventoryDetails", args);
2265
    }
2266
 
2267
    public List<HoldInventoryDetail> recv_getHoldInventoryDetails() throws org.apache.thrift.TException
2268
    {
2269
      getHoldInventoryDetails_result result = new getHoldInventoryDetails_result();
2270
      receiveBase(result, "getHoldInventoryDetails");
2271
      if (result.isSetSuccess()) {
2272
        return result.success;
2273
      }
2274
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2275
    }
2276
 
10450 vikram.rag 2277
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time) throws org.apache.thrift.TException
10050 vikram.rag 2278
    {
10450 vikram.rag 2279
      send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time);
10050 vikram.rag 2280
      recv_addOrUpdateFlipkartInventorySnapshot();
2281
    }
2282
 
10450 vikram.rag 2283
    public void send_addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time) throws org.apache.thrift.TException
10050 vikram.rag 2284
    {
2285
      addOrUpdateFlipkartInventorySnapshot_args args = new addOrUpdateFlipkartInventorySnapshot_args();
2286
      args.setFlipkartInventorySnapshot(flipkartInventorySnapshot);
10450 vikram.rag 2287
      args.setTime(time);
10050 vikram.rag 2288
      sendBase("addOrUpdateFlipkartInventorySnapshot", args);
2289
    }
2290
 
2291
    public void recv_addOrUpdateFlipkartInventorySnapshot() throws org.apache.thrift.TException
2292
    {
2293
      addOrUpdateFlipkartInventorySnapshot_result result = new addOrUpdateFlipkartInventorySnapshot_result();
2294
      receiveBase(result, "addOrUpdateFlipkartInventorySnapshot");
2295
      return;
2296
    }
2297
 
2298
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException
2299
    {
2300
      send_getFlipkartInventorySnapshot();
2301
      return recv_getFlipkartInventorySnapshot();
2302
    }
2303
 
2304
    public void send_getFlipkartInventorySnapshot() throws org.apache.thrift.TException
2305
    {
2306
      getFlipkartInventorySnapshot_args args = new getFlipkartInventorySnapshot_args();
2307
      sendBase("getFlipkartInventorySnapshot", args);
2308
    }
2309
 
2310
    public List<FlipkartInventorySnapshot> recv_getFlipkartInventorySnapshot() throws org.apache.thrift.TException
2311
    {
2312
      getFlipkartInventorySnapshot_result result = new getFlipkartInventorySnapshot_result();
2313
      receiveBase(result, "getFlipkartInventorySnapshot");
2314
      if (result.isSetSuccess()) {
2315
        return result.success;
2316
      }
2317
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
2318
    }
2319
 
10097 kshitij.so 2320
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException
2321
    {
2322
      send_getFlipkartlInventoryForItem(item_id);
2323
      return recv_getFlipkartlInventoryForItem();
2324
    }
2325
 
2326
    public void send_getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException
2327
    {
2328
      getFlipkartlInventoryForItem_args args = new getFlipkartlInventoryForItem_args();
2329
      args.setItem_id(item_id);
2330
      sendBase("getFlipkartlInventoryForItem", args);
2331
    }
2332
 
2333
    public FlipkartInventorySnapshot recv_getFlipkartlInventoryForItem() throws org.apache.thrift.TException
2334
    {
2335
      getFlipkartlInventoryForItem_result result = new getFlipkartlInventoryForItem_result();
2336
      receiveBase(result, "getFlipkartlInventoryForItem");
2337
      if (result.isSetSuccess()) {
2338
        return result.success;
2339
      }
2340
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
2341
    }
2342
 
10485 vikram.rag 2343
    public Map<Long,String> getStateMaster() throws org.apache.thrift.TException
2344
    {
2345
      send_getStateMaster();
2346
      return recv_getStateMaster();
2347
    }
2348
 
2349
    public void send_getStateMaster() throws org.apache.thrift.TException
2350
    {
2351
      getStateMaster_args args = new getStateMaster_args();
2352
      sendBase("getStateMaster", args);
2353
    }
2354
 
2355
    public Map<Long,String> recv_getStateMaster() throws org.apache.thrift.TException
2356
    {
2357
      getStateMaster_result result = new getStateMaster_result();
2358
      receiveBase(result, "getStateMaster");
2359
      if (result.isSetSuccess()) {
2360
        return result.success;
2361
      }
2362
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
2363
    }
2364
 
10546 vikram.rag 2365
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException
2366
    {
2367
      send_updateSnapdealStockAtEOD(allsnapdealstock);
2368
      recv_updateSnapdealStockAtEOD();
2369
    }
2370
 
2371
    public void send_updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException
2372
    {
2373
      updateSnapdealStockAtEOD_args args = new updateSnapdealStockAtEOD_args();
2374
      args.setAllsnapdealstock(allsnapdealstock);
2375
      sendBase("updateSnapdealStockAtEOD", args);
2376
    }
2377
 
2378
    public void recv_updateSnapdealStockAtEOD() throws org.apache.thrift.TException
2379
    {
2380
      updateSnapdealStockAtEOD_result result = new updateSnapdealStockAtEOD_result();
2381
      receiveBase(result, "updateSnapdealStockAtEOD");
2382
      return;
2383
    }
2384
 
2385
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException
2386
    {
2387
      send_updateFlipkartStockAtEOD(allflipkartstock);
2388
      recv_updateFlipkartStockAtEOD();
2389
    }
2390
 
2391
    public void send_updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException
2392
    {
2393
      updateFlipkartStockAtEOD_args args = new updateFlipkartStockAtEOD_args();
2394
      args.setAllflipkartstock(allflipkartstock);
2395
      sendBase("updateFlipkartStockAtEOD", args);
2396
    }
2397
 
2398
    public void recv_updateFlipkartStockAtEOD() throws org.apache.thrift.TException
2399
    {
2400
      updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
2401
      receiveBase(result, "updateFlipkartStockAtEOD");
2402
      return;
2403
    }
2404
 
5945 mandeep.dh 2405
  }
2406
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2407
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2408
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2409
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2410
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2411
        this.clientManager = clientManager;
2412
        this.protocolFactory = protocolFactory;
2413
      }
2414
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2415
        return new AsyncClient(protocolFactory, clientManager, transport);
2416
      }
2417
    }
2418
 
2419
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2420
      super(protocolFactory, clientManager, transport);
2421
    }
2422
 
2423
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2424
      checkReady();
2425
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
2426
      this.___currentMethod = method_call;
2427
      ___manager.call(method_call);
2428
    }
2429
 
2430
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2431
      private Warehouse warehouse;
2432
      public addWarehouse_call(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_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 {
2433
        super(client, protocolFactory, transport, resultHandler, false);
2434
        this.warehouse = warehouse;
2435
      }
2436
 
2437
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2438
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2439
        addWarehouse_args args = new addWarehouse_args();
2440
        args.setWarehouse(warehouse);
2441
        args.write(prot);
2442
        prot.writeMessageEnd();
2443
      }
2444
 
2445
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2446
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2447
          throw new IllegalStateException("Method call not finished!");
2448
        }
2449
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2450
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2451
        return (new Client(prot)).recv_addWarehouse();
2452
      }
2453
    }
2454
 
2455
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
2456
      checkReady();
2457
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
2458
      this.___currentMethod = method_call;
2459
      ___manager.call(method_call);
2460
    }
2461
 
2462
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2463
      private Vendor vendor;
2464
      public addVendor_call(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_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 {
2465
        super(client, protocolFactory, transport, resultHandler, false);
2466
        this.vendor = vendor;
2467
      }
2468
 
2469
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2470
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2471
        addVendor_args args = new addVendor_args();
2472
        args.setVendor(vendor);
2473
        args.write(prot);
2474
        prot.writeMessageEnd();
2475
      }
2476
 
2477
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2478
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2479
          throw new IllegalStateException("Method call not finished!");
2480
        }
2481
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2482
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2483
        return (new Client(prot)).recv_addVendor();
2484
      }
2485
    }
2486
 
2487
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability, org.apache.thrift.async.AsyncMethodCallback<updateInventoryHistory_call> resultHandler) throws org.apache.thrift.TException {
2488
      checkReady();
2489
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
2490
      this.___currentMethod = method_call;
2491
      ___manager.call(method_call);
2492
    }
2493
 
2494
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
2495
      private long warehouse_id;
2496
      private String timestamp;
2497
      private Map<String,Long> availability;
2498
      public updateInventoryHistory_call(long warehouse_id, String timestamp, Map<String,Long> availability, org.apache.thrift.async.AsyncMethodCallback<updateInventoryHistory_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 {
2499
        super(client, protocolFactory, transport, resultHandler, false);
2500
        this.warehouse_id = warehouse_id;
2501
        this.timestamp = timestamp;
2502
        this.availability = availability;
2503
      }
2504
 
2505
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2506
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2507
        updateInventoryHistory_args args = new updateInventoryHistory_args();
2508
        args.setWarehouse_id(warehouse_id);
2509
        args.setTimestamp(timestamp);
2510
        args.setAvailability(availability);
2511
        args.write(prot);
2512
        prot.writeMessageEnd();
2513
      }
2514
 
2515
      public void getResult() throws InventoryServiceException, 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
        (new Client(prot)).recv_updateInventoryHistory();
2522
      }
2523
    }
2524
 
2525
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability, org.apache.thrift.async.AsyncMethodCallback<updateInventory_call> resultHandler) throws org.apache.thrift.TException {
2526
      checkReady();
2527
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
2528
      this.___currentMethod = method_call;
2529
      ___manager.call(method_call);
2530
    }
2531
 
2532
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2533
      private long warehouse_id;
2534
      private String timestamp;
2535
      private Map<String,Long> availability;
2536
      public updateInventory_call(long warehouse_id, String timestamp, Map<String,Long> availability, org.apache.thrift.async.AsyncMethodCallback<updateInventory_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 {
2537
        super(client, protocolFactory, transport, resultHandler, false);
2538
        this.warehouse_id = warehouse_id;
2539
        this.timestamp = timestamp;
2540
        this.availability = availability;
2541
      }
2542
 
2543
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2544
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2545
        updateInventory_args args = new updateInventory_args();
2546
        args.setWarehouse_id(warehouse_id);
2547
        args.setTimestamp(timestamp);
2548
        args.setAvailability(availability);
2549
        args.write(prot);
2550
        prot.writeMessageEnd();
2551
      }
2552
 
2553
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2554
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2555
          throw new IllegalStateException("Method call not finished!");
2556
        }
2557
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2558
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2559
        (new Client(prot)).recv_updateInventory();
2560
      }
2561
    }
2562
 
2563
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
2564
      checkReady();
2565
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2566
      this.___currentMethod = method_call;
2567
      ___manager.call(method_call);
2568
    }
2569
 
2570
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2571
      private long itemId;
2572
      private long warehouseId;
2573
      private long quantity;
2574
      public addInventory_call(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_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 {
2575
        super(client, protocolFactory, transport, resultHandler, false);
2576
        this.itemId = itemId;
2577
        this.warehouseId = warehouseId;
2578
        this.quantity = quantity;
2579
      }
2580
 
2581
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2582
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2583
        addInventory_args args = new addInventory_args();
2584
        args.setItemId(itemId);
2585
        args.setWarehouseId(warehouseId);
2586
        args.setQuantity(quantity);
2587
        args.write(prot);
2588
        prot.writeMessageEnd();
2589
      }
2590
 
2591
      public void getResult() throws InventoryServiceException, 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
        (new Client(prot)).recv_addInventory();
2598
      }
2599
    }
2600
 
2601
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2602
      checkReady();
2603
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2604
      this.___currentMethod = method_call;
2605
      ___manager.call(method_call);
2606
    }
2607
 
2608
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2609
      private long warehouse_id;
2610
      public retireWarehouse_call(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_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 {
2611
        super(client, protocolFactory, transport, resultHandler, false);
2612
        this.warehouse_id = warehouse_id;
2613
      }
2614
 
2615
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2616
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2617
        retireWarehouse_args args = new retireWarehouse_args();
2618
        args.setWarehouse_id(warehouse_id);
2619
        args.write(prot);
2620
        prot.writeMessageEnd();
2621
      }
2622
 
2623
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2624
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2625
          throw new IllegalStateException("Method call not finished!");
2626
        }
2627
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2628
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2629
        (new Client(prot)).recv_retireWarehouse();
2630
      }
2631
    }
2632
 
2633
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
2634
      checkReady();
2635
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2636
      this.___currentMethod = method_call;
2637
      ___manager.call(method_call);
2638
    }
2639
 
2640
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
2641
      private long item_id;
2642
      public getItemInventoryByItemId_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2643
        super(client, protocolFactory, transport, resultHandler, false);
2644
        this.item_id = item_id;
2645
      }
2646
 
2647
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2648
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2649
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
2650
        args.setItem_id(item_id);
2651
        args.write(prot);
2652
        prot.writeMessageEnd();
2653
      }
2654
 
2655
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
2656
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2657
          throw new IllegalStateException("Method call not finished!");
2658
        }
2659
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2660
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2661
        return (new Client(prot)).recv_getItemInventoryByItemId();
2662
      }
2663
    }
2664
 
2665
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2666
      checkReady();
2667
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
2668
      this.___currentMethod = method_call;
2669
      ___manager.call(method_call);
2670
    }
2671
 
2672
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2673
      private long warehouse_id;
2674
      private long item_id;
2675
      public getItemAvailibilityAtWarehouse_call(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_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 {
2676
        super(client, protocolFactory, transport, resultHandler, false);
2677
        this.warehouse_id = warehouse_id;
2678
        this.item_id = item_id;
2679
      }
2680
 
2681
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2682
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2683
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
2684
        args.setWarehouse_id(warehouse_id);
2685
        args.setItem_id(item_id);
2686
        args.write(prot);
2687
        prot.writeMessageEnd();
2688
      }
2689
 
2690
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2691
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2692
          throw new IllegalStateException("Method call not finished!");
2693
        }
2694
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2695
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2696
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
2697
      }
2698
    }
2699
 
5978 rajveer 2700
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 2701
      checkReady();
5978 rajveer 2702
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2703
      this.___currentMethod = method_call;
2704
      ___manager.call(method_call);
2705
    }
2706
 
2707
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
2708
      private long itemId;
5978 rajveer 2709
      private long sourceId;
2710
      public getItemAvailabilityAtLocation_call(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_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 {
5945 mandeep.dh 2711
        super(client, protocolFactory, transport, resultHandler, false);
2712
        this.itemId = itemId;
5978 rajveer 2713
        this.sourceId = sourceId;
5945 mandeep.dh 2714
      }
2715
 
2716
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2717
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
2718
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
2719
        args.setItemId(itemId);
5978 rajveer 2720
        args.setSourceId(sourceId);
5945 mandeep.dh 2721
        args.write(prot);
2722
        prot.writeMessageEnd();
2723
      }
2724
 
2725
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2726
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2727
          throw new IllegalStateException("Method call not finished!");
2728
        }
2729
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2730
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2731
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
2732
      }
2733
    }
2734
 
2735
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
2736
      checkReady();
2737
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
2738
      this.___currentMethod = method_call;
2739
      ___manager.call(method_call);
2740
    }
2741
 
2742
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2743
      private boolean isActive;
2744
      public getAllWarehouses_call(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2745
        super(client, protocolFactory, transport, resultHandler, false);
2746
        this.isActive = isActive;
2747
      }
2748
 
2749
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2750
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2751
        getAllWarehouses_args args = new getAllWarehouses_args();
2752
        args.setIsActive(isActive);
2753
        args.write(prot);
2754
        prot.writeMessageEnd();
2755
      }
2756
 
2757
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2758
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2759
          throw new IllegalStateException("Method call not finished!");
2760
        }
2761
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2762
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2763
        return (new Client(prot)).recv_getAllWarehouses();
2764
      }
2765
    }
2766
 
2767
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2768
      checkReady();
2769
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2770
      this.___currentMethod = method_call;
2771
      ___manager.call(method_call);
2772
    }
2773
 
2774
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2775
      private long warehouse_id;
2776
      public getWarehouse_call(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_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 {
2777
        super(client, protocolFactory, transport, resultHandler, false);
2778
        this.warehouse_id = warehouse_id;
2779
      }
2780
 
2781
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2782
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2783
        getWarehouse_args args = new getWarehouse_args();
2784
        args.setWarehouse_id(warehouse_id);
2785
        args.write(prot);
2786
        prot.writeMessageEnd();
2787
      }
2788
 
2789
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
2790
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2791
          throw new IllegalStateException("Method call not finished!");
2792
        }
2793
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2794
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2795
        return (new Client(prot)).recv_getWarehouse();
2796
      }
2797
    }
2798
 
2799
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2800
      checkReady();
2801
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2802
      this.___currentMethod = method_call;
2803
      ___manager.call(method_call);
2804
    }
2805
 
2806
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2807
      private long warehouse_id;
2808
      public getAllItemsForWarehouse_call(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_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 {
2809
        super(client, protocolFactory, transport, resultHandler, false);
2810
        this.warehouse_id = warehouse_id;
2811
      }
2812
 
2813
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2814
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2815
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
2816
        args.setWarehouse_id(warehouse_id);
2817
        args.write(prot);
2818
        prot.writeMessageEnd();
2819
      }
2820
 
2821
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2822
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2823
          throw new IllegalStateException("Method call not finished!");
2824
        }
2825
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2826
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2827
        return (new Client(prot)).recv_getAllItemsForWarehouse();
2828
      }
2829
    }
2830
 
5967 rajveer 2831
    public void isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<isOrderBillable_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 2832
      checkReady();
5967 rajveer 2833
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2834
      this.___currentMethod = method_call;
2835
      ___manager.call(method_call);
2836
    }
2837
 
5967 rajveer 2838
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
2839
      private long itemId;
2840
      private long warehouseId;
2841
      private long sourceId;
2842
      private long orderId;
2843
      public isOrderBillable_call(long itemId, long warehouseId, long sourceId, long orderId, org.apache.thrift.async.AsyncMethodCallback<isOrderBillable_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.itemId = itemId;
2846
        this.warehouseId = warehouseId;
2847
        this.sourceId = sourceId;
2848
        this.orderId = orderId;
2849
      }
2850
 
2851
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2852
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2853
        isOrderBillable_args args = new isOrderBillable_args();
2854
        args.setItemId(itemId);
2855
        args.setWarehouseId(warehouseId);
2856
        args.setSourceId(sourceId);
2857
        args.setOrderId(orderId);
2858
        args.write(prot);
2859
        prot.writeMessageEnd();
2860
      }
2861
 
2862
      public boolean getResult() throws org.apache.thrift.TException {
2863
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2864
          throw new IllegalStateException("Method call not finished!");
2865
        }
2866
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2867
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2868
        return (new Client(prot)).recv_isOrderBillable();
2869
      }
2870
    }
2871
 
2872
    public void reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<reserveItemInWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2873
      checkReady();
2874
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
2875
      this.___currentMethod = method_call;
2876
      ___manager.call(method_call);
2877
    }
2878
 
5945 mandeep.dh 2879
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2880
      private long itemId;
2881
      private long warehouseId;
5967 rajveer 2882
      private long sourceId;
2883
      private long orderId;
2884
      private long createdTimestamp;
2885
      private long promisedShippingTimestamp;
5945 mandeep.dh 2886
      private double quantity;
5967 rajveer 2887
      public reserveItemInWarehouse_call(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<reserveItemInWarehouse_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 {
5945 mandeep.dh 2888
        super(client, protocolFactory, transport, resultHandler, false);
2889
        this.itemId = itemId;
2890
        this.warehouseId = warehouseId;
5967 rajveer 2891
        this.sourceId = sourceId;
2892
        this.orderId = orderId;
2893
        this.createdTimestamp = createdTimestamp;
2894
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 2895
        this.quantity = quantity;
2896
      }
2897
 
2898
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2899
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2900
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
2901
        args.setItemId(itemId);
2902
        args.setWarehouseId(warehouseId);
5967 rajveer 2903
        args.setSourceId(sourceId);
2904
        args.setOrderId(orderId);
2905
        args.setCreatedTimestamp(createdTimestamp);
2906
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 2907
        args.setQuantity(quantity);
2908
        args.write(prot);
2909
        prot.writeMessageEnd();
2910
      }
2911
 
2912
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2913
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2914
          throw new IllegalStateException("Method call not finished!");
2915
        }
2916
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2917
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2918
        return (new Client(prot)).recv_reserveItemInWarehouse();
2919
      }
2920
    }
2921
 
7968 amar.kumar 2922
    public void updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<updateReservationForOrder_call> resultHandler) throws org.apache.thrift.TException {
2923
      checkReady();
2924
      updateReservationForOrder_call method_call = new updateReservationForOrder_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
2925
      this.___currentMethod = method_call;
2926
      ___manager.call(method_call);
2927
    }
2928
 
2929
    public static class updateReservationForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
2930
      private long itemId;
2931
      private long warehouseId;
2932
      private long sourceId;
2933
      private long orderId;
2934
      private long createdTimestamp;
2935
      private long promisedShippingTimestamp;
2936
      private double quantity;
2937
      public updateReservationForOrder_call(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity, org.apache.thrift.async.AsyncMethodCallback<updateReservationForOrder_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 {
2938
        super(client, protocolFactory, transport, resultHandler, false);
2939
        this.itemId = itemId;
2940
        this.warehouseId = warehouseId;
2941
        this.sourceId = sourceId;
2942
        this.orderId = orderId;
2943
        this.createdTimestamp = createdTimestamp;
2944
        this.promisedShippingTimestamp = promisedShippingTimestamp;
2945
        this.quantity = quantity;
2946
      }
2947
 
2948
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2949
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateReservationForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
2950
        updateReservationForOrder_args args = new updateReservationForOrder_args();
2951
        args.setItemId(itemId);
2952
        args.setWarehouseId(warehouseId);
2953
        args.setSourceId(sourceId);
2954
        args.setOrderId(orderId);
2955
        args.setCreatedTimestamp(createdTimestamp);
2956
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
2957
        args.setQuantity(quantity);
2958
        args.write(prot);
2959
        prot.writeMessageEnd();
2960
      }
2961
 
2962
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2963
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2964
          throw new IllegalStateException("Method call not finished!");
2965
        }
2966
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2967
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2968
        return (new Client(prot)).recv_updateReservationForOrder();
2969
      }
2970
    }
2971
 
5967 rajveer 2972
    public void reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 2973
      checkReady();
5967 rajveer 2974
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2975
      this.___currentMethod = method_call;
2976
      ___manager.call(method_call);
2977
    }
2978
 
2979
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2980
      private long itemId;
2981
      private long warehouseId;
5967 rajveer 2982
      private long sourceId;
2983
      private long orderId;
5945 mandeep.dh 2984
      private double quantity;
5967 rajveer 2985
      public reduceReservationCount_call(long itemId, long warehouseId, long sourceId, long orderId, double quantity, org.apache.thrift.async.AsyncMethodCallback<reduceReservationCount_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 {
5945 mandeep.dh 2986
        super(client, protocolFactory, transport, resultHandler, false);
2987
        this.itemId = itemId;
2988
        this.warehouseId = warehouseId;
5967 rajveer 2989
        this.sourceId = sourceId;
2990
        this.orderId = orderId;
5945 mandeep.dh 2991
        this.quantity = quantity;
2992
      }
2993
 
2994
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2995
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2996
        reduceReservationCount_args args = new reduceReservationCount_args();
2997
        args.setItemId(itemId);
2998
        args.setWarehouseId(warehouseId);
5967 rajveer 2999
        args.setSourceId(sourceId);
3000
        args.setOrderId(orderId);
5945 mandeep.dh 3001
        args.setQuantity(quantity);
3002
        args.write(prot);
3003
        prot.writeMessageEnd();
3004
      }
3005
 
3006
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
3007
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3008
          throw new IllegalStateException("Method call not finished!");
3009
        }
3010
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3011
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3012
        return (new Client(prot)).recv_reduceReservationCount();
3013
      }
3014
    }
3015
 
3016
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
3017
      checkReady();
3018
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
3019
      this.___currentMethod = method_call;
3020
      ___manager.call(method_call);
3021
    }
3022
 
3023
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
3024
      private long itemId;
3025
      private long vendorId;
3026
      public getItemPricing_call(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_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 {
3027
        super(client, protocolFactory, transport, resultHandler, false);
3028
        this.itemId = itemId;
3029
        this.vendorId = vendorId;
3030
      }
3031
 
3032
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3033
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
3034
        getItemPricing_args args = new getItemPricing_args();
3035
        args.setItemId(itemId);
3036
        args.setVendorId(vendorId);
3037
        args.write(prot);
3038
        prot.writeMessageEnd();
3039
      }
3040
 
3041
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
3042
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3043
          throw new IllegalStateException("Method call not finished!");
3044
        }
3045
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3046
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3047
        return (new Client(prot)).recv_getItemPricing();
3048
      }
3049
    }
3050
 
3051
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
3052
      checkReady();
3053
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3054
      this.___currentMethod = method_call;
3055
      ___manager.call(method_call);
3056
    }
3057
 
3058
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
3059
      private long itemId;
3060
      public getAllItemPricing_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_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 {
3061
        super(client, protocolFactory, transport, resultHandler, false);
3062
        this.itemId = itemId;
3063
      }
3064
 
3065
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3066
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
3067
        getAllItemPricing_args args = new getAllItemPricing_args();
3068
        args.setItemId(itemId);
3069
        args.write(prot);
3070
        prot.writeMessageEnd();
3071
      }
3072
 
3073
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
3074
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3075
          throw new IllegalStateException("Method call not finished!");
3076
        }
3077
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3078
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3079
        return (new Client(prot)).recv_getAllItemPricing();
3080
      }
3081
    }
3082
 
3083
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
3084
      checkReady();
3085
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
3086
      this.___currentMethod = method_call;
3087
      ___manager.call(method_call);
3088
    }
3089
 
3090
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
3091
      private VendorItemPricing vendorItemPricing;
3092
      public addVendorItemPricing_call(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_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 {
3093
        super(client, protocolFactory, transport, resultHandler, false);
3094
        this.vendorItemPricing = vendorItemPricing;
3095
      }
3096
 
3097
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3098
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
3099
        addVendorItemPricing_args args = new addVendorItemPricing_args();
3100
        args.setVendorItemPricing(vendorItemPricing);
3101
        args.write(prot);
3102
        prot.writeMessageEnd();
3103
      }
3104
 
3105
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3106
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3107
          throw new IllegalStateException("Method call not finished!");
3108
        }
3109
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3110
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3111
        (new Client(prot)).recv_addVendorItemPricing();
3112
      }
3113
    }
3114
 
3115
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
3116
      checkReady();
3117
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
3118
      this.___currentMethod = method_call;
3119
      ___manager.call(method_call);
3120
    }
3121
 
3122
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
3123
      private long vendorId;
3124
      public getVendor_call(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_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 {
3125
        super(client, protocolFactory, transport, resultHandler, false);
3126
        this.vendorId = vendorId;
3127
      }
3128
 
3129
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3130
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
3131
        getVendor_args args = new getVendor_args();
3132
        args.setVendorId(vendorId);
3133
        args.write(prot);
3134
        prot.writeMessageEnd();
3135
      }
3136
 
3137
      public Vendor getResult() throws org.apache.thrift.TException {
3138
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3139
          throw new IllegalStateException("Method call not finished!");
3140
        }
3141
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3142
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3143
        return (new Client(prot)).recv_getVendor();
3144
      }
3145
    }
3146
 
3147
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
3148
      checkReady();
3149
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
3150
      this.___currentMethod = method_call;
3151
      ___manager.call(method_call);
3152
    }
3153
 
3154
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
3155
      public getAllVendors_call(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_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 {
3156
        super(client, protocolFactory, transport, resultHandler, false);
3157
      }
3158
 
3159
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3160
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
3161
        getAllVendors_args args = new getAllVendors_args();
3162
        args.write(prot);
3163
        prot.writeMessageEnd();
3164
      }
3165
 
3166
      public List<Vendor> getResult() throws org.apache.thrift.TException {
3167
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3168
          throw new IllegalStateException("Method call not finished!");
3169
        }
3170
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3171
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3172
        return (new Client(prot)).recv_getAllVendors();
3173
      }
3174
    }
3175
 
3176
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
3177
      checkReady();
3178
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
3179
      this.___currentMethod = method_call;
3180
      ___manager.call(method_call);
3181
    }
3182
 
3183
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
3184
      private String key;
3185
      private VendorItemMapping vendorItemMapping;
3186
      public addVendorItemMapping_call(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_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 {
3187
        super(client, protocolFactory, transport, resultHandler, false);
3188
        this.key = key;
3189
        this.vendorItemMapping = vendorItemMapping;
3190
      }
3191
 
3192
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3193
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
3194
        addVendorItemMapping_args args = new addVendorItemMapping_args();
3195
        args.setKey(key);
3196
        args.setVendorItemMapping(vendorItemMapping);
3197
        args.write(prot);
3198
        prot.writeMessageEnd();
3199
      }
3200
 
3201
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3202
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3203
          throw new IllegalStateException("Method call not finished!");
3204
        }
3205
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3206
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3207
        (new Client(prot)).recv_addVendorItemMapping();
3208
      }
3209
    }
3210
 
3211
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
3212
      checkReady();
3213
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3214
      this.___currentMethod = method_call;
3215
      ___manager.call(method_call);
3216
    }
3217
 
3218
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
3219
      private long itemId;
3220
      public getVendorItemMappings_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_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 {
3221
        super(client, protocolFactory, transport, resultHandler, false);
3222
        this.itemId = itemId;
3223
      }
3224
 
3225
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3226
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
3227
        getVendorItemMappings_args args = new getVendorItemMappings_args();
3228
        args.setItemId(itemId);
3229
        args.write(prot);
3230
        prot.writeMessageEnd();
3231
      }
3232
 
3233
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
3234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3235
          throw new IllegalStateException("Method call not finished!");
3236
        }
3237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3239
        return (new Client(prot)).recv_getVendorItemMappings();
3240
      }
3241
    }
3242
 
3243
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
3244
      checkReady();
3245
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
3246
      this.___currentMethod = method_call;
3247
      ___manager.call(method_call);
3248
    }
3249
 
3250
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3251
      private long vendorid;
3252
      public getPendingOrdersInventory_call(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_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 {
3253
        super(client, protocolFactory, transport, resultHandler, false);
3254
        this.vendorid = vendorid;
3255
      }
3256
 
3257
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3258
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3259
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
3260
        args.setVendorid(vendorid);
3261
        args.write(prot);
3262
        prot.writeMessageEnd();
3263
      }
3264
 
3265
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
3266
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3267
          throw new IllegalStateException("Method call not finished!");
3268
        }
3269
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3270
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3271
        return (new Client(prot)).recv_getPendingOrdersInventory();
3272
      }
3273
    }
3274
 
3275
    public void getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getWarehouses_call> resultHandler) throws org.apache.thrift.TException {
3276
      checkReady();
3277
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3278
      this.___currentMethod = method_call;
3279
      ___manager.call(method_call);
3280
    }
3281
 
3282
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
3283
      private WarehouseType warehouseType;
3284
      private InventoryType inventoryType;
3285
      private long vendorId;
3286
      private long billingWarehouseId;
3287
      private long shippingWarehouseId;
3288
      public getWarehouses_call(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getWarehouses_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 {
3289
        super(client, protocolFactory, transport, resultHandler, false);
3290
        this.warehouseType = warehouseType;
3291
        this.inventoryType = inventoryType;
3292
        this.vendorId = vendorId;
3293
        this.billingWarehouseId = billingWarehouseId;
3294
        this.shippingWarehouseId = shippingWarehouseId;
3295
      }
3296
 
3297
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3298
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
3299
        getWarehouses_args args = new getWarehouses_args();
3300
        args.setWarehouseType(warehouseType);
3301
        args.setInventoryType(inventoryType);
3302
        args.setVendorId(vendorId);
3303
        args.setBillingWarehouseId(billingWarehouseId);
3304
        args.setShippingWarehouseId(shippingWarehouseId);
3305
        args.write(prot);
3306
        prot.writeMessageEnd();
3307
      }
3308
 
3309
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
3310
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3311
          throw new IllegalStateException("Method call not finished!");
3312
        }
3313
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3314
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3315
        return (new Client(prot)).recv_getWarehouses();
3316
      }
3317
    }
3318
 
3319
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
3320
      checkReady();
3321
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3322
      this.___currentMethod = method_call;
3323
      ___manager.call(method_call);
3324
    }
3325
 
3326
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
3327
      private String itemKey;
3328
      private long vendorId;
3329
      private long quantity;
3330
      private long warehouseId;
3331
      public resetAvailability_call(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_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 {
3332
        super(client, protocolFactory, transport, resultHandler, false);
3333
        this.itemKey = itemKey;
3334
        this.vendorId = vendorId;
3335
        this.quantity = quantity;
3336
        this.warehouseId = warehouseId;
3337
      }
3338
 
3339
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3340
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
3341
        resetAvailability_args args = new resetAvailability_args();
3342
        args.setItemKey(itemKey);
3343
        args.setVendorId(vendorId);
3344
        args.setQuantity(quantity);
3345
        args.setWarehouseId(warehouseId);
3346
        args.write(prot);
3347
        prot.writeMessageEnd();
3348
      }
3349
 
3350
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3351
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3352
          throw new IllegalStateException("Method call not finished!");
3353
        }
3354
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3355
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3356
        (new Client(prot)).recv_resetAvailability();
3357
      }
3358
    }
3359
 
3360
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
3361
      checkReady();
3362
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3363
      this.___currentMethod = method_call;
3364
      ___manager.call(method_call);
3365
    }
3366
 
3367
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
3368
      private long warehouseId;
3369
      public resetAvailabilityForWarehouse_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_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 {
3370
        super(client, protocolFactory, transport, resultHandler, false);
3371
        this.warehouseId = warehouseId;
3372
      }
3373
 
3374
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3375
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
3376
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
3377
        args.setWarehouseId(warehouseId);
3378
        args.write(prot);
3379
        prot.writeMessageEnd();
3380
      }
3381
 
3382
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3383
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3384
          throw new IllegalStateException("Method call not finished!");
3385
        }
3386
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3387
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3388
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
3389
      }
3390
    }
3391
 
3392
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
3393
      checkReady();
3394
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3395
      this.___currentMethod = method_call;
3396
      ___manager.call(method_call);
3397
    }
3398
 
3399
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
3400
      private long warehouseId;
3401
      public getItemKeysToBeProcessed_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_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 {
3402
        super(client, protocolFactory, transport, resultHandler, false);
3403
        this.warehouseId = warehouseId;
3404
      }
3405
 
3406
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3407
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
3408
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
3409
        args.setWarehouseId(warehouseId);
3410
        args.write(prot);
3411
        prot.writeMessageEnd();
3412
      }
3413
 
3414
      public List<String> getResult() throws org.apache.thrift.TException {
3415
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3416
          throw new IllegalStateException("Method call not finished!");
3417
        }
3418
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3419
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3420
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
3421
      }
3422
    }
3423
 
3424
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
3425
      checkReady();
3426
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3427
      this.___currentMethod = method_call;
3428
      ___manager.call(method_call);
3429
    }
3430
 
3431
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
3432
      private String itemKey;
3433
      private long warehouseId;
3434
      public markMissedInventoryUpdatesAsProcessed_call(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_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 {
3435
        super(client, protocolFactory, transport, resultHandler, false);
3436
        this.itemKey = itemKey;
3437
        this.warehouseId = warehouseId;
3438
      }
3439
 
3440
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3441
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
3442
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
3443
        args.setItemKey(itemKey);
3444
        args.setWarehouseId(warehouseId);
3445
        args.write(prot);
3446
        prot.writeMessageEnd();
3447
      }
3448
 
3449
      public void getResult() throws org.apache.thrift.TException {
3450
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3451
          throw new IllegalStateException("Method call not finished!");
3452
        }
3453
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3454
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3455
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
3456
      }
3457
    }
3458
 
3459
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
3460
      checkReady();
3461
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
3462
      this.___currentMethod = method_call;
3463
      ___manager.call(method_call);
3464
    }
3465
 
3466
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
3467
      public getIgnoredItemKeys_call(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_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 {
3468
        super(client, protocolFactory, transport, resultHandler, false);
3469
      }
3470
 
3471
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3472
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
3473
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
3474
        args.write(prot);
3475
        prot.writeMessageEnd();
3476
      }
3477
 
3478
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
3479
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3480
          throw new IllegalStateException("Method call not finished!");
3481
        }
3482
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3483
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3484
        return (new Client(prot)).recv_getIgnoredItemKeys();
3485
      }
3486
    }
3487
 
3488
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
3489
      checkReady();
3490
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3491
      this.___currentMethod = method_call;
3492
      ___manager.call(method_call);
3493
    }
3494
 
3495
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3496
      private long itemId;
3497
      private long warehouseId;
3498
      private long quantity;
3499
      public addBadInventory_call(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_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 {
3500
        super(client, protocolFactory, transport, resultHandler, false);
3501
        this.itemId = itemId;
3502
        this.warehouseId = warehouseId;
3503
        this.quantity = quantity;
3504
      }
3505
 
3506
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3507
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3508
        addBadInventory_args args = new addBadInventory_args();
3509
        args.setItemId(itemId);
3510
        args.setWarehouseId(warehouseId);
3511
        args.setQuantity(quantity);
3512
        args.write(prot);
3513
        prot.writeMessageEnd();
3514
      }
3515
 
3516
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3517
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3518
          throw new IllegalStateException("Method call not finished!");
3519
        }
3520
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3521
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3522
        (new Client(prot)).recv_addBadInventory();
3523
      }
3524
    }
3525
 
3526
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
3527
      checkReady();
3528
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
3529
      this.___currentMethod = method_call;
3530
      ___manager.call(method_call);
3531
    }
3532
 
3533
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
3534
      public getShippingLocations_call(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_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 {
3535
        super(client, protocolFactory, transport, resultHandler, false);
3536
      }
3537
 
3538
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3539
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
3540
        getShippingLocations_args args = new getShippingLocations_args();
3541
        args.write(prot);
3542
        prot.writeMessageEnd();
3543
      }
3544
 
3545
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
3546
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3547
          throw new IllegalStateException("Method call not finished!");
3548
        }
3549
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3550
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3551
        return (new Client(prot)).recv_getShippingLocations();
3552
      }
3553
    }
3554
 
3555
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
3556
      checkReady();
3557
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
3558
      this.___currentMethod = method_call;
3559
      ___manager.call(method_call);
3560
    }
3561
 
3562
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
3563
      public getAllVendorItemMappings_call(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_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 {
3564
        super(client, protocolFactory, transport, resultHandler, false);
3565
      }
3566
 
3567
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3568
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
3569
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
3570
        args.write(prot);
3571
        prot.writeMessageEnd();
3572
      }
3573
 
3574
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
3575
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3576
          throw new IllegalStateException("Method call not finished!");
3577
        }
3578
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3579
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3580
        return (new Client(prot)).recv_getAllVendorItemMappings();
3581
      }
3582
    }
3583
 
3584
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
3585
      checkReady();
3586
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3587
      this.___currentMethod = method_call;
3588
      ___manager.call(method_call);
3589
    }
3590
 
3591
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
3592
      private long warehouseId;
3593
      public getInventorySnapshot_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_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 {
3594
        super(client, protocolFactory, transport, resultHandler, false);
3595
        this.warehouseId = warehouseId;
3596
      }
3597
 
3598
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3599
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
3600
        getInventorySnapshot_args args = new getInventorySnapshot_args();
3601
        args.setWarehouseId(warehouseId);
3602
        args.write(prot);
3603
        prot.writeMessageEnd();
3604
      }
3605
 
3606
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
3607
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3608
          throw new IllegalStateException("Method call not finished!");
3609
        }
3610
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3611
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3612
        return (new Client(prot)).recv_getInventorySnapshot();
3613
      }
3614
    }
3615
 
3616
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
3617
      checkReady();
3618
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
3619
      this.___currentMethod = method_call;
3620
      ___manager.call(method_call);
3621
    }
3622
 
3623
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
3624
      public clearItemAvailabilityCache_call(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_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 {
3625
        super(client, protocolFactory, transport, resultHandler, false);
3626
      }
3627
 
3628
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3629
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
3630
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
3631
        args.write(prot);
3632
        prot.writeMessageEnd();
3633
      }
3634
 
3635
      public void getResult() throws org.apache.thrift.TException {
3636
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3637
          throw new IllegalStateException("Method call not finished!");
3638
        }
3639
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3640
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3641
        (new Client(prot)).recv_clearItemAvailabilityCache();
3642
      }
3643
    }
3644
 
3645
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
3646
      checkReady();
3647
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
3648
      this.___currentMethod = method_call;
3649
      ___manager.call(method_call);
3650
    }
3651
 
3652
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
3653
      private long warehouseId;
3654
      private String vendorString;
3655
      public updateVendorString_call(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_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 {
3656
        super(client, protocolFactory, transport, resultHandler, false);
3657
        this.warehouseId = warehouseId;
3658
        this.vendorString = vendorString;
3659
      }
3660
 
3661
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3662
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
3663
        updateVendorString_args args = new updateVendorString_args();
3664
        args.setWarehouseId(warehouseId);
3665
        args.setVendorString(vendorString);
3666
        args.write(prot);
3667
        prot.writeMessageEnd();
3668
      }
3669
 
3670
      public void getResult() throws org.apache.thrift.TException {
3671
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3672
          throw new IllegalStateException("Method call not finished!");
3673
        }
3674
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3675
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3676
        (new Client(prot)).recv_updateVendorString();
3677
      }
3678
    }
3679
 
6096 amit.gupta 3680
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
3681
      checkReady();
3682
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
3683
      this.___currentMethod = method_call;
3684
      ___manager.call(method_call);
3685
    }
3686
 
3687
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3688
      private long item_id;
3689
      public clearItemAvailabilityCacheForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_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 {
3690
        super(client, protocolFactory, transport, resultHandler, false);
3691
        this.item_id = item_id;
3692
      }
3693
 
3694
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3695
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3696
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
3697
        args.setItem_id(item_id);
3698
        args.write(prot);
3699
        prot.writeMessageEnd();
3700
      }
3701
 
3702
      public void getResult() throws org.apache.thrift.TException {
3703
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3704
          throw new IllegalStateException("Method call not finished!");
3705
        }
3706
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3707
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3708
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
3709
      }
3710
    }
3711
 
7718 amar.kumar 3712
    public void getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
6467 amar.kumar 3713
      checkReady();
7718 amar.kumar 3714
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
6467 amar.kumar 3715
      this.___currentMethod = method_call;
3716
      ___manager.call(method_call);
3717
    }
3718
 
3719
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
3720
      private long vendorId;
7718 amar.kumar 3721
      private long billingWarehouseId;
3722
      public getOurWarehouseIdForVendor_call(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_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 {
6467 amar.kumar 3723
        super(client, protocolFactory, transport, resultHandler, false);
3724
        this.vendorId = vendorId;
7718 amar.kumar 3725
        this.billingWarehouseId = billingWarehouseId;
6467 amar.kumar 3726
      }
3727
 
3728
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3729
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
3730
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
3731
        args.setVendorId(vendorId);
7718 amar.kumar 3732
        args.setBillingWarehouseId(billingWarehouseId);
6467 amar.kumar 3733
        args.write(prot);
3734
        prot.writeMessageEnd();
3735
      }
3736
 
3737
      public long getResult() throws org.apache.thrift.TException {
3738
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3739
          throw new IllegalStateException("Method call not finished!");
3740
        }
3741
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3743
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
3744
      }
3745
    }
3746
 
6484 amar.kumar 3747
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
3748
      checkReady();
3749
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
3750
      this.___currentMethod = method_call;
3751
      ___manager.call(method_call);
3752
    }
3753
 
3754
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
3755
      private List<Long> item_ids;
3756
      public getItemAvailabilitiesAtOurWarehouses_call(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_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 {
3757
        super(client, protocolFactory, transport, resultHandler, false);
3758
        this.item_ids = item_ids;
3759
      }
3760
 
3761
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3762
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
3763
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
3764
        args.setItem_ids(item_ids);
3765
        args.write(prot);
3766
        prot.writeMessageEnd();
3767
      }
3768
 
3769
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
3770
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3771
          throw new IllegalStateException("Method call not finished!");
3772
        }
3773
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3774
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3775
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
3776
      }
3777
    }
3778
 
6531 vikram.rag 3779
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException {
3780
      checkReady();
3781
      getMonitoredWarehouseForVendors_call method_call = new getMonitoredWarehouseForVendors_call(vendorIds, resultHandler, this, ___protocolFactory, ___transport);
3782
      this.___currentMethod = method_call;
3783
      ___manager.call(method_call);
3784
    }
3785
 
3786
    public static class getMonitoredWarehouseForVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
3787
      private List<Long> vendorIds;
3788
      public getMonitoredWarehouseForVendors_call(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<getMonitoredWarehouseForVendors_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 {
3789
        super(client, protocolFactory, transport, resultHandler, false);
3790
        this.vendorIds = vendorIds;
3791
      }
3792
 
3793
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3794
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMonitoredWarehouseForVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
3795
        getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
3796
        args.setVendorIds(vendorIds);
3797
        args.write(prot);
3798
        prot.writeMessageEnd();
3799
      }
3800
 
3801
      public List<Long> getResult() throws org.apache.thrift.TException {
3802
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3803
          throw new IllegalStateException("Method call not finished!");
3804
        }
3805
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3806
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3807
        return (new Client(prot)).recv_getMonitoredWarehouseForVendors();
3808
      }
3809
    }
3810
 
3811
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException {
3812
      checkReady();
3813
      getIgnoredWarehouseidsAndItemids_call method_call = new getIgnoredWarehouseidsAndItemids_call(resultHandler, this, ___protocolFactory, ___transport);
3814
      this.___currentMethod = method_call;
3815
      ___manager.call(method_call);
3816
    }
3817
 
3818
    public static class getIgnoredWarehouseidsAndItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3819
      public getIgnoredWarehouseidsAndItemids_call(org.apache.thrift.async.AsyncMethodCallback<getIgnoredWarehouseidsAndItemids_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 {
3820
        super(client, protocolFactory, transport, resultHandler, false);
3821
      }
3822
 
3823
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3824
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredWarehouseidsAndItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3825
        getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
3826
        args.write(prot);
3827
        prot.writeMessageEnd();
3828
      }
3829
 
3830
      public List<IgnoredInventoryUpdateItems> getResult() throws org.apache.thrift.TException {
3831
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3832
          throw new IllegalStateException("Method call not finished!");
3833
        }
3834
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3835
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3836
        return (new Client(prot)).recv_getIgnoredWarehouseidsAndItemids();
3837
      }
3838
    }
3839
 
3840
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException {
3841
      checkReady();
3842
      insertItemtoIgnoreInventoryUpdatelist_call method_call = new insertItemtoIgnoreInventoryUpdatelist_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3843
      this.___currentMethod = method_call;
3844
      ___manager.call(method_call);
3845
    }
3846
 
3847
    public static class insertItemtoIgnoreInventoryUpdatelist_call extends org.apache.thrift.async.TAsyncMethodCall {
3848
      private long item_id;
3849
      private long warehouse_id;
3850
      public insertItemtoIgnoreInventoryUpdatelist_call(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<insertItemtoIgnoreInventoryUpdatelist_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 {
3851
        super(client, protocolFactory, transport, resultHandler, false);
3852
        this.item_id = item_id;
3853
        this.warehouse_id = warehouse_id;
3854
      }
3855
 
3856
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3857
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertItemtoIgnoreInventoryUpdatelist", org.apache.thrift.protocol.TMessageType.CALL, 0));
3858
        insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
3859
        args.setItem_id(item_id);
3860
        args.setWarehouse_id(warehouse_id);
3861
        args.write(prot);
3862
        prot.writeMessageEnd();
3863
      }
3864
 
3865
      public boolean getResult() throws org.apache.thrift.TException {
3866
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3867
          throw new IllegalStateException("Method call not finished!");
3868
        }
3869
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3870
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3871
        return (new Client(prot)).recv_insertItemtoIgnoreInventoryUpdatelist();
3872
      }
3873
    }
3874
 
3875
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException {
3876
      checkReady();
3877
      deleteItemFromIgnoredInventoryUpdateList_call method_call = new deleteItemFromIgnoredInventoryUpdateList_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3878
      this.___currentMethod = method_call;
3879
      ___manager.call(method_call);
3880
    }
3881
 
3882
    public static class deleteItemFromIgnoredInventoryUpdateList_call extends org.apache.thrift.async.TAsyncMethodCall {
3883
      private long item_id;
3884
      private long warehouse_id;
3885
      public deleteItemFromIgnoredInventoryUpdateList_call(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromIgnoredInventoryUpdateList_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 {
3886
        super(client, protocolFactory, transport, resultHandler, false);
3887
        this.item_id = item_id;
3888
        this.warehouse_id = warehouse_id;
3889
      }
3890
 
3891
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3892
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromIgnoredInventoryUpdateList", org.apache.thrift.protocol.TMessageType.CALL, 0));
3893
        deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
3894
        args.setItem_id(item_id);
3895
        args.setWarehouse_id(warehouse_id);
3896
        args.write(prot);
3897
        prot.writeMessageEnd();
3898
      }
3899
 
3900
      public boolean getResult() throws org.apache.thrift.TException {
3901
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3902
          throw new IllegalStateException("Method call not finished!");
3903
        }
3904
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3905
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3906
        return (new Client(prot)).recv_deleteItemFromIgnoredInventoryUpdateList();
3907
      }
3908
    }
3909
 
3910
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException {
3911
      checkReady();
3912
      getAllIgnoredInventoryupdateItemsCount_call method_call = new getAllIgnoredInventoryupdateItemsCount_call(resultHandler, this, ___protocolFactory, ___transport);
3913
      this.___currentMethod = method_call;
3914
      ___manager.call(method_call);
3915
    }
3916
 
3917
    public static class getAllIgnoredInventoryupdateItemsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3918
      public getAllIgnoredInventoryupdateItemsCount_call(org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryupdateItemsCount_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 {
3919
        super(client, protocolFactory, transport, resultHandler, false);
3920
      }
3921
 
3922
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3923
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryupdateItemsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3924
        getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
3925
        args.write(prot);
3926
        prot.writeMessageEnd();
3927
      }
3928
 
3929
      public int getResult() throws org.apache.thrift.TException {
3930
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3931
          throw new IllegalStateException("Method call not finished!");
3932
        }
3933
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3934
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3935
        return (new Client(prot)).recv_getAllIgnoredInventoryupdateItemsCount();
3936
      }
3937
    }
3938
 
3939
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException {
3940
      checkReady();
3941
      getIgnoredInventoryUpdateItemids_call method_call = new getIgnoredInventoryUpdateItemids_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
3942
      this.___currentMethod = method_call;
3943
      ___manager.call(method_call);
3944
    }
3945
 
3946
    public static class getIgnoredInventoryUpdateItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3947
      private int offset;
3948
      private int limit;
3949
      public getIgnoredInventoryUpdateItemids_call(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getIgnoredInventoryUpdateItemids_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 {
3950
        super(client, protocolFactory, transport, resultHandler, false);
3951
        this.offset = offset;
3952
        this.limit = limit;
3953
      }
3954
 
3955
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3956
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredInventoryUpdateItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3957
        getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
3958
        args.setOffset(offset);
3959
        args.setLimit(limit);
3960
        args.write(prot);
3961
        prot.writeMessageEnd();
3962
      }
3963
 
3964
      public List<Long> getResult() throws org.apache.thrift.TException {
3965
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3966
          throw new IllegalStateException("Method call not finished!");
3967
        }
3968
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3969
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3970
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
3971
      }
3972
    }
3973
 
6821 amar.kumar 3974
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3975
      checkReady();
3976
      updateItemStockPurchaseParams_call method_call = new updateItemStockPurchaseParams_call(item_id, numOfDaysStock, minStockLevel, resultHandler, this, ___protocolFactory, ___transport);
3977
      this.___currentMethod = method_call;
3978
      ___manager.call(method_call);
3979
    }
3980
 
3981
    public static class updateItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3982
      private long item_id;
3983
      private int numOfDaysStock;
3984
      private long minStockLevel;
3985
      public updateItemStockPurchaseParams_call(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_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 {
3986
        super(client, protocolFactory, transport, resultHandler, false);
3987
        this.item_id = item_id;
3988
        this.numOfDaysStock = numOfDaysStock;
3989
        this.minStockLevel = minStockLevel;
3990
      }
3991
 
3992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3993
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3994
        updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
3995
        args.setItem_id(item_id);
3996
        args.setNumOfDaysStock(numOfDaysStock);
3997
        args.setMinStockLevel(minStockLevel);
3998
        args.write(prot);
3999
        prot.writeMessageEnd();
4000
      }
4001
 
4002
      public void getResult() throws org.apache.thrift.TException {
4003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4004
          throw new IllegalStateException("Method call not finished!");
4005
        }
4006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4008
        (new Client(prot)).recv_updateItemStockPurchaseParams();
4009
      }
4010
    }
4011
 
4012
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
4013
      checkReady();
4014
      getItemStockPurchaseParams_call method_call = new getItemStockPurchaseParams_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
4015
      this.___currentMethod = method_call;
4016
      ___manager.call(method_call);
4017
    }
4018
 
4019
    public static class getItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
4020
      private long itemId;
4021
      public getItemStockPurchaseParams_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_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 {
4022
        super(client, protocolFactory, transport, resultHandler, false);
4023
        this.itemId = itemId;
4024
      }
4025
 
4026
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4027
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
4028
        getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
4029
        args.setItemId(itemId);
4030
        args.write(prot);
4031
        prot.writeMessageEnd();
4032
      }
4033
 
4034
      public ItemStockPurchaseParams getResult() throws org.apache.thrift.TException {
4035
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4036
          throw new IllegalStateException("Method call not finished!");
4037
        }
4038
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4039
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4040
        return (new Client(prot)).recv_getItemStockPurchaseParams();
4041
      }
4042
    }
4043
 
4044
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException {
4045
      checkReady();
4046
      addOosStatusForItem_call method_call = new addOosStatusForItem_call(oosStatusMap, date, resultHandler, this, ___protocolFactory, ___transport);
4047
      this.___currentMethod = method_call;
4048
      ___manager.call(method_call);
4049
    }
4050
 
4051
    public static class addOosStatusForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4052
      private Map<Long,Boolean> oosStatusMap;
4053
      private long date;
4054
      public addOosStatusForItem_call(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_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 {
4055
        super(client, protocolFactory, transport, resultHandler, false);
4056
        this.oosStatusMap = oosStatusMap;
4057
        this.date = date;
4058
      }
4059
 
4060
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4061
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOosStatusForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4062
        addOosStatusForItem_args args = new addOosStatusForItem_args();
4063
        args.setOosStatusMap(oosStatusMap);
4064
        args.setDate(date);
4065
        args.write(prot);
4066
        prot.writeMessageEnd();
4067
      }
4068
 
4069
      public void getResult() throws org.apache.thrift.TException {
4070
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4071
          throw new IllegalStateException("Method call not finished!");
4072
        }
4073
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4074
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4075
        (new Client(prot)).recv_addOosStatusForItem();
4076
      }
4077
    }
4078
 
9665 rajveer 4079
    public void getOosStatusesForXDaysForItem(long itemId, int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException {
6832 amar.kumar 4080
      checkReady();
9665 rajveer 4081
      getOosStatusesForXDaysForItem_call method_call = new getOosStatusesForXDaysForItem_call(itemId, sourceId, days, resultHandler, this, ___protocolFactory, ___transport);
6832 amar.kumar 4082
      this.___currentMethod = method_call;
4083
      ___manager.call(method_call);
4084
    }
4085
 
4086
    public static class getOosStatusesForXDaysForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4087
      private long itemId;
9665 rajveer 4088
      private int sourceId;
6832 amar.kumar 4089
      private int days;
9665 rajveer 4090
      public getOosStatusesForXDaysForItem_call(long itemId, int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDaysForItem_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 {
6832 amar.kumar 4091
        super(client, protocolFactory, transport, resultHandler, false);
4092
        this.itemId = itemId;
9665 rajveer 4093
        this.sourceId = sourceId;
6832 amar.kumar 4094
        this.days = days;
4095
      }
4096
 
4097
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4098
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOosStatusesForXDaysForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4099
        getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
4100
        args.setItemId(itemId);
9665 rajveer 4101
        args.setSourceId(sourceId);
6832 amar.kumar 4102
        args.setDays(days);
4103
        args.write(prot);
4104
        prot.writeMessageEnd();
4105
      }
4106
 
4107
      public List<OOSStatus> getResult() throws org.apache.thrift.TException {
4108
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4109
          throw new IllegalStateException("Method call not finished!");
4110
        }
4111
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4112
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4113
        return (new Client(prot)).recv_getOosStatusesForXDaysForItem();
4114
      }
4115
    }
4116
 
10126 amar.kumar 4117
    public void getOosStatusesForXDays(int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDays_call> resultHandler) throws org.apache.thrift.TException {
4118
      checkReady();
4119
      getOosStatusesForXDays_call method_call = new getOosStatusesForXDays_call(sourceId, days, resultHandler, this, ___protocolFactory, ___transport);
4120
      this.___currentMethod = method_call;
4121
      ___manager.call(method_call);
4122
    }
4123
 
4124
    public static class getOosStatusesForXDays_call extends org.apache.thrift.async.TAsyncMethodCall {
4125
      private int sourceId;
4126
      private int days;
4127
      public getOosStatusesForXDays_call(int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDays_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 {
4128
        super(client, protocolFactory, transport, resultHandler, false);
4129
        this.sourceId = sourceId;
4130
        this.days = days;
4131
      }
4132
 
4133
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4134
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOosStatusesForXDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
4135
        getOosStatusesForXDays_args args = new getOosStatusesForXDays_args();
4136
        args.setSourceId(sourceId);
4137
        args.setDays(days);
4138
        args.write(prot);
4139
        prot.writeMessageEnd();
4140
      }
4141
 
4142
      public List<OOSStatus> getResult() throws org.apache.thrift.TException {
4143
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4144
          throw new IllegalStateException("Method call not finished!");
4145
        }
4146
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4147
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4148
        return (new Client(prot)).recv_getOosStatusesForXDays();
4149
      }
4150
    }
4151
 
4152
    public void getAllVendorItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
4153
      checkReady();
4154
      getAllVendorItemPricing_call method_call = new getAllVendorItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
4155
      this.___currentMethod = method_call;
4156
      ___manager.call(method_call);
4157
    }
4158
 
4159
    public static class getAllVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
4160
      private long itemId;
4161
      private long vendorId;
4162
      public getAllVendorItemPricing_call(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemPricing_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 {
4163
        super(client, protocolFactory, transport, resultHandler, false);
4164
        this.itemId = itemId;
4165
        this.vendorId = vendorId;
4166
      }
4167
 
4168
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4169
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
4170
        getAllVendorItemPricing_args args = new getAllVendorItemPricing_args();
4171
        args.setItemId(itemId);
4172
        args.setVendorId(vendorId);
4173
        args.write(prot);
4174
        prot.writeMessageEnd();
4175
      }
4176
 
4177
      public List<VendorItemPricing> getResult() throws org.apache.thrift.TException {
4178
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4179
          throw new IllegalStateException("Method call not finished!");
4180
        }
4181
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4182
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4183
        return (new Client(prot)).recv_getAllVendorItemPricing();
4184
      }
4185
    }
4186
 
6857 amar.kumar 4187
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
4188
      checkReady();
4189
      getNonZeroItemStockPurchaseParams_call method_call = new getNonZeroItemStockPurchaseParams_call(resultHandler, this, ___protocolFactory, ___transport);
4190
      this.___currentMethod = method_call;
4191
      ___manager.call(method_call);
4192
    }
4193
 
4194
    public static class getNonZeroItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
4195
      public getNonZeroItemStockPurchaseParams_call(org.apache.thrift.async.AsyncMethodCallback<getNonZeroItemStockPurchaseParams_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 {
4196
        super(client, protocolFactory, transport, resultHandler, false);
4197
      }
4198
 
4199
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4200
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonZeroItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
4201
        getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
4202
        args.write(prot);
4203
        prot.writeMessageEnd();
4204
      }
4205
 
4206
      public List<ItemStockPurchaseParams> getResult() throws org.apache.thrift.TException {
4207
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4208
          throw new IllegalStateException("Method call not finished!");
4209
        }
4210
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4211
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4212
        return (new Client(prot)).recv_getNonZeroItemStockPurchaseParams();
4213
      }
4214
    }
4215
 
7149 amar.kumar 4216
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException {
4217
      checkReady();
4218
      getBillableInventoryAndPendingOrders_call method_call = new getBillableInventoryAndPendingOrders_call(resultHandler, this, ___protocolFactory, ___transport);
4219
      this.___currentMethod = method_call;
4220
      ___manager.call(method_call);
4221
    }
4222
 
4223
    public static class getBillableInventoryAndPendingOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
4224
      public getBillableInventoryAndPendingOrders_call(org.apache.thrift.async.AsyncMethodCallback<getBillableInventoryAndPendingOrders_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 {
4225
        super(client, protocolFactory, transport, resultHandler, false);
4226
      }
4227
 
4228
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4229
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBillableInventoryAndPendingOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
4230
        getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
4231
        args.write(prot);
4232
        prot.writeMessageEnd();
4233
      }
4234
 
4235
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
4236
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4237
          throw new IllegalStateException("Method call not finished!");
4238
        }
4239
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4240
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4241
        return (new Client(prot)).recv_getBillableInventoryAndPendingOrders();
4242
      }
4243
    }
4244
 
7281 kshitij.so 4245
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseName_call> resultHandler) throws org.apache.thrift.TException {
4246
      checkReady();
4247
      getWarehouseName_call method_call = new getWarehouseName_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
4248
      this.___currentMethod = method_call;
4249
      ___manager.call(method_call);
4250
    }
4251
 
4252
    public static class getWarehouseName_call extends org.apache.thrift.async.TAsyncMethodCall {
4253
      private long warehouse_id;
4254
      public getWarehouseName_call(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseName_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 {
4255
        super(client, protocolFactory, transport, resultHandler, false);
4256
        this.warehouse_id = warehouse_id;
4257
      }
4258
 
4259
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4260
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseName", org.apache.thrift.protocol.TMessageType.CALL, 0));
4261
        getWarehouseName_args args = new getWarehouseName_args();
4262
        args.setWarehouse_id(warehouse_id);
4263
        args.write(prot);
4264
        prot.writeMessageEnd();
4265
      }
4266
 
4267
      public String getResult() throws org.apache.thrift.TException {
4268
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4269
          throw new IllegalStateException("Method call not finished!");
4270
        }
4271
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4272
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4273
        return (new Client(prot)).recv_getWarehouseName();
4274
      }
4275
    }
4276
 
4277
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
4278
      checkReady();
4279
      getAmazonInventoryForItem_call method_call = new getAmazonInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
4280
      this.___currentMethod = method_call;
4281
      ___manager.call(method_call);
4282
    }
4283
 
4284
    public static class getAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4285
      private long item_id;
4286
      public getAmazonInventoryForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonInventoryForItem_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 {
4287
        super(client, protocolFactory, transport, resultHandler, false);
4288
        this.item_id = item_id;
4289
      }
4290
 
4291
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4292
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4293
        getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
4294
        args.setItem_id(item_id);
4295
        args.write(prot);
4296
        prot.writeMessageEnd();
4297
      }
4298
 
4299
      public AmazonInventorySnapshot getResult() throws org.apache.thrift.TException {
4300
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4301
          throw new IllegalStateException("Method call not finished!");
4302
        }
4303
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4304
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4305
        return (new Client(prot)).recv_getAmazonInventoryForItem();
4306
      }
4307
    }
4308
 
4309
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException {
4310
      checkReady();
4311
      getAllAmazonInventory_call method_call = new getAllAmazonInventory_call(resultHandler, this, ___protocolFactory, ___transport);
4312
      this.___currentMethod = method_call;
4313
      ___manager.call(method_call);
4314
    }
4315
 
4316
    public static class getAllAmazonInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4317
      public getAllAmazonInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonInventory_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 {
4318
        super(client, protocolFactory, transport, resultHandler, false);
4319
      }
4320
 
4321
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4322
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4323
        getAllAmazonInventory_args args = new getAllAmazonInventory_args();
4324
        args.write(prot);
4325
        prot.writeMessageEnd();
4326
      }
4327
 
4328
      public List<AmazonInventorySnapshot> getResult() throws org.apache.thrift.TException {
4329
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4330
          throw new IllegalStateException("Method call not finished!");
4331
        }
4332
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4333
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4334
        return (new Client(prot)).recv_getAllAmazonInventory();
4335
      }
4336
    }
4337
 
10450 vikram.rag 4338
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
7281 kshitij.so 4339
      checkReady();
10450 vikram.rag 4340
      addOrUpdateAmazonInventoryForItem_call method_call = new addOrUpdateAmazonInventoryForItem_call(amazonInventorySnapshot, time, resultHandler, this, ___protocolFactory, ___transport);
7281 kshitij.so 4341
      this.___currentMethod = method_call;
4342
      ___manager.call(method_call);
4343
    }
4344
 
4345
    public static class addOrUpdateAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4346
      private AmazonInventorySnapshot amazonInventorySnapshot;
10450 vikram.rag 4347
      private long time;
4348
      public addOrUpdateAmazonInventoryForItem_call(AmazonInventorySnapshot amazonInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonInventoryForItem_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 {
7281 kshitij.so 4349
        super(client, protocolFactory, transport, resultHandler, false);
4350
        this.amazonInventorySnapshot = amazonInventorySnapshot;
10450 vikram.rag 4351
        this.time = time;
7281 kshitij.so 4352
      }
4353
 
4354
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4355
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4356
        addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
4357
        args.setAmazonInventorySnapshot(amazonInventorySnapshot);
10450 vikram.rag 4358
        args.setTime(time);
7281 kshitij.so 4359
        args.write(prot);
4360
        prot.writeMessageEnd();
4361
      }
4362
 
4363
      public void getResult() throws org.apache.thrift.TException {
4364
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4365
          throw new IllegalStateException("Method call not finished!");
4366
        }
4367
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4368
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4369
        (new Client(prot)).recv_addOrUpdateAmazonInventoryForItem();
4370
      }
4371
    }
4372
 
7972 amar.kumar 4373
    public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException {
4374
      checkReady();
4375
      getLastNdaySaleForItem_call method_call = new getLastNdaySaleForItem_call(itemId, numberOfDays, resultHandler, this, ___protocolFactory, ___transport);
4376
      this.___currentMethod = method_call;
4377
      ___manager.call(method_call);
4378
    }
4379
 
4380
    public static class getLastNdaySaleForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4381
      private long itemId;
4382
      private long numberOfDays;
4383
      public getLastNdaySaleForItem_call(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<getLastNdaySaleForItem_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 {
4384
        super(client, protocolFactory, transport, resultHandler, false);
4385
        this.itemId = itemId;
4386
        this.numberOfDays = numberOfDays;
4387
      }
4388
 
4389
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4390
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLastNdaySaleForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4391
        getLastNdaySaleForItem_args args = new getLastNdaySaleForItem_args();
4392
        args.setItemId(itemId);
4393
        args.setNumberOfDays(numberOfDays);
4394
        args.write(prot);
4395
        prot.writeMessageEnd();
4396
      }
4397
 
4398
      public String getResult() throws org.apache.thrift.TException {
4399
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4400
          throw new IllegalStateException("Method call not finished!");
4401
        }
4402
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4403
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4404
        return (new Client(prot)).recv_getLastNdaySaleForItem();
4405
      }
4406
    }
4407
 
8282 kshitij.so 4408
    public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
4409
      checkReady();
4410
      addOrUpdateAmazonFbaInventory_call method_call = new addOrUpdateAmazonFbaInventory_call(amazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
4411
      this.___currentMethod = method_call;
4412
      ___manager.call(method_call);
4413
    }
4414
 
4415
    public static class addOrUpdateAmazonFbaInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4416
      private AmazonFbaInventorySnapshot amazonfbainventorysnapshot;
4417
      public addOrUpdateAmazonFbaInventory_call(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonFbaInventory_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 {
4418
        super(client, protocolFactory, transport, resultHandler, false);
4419
        this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
4420
      }
4421
 
4422
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4423
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonFbaInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4424
        addOrUpdateAmazonFbaInventory_args args = new addOrUpdateAmazonFbaInventory_args();
4425
        args.setAmazonfbainventorysnapshot(amazonfbainventorysnapshot);
4426
        args.write(prot);
4427
        prot.writeMessageEnd();
4428
      }
4429
 
4430
      public void getResult() throws org.apache.thrift.TException {
4431
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4432
          throw new IllegalStateException("Method call not finished!");
4433
        }
4434
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4436
        (new Client(prot)).recv_addOrUpdateAmazonFbaInventory();
4437
      }
4438
    }
4439
 
8182 amar.kumar 4440
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException {
4441
      checkReady();
4442
      addUpdateHoldInventory_call method_call = new addUpdateHoldInventory_call(itemId, warehouseId, holdQuantity, source, resultHandler, this, ___protocolFactory, ___transport);
4443
      this.___currentMethod = method_call;
4444
      ___manager.call(method_call);
4445
    }
4446
 
4447
    public static class addUpdateHoldInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4448
      private long itemId;
4449
      private long warehouseId;
4450
      private long holdQuantity;
4451
      private long source;
4452
      public addUpdateHoldInventory_call(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<addUpdateHoldInventory_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 {
4453
        super(client, protocolFactory, transport, resultHandler, false);
4454
        this.itemId = itemId;
4455
        this.warehouseId = warehouseId;
4456
        this.holdQuantity = holdQuantity;
4457
        this.source = source;
4458
      }
4459
 
4460
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4461
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUpdateHoldInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4462
        addUpdateHoldInventory_args args = new addUpdateHoldInventory_args();
4463
        args.setItemId(itemId);
4464
        args.setWarehouseId(warehouseId);
4465
        args.setHoldQuantity(holdQuantity);
4466
        args.setSource(source);
4467
        args.write(prot);
4468
        prot.writeMessageEnd();
4469
      }
4470
 
9762 amar.kumar 4471
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
8182 amar.kumar 4472
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4473
          throw new IllegalStateException("Method call not finished!");
4474
        }
4475
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4476
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4477
        (new Client(prot)).recv_addUpdateHoldInventory();
4478
      }
4479
    }
4480
 
8282 kshitij.so 4481
    public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
4482
      checkReady();
4483
      getAmazonFbaItemInventory_call method_call = new getAmazonFbaItemInventory_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
4484
      this.___currentMethod = method_call;
4485
      ___manager.call(method_call);
4486
    }
4487
 
4488
    public static class getAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4489
      private long itemId;
4490
      public getAmazonFbaItemInventory_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaItemInventory_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 {
4491
        super(client, protocolFactory, transport, resultHandler, false);
4492
        this.itemId = itemId;
4493
      }
4494
 
4495
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4497
        getAmazonFbaItemInventory_args args = new getAmazonFbaItemInventory_args();
4498
        args.setItemId(itemId);
4499
        args.write(prot);
4500
        prot.writeMessageEnd();
4501
      }
4502
 
11173 vikram.rag 4503
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
8282 kshitij.so 4504
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4505
          throw new IllegalStateException("Method call not finished!");
4506
        }
4507
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4508
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4509
        return (new Client(prot)).recv_getAmazonFbaItemInventory();
4510
      }
4511
    }
4512
 
8363 vikram.rag 4513
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
8282 kshitij.so 4514
      checkReady();
8363 vikram.rag 4515
      getAllAmazonFbaItemInventory_call method_call = new getAllAmazonFbaItemInventory_call(resultHandler, this, ___protocolFactory, ___transport);
8282 kshitij.so 4516
      this.___currentMethod = method_call;
4517
      ___manager.call(method_call);
4518
    }
4519
 
8363 vikram.rag 4520
    public static class getAllAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4521
      public getAllAmazonFbaItemInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonFbaItemInventory_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 {
8282 kshitij.so 4522
        super(client, protocolFactory, transport, resultHandler, false);
4523
      }
4524
 
4525
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
8363 vikram.rag 4526
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4527
        getAllAmazonFbaItemInventory_args args = new getAllAmazonFbaItemInventory_args();
8282 kshitij.so 4528
        args.write(prot);
4529
        prot.writeMessageEnd();
4530
      }
4531
 
4532
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
4533
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4534
          throw new IllegalStateException("Method call not finished!");
4535
        }
4536
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4537
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8363 vikram.rag 4538
        return (new Client(prot)).recv_getAllAmazonFbaItemInventory();
8282 kshitij.so 4539
      }
4540
    }
4541
 
8363 vikram.rag 4542
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException {
4543
      checkReady();
4544
      getOursGoodWarehouseIdsForLocation_call method_call = new getOursGoodWarehouseIdsForLocation_call(state_id, resultHandler, this, ___protocolFactory, ___transport);
4545
      this.___currentMethod = method_call;
4546
      ___manager.call(method_call);
4547
    }
4548
 
4549
    public static class getOursGoodWarehouseIdsForLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
4550
      private long state_id;
4551
      public getOursGoodWarehouseIdsForLocation_call(long state_id, org.apache.thrift.async.AsyncMethodCallback<getOursGoodWarehouseIdsForLocation_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 {
4552
        super(client, protocolFactory, transport, resultHandler, false);
4553
        this.state_id = state_id;
4554
      }
4555
 
4556
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4557
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOursGoodWarehouseIdsForLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
4558
        getOursGoodWarehouseIdsForLocation_args args = new getOursGoodWarehouseIdsForLocation_args();
4559
        args.setState_id(state_id);
4560
        args.write(prot);
4561
        prot.writeMessageEnd();
4562
      }
4563
 
4564
      public List<Long> getResult() throws org.apache.thrift.TException {
4565
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4566
          throw new IllegalStateException("Method call not finished!");
4567
        }
4568
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4569
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4570
        return (new Client(prot)).recv_getOursGoodWarehouseIdsForLocation();
4571
      }
4572
    }
4573
 
8958 vikram.rag 4574
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException {
4575
      checkReady();
4576
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_call method_call = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_call(id, warehouse_id, source, resultHandler, this, ___protocolFactory, ___transport);
4577
      this.___currentMethod = method_call;
4578
      ___manager.call(method_call);
4579
    }
4580
 
4581
    public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_call extends org.apache.thrift.async.TAsyncMethodCall {
4582
      private long id;
4583
      private long warehouse_id;
4584
      private long source;
4585
      public getHoldInventoryDetailForItemForWarehouseIdExceptSource_call(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetailForItemForWarehouseIdExceptSource_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 {
4586
        super(client, protocolFactory, transport, resultHandler, false);
4587
        this.id = id;
4588
        this.warehouse_id = warehouse_id;
4589
        this.source = source;
4590
      }
4591
 
4592
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4593
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHoldInventoryDetailForItemForWarehouseIdExceptSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
4594
        getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
4595
        args.setId(id);
4596
        args.setWarehouse_id(warehouse_id);
4597
        args.setSource(source);
4598
        args.write(prot);
4599
        prot.writeMessageEnd();
4600
      }
4601
 
4602
      public long getResult() throws org.apache.thrift.TException {
4603
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4604
          throw new IllegalStateException("Method call not finished!");
4605
        }
4606
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4607
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4608
        return (new Client(prot)).recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
4609
      }
4610
    }
4611
 
9404 vikram.rag 4612
    public void getSnapdealInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
4613
      checkReady();
4614
      getSnapdealInventoryForItem_call method_call = new getSnapdealInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
4615
      this.___currentMethod = method_call;
4616
      ___manager.call(method_call);
4617
    }
4618
 
4619
    public static class getSnapdealInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4620
      private long item_id;
4621
      public getSnapdealInventoryForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventoryForItem_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 {
4622
        super(client, protocolFactory, transport, resultHandler, false);
4623
        this.item_id = item_id;
4624
      }
4625
 
4626
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4627
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4628
        getSnapdealInventoryForItem_args args = new getSnapdealInventoryForItem_args();
4629
        args.setItem_id(item_id);
4630
        args.write(prot);
4631
        prot.writeMessageEnd();
4632
      }
4633
 
4634
      public SnapdealInventoryItem getResult() throws org.apache.thrift.TException {
4635
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4636
          throw new IllegalStateException("Method call not finished!");
4637
        }
4638
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4639
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4640
        return (new Client(prot)).recv_getSnapdealInventoryForItem();
4641
      }
4642
    }
4643
 
4644
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
4645
      checkReady();
4646
      addOrUpdateSnapdealInventoryForItem_call method_call = new addOrUpdateSnapdealInventoryForItem_call(snapdealinventoryitem, resultHandler, this, ___protocolFactory, ___transport);
4647
      this.___currentMethod = method_call;
4648
      ___manager.call(method_call);
4649
    }
4650
 
4651
    public static class addOrUpdateSnapdealInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4652
      private SnapdealInventoryItem snapdealinventoryitem;
4653
      public addOrUpdateSnapdealInventoryForItem_call(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealInventoryForItem_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 {
4654
        super(client, protocolFactory, transport, resultHandler, false);
4655
        this.snapdealinventoryitem = snapdealinventoryitem;
4656
      }
4657
 
4658
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4659
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateSnapdealInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4660
        addOrUpdateSnapdealInventoryForItem_args args = new addOrUpdateSnapdealInventoryForItem_args();
4661
        args.setSnapdealinventoryitem(snapdealinventoryitem);
4662
        args.write(prot);
4663
        prot.writeMessageEnd();
4664
      }
4665
 
4666
      public void getResult() throws org.apache.thrift.TException {
4667
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4668
          throw new IllegalStateException("Method call not finished!");
4669
        }
4670
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4671
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4672
        (new Client(prot)).recv_addOrUpdateSnapdealInventoryForItem();
4673
      }
4674
    }
4675
 
4676
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
4677
      checkReady();
4678
      getNlcForWarehouse_call method_call = new getNlcForWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
4679
      this.___currentMethod = method_call;
4680
      ___manager.call(method_call);
4681
    }
4682
 
4683
    public static class getNlcForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
4684
      private long warehouse_id;
4685
      private long item_id;
4686
      public getNlcForWarehouse_call(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getNlcForWarehouse_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 {
4687
        super(client, protocolFactory, transport, resultHandler, false);
4688
        this.warehouse_id = warehouse_id;
4689
        this.item_id = item_id;
4690
      }
4691
 
4692
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4693
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNlcForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
4694
        getNlcForWarehouse_args args = new getNlcForWarehouse_args();
4695
        args.setWarehouse_id(warehouse_id);
4696
        args.setItem_id(item_id);
4697
        args.write(prot);
4698
        prot.writeMessageEnd();
4699
      }
4700
 
4701
      public double getResult() throws org.apache.thrift.TException {
4702
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4703
          throw new IllegalStateException("Method call not finished!");
4704
        }
4705
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4706
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4707
        return (new Client(prot)).recv_getNlcForWarehouse();
4708
      }
4709
    }
4710
 
9640 amar.kumar 4711
    public void getHeldInventoryMapForItem(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getHeldInventoryMapForItem_call> resultHandler) throws org.apache.thrift.TException {
4712
      checkReady();
4713
      getHeldInventoryMapForItem_call method_call = new getHeldInventoryMapForItem_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
4714
      this.___currentMethod = method_call;
4715
      ___manager.call(method_call);
4716
    }
4717
 
4718
    public static class getHeldInventoryMapForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4719
      private long item_id;
4720
      private long warehouse_id;
4721
      public getHeldInventoryMapForItem_call(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getHeldInventoryMapForItem_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 {
4722
        super(client, protocolFactory, transport, resultHandler, false);
4723
        this.item_id = item_id;
4724
        this.warehouse_id = warehouse_id;
4725
      }
4726
 
4727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHeldInventoryMapForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4729
        getHeldInventoryMapForItem_args args = new getHeldInventoryMapForItem_args();
4730
        args.setItem_id(item_id);
4731
        args.setWarehouse_id(warehouse_id);
4732
        args.write(prot);
4733
        prot.writeMessageEnd();
4734
      }
4735
 
4736
      public Map<Integer,Long> getResult() throws org.apache.thrift.TException {
4737
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4738
          throw new IllegalStateException("Method call not finished!");
4739
        }
4740
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4741
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4742
        return (new Client(prot)).recv_getHeldInventoryMapForItem();
4743
      }
4744
    }
4745
 
9495 vikram.rag 4746
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
9456 vikram.rag 4747
      checkReady();
9495 vikram.rag 4748
      addOrUpdateAllAmazonFbaInventory_call method_call = new addOrUpdateAllAmazonFbaInventory_call(allamazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
9456 vikram.rag 4749
      this.___currentMethod = method_call;
4750
      ___manager.call(method_call);
4751
    }
4752
 
9495 vikram.rag 4753
    public static class addOrUpdateAllAmazonFbaInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4754
      private List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot;
4755
      public addOrUpdateAllAmazonFbaInventory_call(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllAmazonFbaInventory_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 {
9456 vikram.rag 4756
        super(client, protocolFactory, transport, resultHandler, false);
9495 vikram.rag 4757
        this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
9456 vikram.rag 4758
      }
4759
 
4760
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
9495 vikram.rag 4761
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAllAmazonFbaInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4762
        addOrUpdateAllAmazonFbaInventory_args args = new addOrUpdateAllAmazonFbaInventory_args();
4763
        args.setAllamazonfbainventorysnapshot(allamazonfbainventorysnapshot);
9456 vikram.rag 4764
        args.write(prot);
4765
        prot.writeMessageEnd();
4766
      }
4767
 
9495 vikram.rag 4768
      public void getResult() throws org.apache.thrift.TException {
9456 vikram.rag 4769
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4770
          throw new IllegalStateException("Method call not finished!");
4771
        }
4772
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4773
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9495 vikram.rag 4774
        (new Client(prot)).recv_addOrUpdateAllAmazonFbaInventory();
9456 vikram.rag 4775
      }
4776
    }
4777
 
9495 vikram.rag 4778
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException {
9482 vikram.rag 4779
      checkReady();
9495 vikram.rag 4780
      addOrUpdateAllSnapdealInventory_call method_call = new addOrUpdateAllSnapdealInventory_call(allsnapdealinventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
9482 vikram.rag 4781
      this.___currentMethod = method_call;
4782
      ___manager.call(method_call);
4783
    }
4784
 
9495 vikram.rag 4785
    public static class addOrUpdateAllSnapdealInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4786
      private List<SnapdealInventoryItem> allsnapdealinventorysnapshot;
4787
      public addOrUpdateAllSnapdealInventory_call(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllSnapdealInventory_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 {
9482 vikram.rag 4788
        super(client, protocolFactory, transport, resultHandler, false);
9495 vikram.rag 4789
        this.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot;
9482 vikram.rag 4790
      }
4791
 
4792
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
9495 vikram.rag 4793
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAllSnapdealInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4794
        addOrUpdateAllSnapdealInventory_args args = new addOrUpdateAllSnapdealInventory_args();
4795
        args.setAllsnapdealinventorysnapshot(allsnapdealinventorysnapshot);
9482 vikram.rag 4796
        args.write(prot);
4797
        prot.writeMessageEnd();
4798
      }
4799
 
4800
      public void getResult() throws org.apache.thrift.TException {
4801
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4802
          throw new IllegalStateException("Method call not finished!");
4803
        }
4804
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4805
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9495 vikram.rag 4806
        (new Client(prot)).recv_addOrUpdateAllSnapdealInventory();
9482 vikram.rag 4807
      }
4808
    }
4809
 
9495 vikram.rag 4810
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
4811
      checkReady();
4812
      getSnapdealInventorySnapshot_call method_call = new getSnapdealInventorySnapshot_call(resultHandler, this, ___protocolFactory, ___transport);
4813
      this.___currentMethod = method_call;
4814
      ___manager.call(method_call);
4815
    }
4816
 
4817
    public static class getSnapdealInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
4818
      public getSnapdealInventorySnapshot_call(org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventorySnapshot_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 {
4819
        super(client, protocolFactory, transport, resultHandler, false);
4820
      }
4821
 
4822
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4823
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
4824
        getSnapdealInventorySnapshot_args args = new getSnapdealInventorySnapshot_args();
4825
        args.write(prot);
4826
        prot.writeMessageEnd();
4827
      }
4828
 
4829
      public List<SnapdealInventoryItem> getResult() throws org.apache.thrift.TException {
4830
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4831
          throw new IllegalStateException("Method call not finished!");
4832
        }
4833
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4834
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4835
        return (new Client(prot)).recv_getSnapdealInventorySnapshot();
4836
      }
4837
    }
4838
 
9761 amar.kumar 4839
    public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException {
4840
      checkReady();
4841
      getHoldInventoryDetails_call method_call = new getHoldInventoryDetails_call(itemId, warehouseId, source, resultHandler, this, ___protocolFactory, ___transport);
4842
      this.___currentMethod = method_call;
4843
      ___manager.call(method_call);
4844
    }
4845
 
4846
    public static class getHoldInventoryDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
4847
      private long itemId;
4848
      private long warehouseId;
4849
      private long source;
4850
      public getHoldInventoryDetails_call(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetails_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 {
4851
        super(client, protocolFactory, transport, resultHandler, false);
4852
        this.itemId = itemId;
4853
        this.warehouseId = warehouseId;
4854
        this.source = source;
4855
      }
4856
 
4857
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4858
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHoldInventoryDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
4859
        getHoldInventoryDetails_args args = new getHoldInventoryDetails_args();
4860
        args.setItemId(itemId);
4861
        args.setWarehouseId(warehouseId);
4862
        args.setSource(source);
4863
        args.write(prot);
4864
        prot.writeMessageEnd();
4865
      }
4866
 
4867
      public List<HoldInventoryDetail> getResult() throws org.apache.thrift.TException {
4868
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4869
          throw new IllegalStateException("Method call not finished!");
4870
        }
4871
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4872
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4873
        return (new Client(prot)).recv_getHoldInventoryDetails();
4874
      }
4875
    }
4876
 
10450 vikram.rag 4877
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
10050 vikram.rag 4878
      checkReady();
10450 vikram.rag 4879
      addOrUpdateFlipkartInventorySnapshot_call method_call = new addOrUpdateFlipkartInventorySnapshot_call(flipkartInventorySnapshot, time, resultHandler, this, ___protocolFactory, ___transport);
10050 vikram.rag 4880
      this.___currentMethod = method_call;
4881
      ___manager.call(method_call);
4882
    }
4883
 
4884
    public static class addOrUpdateFlipkartInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
4885
      private List<FlipkartInventorySnapshot> flipkartInventorySnapshot;
10450 vikram.rag 4886
      private long time;
4887
      public addOrUpdateFlipkartInventorySnapshot_call(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartInventorySnapshot_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 {
10050 vikram.rag 4888
        super(client, protocolFactory, transport, resultHandler, false);
4889
        this.flipkartInventorySnapshot = flipkartInventorySnapshot;
10450 vikram.rag 4890
        this.time = time;
10050 vikram.rag 4891
      }
4892
 
4893
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4894
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateFlipkartInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
4895
        addOrUpdateFlipkartInventorySnapshot_args args = new addOrUpdateFlipkartInventorySnapshot_args();
4896
        args.setFlipkartInventorySnapshot(flipkartInventorySnapshot);
10450 vikram.rag 4897
        args.setTime(time);
10050 vikram.rag 4898
        args.write(prot);
4899
        prot.writeMessageEnd();
4900
      }
4901
 
4902
      public void getResult() throws org.apache.thrift.TException {
4903
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4904
          throw new IllegalStateException("Method call not finished!");
4905
        }
4906
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4907
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4908
        (new Client(prot)).recv_addOrUpdateFlipkartInventorySnapshot();
4909
      }
4910
    }
4911
 
4912
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
4913
      checkReady();
4914
      getFlipkartInventorySnapshot_call method_call = new getFlipkartInventorySnapshot_call(resultHandler, this, ___protocolFactory, ___transport);
4915
      this.___currentMethod = method_call;
4916
      ___manager.call(method_call);
4917
    }
4918
 
4919
    public static class getFlipkartInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
4920
      public getFlipkartInventorySnapshot_call(org.apache.thrift.async.AsyncMethodCallback<getFlipkartInventorySnapshot_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 {
4921
        super(client, protocolFactory, transport, resultHandler, false);
4922
      }
4923
 
4924
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4925
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
4926
        getFlipkartInventorySnapshot_args args = new getFlipkartInventorySnapshot_args();
4927
        args.write(prot);
4928
        prot.writeMessageEnd();
4929
      }
4930
 
4931
      public List<FlipkartInventorySnapshot> getResult() throws org.apache.thrift.TException {
4932
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4933
          throw new IllegalStateException("Method call not finished!");
4934
        }
4935
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4936
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4937
        return (new Client(prot)).recv_getFlipkartInventorySnapshot();
4938
      }
4939
    }
4940
 
10097 kshitij.so 4941
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
4942
      checkReady();
4943
      getFlipkartlInventoryForItem_call method_call = new getFlipkartlInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
4944
      this.___currentMethod = method_call;
4945
      ___manager.call(method_call);
4946
    }
4947
 
4948
    public static class getFlipkartlInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4949
      private long item_id;
4950
      public getFlipkartlInventoryForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartlInventoryForItem_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 {
4951
        super(client, protocolFactory, transport, resultHandler, false);
4952
        this.item_id = item_id;
4953
      }
4954
 
4955
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4956
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartlInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4957
        getFlipkartlInventoryForItem_args args = new getFlipkartlInventoryForItem_args();
4958
        args.setItem_id(item_id);
4959
        args.write(prot);
4960
        prot.writeMessageEnd();
4961
      }
4962
 
4963
      public FlipkartInventorySnapshot getResult() throws org.apache.thrift.TException {
4964
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4965
          throw new IllegalStateException("Method call not finished!");
4966
        }
4967
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4969
        return (new Client(prot)).recv_getFlipkartlInventoryForItem();
4970
      }
4971
    }
4972
 
10485 vikram.rag 4973
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<getStateMaster_call> resultHandler) throws org.apache.thrift.TException {
4974
      checkReady();
4975
      getStateMaster_call method_call = new getStateMaster_call(resultHandler, this, ___protocolFactory, ___transport);
4976
      this.___currentMethod = method_call;
4977
      ___manager.call(method_call);
4978
    }
4979
 
4980
    public static class getStateMaster_call extends org.apache.thrift.async.TAsyncMethodCall {
4981
      public getStateMaster_call(org.apache.thrift.async.AsyncMethodCallback<getStateMaster_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 {
4982
        super(client, protocolFactory, transport, resultHandler, false);
4983
      }
4984
 
4985
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4986
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStateMaster", org.apache.thrift.protocol.TMessageType.CALL, 0));
4987
        getStateMaster_args args = new getStateMaster_args();
4988
        args.write(prot);
4989
        prot.writeMessageEnd();
4990
      }
4991
 
4992
      public Map<Long,String> getResult() throws org.apache.thrift.TException {
4993
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4994
          throw new IllegalStateException("Method call not finished!");
4995
        }
4996
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4997
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4998
        return (new Client(prot)).recv_getStateMaster();
4999
      }
5000
    }
5001
 
10546 vikram.rag 5002
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException {
5003
      checkReady();
5004
      updateSnapdealStockAtEOD_call method_call = new updateSnapdealStockAtEOD_call(allsnapdealstock, resultHandler, this, ___protocolFactory, ___transport);
5005
      this.___currentMethod = method_call;
5006
      ___manager.call(method_call);
5007
    }
5008
 
5009
    public static class updateSnapdealStockAtEOD_call extends org.apache.thrift.async.TAsyncMethodCall {
5010
      private List<SnapdealStockAtEOD> allsnapdealstock;
5011
      public updateSnapdealStockAtEOD_call(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<updateSnapdealStockAtEOD_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 {
5012
        super(client, protocolFactory, transport, resultHandler, false);
5013
        this.allsnapdealstock = allsnapdealstock;
5014
      }
5015
 
5016
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5017
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateSnapdealStockAtEOD", org.apache.thrift.protocol.TMessageType.CALL, 0));
5018
        updateSnapdealStockAtEOD_args args = new updateSnapdealStockAtEOD_args();
5019
        args.setAllsnapdealstock(allsnapdealstock);
5020
        args.write(prot);
5021
        prot.writeMessageEnd();
5022
      }
5023
 
5024
      public void getResult() throws org.apache.thrift.TException {
5025
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5026
          throw new IllegalStateException("Method call not finished!");
5027
        }
5028
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5029
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5030
        (new Client(prot)).recv_updateSnapdealStockAtEOD();
5031
      }
5032
    }
5033
 
5034
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException {
5035
      checkReady();
5036
      updateFlipkartStockAtEOD_call method_call = new updateFlipkartStockAtEOD_call(allflipkartstock, resultHandler, this, ___protocolFactory, ___transport);
5037
      this.___currentMethod = method_call;
5038
      ___manager.call(method_call);
5039
    }
5040
 
5041
    public static class updateFlipkartStockAtEOD_call extends org.apache.thrift.async.TAsyncMethodCall {
5042
      private List<FlipkartStockAtEOD> allflipkartstock;
5043
      public updateFlipkartStockAtEOD_call(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<updateFlipkartStockAtEOD_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 {
5044
        super(client, protocolFactory, transport, resultHandler, false);
5045
        this.allflipkartstock = allflipkartstock;
5046
      }
5047
 
5048
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5049
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateFlipkartStockAtEOD", org.apache.thrift.protocol.TMessageType.CALL, 0));
5050
        updateFlipkartStockAtEOD_args args = new updateFlipkartStockAtEOD_args();
5051
        args.setAllflipkartstock(allflipkartstock);
5052
        args.write(prot);
5053
        prot.writeMessageEnd();
5054
      }
5055
 
5056
      public void getResult() throws org.apache.thrift.TException {
5057
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5058
          throw new IllegalStateException("Method call not finished!");
5059
        }
5060
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5061
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5062
        (new Client(prot)).recv_updateFlipkartStockAtEOD();
5063
      }
5064
    }
5065
 
5945 mandeep.dh 5066
  }
5067
 
5068
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5069
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5070
    public Processor(I iface) {
5071
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
5072
    }
5073
 
5074
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
5075
      super(iface, getProcessMap(processMap));
5076
    }
5077
 
5078
    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) {
5079
      processMap.put("addWarehouse", new addWarehouse());
5080
      processMap.put("addVendor", new addVendor());
5081
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
5082
      processMap.put("updateInventory", new updateInventory());
5083
      processMap.put("addInventory", new addInventory());
5084
      processMap.put("retireWarehouse", new retireWarehouse());
5085
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
5086
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
5087
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
5088
      processMap.put("getAllWarehouses", new getAllWarehouses());
5089
      processMap.put("getWarehouse", new getWarehouse());
5090
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 5091
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 5092
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
7968 amar.kumar 5093
      processMap.put("updateReservationForOrder", new updateReservationForOrder());
5945 mandeep.dh 5094
      processMap.put("reduceReservationCount", new reduceReservationCount());
5095
      processMap.put("getItemPricing", new getItemPricing());
5096
      processMap.put("getAllItemPricing", new getAllItemPricing());
5097
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
5098
      processMap.put("getVendor", new getVendor());
5099
      processMap.put("getAllVendors", new getAllVendors());
5100
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
5101
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
5102
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
5103
      processMap.put("getWarehouses", new getWarehouses());
5104
      processMap.put("resetAvailability", new resetAvailability());
5105
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
5106
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
5107
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
5108
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
5109
      processMap.put("addBadInventory", new addBadInventory());
5110
      processMap.put("getShippingLocations", new getShippingLocations());
5111
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
5112
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
5113
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
5114
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 5115
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 5116
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
6484 amar.kumar 5117
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
6531 vikram.rag 5118
      processMap.put("getMonitoredWarehouseForVendors", new getMonitoredWarehouseForVendors());
5119
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
5120
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
5121
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
5122
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
5123
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
6821 amar.kumar 5124
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
5125
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
5126
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
6832 amar.kumar 5127
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
10126 amar.kumar 5128
      processMap.put("getOosStatusesForXDays", new getOosStatusesForXDays());
5129
      processMap.put("getAllVendorItemPricing", new getAllVendorItemPricing());
6857 amar.kumar 5130
      processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
7149 amar.kumar 5131
      processMap.put("getBillableInventoryAndPendingOrders", new getBillableInventoryAndPendingOrders());
7281 kshitij.so 5132
      processMap.put("getWarehouseName", new getWarehouseName());
5133
      processMap.put("getAmazonInventoryForItem", new getAmazonInventoryForItem());
5134
      processMap.put("getAllAmazonInventory", new getAllAmazonInventory());
5135
      processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
7972 amar.kumar 5136
      processMap.put("getLastNdaySaleForItem", new getLastNdaySaleForItem());
8282 kshitij.so 5137
      processMap.put("addOrUpdateAmazonFbaInventory", new addOrUpdateAmazonFbaInventory());
8182 amar.kumar 5138
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
8282 kshitij.so 5139
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
8363 vikram.rag 5140
      processMap.put("getAllAmazonFbaItemInventory", new getAllAmazonFbaItemInventory());
5141
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
8958 vikram.rag 5142
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
9404 vikram.rag 5143
      processMap.put("getSnapdealInventoryForItem", new getSnapdealInventoryForItem());
5144
      processMap.put("addOrUpdateSnapdealInventoryForItem", new addOrUpdateSnapdealInventoryForItem());
5145
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
9640 amar.kumar 5146
      processMap.put("getHeldInventoryMapForItem", new getHeldInventoryMapForItem());
9482 vikram.rag 5147
      processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
9495 vikram.rag 5148
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
5149
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
9761 amar.kumar 5150
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
10050 vikram.rag 5151
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
5152
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
10097 kshitij.so 5153
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
10485 vikram.rag 5154
      processMap.put("getStateMaster", new getStateMaster());
10546 vikram.rag 5155
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5156
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
5945 mandeep.dh 5157
      return processMap;
5158
    }
5159
 
5160
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5161
      public addWarehouse() {
5162
        super("addWarehouse");
5163
      }
5164
 
5165
      protected addWarehouse_args getEmptyArgsInstance() {
5166
        return new addWarehouse_args();
5167
      }
5168
 
5169
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
5170
        addWarehouse_result result = new addWarehouse_result();
5171
        try {
5172
          result.success = iface.addWarehouse(args.warehouse);
5173
          result.setSuccessIsSet(true);
5174
        } catch (InventoryServiceException cex) {
5175
          result.cex = cex;
5176
        }
5177
        return result;
5178
      }
5179
    }
5180
 
5181
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
5182
      public addVendor() {
5183
        super("addVendor");
5184
      }
5185
 
5186
      protected addVendor_args getEmptyArgsInstance() {
5187
        return new addVendor_args();
5188
      }
5189
 
5190
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
5191
        addVendor_result result = new addVendor_result();
5192
        try {
5193
          result.success = iface.addVendor(args.vendor);
5194
          result.setSuccessIsSet(true);
5195
        } catch (InventoryServiceException cex) {
5196
          result.cex = cex;
5197
        }
5198
        return result;
5199
      }
5200
    }
5201
 
5202
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
5203
      public updateInventoryHistory() {
5204
        super("updateInventoryHistory");
5205
      }
5206
 
5207
      protected updateInventoryHistory_args getEmptyArgsInstance() {
5208
        return new updateInventoryHistory_args();
5209
      }
5210
 
5211
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
5212
        updateInventoryHistory_result result = new updateInventoryHistory_result();
5213
        try {
5214
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
5215
        } catch (InventoryServiceException cex) {
5216
          result.cex = cex;
5217
        }
5218
        return result;
5219
      }
5220
    }
5221
 
5222
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
5223
      public updateInventory() {
5224
        super("updateInventory");
5225
      }
5226
 
5227
      protected updateInventory_args getEmptyArgsInstance() {
5228
        return new updateInventory_args();
5229
      }
5230
 
5231
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
5232
        updateInventory_result result = new updateInventory_result();
5233
        try {
5234
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
5235
        } catch (InventoryServiceException cex) {
5236
          result.cex = cex;
5237
        }
5238
        return result;
5239
      }
5240
    }
5241
 
5242
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
5243
      public addInventory() {
5244
        super("addInventory");
5245
      }
5246
 
5247
      protected addInventory_args getEmptyArgsInstance() {
5248
        return new addInventory_args();
5249
      }
5250
 
5251
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
5252
        addInventory_result result = new addInventory_result();
5253
        try {
5254
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
5255
        } catch (InventoryServiceException cex) {
5256
          result.cex = cex;
5257
        }
5258
        return result;
5259
      }
5260
    }
5261
 
5262
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
5263
      public retireWarehouse() {
5264
        super("retireWarehouse");
5265
      }
5266
 
5267
      protected retireWarehouse_args getEmptyArgsInstance() {
5268
        return new retireWarehouse_args();
5269
      }
5270
 
5271
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
5272
        retireWarehouse_result result = new retireWarehouse_result();
5273
        try {
5274
          iface.retireWarehouse(args.warehouse_id);
5275
        } catch (InventoryServiceException cex) {
5276
          result.cex = cex;
5277
        }
5278
        return result;
5279
      }
5280
    }
5281
 
5282
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
5283
      public getItemInventoryByItemId() {
5284
        super("getItemInventoryByItemId");
5285
      }
5286
 
5287
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
5288
        return new getItemInventoryByItemId_args();
5289
      }
5290
 
5291
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
5292
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
5293
        try {
5294
          result.success = iface.getItemInventoryByItemId(args.item_id);
5295
        } catch (InventoryServiceException cex) {
5296
          result.cex = cex;
5297
        }
5298
        return result;
5299
      }
5300
    }
5301
 
5302
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
5303
      public getItemAvailibilityAtWarehouse() {
5304
        super("getItemAvailibilityAtWarehouse");
5305
      }
5306
 
5307
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
5308
        return new getItemAvailibilityAtWarehouse_args();
5309
      }
5310
 
5311
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
5312
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
5313
        try {
5314
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
5315
          result.setSuccessIsSet(true);
5316
        } catch (InventoryServiceException cex) {
5317
          result.cex = cex;
5318
        }
5319
        return result;
5320
      }
5321
    }
5322
 
5323
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
5324
      public getItemAvailabilityAtLocation() {
5325
        super("getItemAvailabilityAtLocation");
5326
      }
5327
 
5328
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
5329
        return new getItemAvailabilityAtLocation_args();
5330
      }
5331
 
5332
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
5333
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
5334
        try {
5978 rajveer 5335
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 5336
        } catch (InventoryServiceException isex) {
5337
          result.isex = isex;
5338
        }
5339
        return result;
5340
      }
5341
    }
5342
 
5343
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
5344
      public getAllWarehouses() {
5345
        super("getAllWarehouses");
5346
      }
5347
 
5348
      protected getAllWarehouses_args getEmptyArgsInstance() {
5349
        return new getAllWarehouses_args();
5350
      }
5351
 
5352
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
5353
        getAllWarehouses_result result = new getAllWarehouses_result();
5354
        try {
5355
          result.success = iface.getAllWarehouses(args.isActive);
5356
        } catch (InventoryServiceException cex) {
5357
          result.cex = cex;
5358
        }
5359
        return result;
5360
      }
5361
    }
5362
 
5363
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
5364
      public getWarehouse() {
5365
        super("getWarehouse");
5366
      }
5367
 
5368
      protected getWarehouse_args getEmptyArgsInstance() {
5369
        return new getWarehouse_args();
5370
      }
5371
 
5372
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
5373
        getWarehouse_result result = new getWarehouse_result();
5374
        try {
5375
          result.success = iface.getWarehouse(args.warehouse_id);
5376
        } catch (InventoryServiceException cex) {
5377
          result.cex = cex;
5378
        }
5379
        return result;
5380
      }
5381
    }
5382
 
5383
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
5384
      public getAllItemsForWarehouse() {
5385
        super("getAllItemsForWarehouse");
5386
      }
5387
 
5388
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
5389
        return new getAllItemsForWarehouse_args();
5390
      }
5391
 
5392
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
5393
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
5394
        try {
5395
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
5396
        } catch (InventoryServiceException cex) {
5397
          result.cex = cex;
5398
        }
5399
        return result;
5400
      }
5401
    }
5402
 
5967 rajveer 5403
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
5404
      public isOrderBillable() {
5405
        super("isOrderBillable");
5406
      }
5407
 
5408
      protected isOrderBillable_args getEmptyArgsInstance() {
5409
        return new isOrderBillable_args();
5410
      }
5411
 
5412
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
5413
        isOrderBillable_result result = new isOrderBillable_result();
5414
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
5415
        result.setSuccessIsSet(true);
5416
        return result;
5417
      }
5418
    }
5419
 
5945 mandeep.dh 5420
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
5421
      public reserveItemInWarehouse() {
5422
        super("reserveItemInWarehouse");
5423
      }
5424
 
5425
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
5426
        return new reserveItemInWarehouse_args();
5427
      }
5428
 
5429
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
5430
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
5431
        try {
5967 rajveer 5432
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 5433
          result.setSuccessIsSet(true);
5434
        } catch (InventoryServiceException cex) {
5435
          result.cex = cex;
5436
        }
5437
        return result;
5438
      }
5439
    }
5440
 
7968 amar.kumar 5441
    private static class updateReservationForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateReservationForOrder_args> {
5442
      public updateReservationForOrder() {
5443
        super("updateReservationForOrder");
5444
      }
5445
 
5446
      protected updateReservationForOrder_args getEmptyArgsInstance() {
5447
        return new updateReservationForOrder_args();
5448
      }
5449
 
5450
      protected updateReservationForOrder_result getResult(I iface, updateReservationForOrder_args args) throws org.apache.thrift.TException {
5451
        updateReservationForOrder_result result = new updateReservationForOrder_result();
5452
        try {
5453
          result.success = iface.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5454
          result.setSuccessIsSet(true);
5455
        } catch (InventoryServiceException cex) {
5456
          result.cex = cex;
5457
        }
5458
        return result;
5459
      }
5460
    }
5461
 
5945 mandeep.dh 5462
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
5463
      public reduceReservationCount() {
5464
        super("reduceReservationCount");
5465
      }
5466
 
5467
      protected reduceReservationCount_args getEmptyArgsInstance() {
5468
        return new reduceReservationCount_args();
5469
      }
5470
 
5471
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
5472
        reduceReservationCount_result result = new reduceReservationCount_result();
5473
        try {
5967 rajveer 5474
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 5475
          result.setSuccessIsSet(true);
5476
        } catch (InventoryServiceException cex) {
5477
          result.cex = cex;
5478
        }
5479
        return result;
5480
      }
5481
    }
5482
 
5483
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
5484
      public getItemPricing() {
5485
        super("getItemPricing");
5486
      }
5487
 
5488
      protected getItemPricing_args getEmptyArgsInstance() {
5489
        return new getItemPricing_args();
5490
      }
5491
 
5492
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
5493
        getItemPricing_result result = new getItemPricing_result();
5494
        try {
5495
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
5496
        } catch (InventoryServiceException cex) {
5497
          result.cex = cex;
5498
        }
5499
        return result;
5500
      }
5501
    }
5502
 
5503
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
5504
      public getAllItemPricing() {
5505
        super("getAllItemPricing");
5506
      }
5507
 
5508
      protected getAllItemPricing_args getEmptyArgsInstance() {
5509
        return new getAllItemPricing_args();
5510
      }
5511
 
5512
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
5513
        getAllItemPricing_result result = new getAllItemPricing_result();
5514
        try {
5515
          result.success = iface.getAllItemPricing(args.itemId);
5516
        } catch (InventoryServiceException cex) {
5517
          result.cex = cex;
5518
        }
5519
        return result;
5520
      }
5521
    }
5522
 
5523
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
5524
      public addVendorItemPricing() {
5525
        super("addVendorItemPricing");
5526
      }
5527
 
5528
      protected addVendorItemPricing_args getEmptyArgsInstance() {
5529
        return new addVendorItemPricing_args();
5530
      }
5531
 
5532
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
5533
        addVendorItemPricing_result result = new addVendorItemPricing_result();
5534
        try {
5535
          iface.addVendorItemPricing(args.vendorItemPricing);
5536
        } catch (InventoryServiceException cex) {
5537
          result.cex = cex;
5538
        }
5539
        return result;
5540
      }
5541
    }
5542
 
5543
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
5544
      public getVendor() {
5545
        super("getVendor");
5546
      }
5547
 
5548
      protected getVendor_args getEmptyArgsInstance() {
5549
        return new getVendor_args();
5550
      }
5551
 
5552
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
5553
        getVendor_result result = new getVendor_result();
5554
        result.success = iface.getVendor(args.vendorId);
5555
        return result;
5556
      }
5557
    }
5558
 
5559
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
5560
      public getAllVendors() {
5561
        super("getAllVendors");
5562
      }
5563
 
5564
      protected getAllVendors_args getEmptyArgsInstance() {
5565
        return new getAllVendors_args();
5566
      }
5567
 
5568
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
5569
        getAllVendors_result result = new getAllVendors_result();
5570
        result.success = iface.getAllVendors();
5571
        return result;
5572
      }
5573
    }
5574
 
5575
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
5576
      public addVendorItemMapping() {
5577
        super("addVendorItemMapping");
5578
      }
5579
 
5580
      protected addVendorItemMapping_args getEmptyArgsInstance() {
5581
        return new addVendorItemMapping_args();
5582
      }
5583
 
5584
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
5585
        addVendorItemMapping_result result = new addVendorItemMapping_result();
5586
        try {
5587
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
5588
        } catch (InventoryServiceException cex) {
5589
          result.cex = cex;
5590
        }
5591
        return result;
5592
      }
5593
    }
5594
 
5595
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
5596
      public getVendorItemMappings() {
5597
        super("getVendorItemMappings");
5598
      }
5599
 
5600
      protected getVendorItemMappings_args getEmptyArgsInstance() {
5601
        return new getVendorItemMappings_args();
5602
      }
5603
 
5604
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
5605
        getVendorItemMappings_result result = new getVendorItemMappings_result();
5606
        try {
5607
          result.success = iface.getVendorItemMappings(args.itemId);
5608
        } catch (InventoryServiceException cex) {
5609
          result.cex = cex;
5610
        }
5611
        return result;
5612
      }
5613
    }
5614
 
5615
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
5616
      public getPendingOrdersInventory() {
5617
        super("getPendingOrdersInventory");
5618
      }
5619
 
5620
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
5621
        return new getPendingOrdersInventory_args();
5622
      }
5623
 
5624
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
5625
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
5626
        result.success = iface.getPendingOrdersInventory(args.vendorid);
5627
        return result;
5628
      }
5629
    }
5630
 
5631
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
5632
      public getWarehouses() {
5633
        super("getWarehouses");
5634
      }
5635
 
5636
      protected getWarehouses_args getEmptyArgsInstance() {
5637
        return new getWarehouses_args();
5638
      }
5639
 
5640
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
5641
        getWarehouses_result result = new getWarehouses_result();
5642
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
5643
        return result;
5644
      }
5645
    }
5646
 
5647
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
5648
      public resetAvailability() {
5649
        super("resetAvailability");
5650
      }
5651
 
5652
      protected resetAvailability_args getEmptyArgsInstance() {
5653
        return new resetAvailability_args();
5654
      }
5655
 
5656
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
5657
        resetAvailability_result result = new resetAvailability_result();
5658
        try {
5659
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
5660
        } catch (InventoryServiceException cex) {
5661
          result.cex = cex;
5662
        }
5663
        return result;
5664
      }
5665
    }
5666
 
5667
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
5668
      public resetAvailabilityForWarehouse() {
5669
        super("resetAvailabilityForWarehouse");
5670
      }
5671
 
5672
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
5673
        return new resetAvailabilityForWarehouse_args();
5674
      }
5675
 
5676
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
5677
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
5678
        try {
5679
          iface.resetAvailabilityForWarehouse(args.warehouseId);
5680
        } catch (InventoryServiceException cex) {
5681
          result.cex = cex;
5682
        }
5683
        return result;
5684
      }
5685
    }
5686
 
5687
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
5688
      public getItemKeysToBeProcessed() {
5689
        super("getItemKeysToBeProcessed");
5690
      }
5691
 
5692
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
5693
        return new getItemKeysToBeProcessed_args();
5694
      }
5695
 
5696
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
5697
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
5698
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
5699
        return result;
5700
      }
5701
    }
5702
 
5703
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
5704
      public markMissedInventoryUpdatesAsProcessed() {
5705
        super("markMissedInventoryUpdatesAsProcessed");
5706
      }
5707
 
5708
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
5709
        return new markMissedInventoryUpdatesAsProcessed_args();
5710
      }
5711
 
5712
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
5713
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
5714
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
5715
        return result;
5716
      }
5717
    }
5718
 
5719
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
5720
      public getIgnoredItemKeys() {
5721
        super("getIgnoredItemKeys");
5722
      }
5723
 
5724
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
5725
        return new getIgnoredItemKeys_args();
5726
      }
5727
 
5728
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
5729
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
5730
        result.success = iface.getIgnoredItemKeys();
5731
        return result;
5732
      }
5733
    }
5734
 
5735
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
5736
      public addBadInventory() {
5737
        super("addBadInventory");
5738
      }
5739
 
5740
      protected addBadInventory_args getEmptyArgsInstance() {
5741
        return new addBadInventory_args();
5742
      }
5743
 
5744
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
5745
        addBadInventory_result result = new addBadInventory_result();
5746
        try {
5747
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
5748
        } catch (InventoryServiceException cex) {
5749
          result.cex = cex;
5750
        }
5751
        return result;
5752
      }
5753
    }
5754
 
5755
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
5756
      public getShippingLocations() {
5757
        super("getShippingLocations");
5758
      }
5759
 
5760
      protected getShippingLocations_args getEmptyArgsInstance() {
5761
        return new getShippingLocations_args();
5762
      }
5763
 
5764
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
5765
        getShippingLocations_result result = new getShippingLocations_result();
5766
        result.success = iface.getShippingLocations();
5767
        return result;
5768
      }
5769
    }
5770
 
5771
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
5772
      public getAllVendorItemMappings() {
5773
        super("getAllVendorItemMappings");
5774
      }
5775
 
5776
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
5777
        return new getAllVendorItemMappings_args();
5778
      }
5779
 
5780
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
5781
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
5782
        result.success = iface.getAllVendorItemMappings();
5783
        return result;
5784
      }
5785
    }
5786
 
5787
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
5788
      public getInventorySnapshot() {
5789
        super("getInventorySnapshot");
5790
      }
5791
 
5792
      protected getInventorySnapshot_args getEmptyArgsInstance() {
5793
        return new getInventorySnapshot_args();
5794
      }
5795
 
5796
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
5797
        getInventorySnapshot_result result = new getInventorySnapshot_result();
5798
        result.success = iface.getInventorySnapshot(args.warehouseId);
5799
        return result;
5800
      }
5801
    }
5802
 
5803
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
5804
      public clearItemAvailabilityCache() {
5805
        super("clearItemAvailabilityCache");
5806
      }
5807
 
5808
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
5809
        return new clearItemAvailabilityCache_args();
5810
      }
5811
 
5812
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
5813
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
5814
        iface.clearItemAvailabilityCache();
5815
        return result;
5816
      }
5817
    }
5818
 
5819
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
5820
      public updateVendorString() {
5821
        super("updateVendorString");
5822
      }
5823
 
5824
      protected updateVendorString_args getEmptyArgsInstance() {
5825
        return new updateVendorString_args();
5826
      }
5827
 
5828
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
5829
        updateVendorString_result result = new updateVendorString_result();
5830
        iface.updateVendorString(args.warehouseId, args.vendorString);
5831
        return result;
5832
      }
5833
    }
5834
 
6096 amit.gupta 5835
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
5836
      public clearItemAvailabilityCacheForItem() {
5837
        super("clearItemAvailabilityCacheForItem");
5838
      }
5839
 
5840
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
5841
        return new clearItemAvailabilityCacheForItem_args();
5842
      }
5843
 
5844
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
5845
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
5846
        iface.clearItemAvailabilityCacheForItem(args.item_id);
5847
        return result;
5848
      }
5849
    }
5850
 
6467 amar.kumar 5851
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
5852
      public getOurWarehouseIdForVendor() {
5853
        super("getOurWarehouseIdForVendor");
5854
      }
5855
 
5856
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
5857
        return new getOurWarehouseIdForVendor_args();
5858
      }
5859
 
5860
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
5861
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
7718 amar.kumar 5862
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId);
6467 amar.kumar 5863
        result.setSuccessIsSet(true);
5864
        return result;
5865
      }
5866
    }
5867
 
6484 amar.kumar 5868
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
5869
      public getItemAvailabilitiesAtOurWarehouses() {
5870
        super("getItemAvailabilitiesAtOurWarehouses");
5871
      }
5872
 
5873
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
5874
        return new getItemAvailabilitiesAtOurWarehouses_args();
5875
      }
5876
 
5877
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
5878
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
5879
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
5880
        return result;
5881
      }
5882
    }
5883
 
6531 vikram.rag 5884
    private static class getMonitoredWarehouseForVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMonitoredWarehouseForVendors_args> {
5885
      public getMonitoredWarehouseForVendors() {
5886
        super("getMonitoredWarehouseForVendors");
5887
      }
5888
 
5889
      protected getMonitoredWarehouseForVendors_args getEmptyArgsInstance() {
5890
        return new getMonitoredWarehouseForVendors_args();
5891
      }
5892
 
5893
      protected getMonitoredWarehouseForVendors_result getResult(I iface, getMonitoredWarehouseForVendors_args args) throws org.apache.thrift.TException {
5894
        getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
5895
        result.success = iface.getMonitoredWarehouseForVendors(args.vendorIds);
5896
        return result;
5897
      }
5898
    }
5899
 
5900
    private static class getIgnoredWarehouseidsAndItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredWarehouseidsAndItemids_args> {
5901
      public getIgnoredWarehouseidsAndItemids() {
5902
        super("getIgnoredWarehouseidsAndItemids");
5903
      }
5904
 
5905
      protected getIgnoredWarehouseidsAndItemids_args getEmptyArgsInstance() {
5906
        return new getIgnoredWarehouseidsAndItemids_args();
5907
      }
5908
 
5909
      protected getIgnoredWarehouseidsAndItemids_result getResult(I iface, getIgnoredWarehouseidsAndItemids_args args) throws org.apache.thrift.TException {
5910
        getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
5911
        result.success = iface.getIgnoredWarehouseidsAndItemids();
5912
        return result;
5913
      }
5914
    }
5915
 
5916
    private static class insertItemtoIgnoreInventoryUpdatelist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertItemtoIgnoreInventoryUpdatelist_args> {
5917
      public insertItemtoIgnoreInventoryUpdatelist() {
5918
        super("insertItemtoIgnoreInventoryUpdatelist");
5919
      }
5920
 
5921
      protected insertItemtoIgnoreInventoryUpdatelist_args getEmptyArgsInstance() {
5922
        return new insertItemtoIgnoreInventoryUpdatelist_args();
5923
      }
5924
 
5925
      protected insertItemtoIgnoreInventoryUpdatelist_result getResult(I iface, insertItemtoIgnoreInventoryUpdatelist_args args) throws org.apache.thrift.TException {
5926
        insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
5927
        result.success = iface.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id);
5928
        result.setSuccessIsSet(true);
5929
        return result;
5930
      }
5931
    }
5932
 
5933
    private static class deleteItemFromIgnoredInventoryUpdateList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromIgnoredInventoryUpdateList_args> {
5934
      public deleteItemFromIgnoredInventoryUpdateList() {
5935
        super("deleteItemFromIgnoredInventoryUpdateList");
5936
      }
5937
 
5938
      protected deleteItemFromIgnoredInventoryUpdateList_args getEmptyArgsInstance() {
5939
        return new deleteItemFromIgnoredInventoryUpdateList_args();
5940
      }
5941
 
5942
      protected deleteItemFromIgnoredInventoryUpdateList_result getResult(I iface, deleteItemFromIgnoredInventoryUpdateList_args args) throws org.apache.thrift.TException {
5943
        deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
5944
        result.success = iface.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id);
5945
        result.setSuccessIsSet(true);
5946
        return result;
5947
      }
5948
    }
5949
 
5950
    private static class getAllIgnoredInventoryupdateItemsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryupdateItemsCount_args> {
5951
      public getAllIgnoredInventoryupdateItemsCount() {
5952
        super("getAllIgnoredInventoryupdateItemsCount");
5953
      }
5954
 
5955
      protected getAllIgnoredInventoryupdateItemsCount_args getEmptyArgsInstance() {
5956
        return new getAllIgnoredInventoryupdateItemsCount_args();
5957
      }
5958
 
5959
      protected getAllIgnoredInventoryupdateItemsCount_result getResult(I iface, getAllIgnoredInventoryupdateItemsCount_args args) throws org.apache.thrift.TException {
5960
        getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
5961
        result.success = iface.getAllIgnoredInventoryupdateItemsCount();
5962
        result.setSuccessIsSet(true);
5963
        return result;
5964
      }
5965
    }
5966
 
5967
    private static class getIgnoredInventoryUpdateItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredInventoryUpdateItemids_args> {
5968
      public getIgnoredInventoryUpdateItemids() {
5969
        super("getIgnoredInventoryUpdateItemids");
5970
      }
5971
 
5972
      protected getIgnoredInventoryUpdateItemids_args getEmptyArgsInstance() {
5973
        return new getIgnoredInventoryUpdateItemids_args();
5974
      }
5975
 
5976
      protected getIgnoredInventoryUpdateItemids_result getResult(I iface, getIgnoredInventoryUpdateItemids_args args) throws org.apache.thrift.TException {
5977
        getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
5978
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
5979
        return result;
5980
      }
5981
    }
5982
 
6821 amar.kumar 5983
    private static class updateItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemStockPurchaseParams_args> {
5984
      public updateItemStockPurchaseParams() {
5985
        super("updateItemStockPurchaseParams");
5986
      }
5987
 
5988
      protected updateItemStockPurchaseParams_args getEmptyArgsInstance() {
5989
        return new updateItemStockPurchaseParams_args();
5990
      }
5991
 
5992
      protected updateItemStockPurchaseParams_result getResult(I iface, updateItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
5993
        updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
5994
        iface.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel);
5995
        return result;
5996
      }
5997
    }
5998
 
5999
    private static class getItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStockPurchaseParams_args> {
6000
      public getItemStockPurchaseParams() {
6001
        super("getItemStockPurchaseParams");
6002
      }
6003
 
6004
      protected getItemStockPurchaseParams_args getEmptyArgsInstance() {
6005
        return new getItemStockPurchaseParams_args();
6006
      }
6007
 
6008
      protected getItemStockPurchaseParams_result getResult(I iface, getItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
6009
        getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
6010
        result.success = iface.getItemStockPurchaseParams(args.itemId);
6011
        return result;
6012
      }
6013
    }
6014
 
6015
    private static class addOosStatusForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOosStatusForItem_args> {
6016
      public addOosStatusForItem() {
6017
        super("addOosStatusForItem");
6018
      }
6019
 
6020
      protected addOosStatusForItem_args getEmptyArgsInstance() {
6021
        return new addOosStatusForItem_args();
6022
      }
6023
 
6024
      protected addOosStatusForItem_result getResult(I iface, addOosStatusForItem_args args) throws org.apache.thrift.TException {
6025
        addOosStatusForItem_result result = new addOosStatusForItem_result();
6026
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
6027
        return result;
6028
      }
6029
    }
6030
 
6832 amar.kumar 6031
    private static class getOosStatusesForXDaysForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOosStatusesForXDaysForItem_args> {
6032
      public getOosStatusesForXDaysForItem() {
6033
        super("getOosStatusesForXDaysForItem");
6034
      }
6035
 
6036
      protected getOosStatusesForXDaysForItem_args getEmptyArgsInstance() {
6037
        return new getOosStatusesForXDaysForItem_args();
6038
      }
6039
 
6040
      protected getOosStatusesForXDaysForItem_result getResult(I iface, getOosStatusesForXDaysForItem_args args) throws org.apache.thrift.TException {
6041
        getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
9665 rajveer 6042
        result.success = iface.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days);
6832 amar.kumar 6043
        return result;
6044
      }
6045
    }
6046
 
10126 amar.kumar 6047
    private static class getOosStatusesForXDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOosStatusesForXDays_args> {
6048
      public getOosStatusesForXDays() {
6049
        super("getOosStatusesForXDays");
6050
      }
6051
 
6052
      protected getOosStatusesForXDays_args getEmptyArgsInstance() {
6053
        return new getOosStatusesForXDays_args();
6054
      }
6055
 
6056
      protected getOosStatusesForXDays_result getResult(I iface, getOosStatusesForXDays_args args) throws org.apache.thrift.TException {
6057
        getOosStatusesForXDays_result result = new getOosStatusesForXDays_result();
6058
        result.success = iface.getOosStatusesForXDays(args.sourceId, args.days);
6059
        return result;
6060
      }
6061
    }
6062
 
6063
    private static class getAllVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemPricing_args> {
6064
      public getAllVendorItemPricing() {
6065
        super("getAllVendorItemPricing");
6066
      }
6067
 
6068
      protected getAllVendorItemPricing_args getEmptyArgsInstance() {
6069
        return new getAllVendorItemPricing_args();
6070
      }
6071
 
6072
      protected getAllVendorItemPricing_result getResult(I iface, getAllVendorItemPricing_args args) throws org.apache.thrift.TException {
6073
        getAllVendorItemPricing_result result = new getAllVendorItemPricing_result();
6074
        result.success = iface.getAllVendorItemPricing(args.itemId, args.vendorId);
6075
        return result;
6076
      }
6077
    }
6078
 
6857 amar.kumar 6079
    private static class getNonZeroItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonZeroItemStockPurchaseParams_args> {
6080
      public getNonZeroItemStockPurchaseParams() {
6081
        super("getNonZeroItemStockPurchaseParams");
6082
      }
6083
 
6084
      protected getNonZeroItemStockPurchaseParams_args getEmptyArgsInstance() {
6085
        return new getNonZeroItemStockPurchaseParams_args();
6086
      }
6087
 
6088
      protected getNonZeroItemStockPurchaseParams_result getResult(I iface, getNonZeroItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
6089
        getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
6090
        result.success = iface.getNonZeroItemStockPurchaseParams();
6091
        return result;
6092
      }
6093
    }
6094
 
7149 amar.kumar 6095
    private static class getBillableInventoryAndPendingOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBillableInventoryAndPendingOrders_args> {
6096
      public getBillableInventoryAndPendingOrders() {
6097
        super("getBillableInventoryAndPendingOrders");
6098
      }
6099
 
6100
      protected getBillableInventoryAndPendingOrders_args getEmptyArgsInstance() {
6101
        return new getBillableInventoryAndPendingOrders_args();
6102
      }
6103
 
6104
      protected getBillableInventoryAndPendingOrders_result getResult(I iface, getBillableInventoryAndPendingOrders_args args) throws org.apache.thrift.TException {
6105
        getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
6106
        result.success = iface.getBillableInventoryAndPendingOrders();
6107
        return result;
6108
      }
6109
    }
6110
 
7281 kshitij.so 6111
    private static class getWarehouseName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseName_args> {
6112
      public getWarehouseName() {
6113
        super("getWarehouseName");
6114
      }
6115
 
6116
      protected getWarehouseName_args getEmptyArgsInstance() {
6117
        return new getWarehouseName_args();
6118
      }
6119
 
6120
      protected getWarehouseName_result getResult(I iface, getWarehouseName_args args) throws org.apache.thrift.TException {
6121
        getWarehouseName_result result = new getWarehouseName_result();
6122
        result.success = iface.getWarehouseName(args.warehouse_id);
6123
        return result;
6124
      }
6125
    }
6126
 
6127
    private static class getAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonInventoryForItem_args> {
6128
      public getAmazonInventoryForItem() {
6129
        super("getAmazonInventoryForItem");
6130
      }
6131
 
6132
      protected getAmazonInventoryForItem_args getEmptyArgsInstance() {
6133
        return new getAmazonInventoryForItem_args();
6134
      }
6135
 
6136
      protected getAmazonInventoryForItem_result getResult(I iface, getAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
6137
        getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
6138
        result.success = iface.getAmazonInventoryForItem(args.item_id);
6139
        return result;
6140
      }
6141
    }
6142
 
6143
    private static class getAllAmazonInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonInventory_args> {
6144
      public getAllAmazonInventory() {
6145
        super("getAllAmazonInventory");
6146
      }
6147
 
6148
      protected getAllAmazonInventory_args getEmptyArgsInstance() {
6149
        return new getAllAmazonInventory_args();
6150
      }
6151
 
6152
      protected getAllAmazonInventory_result getResult(I iface, getAllAmazonInventory_args args) throws org.apache.thrift.TException {
6153
        getAllAmazonInventory_result result = new getAllAmazonInventory_result();
6154
        result.success = iface.getAllAmazonInventory();
6155
        return result;
6156
      }
6157
    }
6158
 
6159
    private static class addOrUpdateAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonInventoryForItem_args> {
6160
      public addOrUpdateAmazonInventoryForItem() {
6161
        super("addOrUpdateAmazonInventoryForItem");
6162
      }
6163
 
6164
      protected addOrUpdateAmazonInventoryForItem_args getEmptyArgsInstance() {
6165
        return new addOrUpdateAmazonInventoryForItem_args();
6166
      }
6167
 
6168
      protected addOrUpdateAmazonInventoryForItem_result getResult(I iface, addOrUpdateAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
6169
        addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
10450 vikram.rag 6170
        iface.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time);
7281 kshitij.so 6171
        return result;
6172
      }
6173
    }
6174
 
7972 amar.kumar 6175
    private static class getLastNdaySaleForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLastNdaySaleForItem_args> {
6176
      public getLastNdaySaleForItem() {
6177
        super("getLastNdaySaleForItem");
6178
      }
6179
 
6180
      protected getLastNdaySaleForItem_args getEmptyArgsInstance() {
6181
        return new getLastNdaySaleForItem_args();
6182
      }
6183
 
6184
      protected getLastNdaySaleForItem_result getResult(I iface, getLastNdaySaleForItem_args args) throws org.apache.thrift.TException {
6185
        getLastNdaySaleForItem_result result = new getLastNdaySaleForItem_result();
6186
        result.success = iface.getLastNdaySaleForItem(args.itemId, args.numberOfDays);
6187
        return result;
6188
      }
6189
    }
6190
 
8282 kshitij.so 6191
    private static class addOrUpdateAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonFbaInventory_args> {
6192
      public addOrUpdateAmazonFbaInventory() {
6193
        super("addOrUpdateAmazonFbaInventory");
6194
      }
6195
 
6196
      protected addOrUpdateAmazonFbaInventory_args getEmptyArgsInstance() {
6197
        return new addOrUpdateAmazonFbaInventory_args();
6198
      }
6199
 
6200
      protected addOrUpdateAmazonFbaInventory_result getResult(I iface, addOrUpdateAmazonFbaInventory_args args) throws org.apache.thrift.TException {
6201
        addOrUpdateAmazonFbaInventory_result result = new addOrUpdateAmazonFbaInventory_result();
6202
        iface.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot);
6203
        return result;
6204
      }
6205
    }
6206
 
8182 amar.kumar 6207
    private static class addUpdateHoldInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUpdateHoldInventory_args> {
6208
      public addUpdateHoldInventory() {
6209
        super("addUpdateHoldInventory");
6210
      }
6211
 
6212
      protected addUpdateHoldInventory_args getEmptyArgsInstance() {
6213
        return new addUpdateHoldInventory_args();
6214
      }
6215
 
6216
      protected addUpdateHoldInventory_result getResult(I iface, addUpdateHoldInventory_args args) throws org.apache.thrift.TException {
6217
        addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
9762 amar.kumar 6218
        try {
6219
          iface.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source);
6220
        } catch (InventoryServiceException cex) {
6221
          result.cex = cex;
6222
        }
8182 amar.kumar 6223
        return result;
6224
      }
6225
    }
6226
 
8282 kshitij.so 6227
    private static class getAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonFbaItemInventory_args> {
6228
      public getAmazonFbaItemInventory() {
6229
        super("getAmazonFbaItemInventory");
6230
      }
6231
 
6232
      protected getAmazonFbaItemInventory_args getEmptyArgsInstance() {
6233
        return new getAmazonFbaItemInventory_args();
6234
      }
6235
 
6236
      protected getAmazonFbaItemInventory_result getResult(I iface, getAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
6237
        getAmazonFbaItemInventory_result result = new getAmazonFbaItemInventory_result();
6238
        result.success = iface.getAmazonFbaItemInventory(args.itemId);
6239
        return result;
6240
      }
6241
    }
6242
 
8363 vikram.rag 6243
    private static class getAllAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonFbaItemInventory_args> {
6244
      public getAllAmazonFbaItemInventory() {
6245
        super("getAllAmazonFbaItemInventory");
8282 kshitij.so 6246
      }
6247
 
8363 vikram.rag 6248
      protected getAllAmazonFbaItemInventory_args getEmptyArgsInstance() {
6249
        return new getAllAmazonFbaItemInventory_args();
8282 kshitij.so 6250
      }
6251
 
8363 vikram.rag 6252
      protected getAllAmazonFbaItemInventory_result getResult(I iface, getAllAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
6253
        getAllAmazonFbaItemInventory_result result = new getAllAmazonFbaItemInventory_result();
6254
        result.success = iface.getAllAmazonFbaItemInventory();
8282 kshitij.so 6255
        return result;
6256
      }
6257
    }
6258
 
8363 vikram.rag 6259
    private static class getOursGoodWarehouseIdsForLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOursGoodWarehouseIdsForLocation_args> {
6260
      public getOursGoodWarehouseIdsForLocation() {
6261
        super("getOursGoodWarehouseIdsForLocation");
6262
      }
6263
 
6264
      protected getOursGoodWarehouseIdsForLocation_args getEmptyArgsInstance() {
6265
        return new getOursGoodWarehouseIdsForLocation_args();
6266
      }
6267
 
6268
      protected getOursGoodWarehouseIdsForLocation_result getResult(I iface, getOursGoodWarehouseIdsForLocation_args args) throws org.apache.thrift.TException {
6269
        getOursGoodWarehouseIdsForLocation_result result = new getOursGoodWarehouseIdsForLocation_result();
6270
        result.success = iface.getOursGoodWarehouseIdsForLocation(args.state_id);
6271
        return result;
6272
      }
6273
    }
6274
 
8958 vikram.rag 6275
    private static class getHoldInventoryDetailForItemForWarehouseIdExceptSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args> {
6276
      public getHoldInventoryDetailForItemForWarehouseIdExceptSource() {
6277
        super("getHoldInventoryDetailForItemForWarehouseIdExceptSource");
6278
      }
6279
 
6280
      protected getHoldInventoryDetailForItemForWarehouseIdExceptSource_args getEmptyArgsInstance() {
6281
        return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
6282
      }
6283
 
6284
      protected getHoldInventoryDetailForItemForWarehouseIdExceptSource_result getResult(I iface, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args) throws org.apache.thrift.TException {
6285
        getHoldInventoryDetailForItemForWarehouseIdExceptSource_result result = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result();
6286
        result.success = iface.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source);
6287
        result.setSuccessIsSet(true);
6288
        return result;
6289
      }
6290
    }
6291
 
9404 vikram.rag 6292
    private static class getSnapdealInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealInventoryForItem_args> {
6293
      public getSnapdealInventoryForItem() {
6294
        super("getSnapdealInventoryForItem");
6295
      }
6296
 
6297
      protected getSnapdealInventoryForItem_args getEmptyArgsInstance() {
6298
        return new getSnapdealInventoryForItem_args();
6299
      }
6300
 
6301
      protected getSnapdealInventoryForItem_result getResult(I iface, getSnapdealInventoryForItem_args args) throws org.apache.thrift.TException {
6302
        getSnapdealInventoryForItem_result result = new getSnapdealInventoryForItem_result();
6303
        result.success = iface.getSnapdealInventoryForItem(args.item_id);
6304
        return result;
6305
      }
6306
    }
6307
 
6308
    private static class addOrUpdateSnapdealInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateSnapdealInventoryForItem_args> {
6309
      public addOrUpdateSnapdealInventoryForItem() {
6310
        super("addOrUpdateSnapdealInventoryForItem");
6311
      }
6312
 
6313
      protected addOrUpdateSnapdealInventoryForItem_args getEmptyArgsInstance() {
6314
        return new addOrUpdateSnapdealInventoryForItem_args();
6315
      }
6316
 
6317
      protected addOrUpdateSnapdealInventoryForItem_result getResult(I iface, addOrUpdateSnapdealInventoryForItem_args args) throws org.apache.thrift.TException {
6318
        addOrUpdateSnapdealInventoryForItem_result result = new addOrUpdateSnapdealInventoryForItem_result();
6319
        iface.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem);
6320
        return result;
6321
      }
6322
    }
6323
 
6324
    private static class getNlcForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNlcForWarehouse_args> {
6325
      public getNlcForWarehouse() {
6326
        super("getNlcForWarehouse");
6327
      }
6328
 
6329
      protected getNlcForWarehouse_args getEmptyArgsInstance() {
6330
        return new getNlcForWarehouse_args();
6331
      }
6332
 
6333
      protected getNlcForWarehouse_result getResult(I iface, getNlcForWarehouse_args args) throws org.apache.thrift.TException {
6334
        getNlcForWarehouse_result result = new getNlcForWarehouse_result();
6335
        result.success = iface.getNlcForWarehouse(args.warehouse_id, args.item_id);
6336
        result.setSuccessIsSet(true);
6337
        return result;
6338
      }
6339
    }
6340
 
9640 amar.kumar 6341
    private static class getHeldInventoryMapForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHeldInventoryMapForItem_args> {
6342
      public getHeldInventoryMapForItem() {
6343
        super("getHeldInventoryMapForItem");
6344
      }
6345
 
6346
      protected getHeldInventoryMapForItem_args getEmptyArgsInstance() {
6347
        return new getHeldInventoryMapForItem_args();
6348
      }
6349
 
6350
      protected getHeldInventoryMapForItem_result getResult(I iface, getHeldInventoryMapForItem_args args) throws org.apache.thrift.TException {
6351
        getHeldInventoryMapForItem_result result = new getHeldInventoryMapForItem_result();
6352
        result.success = iface.getHeldInventoryMapForItem(args.item_id, args.warehouse_id);
6353
        return result;
6354
      }
6355
    }
6356
 
9482 vikram.rag 6357
    private static class addOrUpdateAllAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAllAmazonFbaInventory_args> {
6358
      public addOrUpdateAllAmazonFbaInventory() {
6359
        super("addOrUpdateAllAmazonFbaInventory");
6360
      }
6361
 
6362
      protected addOrUpdateAllAmazonFbaInventory_args getEmptyArgsInstance() {
6363
        return new addOrUpdateAllAmazonFbaInventory_args();
6364
      }
6365
 
6366
      protected addOrUpdateAllAmazonFbaInventory_result getResult(I iface, addOrUpdateAllAmazonFbaInventory_args args) throws org.apache.thrift.TException {
6367
        addOrUpdateAllAmazonFbaInventory_result result = new addOrUpdateAllAmazonFbaInventory_result();
6368
        iface.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot);
6369
        return result;
6370
      }
6371
    }
6372
 
9495 vikram.rag 6373
    private static class addOrUpdateAllSnapdealInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAllSnapdealInventory_args> {
6374
      public addOrUpdateAllSnapdealInventory() {
6375
        super("addOrUpdateAllSnapdealInventory");
6376
      }
6377
 
6378
      protected addOrUpdateAllSnapdealInventory_args getEmptyArgsInstance() {
6379
        return new addOrUpdateAllSnapdealInventory_args();
6380
      }
6381
 
6382
      protected addOrUpdateAllSnapdealInventory_result getResult(I iface, addOrUpdateAllSnapdealInventory_args args) throws org.apache.thrift.TException {
6383
        addOrUpdateAllSnapdealInventory_result result = new addOrUpdateAllSnapdealInventory_result();
6384
        iface.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot);
6385
        return result;
6386
      }
6387
    }
6388
 
6389
    private static class getSnapdealInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealInventorySnapshot_args> {
6390
      public getSnapdealInventorySnapshot() {
6391
        super("getSnapdealInventorySnapshot");
6392
      }
6393
 
6394
      protected getSnapdealInventorySnapshot_args getEmptyArgsInstance() {
6395
        return new getSnapdealInventorySnapshot_args();
6396
      }
6397
 
6398
      protected getSnapdealInventorySnapshot_result getResult(I iface, getSnapdealInventorySnapshot_args args) throws org.apache.thrift.TException {
6399
        getSnapdealInventorySnapshot_result result = new getSnapdealInventorySnapshot_result();
6400
        result.success = iface.getSnapdealInventorySnapshot();
6401
        return result;
6402
      }
6403
    }
6404
 
9761 amar.kumar 6405
    private static class getHoldInventoryDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHoldInventoryDetails_args> {
6406
      public getHoldInventoryDetails() {
6407
        super("getHoldInventoryDetails");
6408
      }
6409
 
6410
      protected getHoldInventoryDetails_args getEmptyArgsInstance() {
6411
        return new getHoldInventoryDetails_args();
6412
      }
6413
 
6414
      protected getHoldInventoryDetails_result getResult(I iface, getHoldInventoryDetails_args args) throws org.apache.thrift.TException {
6415
        getHoldInventoryDetails_result result = new getHoldInventoryDetails_result();
6416
        result.success = iface.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source);
6417
        return result;
6418
      }
6419
    }
6420
 
10050 vikram.rag 6421
    private static class addOrUpdateFlipkartInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateFlipkartInventorySnapshot_args> {
6422
      public addOrUpdateFlipkartInventorySnapshot() {
6423
        super("addOrUpdateFlipkartInventorySnapshot");
6424
      }
6425
 
6426
      protected addOrUpdateFlipkartInventorySnapshot_args getEmptyArgsInstance() {
6427
        return new addOrUpdateFlipkartInventorySnapshot_args();
6428
      }
6429
 
6430
      protected addOrUpdateFlipkartInventorySnapshot_result getResult(I iface, addOrUpdateFlipkartInventorySnapshot_args args) throws org.apache.thrift.TException {
6431
        addOrUpdateFlipkartInventorySnapshot_result result = new addOrUpdateFlipkartInventorySnapshot_result();
10450 vikram.rag 6432
        iface.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time);
10050 vikram.rag 6433
        return result;
6434
      }
6435
    }
6436
 
6437
    private static class getFlipkartInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartInventorySnapshot_args> {
6438
      public getFlipkartInventorySnapshot() {
6439
        super("getFlipkartInventorySnapshot");
6440
      }
6441
 
6442
      protected getFlipkartInventorySnapshot_args getEmptyArgsInstance() {
6443
        return new getFlipkartInventorySnapshot_args();
6444
      }
6445
 
6446
      protected getFlipkartInventorySnapshot_result getResult(I iface, getFlipkartInventorySnapshot_args args) throws org.apache.thrift.TException {
6447
        getFlipkartInventorySnapshot_result result = new getFlipkartInventorySnapshot_result();
6448
        result.success = iface.getFlipkartInventorySnapshot();
6449
        return result;
6450
      }
6451
    }
6452
 
10097 kshitij.so 6453
    private static class getFlipkartlInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartlInventoryForItem_args> {
6454
      public getFlipkartlInventoryForItem() {
6455
        super("getFlipkartlInventoryForItem");
6456
      }
6457
 
6458
      protected getFlipkartlInventoryForItem_args getEmptyArgsInstance() {
6459
        return new getFlipkartlInventoryForItem_args();
6460
      }
6461
 
6462
      protected getFlipkartlInventoryForItem_result getResult(I iface, getFlipkartlInventoryForItem_args args) throws org.apache.thrift.TException {
6463
        getFlipkartlInventoryForItem_result result = new getFlipkartlInventoryForItem_result();
6464
        result.success = iface.getFlipkartlInventoryForItem(args.item_id);
6465
        return result;
6466
      }
6467
    }
6468
 
10485 vikram.rag 6469
    private static class getStateMaster<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStateMaster_args> {
6470
      public getStateMaster() {
6471
        super("getStateMaster");
6472
      }
6473
 
6474
      protected getStateMaster_args getEmptyArgsInstance() {
6475
        return new getStateMaster_args();
6476
      }
6477
 
6478
      protected getStateMaster_result getResult(I iface, getStateMaster_args args) throws org.apache.thrift.TException {
6479
        getStateMaster_result result = new getStateMaster_result();
6480
        result.success = iface.getStateMaster();
6481
        return result;
6482
      }
6483
    }
6484
 
10546 vikram.rag 6485
    private static class updateSnapdealStockAtEOD<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateSnapdealStockAtEOD_args> {
6486
      public updateSnapdealStockAtEOD() {
6487
        super("updateSnapdealStockAtEOD");
6488
      }
6489
 
6490
      protected updateSnapdealStockAtEOD_args getEmptyArgsInstance() {
6491
        return new updateSnapdealStockAtEOD_args();
6492
      }
6493
 
6494
      protected updateSnapdealStockAtEOD_result getResult(I iface, updateSnapdealStockAtEOD_args args) throws org.apache.thrift.TException {
6495
        updateSnapdealStockAtEOD_result result = new updateSnapdealStockAtEOD_result();
6496
        iface.updateSnapdealStockAtEOD(args.allsnapdealstock);
6497
        return result;
6498
      }
6499
    }
6500
 
6501
    private static class updateFlipkartStockAtEOD<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateFlipkartStockAtEOD_args> {
6502
      public updateFlipkartStockAtEOD() {
6503
        super("updateFlipkartStockAtEOD");
6504
      }
6505
 
6506
      protected updateFlipkartStockAtEOD_args getEmptyArgsInstance() {
6507
        return new updateFlipkartStockAtEOD_args();
6508
      }
6509
 
6510
      protected updateFlipkartStockAtEOD_result getResult(I iface, updateFlipkartStockAtEOD_args args) throws org.apache.thrift.TException {
6511
        updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
6512
        iface.updateFlipkartStockAtEOD(args.allflipkartstock);
6513
        return result;
6514
      }
6515
    }
6516
 
5945 mandeep.dh 6517
  }
6518
 
6519
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6521
 
6522
    private static final org.apache.thrift.protocol.TField WAREHOUSE_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6523
 
6524
    private Warehouse warehouse; // required
6525
 
6526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6528
      WAREHOUSE((short)1, "warehouse");
6529
 
6530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6531
 
6532
      static {
6533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6534
          byName.put(field.getFieldName(), field);
6535
        }
6536
      }
6537
 
6538
      /**
6539
       * Find the _Fields constant that matches fieldId, or null if its not found.
6540
       */
6541
      public static _Fields findByThriftId(int fieldId) {
6542
        switch(fieldId) {
6543
          case 1: // WAREHOUSE
6544
            return WAREHOUSE;
6545
          default:
6546
            return null;
6547
        }
6548
      }
6549
 
6550
      /**
6551
       * Find the _Fields constant that matches fieldId, throwing an exception
6552
       * if it is not found.
6553
       */
6554
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6555
        _Fields fields = findByThriftId(fieldId);
6556
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6557
        return fields;
6558
      }
6559
 
6560
      /**
6561
       * Find the _Fields constant that matches name, or null if its not found.
6562
       */
6563
      public static _Fields findByName(String name) {
6564
        return byName.get(name);
6565
      }
6566
 
6567
      private final short _thriftId;
6568
      private final String _fieldName;
6569
 
6570
      _Fields(short thriftId, String fieldName) {
6571
        _thriftId = thriftId;
6572
        _fieldName = fieldName;
6573
      }
6574
 
6575
      public short getThriftFieldId() {
6576
        return _thriftId;
6577
      }
6578
 
6579
      public String getFieldName() {
6580
        return _fieldName;
6581
      }
6582
    }
6583
 
6584
    // isset id assignments
6585
 
6586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6587
    static {
6588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6589
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6590
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
6591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
6593
    }
6594
 
6595
    public addWarehouse_args() {
6596
    }
6597
 
6598
    public addWarehouse_args(
6599
      Warehouse warehouse)
6600
    {
6601
      this();
6602
      this.warehouse = warehouse;
6603
    }
6604
 
6605
    /**
6606
     * Performs a deep copy on <i>other</i>.
6607
     */
6608
    public addWarehouse_args(addWarehouse_args other) {
6609
      if (other.isSetWarehouse()) {
6610
        this.warehouse = new Warehouse(other.warehouse);
6611
      }
6612
    }
6613
 
6614
    public addWarehouse_args deepCopy() {
6615
      return new addWarehouse_args(this);
6616
    }
6617
 
6618
    @Override
6619
    public void clear() {
6620
      this.warehouse = null;
6621
    }
6622
 
6623
    public Warehouse getWarehouse() {
6624
      return this.warehouse;
6625
    }
6626
 
6627
    public void setWarehouse(Warehouse warehouse) {
6628
      this.warehouse = warehouse;
6629
    }
6630
 
6631
    public void unsetWarehouse() {
6632
      this.warehouse = null;
6633
    }
6634
 
6635
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
6636
    public boolean isSetWarehouse() {
6637
      return this.warehouse != null;
6638
    }
6639
 
6640
    public void setWarehouseIsSet(boolean value) {
6641
      if (!value) {
6642
        this.warehouse = null;
6643
      }
6644
    }
6645
 
6646
    public void setFieldValue(_Fields field, Object value) {
6647
      switch (field) {
6648
      case WAREHOUSE:
6649
        if (value == null) {
6650
          unsetWarehouse();
6651
        } else {
6652
          setWarehouse((Warehouse)value);
6653
        }
6654
        break;
6655
 
6656
      }
6657
    }
6658
 
6659
    public Object getFieldValue(_Fields field) {
6660
      switch (field) {
6661
      case WAREHOUSE:
6662
        return getWarehouse();
6663
 
6664
      }
6665
      throw new IllegalStateException();
6666
    }
6667
 
6668
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6669
    public boolean isSet(_Fields field) {
6670
      if (field == null) {
6671
        throw new IllegalArgumentException();
6672
      }
6673
 
6674
      switch (field) {
6675
      case WAREHOUSE:
6676
        return isSetWarehouse();
6677
      }
6678
      throw new IllegalStateException();
6679
    }
6680
 
6681
    @Override
6682
    public boolean equals(Object that) {
6683
      if (that == null)
6684
        return false;
6685
      if (that instanceof addWarehouse_args)
6686
        return this.equals((addWarehouse_args)that);
6687
      return false;
6688
    }
6689
 
6690
    public boolean equals(addWarehouse_args that) {
6691
      if (that == null)
6692
        return false;
6693
 
6694
      boolean this_present_warehouse = true && this.isSetWarehouse();
6695
      boolean that_present_warehouse = true && that.isSetWarehouse();
6696
      if (this_present_warehouse || that_present_warehouse) {
6697
        if (!(this_present_warehouse && that_present_warehouse))
6698
          return false;
6699
        if (!this.warehouse.equals(that.warehouse))
6700
          return false;
6701
      }
6702
 
6703
      return true;
6704
    }
6705
 
6706
    @Override
6707
    public int hashCode() {
6708
      return 0;
6709
    }
6710
 
6711
    public int compareTo(addWarehouse_args other) {
6712
      if (!getClass().equals(other.getClass())) {
6713
        return getClass().getName().compareTo(other.getClass().getName());
6714
      }
6715
 
6716
      int lastComparison = 0;
6717
      addWarehouse_args typedOther = (addWarehouse_args)other;
6718
 
6719
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
6720
      if (lastComparison != 0) {
6721
        return lastComparison;
6722
      }
6723
      if (isSetWarehouse()) {
6724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
6725
        if (lastComparison != 0) {
6726
          return lastComparison;
6727
        }
6728
      }
6729
      return 0;
6730
    }
6731
 
6732
    public _Fields fieldForId(int fieldId) {
6733
      return _Fields.findByThriftId(fieldId);
6734
    }
6735
 
6736
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6737
      org.apache.thrift.protocol.TField field;
6738
      iprot.readStructBegin();
6739
      while (true)
6740
      {
6741
        field = iprot.readFieldBegin();
6742
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6743
          break;
6744
        }
6745
        switch (field.id) {
6746
          case 1: // WAREHOUSE
6747
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6748
              this.warehouse = new Warehouse();
6749
              this.warehouse.read(iprot);
6750
            } else { 
6751
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6752
            }
6753
            break;
6754
          default:
6755
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6756
        }
6757
        iprot.readFieldEnd();
6758
      }
6759
      iprot.readStructEnd();
6760
      validate();
6761
    }
6762
 
6763
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6764
      validate();
6765
 
6766
      oprot.writeStructBegin(STRUCT_DESC);
6767
      if (this.warehouse != null) {
6768
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
6769
        this.warehouse.write(oprot);
6770
        oprot.writeFieldEnd();
6771
      }
6772
      oprot.writeFieldStop();
6773
      oprot.writeStructEnd();
6774
    }
6775
 
6776
    @Override
6777
    public String toString() {
6778
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
6779
      boolean first = true;
6780
 
6781
      sb.append("warehouse:");
6782
      if (this.warehouse == null) {
6783
        sb.append("null");
6784
      } else {
6785
        sb.append(this.warehouse);
6786
      }
6787
      first = false;
6788
      sb.append(")");
6789
      return sb.toString();
6790
    }
6791
 
6792
    public void validate() throws org.apache.thrift.TException {
6793
      // check for required fields
6794
    }
6795
 
6796
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6797
      try {
6798
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6799
      } catch (org.apache.thrift.TException te) {
6800
        throw new java.io.IOException(te);
6801
      }
6802
    }
6803
 
6804
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6805
      try {
6806
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6807
      } catch (org.apache.thrift.TException te) {
6808
        throw new java.io.IOException(te);
6809
      }
6810
    }
6811
 
6812
  }
6813
 
6814
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
6815
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
6816
 
6817
    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);
6818
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6819
 
6820
    private long success; // required
6821
    private InventoryServiceException cex; // required
6822
 
6823
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6824
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6825
      SUCCESS((short)0, "success"),
6826
      CEX((short)1, "cex");
6827
 
6828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6829
 
6830
      static {
6831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6832
          byName.put(field.getFieldName(), field);
6833
        }
6834
      }
6835
 
6836
      /**
6837
       * Find the _Fields constant that matches fieldId, or null if its not found.
6838
       */
6839
      public static _Fields findByThriftId(int fieldId) {
6840
        switch(fieldId) {
6841
          case 0: // SUCCESS
6842
            return SUCCESS;
6843
          case 1: // CEX
6844
            return CEX;
6845
          default:
6846
            return null;
6847
        }
6848
      }
6849
 
6850
      /**
6851
       * Find the _Fields constant that matches fieldId, throwing an exception
6852
       * if it is not found.
6853
       */
6854
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6855
        _Fields fields = findByThriftId(fieldId);
6856
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6857
        return fields;
6858
      }
6859
 
6860
      /**
6861
       * Find the _Fields constant that matches name, or null if its not found.
6862
       */
6863
      public static _Fields findByName(String name) {
6864
        return byName.get(name);
6865
      }
6866
 
6867
      private final short _thriftId;
6868
      private final String _fieldName;
6869
 
6870
      _Fields(short thriftId, String fieldName) {
6871
        _thriftId = thriftId;
6872
        _fieldName = fieldName;
6873
      }
6874
 
6875
      public short getThriftFieldId() {
6876
        return _thriftId;
6877
      }
6878
 
6879
      public String getFieldName() {
6880
        return _fieldName;
6881
      }
6882
    }
6883
 
6884
    // isset id assignments
6885
    private static final int __SUCCESS_ISSET_ID = 0;
6886
    private BitSet __isset_bit_vector = new BitSet(1);
6887
 
6888
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6889
    static {
6890
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6891
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6893
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6894
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
6897
    }
6898
 
6899
    public addWarehouse_result() {
6900
    }
6901
 
6902
    public addWarehouse_result(
6903
      long success,
6904
      InventoryServiceException cex)
6905
    {
6906
      this();
6907
      this.success = success;
6908
      setSuccessIsSet(true);
6909
      this.cex = cex;
6910
    }
6911
 
6912
    /**
6913
     * Performs a deep copy on <i>other</i>.
6914
     */
6915
    public addWarehouse_result(addWarehouse_result other) {
6916
      __isset_bit_vector.clear();
6917
      __isset_bit_vector.or(other.__isset_bit_vector);
6918
      this.success = other.success;
6919
      if (other.isSetCex()) {
6920
        this.cex = new InventoryServiceException(other.cex);
6921
      }
6922
    }
6923
 
6924
    public addWarehouse_result deepCopy() {
6925
      return new addWarehouse_result(this);
6926
    }
6927
 
6928
    @Override
6929
    public void clear() {
6930
      setSuccessIsSet(false);
6931
      this.success = 0;
6932
      this.cex = null;
6933
    }
6934
 
6935
    public long getSuccess() {
6936
      return this.success;
6937
    }
6938
 
6939
    public void setSuccess(long success) {
6940
      this.success = success;
6941
      setSuccessIsSet(true);
6942
    }
6943
 
6944
    public void unsetSuccess() {
6945
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6946
    }
6947
 
6948
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6949
    public boolean isSetSuccess() {
6950
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6951
    }
6952
 
6953
    public void setSuccessIsSet(boolean value) {
6954
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
6955
    }
6956
 
6957
    public InventoryServiceException getCex() {
6958
      return this.cex;
6959
    }
6960
 
6961
    public void setCex(InventoryServiceException cex) {
6962
      this.cex = cex;
6963
    }
6964
 
6965
    public void unsetCex() {
6966
      this.cex = null;
6967
    }
6968
 
6969
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6970
    public boolean isSetCex() {
6971
      return this.cex != null;
6972
    }
6973
 
6974
    public void setCexIsSet(boolean value) {
6975
      if (!value) {
6976
        this.cex = null;
6977
      }
6978
    }
6979
 
6980
    public void setFieldValue(_Fields field, Object value) {
6981
      switch (field) {
6982
      case SUCCESS:
6983
        if (value == null) {
6984
          unsetSuccess();
6985
        } else {
6986
          setSuccess((Long)value);
6987
        }
6988
        break;
6989
 
6990
      case CEX:
6991
        if (value == null) {
6992
          unsetCex();
6993
        } else {
6994
          setCex((InventoryServiceException)value);
6995
        }
6996
        break;
6997
 
6998
      }
6999
    }
7000
 
7001
    public Object getFieldValue(_Fields field) {
7002
      switch (field) {
7003
      case SUCCESS:
7004
        return Long.valueOf(getSuccess());
7005
 
7006
      case CEX:
7007
        return getCex();
7008
 
7009
      }
7010
      throw new IllegalStateException();
7011
    }
7012
 
7013
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7014
    public boolean isSet(_Fields field) {
7015
      if (field == null) {
7016
        throw new IllegalArgumentException();
7017
      }
7018
 
7019
      switch (field) {
7020
      case SUCCESS:
7021
        return isSetSuccess();
7022
      case CEX:
7023
        return isSetCex();
7024
      }
7025
      throw new IllegalStateException();
7026
    }
7027
 
7028
    @Override
7029
    public boolean equals(Object that) {
7030
      if (that == null)
7031
        return false;
7032
      if (that instanceof addWarehouse_result)
7033
        return this.equals((addWarehouse_result)that);
7034
      return false;
7035
    }
7036
 
7037
    public boolean equals(addWarehouse_result that) {
7038
      if (that == null)
7039
        return false;
7040
 
7041
      boolean this_present_success = true;
7042
      boolean that_present_success = true;
7043
      if (this_present_success || that_present_success) {
7044
        if (!(this_present_success && that_present_success))
7045
          return false;
7046
        if (this.success != that.success)
7047
          return false;
7048
      }
7049
 
7050
      boolean this_present_cex = true && this.isSetCex();
7051
      boolean that_present_cex = true && that.isSetCex();
7052
      if (this_present_cex || that_present_cex) {
7053
        if (!(this_present_cex && that_present_cex))
7054
          return false;
7055
        if (!this.cex.equals(that.cex))
7056
          return false;
7057
      }
7058
 
7059
      return true;
7060
    }
7061
 
7062
    @Override
7063
    public int hashCode() {
7064
      return 0;
7065
    }
7066
 
7067
    public int compareTo(addWarehouse_result other) {
7068
      if (!getClass().equals(other.getClass())) {
7069
        return getClass().getName().compareTo(other.getClass().getName());
7070
      }
7071
 
7072
      int lastComparison = 0;
7073
      addWarehouse_result typedOther = (addWarehouse_result)other;
7074
 
7075
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7076
      if (lastComparison != 0) {
7077
        return lastComparison;
7078
      }
7079
      if (isSetSuccess()) {
7080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7081
        if (lastComparison != 0) {
7082
          return lastComparison;
7083
        }
7084
      }
7085
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7086
      if (lastComparison != 0) {
7087
        return lastComparison;
7088
      }
7089
      if (isSetCex()) {
7090
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7091
        if (lastComparison != 0) {
7092
          return lastComparison;
7093
        }
7094
      }
7095
      return 0;
7096
    }
7097
 
7098
    public _Fields fieldForId(int fieldId) {
7099
      return _Fields.findByThriftId(fieldId);
7100
    }
7101
 
7102
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7103
      org.apache.thrift.protocol.TField field;
7104
      iprot.readStructBegin();
7105
      while (true)
7106
      {
7107
        field = iprot.readFieldBegin();
7108
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7109
          break;
7110
        }
7111
        switch (field.id) {
7112
          case 0: // SUCCESS
7113
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7114
              this.success = iprot.readI64();
7115
              setSuccessIsSet(true);
7116
            } else { 
7117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7118
            }
7119
            break;
7120
          case 1: // CEX
7121
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7122
              this.cex = new InventoryServiceException();
7123
              this.cex.read(iprot);
7124
            } else { 
7125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7126
            }
7127
            break;
7128
          default:
7129
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7130
        }
7131
        iprot.readFieldEnd();
7132
      }
7133
      iprot.readStructEnd();
7134
      validate();
7135
    }
7136
 
7137
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7138
      oprot.writeStructBegin(STRUCT_DESC);
7139
 
7140
      if (this.isSetSuccess()) {
7141
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7142
        oprot.writeI64(this.success);
7143
        oprot.writeFieldEnd();
7144
      } else if (this.isSetCex()) {
7145
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7146
        this.cex.write(oprot);
7147
        oprot.writeFieldEnd();
7148
      }
7149
      oprot.writeFieldStop();
7150
      oprot.writeStructEnd();
7151
    }
7152
 
7153
    @Override
7154
    public String toString() {
7155
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
7156
      boolean first = true;
7157
 
7158
      sb.append("success:");
7159
      sb.append(this.success);
7160
      first = false;
7161
      if (!first) sb.append(", ");
7162
      sb.append("cex:");
7163
      if (this.cex == null) {
7164
        sb.append("null");
7165
      } else {
7166
        sb.append(this.cex);
7167
      }
7168
      first = false;
7169
      sb.append(")");
7170
      return sb.toString();
7171
    }
7172
 
7173
    public void validate() throws org.apache.thrift.TException {
7174
      // check for required fields
7175
    }
7176
 
7177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7178
      try {
7179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7180
      } catch (org.apache.thrift.TException te) {
7181
        throw new java.io.IOException(te);
7182
      }
7183
    }
7184
 
7185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7186
      try {
7187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7188
      } catch (org.apache.thrift.TException te) {
7189
        throw new java.io.IOException(te);
7190
      }
7191
    }
7192
 
7193
  }
7194
 
7195
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
7196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
7197
 
7198
    private static final org.apache.thrift.protocol.TField VENDOR_FIELD_DESC = new org.apache.thrift.protocol.TField("vendor", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7199
 
7200
    private Vendor vendor; // required
7201
 
7202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7204
      VENDOR((short)1, "vendor");
7205
 
7206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7207
 
7208
      static {
7209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7210
          byName.put(field.getFieldName(), field);
7211
        }
7212
      }
7213
 
7214
      /**
7215
       * Find the _Fields constant that matches fieldId, or null if its not found.
7216
       */
7217
      public static _Fields findByThriftId(int fieldId) {
7218
        switch(fieldId) {
7219
          case 1: // VENDOR
7220
            return VENDOR;
7221
          default:
7222
            return null;
7223
        }
7224
      }
7225
 
7226
      /**
7227
       * Find the _Fields constant that matches fieldId, throwing an exception
7228
       * if it is not found.
7229
       */
7230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7231
        _Fields fields = findByThriftId(fieldId);
7232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7233
        return fields;
7234
      }
7235
 
7236
      /**
7237
       * Find the _Fields constant that matches name, or null if its not found.
7238
       */
7239
      public static _Fields findByName(String name) {
7240
        return byName.get(name);
7241
      }
7242
 
7243
      private final short _thriftId;
7244
      private final String _fieldName;
7245
 
7246
      _Fields(short thriftId, String fieldName) {
7247
        _thriftId = thriftId;
7248
        _fieldName = fieldName;
7249
      }
7250
 
7251
      public short getThriftFieldId() {
7252
        return _thriftId;
7253
      }
7254
 
7255
      public String getFieldName() {
7256
        return _fieldName;
7257
      }
7258
    }
7259
 
7260
    // isset id assignments
7261
 
7262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7263
    static {
7264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7265
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7266
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
7267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
7269
    }
7270
 
7271
    public addVendor_args() {
7272
    }
7273
 
7274
    public addVendor_args(
7275
      Vendor vendor)
7276
    {
7277
      this();
7278
      this.vendor = vendor;
7279
    }
7280
 
7281
    /**
7282
     * Performs a deep copy on <i>other</i>.
7283
     */
7284
    public addVendor_args(addVendor_args other) {
7285
      if (other.isSetVendor()) {
7286
        this.vendor = new Vendor(other.vendor);
7287
      }
7288
    }
7289
 
7290
    public addVendor_args deepCopy() {
7291
      return new addVendor_args(this);
7292
    }
7293
 
7294
    @Override
7295
    public void clear() {
7296
      this.vendor = null;
7297
    }
7298
 
7299
    public Vendor getVendor() {
7300
      return this.vendor;
7301
    }
7302
 
7303
    public void setVendor(Vendor vendor) {
7304
      this.vendor = vendor;
7305
    }
7306
 
7307
    public void unsetVendor() {
7308
      this.vendor = null;
7309
    }
7310
 
7311
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
7312
    public boolean isSetVendor() {
7313
      return this.vendor != null;
7314
    }
7315
 
7316
    public void setVendorIsSet(boolean value) {
7317
      if (!value) {
7318
        this.vendor = null;
7319
      }
7320
    }
7321
 
7322
    public void setFieldValue(_Fields field, Object value) {
7323
      switch (field) {
7324
      case VENDOR:
7325
        if (value == null) {
7326
          unsetVendor();
7327
        } else {
7328
          setVendor((Vendor)value);
7329
        }
7330
        break;
7331
 
7332
      }
7333
    }
7334
 
7335
    public Object getFieldValue(_Fields field) {
7336
      switch (field) {
7337
      case VENDOR:
7338
        return getVendor();
7339
 
7340
      }
7341
      throw new IllegalStateException();
7342
    }
7343
 
7344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7345
    public boolean isSet(_Fields field) {
7346
      if (field == null) {
7347
        throw new IllegalArgumentException();
7348
      }
7349
 
7350
      switch (field) {
7351
      case VENDOR:
7352
        return isSetVendor();
7353
      }
7354
      throw new IllegalStateException();
7355
    }
7356
 
7357
    @Override
7358
    public boolean equals(Object that) {
7359
      if (that == null)
7360
        return false;
7361
      if (that instanceof addVendor_args)
7362
        return this.equals((addVendor_args)that);
7363
      return false;
7364
    }
7365
 
7366
    public boolean equals(addVendor_args that) {
7367
      if (that == null)
7368
        return false;
7369
 
7370
      boolean this_present_vendor = true && this.isSetVendor();
7371
      boolean that_present_vendor = true && that.isSetVendor();
7372
      if (this_present_vendor || that_present_vendor) {
7373
        if (!(this_present_vendor && that_present_vendor))
7374
          return false;
7375
        if (!this.vendor.equals(that.vendor))
7376
          return false;
7377
      }
7378
 
7379
      return true;
7380
    }
7381
 
7382
    @Override
7383
    public int hashCode() {
7384
      return 0;
7385
    }
7386
 
7387
    public int compareTo(addVendor_args other) {
7388
      if (!getClass().equals(other.getClass())) {
7389
        return getClass().getName().compareTo(other.getClass().getName());
7390
      }
7391
 
7392
      int lastComparison = 0;
7393
      addVendor_args typedOther = (addVendor_args)other;
7394
 
7395
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
7396
      if (lastComparison != 0) {
7397
        return lastComparison;
7398
      }
7399
      if (isSetVendor()) {
7400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
7401
        if (lastComparison != 0) {
7402
          return lastComparison;
7403
        }
7404
      }
7405
      return 0;
7406
    }
7407
 
7408
    public _Fields fieldForId(int fieldId) {
7409
      return _Fields.findByThriftId(fieldId);
7410
    }
7411
 
7412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7413
      org.apache.thrift.protocol.TField field;
7414
      iprot.readStructBegin();
7415
      while (true)
7416
      {
7417
        field = iprot.readFieldBegin();
7418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7419
          break;
7420
        }
7421
        switch (field.id) {
7422
          case 1: // VENDOR
7423
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7424
              this.vendor = new Vendor();
7425
              this.vendor.read(iprot);
7426
            } else { 
7427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7428
            }
7429
            break;
7430
          default:
7431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7432
        }
7433
        iprot.readFieldEnd();
7434
      }
7435
      iprot.readStructEnd();
7436
      validate();
7437
    }
7438
 
7439
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7440
      validate();
7441
 
7442
      oprot.writeStructBegin(STRUCT_DESC);
7443
      if (this.vendor != null) {
7444
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
7445
        this.vendor.write(oprot);
7446
        oprot.writeFieldEnd();
7447
      }
7448
      oprot.writeFieldStop();
7449
      oprot.writeStructEnd();
7450
    }
7451
 
7452
    @Override
7453
    public String toString() {
7454
      StringBuilder sb = new StringBuilder("addVendor_args(");
7455
      boolean first = true;
7456
 
7457
      sb.append("vendor:");
7458
      if (this.vendor == null) {
7459
        sb.append("null");
7460
      } else {
7461
        sb.append(this.vendor);
7462
      }
7463
      first = false;
7464
      sb.append(")");
7465
      return sb.toString();
7466
    }
7467
 
7468
    public void validate() throws org.apache.thrift.TException {
7469
      // check for required fields
7470
    }
7471
 
7472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7473
      try {
7474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7475
      } catch (org.apache.thrift.TException te) {
7476
        throw new java.io.IOException(te);
7477
      }
7478
    }
7479
 
7480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7481
      try {
7482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7483
      } catch (org.apache.thrift.TException te) {
7484
        throw new java.io.IOException(te);
7485
      }
7486
    }
7487
 
7488
  }
7489
 
7490
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
7491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
7492
 
7493
    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);
7494
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7495
 
7496
    private long success; // required
7497
    private InventoryServiceException cex; // required
7498
 
7499
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7500
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7501
      SUCCESS((short)0, "success"),
7502
      CEX((short)1, "cex");
7503
 
7504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7505
 
7506
      static {
7507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7508
          byName.put(field.getFieldName(), field);
7509
        }
7510
      }
7511
 
7512
      /**
7513
       * Find the _Fields constant that matches fieldId, or null if its not found.
7514
       */
7515
      public static _Fields findByThriftId(int fieldId) {
7516
        switch(fieldId) {
7517
          case 0: // SUCCESS
7518
            return SUCCESS;
7519
          case 1: // CEX
7520
            return CEX;
7521
          default:
7522
            return null;
7523
        }
7524
      }
7525
 
7526
      /**
7527
       * Find the _Fields constant that matches fieldId, throwing an exception
7528
       * if it is not found.
7529
       */
7530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7531
        _Fields fields = findByThriftId(fieldId);
7532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7533
        return fields;
7534
      }
7535
 
7536
      /**
7537
       * Find the _Fields constant that matches name, or null if its not found.
7538
       */
7539
      public static _Fields findByName(String name) {
7540
        return byName.get(name);
7541
      }
7542
 
7543
      private final short _thriftId;
7544
      private final String _fieldName;
7545
 
7546
      _Fields(short thriftId, String fieldName) {
7547
        _thriftId = thriftId;
7548
        _fieldName = fieldName;
7549
      }
7550
 
7551
      public short getThriftFieldId() {
7552
        return _thriftId;
7553
      }
7554
 
7555
      public String getFieldName() {
7556
        return _fieldName;
7557
      }
7558
    }
7559
 
7560
    // isset id assignments
7561
    private static final int __SUCCESS_ISSET_ID = 0;
7562
    private BitSet __isset_bit_vector = new BitSet(1);
7563
 
7564
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7565
    static {
7566
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7567
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7568
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7569
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7570
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7571
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7572
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
7573
    }
7574
 
7575
    public addVendor_result() {
7576
    }
7577
 
7578
    public addVendor_result(
7579
      long success,
7580
      InventoryServiceException cex)
7581
    {
7582
      this();
7583
      this.success = success;
7584
      setSuccessIsSet(true);
7585
      this.cex = cex;
7586
    }
7587
 
7588
    /**
7589
     * Performs a deep copy on <i>other</i>.
7590
     */
7591
    public addVendor_result(addVendor_result other) {
7592
      __isset_bit_vector.clear();
7593
      __isset_bit_vector.or(other.__isset_bit_vector);
7594
      this.success = other.success;
7595
      if (other.isSetCex()) {
7596
        this.cex = new InventoryServiceException(other.cex);
7597
      }
7598
    }
7599
 
7600
    public addVendor_result deepCopy() {
7601
      return new addVendor_result(this);
7602
    }
7603
 
7604
    @Override
7605
    public void clear() {
7606
      setSuccessIsSet(false);
7607
      this.success = 0;
7608
      this.cex = null;
7609
    }
7610
 
7611
    public long getSuccess() {
7612
      return this.success;
7613
    }
7614
 
7615
    public void setSuccess(long success) {
7616
      this.success = success;
7617
      setSuccessIsSet(true);
7618
    }
7619
 
7620
    public void unsetSuccess() {
7621
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7622
    }
7623
 
7624
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7625
    public boolean isSetSuccess() {
7626
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7627
    }
7628
 
7629
    public void setSuccessIsSet(boolean value) {
7630
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
7631
    }
7632
 
7633
    public InventoryServiceException getCex() {
7634
      return this.cex;
7635
    }
7636
 
7637
    public void setCex(InventoryServiceException cex) {
7638
      this.cex = cex;
7639
    }
7640
 
7641
    public void unsetCex() {
7642
      this.cex = null;
7643
    }
7644
 
7645
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7646
    public boolean isSetCex() {
7647
      return this.cex != null;
7648
    }
7649
 
7650
    public void setCexIsSet(boolean value) {
7651
      if (!value) {
7652
        this.cex = null;
7653
      }
7654
    }
7655
 
7656
    public void setFieldValue(_Fields field, Object value) {
7657
      switch (field) {
7658
      case SUCCESS:
7659
        if (value == null) {
7660
          unsetSuccess();
7661
        } else {
7662
          setSuccess((Long)value);
7663
        }
7664
        break;
7665
 
7666
      case CEX:
7667
        if (value == null) {
7668
          unsetCex();
7669
        } else {
7670
          setCex((InventoryServiceException)value);
7671
        }
7672
        break;
7673
 
7674
      }
7675
    }
7676
 
7677
    public Object getFieldValue(_Fields field) {
7678
      switch (field) {
7679
      case SUCCESS:
7680
        return Long.valueOf(getSuccess());
7681
 
7682
      case CEX:
7683
        return getCex();
7684
 
7685
      }
7686
      throw new IllegalStateException();
7687
    }
7688
 
7689
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7690
    public boolean isSet(_Fields field) {
7691
      if (field == null) {
7692
        throw new IllegalArgumentException();
7693
      }
7694
 
7695
      switch (field) {
7696
      case SUCCESS:
7697
        return isSetSuccess();
7698
      case CEX:
7699
        return isSetCex();
7700
      }
7701
      throw new IllegalStateException();
7702
    }
7703
 
7704
    @Override
7705
    public boolean equals(Object that) {
7706
      if (that == null)
7707
        return false;
7708
      if (that instanceof addVendor_result)
7709
        return this.equals((addVendor_result)that);
7710
      return false;
7711
    }
7712
 
7713
    public boolean equals(addVendor_result that) {
7714
      if (that == null)
7715
        return false;
7716
 
7717
      boolean this_present_success = true;
7718
      boolean that_present_success = true;
7719
      if (this_present_success || that_present_success) {
7720
        if (!(this_present_success && that_present_success))
7721
          return false;
7722
        if (this.success != that.success)
7723
          return false;
7724
      }
7725
 
7726
      boolean this_present_cex = true && this.isSetCex();
7727
      boolean that_present_cex = true && that.isSetCex();
7728
      if (this_present_cex || that_present_cex) {
7729
        if (!(this_present_cex && that_present_cex))
7730
          return false;
7731
        if (!this.cex.equals(that.cex))
7732
          return false;
7733
      }
7734
 
7735
      return true;
7736
    }
7737
 
7738
    @Override
7739
    public int hashCode() {
7740
      return 0;
7741
    }
7742
 
7743
    public int compareTo(addVendor_result other) {
7744
      if (!getClass().equals(other.getClass())) {
7745
        return getClass().getName().compareTo(other.getClass().getName());
7746
      }
7747
 
7748
      int lastComparison = 0;
7749
      addVendor_result typedOther = (addVendor_result)other;
7750
 
7751
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7752
      if (lastComparison != 0) {
7753
        return lastComparison;
7754
      }
7755
      if (isSetSuccess()) {
7756
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7757
        if (lastComparison != 0) {
7758
          return lastComparison;
7759
        }
7760
      }
7761
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7762
      if (lastComparison != 0) {
7763
        return lastComparison;
7764
      }
7765
      if (isSetCex()) {
7766
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7767
        if (lastComparison != 0) {
7768
          return lastComparison;
7769
        }
7770
      }
7771
      return 0;
7772
    }
7773
 
7774
    public _Fields fieldForId(int fieldId) {
7775
      return _Fields.findByThriftId(fieldId);
7776
    }
7777
 
7778
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7779
      org.apache.thrift.protocol.TField field;
7780
      iprot.readStructBegin();
7781
      while (true)
7782
      {
7783
        field = iprot.readFieldBegin();
7784
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7785
          break;
7786
        }
7787
        switch (field.id) {
7788
          case 0: // SUCCESS
7789
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7790
              this.success = iprot.readI64();
7791
              setSuccessIsSet(true);
7792
            } else { 
7793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7794
            }
7795
            break;
7796
          case 1: // CEX
7797
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7798
              this.cex = new InventoryServiceException();
7799
              this.cex.read(iprot);
7800
            } else { 
7801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7802
            }
7803
            break;
7804
          default:
7805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7806
        }
7807
        iprot.readFieldEnd();
7808
      }
7809
      iprot.readStructEnd();
7810
      validate();
7811
    }
7812
 
7813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7814
      oprot.writeStructBegin(STRUCT_DESC);
7815
 
7816
      if (this.isSetSuccess()) {
7817
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7818
        oprot.writeI64(this.success);
7819
        oprot.writeFieldEnd();
7820
      } else if (this.isSetCex()) {
7821
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7822
        this.cex.write(oprot);
7823
        oprot.writeFieldEnd();
7824
      }
7825
      oprot.writeFieldStop();
7826
      oprot.writeStructEnd();
7827
    }
7828
 
7829
    @Override
7830
    public String toString() {
7831
      StringBuilder sb = new StringBuilder("addVendor_result(");
7832
      boolean first = true;
7833
 
7834
      sb.append("success:");
7835
      sb.append(this.success);
7836
      first = false;
7837
      if (!first) sb.append(", ");
7838
      sb.append("cex:");
7839
      if (this.cex == null) {
7840
        sb.append("null");
7841
      } else {
7842
        sb.append(this.cex);
7843
      }
7844
      first = false;
7845
      sb.append(")");
7846
      return sb.toString();
7847
    }
7848
 
7849
    public void validate() throws org.apache.thrift.TException {
7850
      // check for required fields
7851
    }
7852
 
7853
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7854
      try {
7855
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7856
      } catch (org.apache.thrift.TException te) {
7857
        throw new java.io.IOException(te);
7858
      }
7859
    }
7860
 
7861
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7862
      try {
7863
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7864
      } catch (org.apache.thrift.TException te) {
7865
        throw new java.io.IOException(te);
7866
      }
7867
    }
7868
 
7869
  }
7870
 
7871
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
7872
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
7873
 
7874
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
7875
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2);
7876
    private static final org.apache.thrift.protocol.TField AVAILABILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availability", org.apache.thrift.protocol.TType.MAP, (short)3);
7877
 
7878
    private long warehouse_id; // required
7879
    private String timestamp; // required
7880
    private Map<String,Long> availability; // required
7881
 
7882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7884
      WAREHOUSE_ID((short)1, "warehouse_id"),
7885
      TIMESTAMP((short)2, "timestamp"),
7886
      AVAILABILITY((short)3, "availability");
7887
 
7888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7889
 
7890
      static {
7891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7892
          byName.put(field.getFieldName(), field);
7893
        }
7894
      }
7895
 
7896
      /**
7897
       * Find the _Fields constant that matches fieldId, or null if its not found.
7898
       */
7899
      public static _Fields findByThriftId(int fieldId) {
7900
        switch(fieldId) {
7901
          case 1: // WAREHOUSE_ID
7902
            return WAREHOUSE_ID;
7903
          case 2: // TIMESTAMP
7904
            return TIMESTAMP;
7905
          case 3: // AVAILABILITY
7906
            return AVAILABILITY;
7907
          default:
7908
            return null;
7909
        }
7910
      }
7911
 
7912
      /**
7913
       * Find the _Fields constant that matches fieldId, throwing an exception
7914
       * if it is not found.
7915
       */
7916
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7917
        _Fields fields = findByThriftId(fieldId);
7918
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7919
        return fields;
7920
      }
7921
 
7922
      /**
7923
       * Find the _Fields constant that matches name, or null if its not found.
7924
       */
7925
      public static _Fields findByName(String name) {
7926
        return byName.get(name);
7927
      }
7928
 
7929
      private final short _thriftId;
7930
      private final String _fieldName;
7931
 
7932
      _Fields(short thriftId, String fieldName) {
7933
        _thriftId = thriftId;
7934
        _fieldName = fieldName;
7935
      }
7936
 
7937
      public short getThriftFieldId() {
7938
        return _thriftId;
7939
      }
7940
 
7941
      public String getFieldName() {
7942
        return _fieldName;
7943
      }
7944
    }
7945
 
7946
    // isset id assignments
7947
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
7948
    private BitSet __isset_bit_vector = new BitSet(1);
7949
 
7950
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7951
    static {
7952
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7953
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7955
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7957
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7958
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
7959
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
7960
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
7961
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7962
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
7963
    }
7964
 
7965
    public updateInventoryHistory_args() {
7966
    }
7967
 
7968
    public updateInventoryHistory_args(
7969
      long warehouse_id,
7970
      String timestamp,
7971
      Map<String,Long> availability)
7972
    {
7973
      this();
7974
      this.warehouse_id = warehouse_id;
7975
      setWarehouse_idIsSet(true);
7976
      this.timestamp = timestamp;
7977
      this.availability = availability;
7978
    }
7979
 
7980
    /**
7981
     * Performs a deep copy on <i>other</i>.
7982
     */
7983
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
7984
      __isset_bit_vector.clear();
7985
      __isset_bit_vector.or(other.__isset_bit_vector);
7986
      this.warehouse_id = other.warehouse_id;
7987
      if (other.isSetTimestamp()) {
7988
        this.timestamp = other.timestamp;
7989
      }
7990
      if (other.isSetAvailability()) {
7991
        Map<String,Long> __this__availability = new HashMap<String,Long>();
7992
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
7993
 
7994
          String other_element_key = other_element.getKey();
7995
          Long other_element_value = other_element.getValue();
7996
 
7997
          String __this__availability_copy_key = other_element_key;
7998
 
7999
          Long __this__availability_copy_value = other_element_value;
8000
 
8001
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
8002
        }
8003
        this.availability = __this__availability;
8004
      }
8005
    }
8006
 
8007
    public updateInventoryHistory_args deepCopy() {
8008
      return new updateInventoryHistory_args(this);
8009
    }
8010
 
8011
    @Override
8012
    public void clear() {
8013
      setWarehouse_idIsSet(false);
8014
      this.warehouse_id = 0;
8015
      this.timestamp = null;
8016
      this.availability = null;
8017
    }
8018
 
8019
    public long getWarehouse_id() {
8020
      return this.warehouse_id;
8021
    }
8022
 
8023
    public void setWarehouse_id(long warehouse_id) {
8024
      this.warehouse_id = warehouse_id;
8025
      setWarehouse_idIsSet(true);
8026
    }
8027
 
8028
    public void unsetWarehouse_id() {
8029
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8030
    }
8031
 
8032
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8033
    public boolean isSetWarehouse_id() {
8034
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8035
    }
8036
 
8037
    public void setWarehouse_idIsSet(boolean value) {
8038
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8039
    }
8040
 
8041
    public String getTimestamp() {
8042
      return this.timestamp;
8043
    }
8044
 
8045
    public void setTimestamp(String timestamp) {
8046
      this.timestamp = timestamp;
8047
    }
8048
 
8049
    public void unsetTimestamp() {
8050
      this.timestamp = null;
8051
    }
8052
 
8053
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
8054
    public boolean isSetTimestamp() {
8055
      return this.timestamp != null;
8056
    }
8057
 
8058
    public void setTimestampIsSet(boolean value) {
8059
      if (!value) {
8060
        this.timestamp = null;
8061
      }
8062
    }
8063
 
8064
    public int getAvailabilitySize() {
8065
      return (this.availability == null) ? 0 : this.availability.size();
8066
    }
8067
 
8068
    public void putToAvailability(String key, long val) {
8069
      if (this.availability == null) {
8070
        this.availability = new HashMap<String,Long>();
8071
      }
8072
      this.availability.put(key, val);
8073
    }
8074
 
8075
    public Map<String,Long> getAvailability() {
8076
      return this.availability;
8077
    }
8078
 
8079
    public void setAvailability(Map<String,Long> availability) {
8080
      this.availability = availability;
8081
    }
8082
 
8083
    public void unsetAvailability() {
8084
      this.availability = null;
8085
    }
8086
 
8087
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
8088
    public boolean isSetAvailability() {
8089
      return this.availability != null;
8090
    }
8091
 
8092
    public void setAvailabilityIsSet(boolean value) {
8093
      if (!value) {
8094
        this.availability = null;
8095
      }
8096
    }
8097
 
8098
    public void setFieldValue(_Fields field, Object value) {
8099
      switch (field) {
8100
      case WAREHOUSE_ID:
8101
        if (value == null) {
8102
          unsetWarehouse_id();
8103
        } else {
8104
          setWarehouse_id((Long)value);
8105
        }
8106
        break;
8107
 
8108
      case TIMESTAMP:
8109
        if (value == null) {
8110
          unsetTimestamp();
8111
        } else {
8112
          setTimestamp((String)value);
8113
        }
8114
        break;
8115
 
8116
      case AVAILABILITY:
8117
        if (value == null) {
8118
          unsetAvailability();
8119
        } else {
8120
          setAvailability((Map<String,Long>)value);
8121
        }
8122
        break;
8123
 
8124
      }
8125
    }
8126
 
8127
    public Object getFieldValue(_Fields field) {
8128
      switch (field) {
8129
      case WAREHOUSE_ID:
8130
        return Long.valueOf(getWarehouse_id());
8131
 
8132
      case TIMESTAMP:
8133
        return getTimestamp();
8134
 
8135
      case AVAILABILITY:
8136
        return getAvailability();
8137
 
8138
      }
8139
      throw new IllegalStateException();
8140
    }
8141
 
8142
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8143
    public boolean isSet(_Fields field) {
8144
      if (field == null) {
8145
        throw new IllegalArgumentException();
8146
      }
8147
 
8148
      switch (field) {
8149
      case WAREHOUSE_ID:
8150
        return isSetWarehouse_id();
8151
      case TIMESTAMP:
8152
        return isSetTimestamp();
8153
      case AVAILABILITY:
8154
        return isSetAvailability();
8155
      }
8156
      throw new IllegalStateException();
8157
    }
8158
 
8159
    @Override
8160
    public boolean equals(Object that) {
8161
      if (that == null)
8162
        return false;
8163
      if (that instanceof updateInventoryHistory_args)
8164
        return this.equals((updateInventoryHistory_args)that);
8165
      return false;
8166
    }
8167
 
8168
    public boolean equals(updateInventoryHistory_args that) {
8169
      if (that == null)
8170
        return false;
8171
 
8172
      boolean this_present_warehouse_id = true;
8173
      boolean that_present_warehouse_id = true;
8174
      if (this_present_warehouse_id || that_present_warehouse_id) {
8175
        if (!(this_present_warehouse_id && that_present_warehouse_id))
8176
          return false;
8177
        if (this.warehouse_id != that.warehouse_id)
8178
          return false;
8179
      }
8180
 
8181
      boolean this_present_timestamp = true && this.isSetTimestamp();
8182
      boolean that_present_timestamp = true && that.isSetTimestamp();
8183
      if (this_present_timestamp || that_present_timestamp) {
8184
        if (!(this_present_timestamp && that_present_timestamp))
8185
          return false;
8186
        if (!this.timestamp.equals(that.timestamp))
8187
          return false;
8188
      }
8189
 
8190
      boolean this_present_availability = true && this.isSetAvailability();
8191
      boolean that_present_availability = true && that.isSetAvailability();
8192
      if (this_present_availability || that_present_availability) {
8193
        if (!(this_present_availability && that_present_availability))
8194
          return false;
8195
        if (!this.availability.equals(that.availability))
8196
          return false;
8197
      }
8198
 
8199
      return true;
8200
    }
8201
 
8202
    @Override
8203
    public int hashCode() {
8204
      return 0;
8205
    }
8206
 
8207
    public int compareTo(updateInventoryHistory_args other) {
8208
      if (!getClass().equals(other.getClass())) {
8209
        return getClass().getName().compareTo(other.getClass().getName());
8210
      }
8211
 
8212
      int lastComparison = 0;
8213
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
8214
 
8215
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
8216
      if (lastComparison != 0) {
8217
        return lastComparison;
8218
      }
8219
      if (isSetWarehouse_id()) {
8220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
8221
        if (lastComparison != 0) {
8222
          return lastComparison;
8223
        }
8224
      }
8225
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
8226
      if (lastComparison != 0) {
8227
        return lastComparison;
8228
      }
8229
      if (isSetTimestamp()) {
8230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
8231
        if (lastComparison != 0) {
8232
          return lastComparison;
8233
        }
8234
      }
8235
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
8236
      if (lastComparison != 0) {
8237
        return lastComparison;
8238
      }
8239
      if (isSetAvailability()) {
8240
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
8241
        if (lastComparison != 0) {
8242
          return lastComparison;
8243
        }
8244
      }
8245
      return 0;
8246
    }
8247
 
8248
    public _Fields fieldForId(int fieldId) {
8249
      return _Fields.findByThriftId(fieldId);
8250
    }
8251
 
8252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8253
      org.apache.thrift.protocol.TField field;
8254
      iprot.readStructBegin();
8255
      while (true)
8256
      {
8257
        field = iprot.readFieldBegin();
8258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8259
          break;
8260
        }
8261
        switch (field.id) {
8262
          case 1: // WAREHOUSE_ID
8263
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8264
              this.warehouse_id = iprot.readI64();
8265
              setWarehouse_idIsSet(true);
8266
            } else { 
8267
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8268
            }
8269
            break;
8270
          case 2: // TIMESTAMP
8271
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8272
              this.timestamp = iprot.readString();
8273
            } else { 
8274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8275
            }
8276
            break;
8277
          case 3: // AVAILABILITY
8278
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8279
              {
8182 amar.kumar 8280
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
8281
                this.availability = new HashMap<String,Long>(2*_map15.size);
8282
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
5945 mandeep.dh 8283
                {
8182 amar.kumar 8284
                  String _key17; // required
8285
                  long _val18; // required
8286
                  _key17 = iprot.readString();
8287
                  _val18 = iprot.readI64();
8288
                  this.availability.put(_key17, _val18);
5945 mandeep.dh 8289
                }
8290
                iprot.readMapEnd();
8291
              }
8292
            } else { 
8293
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8294
            }
8295
            break;
8296
          default:
8297
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8298
        }
8299
        iprot.readFieldEnd();
8300
      }
8301
      iprot.readStructEnd();
8302
      validate();
8303
    }
8304
 
8305
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8306
      validate();
8307
 
8308
      oprot.writeStructBegin(STRUCT_DESC);
8309
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8310
      oprot.writeI64(this.warehouse_id);
8311
      oprot.writeFieldEnd();
8312
      if (this.timestamp != null) {
8313
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
8314
        oprot.writeString(this.timestamp);
8315
        oprot.writeFieldEnd();
8316
      }
8317
      if (this.availability != null) {
8318
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
8319
        {
8320
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
8182 amar.kumar 8321
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
5945 mandeep.dh 8322
          {
8182 amar.kumar 8323
            oprot.writeString(_iter19.getKey());
8324
            oprot.writeI64(_iter19.getValue());
5945 mandeep.dh 8325
          }
8326
          oprot.writeMapEnd();
8327
        }
8328
        oprot.writeFieldEnd();
8329
      }
8330
      oprot.writeFieldStop();
8331
      oprot.writeStructEnd();
8332
    }
8333
 
8334
    @Override
8335
    public String toString() {
8336
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
8337
      boolean first = true;
8338
 
8339
      sb.append("warehouse_id:");
8340
      sb.append(this.warehouse_id);
8341
      first = false;
8342
      if (!first) sb.append(", ");
8343
      sb.append("timestamp:");
8344
      if (this.timestamp == null) {
8345
        sb.append("null");
8346
      } else {
8347
        sb.append(this.timestamp);
8348
      }
8349
      first = false;
8350
      if (!first) sb.append(", ");
8351
      sb.append("availability:");
8352
      if (this.availability == null) {
8353
        sb.append("null");
8354
      } else {
8355
        sb.append(this.availability);
8356
      }
8357
      first = false;
8358
      sb.append(")");
8359
      return sb.toString();
8360
    }
8361
 
8362
    public void validate() throws org.apache.thrift.TException {
8363
      // check for required fields
8364
    }
8365
 
8366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8367
      try {
8368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8369
      } catch (org.apache.thrift.TException te) {
8370
        throw new java.io.IOException(te);
8371
      }
8372
    }
8373
 
8374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8375
      try {
8376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8377
      } catch (org.apache.thrift.TException te) {
8378
        throw new java.io.IOException(te);
8379
      }
8380
    }
8381
 
8382
  }
8383
 
8384
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
8385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
8386
 
8387
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8388
 
8389
    private InventoryServiceException cex; // required
8390
 
8391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8393
      CEX((short)1, "cex");
8394
 
8395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8396
 
8397
      static {
8398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8399
          byName.put(field.getFieldName(), field);
8400
        }
8401
      }
8402
 
8403
      /**
8404
       * Find the _Fields constant that matches fieldId, or null if its not found.
8405
       */
8406
      public static _Fields findByThriftId(int fieldId) {
8407
        switch(fieldId) {
8408
          case 1: // CEX
8409
            return CEX;
8410
          default:
8411
            return null;
8412
        }
8413
      }
8414
 
8415
      /**
8416
       * Find the _Fields constant that matches fieldId, throwing an exception
8417
       * if it is not found.
8418
       */
8419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8420
        _Fields fields = findByThriftId(fieldId);
8421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8422
        return fields;
8423
      }
8424
 
8425
      /**
8426
       * Find the _Fields constant that matches name, or null if its not found.
8427
       */
8428
      public static _Fields findByName(String name) {
8429
        return byName.get(name);
8430
      }
8431
 
8432
      private final short _thriftId;
8433
      private final String _fieldName;
8434
 
8435
      _Fields(short thriftId, String fieldName) {
8436
        _thriftId = thriftId;
8437
        _fieldName = fieldName;
8438
      }
8439
 
8440
      public short getThriftFieldId() {
8441
        return _thriftId;
8442
      }
8443
 
8444
      public String getFieldName() {
8445
        return _fieldName;
8446
      }
8447
    }
8448
 
8449
    // isset id assignments
8450
 
8451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8452
    static {
8453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8454
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
8458
    }
8459
 
8460
    public updateInventoryHistory_result() {
8461
    }
8462
 
8463
    public updateInventoryHistory_result(
8464
      InventoryServiceException cex)
8465
    {
8466
      this();
8467
      this.cex = cex;
8468
    }
8469
 
8470
    /**
8471
     * Performs a deep copy on <i>other</i>.
8472
     */
8473
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
8474
      if (other.isSetCex()) {
8475
        this.cex = new InventoryServiceException(other.cex);
8476
      }
8477
    }
8478
 
8479
    public updateInventoryHistory_result deepCopy() {
8480
      return new updateInventoryHistory_result(this);
8481
    }
8482
 
8483
    @Override
8484
    public void clear() {
8485
      this.cex = null;
8486
    }
8487
 
8488
    public InventoryServiceException getCex() {
8489
      return this.cex;
8490
    }
8491
 
8492
    public void setCex(InventoryServiceException cex) {
8493
      this.cex = cex;
8494
    }
8495
 
8496
    public void unsetCex() {
8497
      this.cex = null;
8498
    }
8499
 
8500
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8501
    public boolean isSetCex() {
8502
      return this.cex != null;
8503
    }
8504
 
8505
    public void setCexIsSet(boolean value) {
8506
      if (!value) {
8507
        this.cex = null;
8508
      }
8509
    }
8510
 
8511
    public void setFieldValue(_Fields field, Object value) {
8512
      switch (field) {
8513
      case CEX:
8514
        if (value == null) {
8515
          unsetCex();
8516
        } else {
8517
          setCex((InventoryServiceException)value);
8518
        }
8519
        break;
8520
 
8521
      }
8522
    }
8523
 
8524
    public Object getFieldValue(_Fields field) {
8525
      switch (field) {
8526
      case CEX:
8527
        return getCex();
8528
 
8529
      }
8530
      throw new IllegalStateException();
8531
    }
8532
 
8533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8534
    public boolean isSet(_Fields field) {
8535
      if (field == null) {
8536
        throw new IllegalArgumentException();
8537
      }
8538
 
8539
      switch (field) {
8540
      case CEX:
8541
        return isSetCex();
8542
      }
8543
      throw new IllegalStateException();
8544
    }
8545
 
8546
    @Override
8547
    public boolean equals(Object that) {
8548
      if (that == null)
8549
        return false;
8550
      if (that instanceof updateInventoryHistory_result)
8551
        return this.equals((updateInventoryHistory_result)that);
8552
      return false;
8553
    }
8554
 
8555
    public boolean equals(updateInventoryHistory_result that) {
8556
      if (that == null)
8557
        return false;
8558
 
8559
      boolean this_present_cex = true && this.isSetCex();
8560
      boolean that_present_cex = true && that.isSetCex();
8561
      if (this_present_cex || that_present_cex) {
8562
        if (!(this_present_cex && that_present_cex))
8563
          return false;
8564
        if (!this.cex.equals(that.cex))
8565
          return false;
8566
      }
8567
 
8568
      return true;
8569
    }
8570
 
8571
    @Override
8572
    public int hashCode() {
8573
      return 0;
8574
    }
8575
 
8576
    public int compareTo(updateInventoryHistory_result other) {
8577
      if (!getClass().equals(other.getClass())) {
8578
        return getClass().getName().compareTo(other.getClass().getName());
8579
      }
8580
 
8581
      int lastComparison = 0;
8582
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
8583
 
8584
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8585
      if (lastComparison != 0) {
8586
        return lastComparison;
8587
      }
8588
      if (isSetCex()) {
8589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8590
        if (lastComparison != 0) {
8591
          return lastComparison;
8592
        }
8593
      }
8594
      return 0;
8595
    }
8596
 
8597
    public _Fields fieldForId(int fieldId) {
8598
      return _Fields.findByThriftId(fieldId);
8599
    }
8600
 
8601
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8602
      org.apache.thrift.protocol.TField field;
8603
      iprot.readStructBegin();
8604
      while (true)
8605
      {
8606
        field = iprot.readFieldBegin();
8607
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8608
          break;
8609
        }
8610
        switch (field.id) {
8611
          case 1: // CEX
8612
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8613
              this.cex = new InventoryServiceException();
8614
              this.cex.read(iprot);
8615
            } else { 
8616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8617
            }
8618
            break;
8619
          default:
8620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8621
        }
8622
        iprot.readFieldEnd();
8623
      }
8624
      iprot.readStructEnd();
8625
      validate();
8626
    }
8627
 
8628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8629
      oprot.writeStructBegin(STRUCT_DESC);
8630
 
8631
      if (this.isSetCex()) {
8632
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8633
        this.cex.write(oprot);
8634
        oprot.writeFieldEnd();
8635
      }
8636
      oprot.writeFieldStop();
8637
      oprot.writeStructEnd();
8638
    }
8639
 
8640
    @Override
8641
    public String toString() {
8642
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
8643
      boolean first = true;
8644
 
8645
      sb.append("cex:");
8646
      if (this.cex == null) {
8647
        sb.append("null");
8648
      } else {
8649
        sb.append(this.cex);
8650
      }
8651
      first = false;
8652
      sb.append(")");
8653
      return sb.toString();
8654
    }
8655
 
8656
    public void validate() throws org.apache.thrift.TException {
8657
      // check for required fields
8658
    }
8659
 
8660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8661
      try {
8662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8663
      } catch (org.apache.thrift.TException te) {
8664
        throw new java.io.IOException(te);
8665
      }
8666
    }
8667
 
8668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8669
      try {
8670
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8671
      } catch (org.apache.thrift.TException te) {
8672
        throw new java.io.IOException(te);
8673
      }
8674
    }
8675
 
8676
  }
8677
 
8678
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
8679
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
8680
 
8681
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
8682
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.STRING, (short)2);
8683
    private static final org.apache.thrift.protocol.TField AVAILABILITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availability", org.apache.thrift.protocol.TType.MAP, (short)3);
8684
 
8685
    private long warehouse_id; // required
8686
    private String timestamp; // required
8687
    private Map<String,Long> availability; // required
8688
 
8689
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8690
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8691
      WAREHOUSE_ID((short)1, "warehouse_id"),
8692
      TIMESTAMP((short)2, "timestamp"),
8693
      AVAILABILITY((short)3, "availability");
8694
 
8695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8696
 
8697
      static {
8698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8699
          byName.put(field.getFieldName(), field);
8700
        }
8701
      }
8702
 
8703
      /**
8704
       * Find the _Fields constant that matches fieldId, or null if its not found.
8705
       */
8706
      public static _Fields findByThriftId(int fieldId) {
8707
        switch(fieldId) {
8708
          case 1: // WAREHOUSE_ID
8709
            return WAREHOUSE_ID;
8710
          case 2: // TIMESTAMP
8711
            return TIMESTAMP;
8712
          case 3: // AVAILABILITY
8713
            return AVAILABILITY;
8714
          default:
8715
            return null;
8716
        }
8717
      }
8718
 
8719
      /**
8720
       * Find the _Fields constant that matches fieldId, throwing an exception
8721
       * if it is not found.
8722
       */
8723
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8724
        _Fields fields = findByThriftId(fieldId);
8725
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8726
        return fields;
8727
      }
8728
 
8729
      /**
8730
       * Find the _Fields constant that matches name, or null if its not found.
8731
       */
8732
      public static _Fields findByName(String name) {
8733
        return byName.get(name);
8734
      }
8735
 
8736
      private final short _thriftId;
8737
      private final String _fieldName;
8738
 
8739
      _Fields(short thriftId, String fieldName) {
8740
        _thriftId = thriftId;
8741
        _fieldName = fieldName;
8742
      }
8743
 
8744
      public short getThriftFieldId() {
8745
        return _thriftId;
8746
      }
8747
 
8748
      public String getFieldName() {
8749
        return _fieldName;
8750
      }
8751
    }
8752
 
8753
    // isset id assignments
8754
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8755
    private BitSet __isset_bit_vector = new BitSet(1);
8756
 
8757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8758
    static {
8759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8760
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8762
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8764
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8765
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8766
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8767
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
8768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
8770
    }
8771
 
8772
    public updateInventory_args() {
8773
    }
8774
 
8775
    public updateInventory_args(
8776
      long warehouse_id,
8777
      String timestamp,
8778
      Map<String,Long> availability)
8779
    {
8780
      this();
8781
      this.warehouse_id = warehouse_id;
8782
      setWarehouse_idIsSet(true);
8783
      this.timestamp = timestamp;
8784
      this.availability = availability;
8785
    }
8786
 
8787
    /**
8788
     * Performs a deep copy on <i>other</i>.
8789
     */
8790
    public updateInventory_args(updateInventory_args other) {
8791
      __isset_bit_vector.clear();
8792
      __isset_bit_vector.or(other.__isset_bit_vector);
8793
      this.warehouse_id = other.warehouse_id;
8794
      if (other.isSetTimestamp()) {
8795
        this.timestamp = other.timestamp;
8796
      }
8797
      if (other.isSetAvailability()) {
8798
        Map<String,Long> __this__availability = new HashMap<String,Long>();
8799
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
8800
 
8801
          String other_element_key = other_element.getKey();
8802
          Long other_element_value = other_element.getValue();
8803
 
8804
          String __this__availability_copy_key = other_element_key;
8805
 
8806
          Long __this__availability_copy_value = other_element_value;
8807
 
8808
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
8809
        }
8810
        this.availability = __this__availability;
8811
      }
8812
    }
8813
 
8814
    public updateInventory_args deepCopy() {
8815
      return new updateInventory_args(this);
8816
    }
8817
 
8818
    @Override
8819
    public void clear() {
8820
      setWarehouse_idIsSet(false);
8821
      this.warehouse_id = 0;
8822
      this.timestamp = null;
8823
      this.availability = null;
8824
    }
8825
 
8826
    public long getWarehouse_id() {
8827
      return this.warehouse_id;
8828
    }
8829
 
8830
    public void setWarehouse_id(long warehouse_id) {
8831
      this.warehouse_id = warehouse_id;
8832
      setWarehouse_idIsSet(true);
8833
    }
8834
 
8835
    public void unsetWarehouse_id() {
8836
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8837
    }
8838
 
8839
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8840
    public boolean isSetWarehouse_id() {
8841
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8842
    }
8843
 
8844
    public void setWarehouse_idIsSet(boolean value) {
8845
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8846
    }
8847
 
8848
    public String getTimestamp() {
8849
      return this.timestamp;
8850
    }
8851
 
8852
    public void setTimestamp(String timestamp) {
8853
      this.timestamp = timestamp;
8854
    }
8855
 
8856
    public void unsetTimestamp() {
8857
      this.timestamp = null;
8858
    }
8859
 
8860
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
8861
    public boolean isSetTimestamp() {
8862
      return this.timestamp != null;
8863
    }
8864
 
8865
    public void setTimestampIsSet(boolean value) {
8866
      if (!value) {
8867
        this.timestamp = null;
8868
      }
8869
    }
8870
 
8871
    public int getAvailabilitySize() {
8872
      return (this.availability == null) ? 0 : this.availability.size();
8873
    }
8874
 
8875
    public void putToAvailability(String key, long val) {
8876
      if (this.availability == null) {
8877
        this.availability = new HashMap<String,Long>();
8878
      }
8879
      this.availability.put(key, val);
8880
    }
8881
 
8882
    public Map<String,Long> getAvailability() {
8883
      return this.availability;
8884
    }
8885
 
8886
    public void setAvailability(Map<String,Long> availability) {
8887
      this.availability = availability;
8888
    }
8889
 
8890
    public void unsetAvailability() {
8891
      this.availability = null;
8892
    }
8893
 
8894
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
8895
    public boolean isSetAvailability() {
8896
      return this.availability != null;
8897
    }
8898
 
8899
    public void setAvailabilityIsSet(boolean value) {
8900
      if (!value) {
8901
        this.availability = null;
8902
      }
8903
    }
8904
 
8905
    public void setFieldValue(_Fields field, Object value) {
8906
      switch (field) {
8907
      case WAREHOUSE_ID:
8908
        if (value == null) {
8909
          unsetWarehouse_id();
8910
        } else {
8911
          setWarehouse_id((Long)value);
8912
        }
8913
        break;
8914
 
8915
      case TIMESTAMP:
8916
        if (value == null) {
8917
          unsetTimestamp();
8918
        } else {
8919
          setTimestamp((String)value);
8920
        }
8921
        break;
8922
 
8923
      case AVAILABILITY:
8924
        if (value == null) {
8925
          unsetAvailability();
8926
        } else {
8927
          setAvailability((Map<String,Long>)value);
8928
        }
8929
        break;
8930
 
8931
      }
8932
    }
8933
 
8934
    public Object getFieldValue(_Fields field) {
8935
      switch (field) {
8936
      case WAREHOUSE_ID:
8937
        return Long.valueOf(getWarehouse_id());
8938
 
8939
      case TIMESTAMP:
8940
        return getTimestamp();
8941
 
8942
      case AVAILABILITY:
8943
        return getAvailability();
8944
 
8945
      }
8946
      throw new IllegalStateException();
8947
    }
8948
 
8949
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8950
    public boolean isSet(_Fields field) {
8951
      if (field == null) {
8952
        throw new IllegalArgumentException();
8953
      }
8954
 
8955
      switch (field) {
8956
      case WAREHOUSE_ID:
8957
        return isSetWarehouse_id();
8958
      case TIMESTAMP:
8959
        return isSetTimestamp();
8960
      case AVAILABILITY:
8961
        return isSetAvailability();
8962
      }
8963
      throw new IllegalStateException();
8964
    }
8965
 
8966
    @Override
8967
    public boolean equals(Object that) {
8968
      if (that == null)
8969
        return false;
8970
      if (that instanceof updateInventory_args)
8971
        return this.equals((updateInventory_args)that);
8972
      return false;
8973
    }
8974
 
8975
    public boolean equals(updateInventory_args that) {
8976
      if (that == null)
8977
        return false;
8978
 
8979
      boolean this_present_warehouse_id = true;
8980
      boolean that_present_warehouse_id = true;
8981
      if (this_present_warehouse_id || that_present_warehouse_id) {
8982
        if (!(this_present_warehouse_id && that_present_warehouse_id))
8983
          return false;
8984
        if (this.warehouse_id != that.warehouse_id)
8985
          return false;
8986
      }
8987
 
8988
      boolean this_present_timestamp = true && this.isSetTimestamp();
8989
      boolean that_present_timestamp = true && that.isSetTimestamp();
8990
      if (this_present_timestamp || that_present_timestamp) {
8991
        if (!(this_present_timestamp && that_present_timestamp))
8992
          return false;
8993
        if (!this.timestamp.equals(that.timestamp))
8994
          return false;
8995
      }
8996
 
8997
      boolean this_present_availability = true && this.isSetAvailability();
8998
      boolean that_present_availability = true && that.isSetAvailability();
8999
      if (this_present_availability || that_present_availability) {
9000
        if (!(this_present_availability && that_present_availability))
9001
          return false;
9002
        if (!this.availability.equals(that.availability))
9003
          return false;
9004
      }
9005
 
9006
      return true;
9007
    }
9008
 
9009
    @Override
9010
    public int hashCode() {
9011
      return 0;
9012
    }
9013
 
9014
    public int compareTo(updateInventory_args other) {
9015
      if (!getClass().equals(other.getClass())) {
9016
        return getClass().getName().compareTo(other.getClass().getName());
9017
      }
9018
 
9019
      int lastComparison = 0;
9020
      updateInventory_args typedOther = (updateInventory_args)other;
9021
 
9022
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
9023
      if (lastComparison != 0) {
9024
        return lastComparison;
9025
      }
9026
      if (isSetWarehouse_id()) {
9027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
9028
        if (lastComparison != 0) {
9029
          return lastComparison;
9030
        }
9031
      }
9032
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
9033
      if (lastComparison != 0) {
9034
        return lastComparison;
9035
      }
9036
      if (isSetTimestamp()) {
9037
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
9038
        if (lastComparison != 0) {
9039
          return lastComparison;
9040
        }
9041
      }
9042
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
9043
      if (lastComparison != 0) {
9044
        return lastComparison;
9045
      }
9046
      if (isSetAvailability()) {
9047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
9048
        if (lastComparison != 0) {
9049
          return lastComparison;
9050
        }
9051
      }
9052
      return 0;
9053
    }
9054
 
9055
    public _Fields fieldForId(int fieldId) {
9056
      return _Fields.findByThriftId(fieldId);
9057
    }
9058
 
9059
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9060
      org.apache.thrift.protocol.TField field;
9061
      iprot.readStructBegin();
9062
      while (true)
9063
      {
9064
        field = iprot.readFieldBegin();
9065
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9066
          break;
9067
        }
9068
        switch (field.id) {
9069
          case 1: // WAREHOUSE_ID
9070
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9071
              this.warehouse_id = iprot.readI64();
9072
              setWarehouse_idIsSet(true);
9073
            } else { 
9074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9075
            }
9076
            break;
9077
          case 2: // TIMESTAMP
9078
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9079
              this.timestamp = iprot.readString();
9080
            } else { 
9081
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9082
            }
9083
            break;
9084
          case 3: // AVAILABILITY
9085
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9086
              {
8182 amar.kumar 9087
                org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin();
9088
                this.availability = new HashMap<String,Long>(2*_map20.size);
9089
                for (int _i21 = 0; _i21 < _map20.size; ++_i21)
5945 mandeep.dh 9090
                {
8182 amar.kumar 9091
                  String _key22; // required
9092
                  long _val23; // required
9093
                  _key22 = iprot.readString();
9094
                  _val23 = iprot.readI64();
9095
                  this.availability.put(_key22, _val23);
5945 mandeep.dh 9096
                }
9097
                iprot.readMapEnd();
9098
              }
9099
            } else { 
9100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9101
            }
9102
            break;
9103
          default:
9104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9105
        }
9106
        iprot.readFieldEnd();
9107
      }
9108
      iprot.readStructEnd();
9109
      validate();
9110
    }
9111
 
9112
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9113
      validate();
9114
 
9115
      oprot.writeStructBegin(STRUCT_DESC);
9116
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9117
      oprot.writeI64(this.warehouse_id);
9118
      oprot.writeFieldEnd();
9119
      if (this.timestamp != null) {
9120
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
9121
        oprot.writeString(this.timestamp);
9122
        oprot.writeFieldEnd();
9123
      }
9124
      if (this.availability != null) {
9125
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
9126
        {
9127
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
8182 amar.kumar 9128
          for (Map.Entry<String, Long> _iter24 : this.availability.entrySet())
5945 mandeep.dh 9129
          {
8182 amar.kumar 9130
            oprot.writeString(_iter24.getKey());
9131
            oprot.writeI64(_iter24.getValue());
5945 mandeep.dh 9132
          }
9133
          oprot.writeMapEnd();
9134
        }
9135
        oprot.writeFieldEnd();
9136
      }
9137
      oprot.writeFieldStop();
9138
      oprot.writeStructEnd();
9139
    }
9140
 
9141
    @Override
9142
    public String toString() {
9143
      StringBuilder sb = new StringBuilder("updateInventory_args(");
9144
      boolean first = true;
9145
 
9146
      sb.append("warehouse_id:");
9147
      sb.append(this.warehouse_id);
9148
      first = false;
9149
      if (!first) sb.append(", ");
9150
      sb.append("timestamp:");
9151
      if (this.timestamp == null) {
9152
        sb.append("null");
9153
      } else {
9154
        sb.append(this.timestamp);
9155
      }
9156
      first = false;
9157
      if (!first) sb.append(", ");
9158
      sb.append("availability:");
9159
      if (this.availability == null) {
9160
        sb.append("null");
9161
      } else {
9162
        sb.append(this.availability);
9163
      }
9164
      first = false;
9165
      sb.append(")");
9166
      return sb.toString();
9167
    }
9168
 
9169
    public void validate() throws org.apache.thrift.TException {
9170
      // check for required fields
9171
    }
9172
 
9173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9174
      try {
9175
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9176
      } catch (org.apache.thrift.TException te) {
9177
        throw new java.io.IOException(te);
9178
      }
9179
    }
9180
 
9181
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9182
      try {
9183
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9184
        __isset_bit_vector = new BitSet(1);
9185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9186
      } catch (org.apache.thrift.TException te) {
9187
        throw new java.io.IOException(te);
9188
      }
9189
    }
9190
 
9191
  }
9192
 
9193
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
9194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
9195
 
9196
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9197
 
9198
    private InventoryServiceException cex; // required
9199
 
9200
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9201
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9202
      CEX((short)1, "cex");
9203
 
9204
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9205
 
9206
      static {
9207
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9208
          byName.put(field.getFieldName(), field);
9209
        }
9210
      }
9211
 
9212
      /**
9213
       * Find the _Fields constant that matches fieldId, or null if its not found.
9214
       */
9215
      public static _Fields findByThriftId(int fieldId) {
9216
        switch(fieldId) {
9217
          case 1: // CEX
9218
            return CEX;
9219
          default:
9220
            return null;
9221
        }
9222
      }
9223
 
9224
      /**
9225
       * Find the _Fields constant that matches fieldId, throwing an exception
9226
       * if it is not found.
9227
       */
9228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9229
        _Fields fields = findByThriftId(fieldId);
9230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9231
        return fields;
9232
      }
9233
 
9234
      /**
9235
       * Find the _Fields constant that matches name, or null if its not found.
9236
       */
9237
      public static _Fields findByName(String name) {
9238
        return byName.get(name);
9239
      }
9240
 
9241
      private final short _thriftId;
9242
      private final String _fieldName;
9243
 
9244
      _Fields(short thriftId, String fieldName) {
9245
        _thriftId = thriftId;
9246
        _fieldName = fieldName;
9247
      }
9248
 
9249
      public short getThriftFieldId() {
9250
        return _thriftId;
9251
      }
9252
 
9253
      public String getFieldName() {
9254
        return _fieldName;
9255
      }
9256
    }
9257
 
9258
    // isset id assignments
9259
 
9260
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9261
    static {
9262
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9263
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9264
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9265
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9266
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
9267
    }
9268
 
9269
    public updateInventory_result() {
9270
    }
9271
 
9272
    public updateInventory_result(
9273
      InventoryServiceException cex)
9274
    {
9275
      this();
9276
      this.cex = cex;
9277
    }
9278
 
9279
    /**
9280
     * Performs a deep copy on <i>other</i>.
9281
     */
9282
    public updateInventory_result(updateInventory_result other) {
9283
      if (other.isSetCex()) {
9284
        this.cex = new InventoryServiceException(other.cex);
9285
      }
9286
    }
9287
 
9288
    public updateInventory_result deepCopy() {
9289
      return new updateInventory_result(this);
9290
    }
9291
 
9292
    @Override
9293
    public void clear() {
9294
      this.cex = null;
9295
    }
9296
 
9297
    public InventoryServiceException getCex() {
9298
      return this.cex;
9299
    }
9300
 
9301
    public void setCex(InventoryServiceException cex) {
9302
      this.cex = cex;
9303
    }
9304
 
9305
    public void unsetCex() {
9306
      this.cex = null;
9307
    }
9308
 
9309
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9310
    public boolean isSetCex() {
9311
      return this.cex != null;
9312
    }
9313
 
9314
    public void setCexIsSet(boolean value) {
9315
      if (!value) {
9316
        this.cex = null;
9317
      }
9318
    }
9319
 
9320
    public void setFieldValue(_Fields field, Object value) {
9321
      switch (field) {
9322
      case CEX:
9323
        if (value == null) {
9324
          unsetCex();
9325
        } else {
9326
          setCex((InventoryServiceException)value);
9327
        }
9328
        break;
9329
 
9330
      }
9331
    }
9332
 
9333
    public Object getFieldValue(_Fields field) {
9334
      switch (field) {
9335
      case CEX:
9336
        return getCex();
9337
 
9338
      }
9339
      throw new IllegalStateException();
9340
    }
9341
 
9342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9343
    public boolean isSet(_Fields field) {
9344
      if (field == null) {
9345
        throw new IllegalArgumentException();
9346
      }
9347
 
9348
      switch (field) {
9349
      case CEX:
9350
        return isSetCex();
9351
      }
9352
      throw new IllegalStateException();
9353
    }
9354
 
9355
    @Override
9356
    public boolean equals(Object that) {
9357
      if (that == null)
9358
        return false;
9359
      if (that instanceof updateInventory_result)
9360
        return this.equals((updateInventory_result)that);
9361
      return false;
9362
    }
9363
 
9364
    public boolean equals(updateInventory_result that) {
9365
      if (that == null)
9366
        return false;
9367
 
9368
      boolean this_present_cex = true && this.isSetCex();
9369
      boolean that_present_cex = true && that.isSetCex();
9370
      if (this_present_cex || that_present_cex) {
9371
        if (!(this_present_cex && that_present_cex))
9372
          return false;
9373
        if (!this.cex.equals(that.cex))
9374
          return false;
9375
      }
9376
 
9377
      return true;
9378
    }
9379
 
9380
    @Override
9381
    public int hashCode() {
9382
      return 0;
9383
    }
9384
 
9385
    public int compareTo(updateInventory_result other) {
9386
      if (!getClass().equals(other.getClass())) {
9387
        return getClass().getName().compareTo(other.getClass().getName());
9388
      }
9389
 
9390
      int lastComparison = 0;
9391
      updateInventory_result typedOther = (updateInventory_result)other;
9392
 
9393
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9394
      if (lastComparison != 0) {
9395
        return lastComparison;
9396
      }
9397
      if (isSetCex()) {
9398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9399
        if (lastComparison != 0) {
9400
          return lastComparison;
9401
        }
9402
      }
9403
      return 0;
9404
    }
9405
 
9406
    public _Fields fieldForId(int fieldId) {
9407
      return _Fields.findByThriftId(fieldId);
9408
    }
9409
 
9410
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9411
      org.apache.thrift.protocol.TField field;
9412
      iprot.readStructBegin();
9413
      while (true)
9414
      {
9415
        field = iprot.readFieldBegin();
9416
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9417
          break;
9418
        }
9419
        switch (field.id) {
9420
          case 1: // CEX
9421
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9422
              this.cex = new InventoryServiceException();
9423
              this.cex.read(iprot);
9424
            } else { 
9425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9426
            }
9427
            break;
9428
          default:
9429
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9430
        }
9431
        iprot.readFieldEnd();
9432
      }
9433
      iprot.readStructEnd();
9434
      validate();
9435
    }
9436
 
9437
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9438
      oprot.writeStructBegin(STRUCT_DESC);
9439
 
9440
      if (this.isSetCex()) {
9441
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9442
        this.cex.write(oprot);
9443
        oprot.writeFieldEnd();
9444
      }
9445
      oprot.writeFieldStop();
9446
      oprot.writeStructEnd();
9447
    }
9448
 
9449
    @Override
9450
    public String toString() {
9451
      StringBuilder sb = new StringBuilder("updateInventory_result(");
9452
      boolean first = true;
9453
 
9454
      sb.append("cex:");
9455
      if (this.cex == null) {
9456
        sb.append("null");
9457
      } else {
9458
        sb.append(this.cex);
9459
      }
9460
      first = false;
9461
      sb.append(")");
9462
      return sb.toString();
9463
    }
9464
 
9465
    public void validate() throws org.apache.thrift.TException {
9466
      // check for required fields
9467
    }
9468
 
9469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9470
      try {
9471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9472
      } catch (org.apache.thrift.TException te) {
9473
        throw new java.io.IOException(te);
9474
      }
9475
    }
9476
 
9477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9478
      try {
9479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9480
      } catch (org.apache.thrift.TException te) {
9481
        throw new java.io.IOException(te);
9482
      }
9483
    }
9484
 
9485
  }
9486
 
9487
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
9488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
9489
 
9490
    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);
9491
    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)2);
9492
    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);
9493
 
9494
    private long itemId; // required
9495
    private long warehouseId; // required
9496
    private long quantity; // required
9497
 
9498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9500
      ITEM_ID((short)1, "itemId"),
9501
      WAREHOUSE_ID((short)2, "warehouseId"),
9502
      QUANTITY((short)3, "quantity");
9503
 
9504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9505
 
9506
      static {
9507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9508
          byName.put(field.getFieldName(), field);
9509
        }
9510
      }
9511
 
9512
      /**
9513
       * Find the _Fields constant that matches fieldId, or null if its not found.
9514
       */
9515
      public static _Fields findByThriftId(int fieldId) {
9516
        switch(fieldId) {
9517
          case 1: // ITEM_ID
9518
            return ITEM_ID;
9519
          case 2: // WAREHOUSE_ID
9520
            return WAREHOUSE_ID;
9521
          case 3: // QUANTITY
9522
            return QUANTITY;
9523
          default:
9524
            return null;
9525
        }
9526
      }
9527
 
9528
      /**
9529
       * Find the _Fields constant that matches fieldId, throwing an exception
9530
       * if it is not found.
9531
       */
9532
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9533
        _Fields fields = findByThriftId(fieldId);
9534
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9535
        return fields;
9536
      }
9537
 
9538
      /**
9539
       * Find the _Fields constant that matches name, or null if its not found.
9540
       */
9541
      public static _Fields findByName(String name) {
9542
        return byName.get(name);
9543
      }
9544
 
9545
      private final short _thriftId;
9546
      private final String _fieldName;
9547
 
9548
      _Fields(short thriftId, String fieldName) {
9549
        _thriftId = thriftId;
9550
        _fieldName = fieldName;
9551
      }
9552
 
9553
      public short getThriftFieldId() {
9554
        return _thriftId;
9555
      }
9556
 
9557
      public String getFieldName() {
9558
        return _fieldName;
9559
      }
9560
    }
9561
 
9562
    // isset id assignments
9563
    private static final int __ITEMID_ISSET_ID = 0;
9564
    private static final int __WAREHOUSEID_ISSET_ID = 1;
9565
    private static final int __QUANTITY_ISSET_ID = 2;
9566
    private BitSet __isset_bit_vector = new BitSet(3);
9567
 
9568
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9569
    static {
9570
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9571
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9573
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9575
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9577
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9578
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
9579
    }
9580
 
9581
    public addInventory_args() {
9582
    }
9583
 
9584
    public addInventory_args(
9585
      long itemId,
9586
      long warehouseId,
9587
      long quantity)
9588
    {
9589
      this();
9590
      this.itemId = itemId;
9591
      setItemIdIsSet(true);
9592
      this.warehouseId = warehouseId;
9593
      setWarehouseIdIsSet(true);
9594
      this.quantity = quantity;
9595
      setQuantityIsSet(true);
9596
    }
9597
 
9598
    /**
9599
     * Performs a deep copy on <i>other</i>.
9600
     */
9601
    public addInventory_args(addInventory_args other) {
9602
      __isset_bit_vector.clear();
9603
      __isset_bit_vector.or(other.__isset_bit_vector);
9604
      this.itemId = other.itemId;
9605
      this.warehouseId = other.warehouseId;
9606
      this.quantity = other.quantity;
9607
    }
9608
 
9609
    public addInventory_args deepCopy() {
9610
      return new addInventory_args(this);
9611
    }
9612
 
9613
    @Override
9614
    public void clear() {
9615
      setItemIdIsSet(false);
9616
      this.itemId = 0;
9617
      setWarehouseIdIsSet(false);
9618
      this.warehouseId = 0;
9619
      setQuantityIsSet(false);
9620
      this.quantity = 0;
9621
    }
9622
 
9623
    public long getItemId() {
9624
      return this.itemId;
9625
    }
9626
 
9627
    public void setItemId(long itemId) {
9628
      this.itemId = itemId;
9629
      setItemIdIsSet(true);
9630
    }
9631
 
9632
    public void unsetItemId() {
9633
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9634
    }
9635
 
9636
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9637
    public boolean isSetItemId() {
9638
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9639
    }
9640
 
9641
    public void setItemIdIsSet(boolean value) {
9642
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9643
    }
9644
 
9645
    public long getWarehouseId() {
9646
      return this.warehouseId;
9647
    }
9648
 
9649
    public void setWarehouseId(long warehouseId) {
9650
      this.warehouseId = warehouseId;
9651
      setWarehouseIdIsSet(true);
9652
    }
9653
 
9654
    public void unsetWarehouseId() {
9655
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9656
    }
9657
 
9658
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
9659
    public boolean isSetWarehouseId() {
9660
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9661
    }
9662
 
9663
    public void setWarehouseIdIsSet(boolean value) {
9664
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9665
    }
9666
 
9667
    public long getQuantity() {
9668
      return this.quantity;
9669
    }
9670
 
9671
    public void setQuantity(long quantity) {
9672
      this.quantity = quantity;
9673
      setQuantityIsSet(true);
9674
    }
9675
 
9676
    public void unsetQuantity() {
9677
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
9678
    }
9679
 
9680
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
9681
    public boolean isSetQuantity() {
9682
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
9683
    }
9684
 
9685
    public void setQuantityIsSet(boolean value) {
9686
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
9687
    }
9688
 
9689
    public void setFieldValue(_Fields field, Object value) {
9690
      switch (field) {
9691
      case ITEM_ID:
9692
        if (value == null) {
9693
          unsetItemId();
9694
        } else {
9695
          setItemId((Long)value);
9696
        }
9697
        break;
9698
 
9699
      case WAREHOUSE_ID:
9700
        if (value == null) {
9701
          unsetWarehouseId();
9702
        } else {
9703
          setWarehouseId((Long)value);
9704
        }
9705
        break;
9706
 
9707
      case QUANTITY:
9708
        if (value == null) {
9709
          unsetQuantity();
9710
        } else {
9711
          setQuantity((Long)value);
9712
        }
9713
        break;
9714
 
9715
      }
9716
    }
9717
 
9718
    public Object getFieldValue(_Fields field) {
9719
      switch (field) {
9720
      case ITEM_ID:
9721
        return Long.valueOf(getItemId());
9722
 
9723
      case WAREHOUSE_ID:
9724
        return Long.valueOf(getWarehouseId());
9725
 
9726
      case QUANTITY:
9727
        return Long.valueOf(getQuantity());
9728
 
9729
      }
9730
      throw new IllegalStateException();
9731
    }
9732
 
9733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9734
    public boolean isSet(_Fields field) {
9735
      if (field == null) {
9736
        throw new IllegalArgumentException();
9737
      }
9738
 
9739
      switch (field) {
9740
      case ITEM_ID:
9741
        return isSetItemId();
9742
      case WAREHOUSE_ID:
9743
        return isSetWarehouseId();
9744
      case QUANTITY:
9745
        return isSetQuantity();
9746
      }
9747
      throw new IllegalStateException();
9748
    }
9749
 
9750
    @Override
9751
    public boolean equals(Object that) {
9752
      if (that == null)
9753
        return false;
9754
      if (that instanceof addInventory_args)
9755
        return this.equals((addInventory_args)that);
9756
      return false;
9757
    }
9758
 
9759
    public boolean equals(addInventory_args that) {
9760
      if (that == null)
9761
        return false;
9762
 
9763
      boolean this_present_itemId = true;
9764
      boolean that_present_itemId = true;
9765
      if (this_present_itemId || that_present_itemId) {
9766
        if (!(this_present_itemId && that_present_itemId))
9767
          return false;
9768
        if (this.itemId != that.itemId)
9769
          return false;
9770
      }
9771
 
9772
      boolean this_present_warehouseId = true;
9773
      boolean that_present_warehouseId = true;
9774
      if (this_present_warehouseId || that_present_warehouseId) {
9775
        if (!(this_present_warehouseId && that_present_warehouseId))
9776
          return false;
9777
        if (this.warehouseId != that.warehouseId)
9778
          return false;
9779
      }
9780
 
9781
      boolean this_present_quantity = true;
9782
      boolean that_present_quantity = true;
9783
      if (this_present_quantity || that_present_quantity) {
9784
        if (!(this_present_quantity && that_present_quantity))
9785
          return false;
9786
        if (this.quantity != that.quantity)
9787
          return false;
9788
      }
9789
 
9790
      return true;
9791
    }
9792
 
9793
    @Override
9794
    public int hashCode() {
9795
      return 0;
9796
    }
9797
 
9798
    public int compareTo(addInventory_args other) {
9799
      if (!getClass().equals(other.getClass())) {
9800
        return getClass().getName().compareTo(other.getClass().getName());
9801
      }
9802
 
9803
      int lastComparison = 0;
9804
      addInventory_args typedOther = (addInventory_args)other;
9805
 
9806
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9807
      if (lastComparison != 0) {
9808
        return lastComparison;
9809
      }
9810
      if (isSetItemId()) {
9811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9812
        if (lastComparison != 0) {
9813
          return lastComparison;
9814
        }
9815
      }
9816
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
9817
      if (lastComparison != 0) {
9818
        return lastComparison;
9819
      }
9820
      if (isSetWarehouseId()) {
9821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9822
        if (lastComparison != 0) {
9823
          return lastComparison;
9824
        }
9825
      }
9826
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
9827
      if (lastComparison != 0) {
9828
        return lastComparison;
9829
      }
9830
      if (isSetQuantity()) {
9831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
9832
        if (lastComparison != 0) {
9833
          return lastComparison;
9834
        }
9835
      }
9836
      return 0;
9837
    }
9838
 
9839
    public _Fields fieldForId(int fieldId) {
9840
      return _Fields.findByThriftId(fieldId);
9841
    }
9842
 
9843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9844
      org.apache.thrift.protocol.TField field;
9845
      iprot.readStructBegin();
9846
      while (true)
9847
      {
9848
        field = iprot.readFieldBegin();
9849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9850
          break;
9851
        }
9852
        switch (field.id) {
9853
          case 1: // ITEM_ID
9854
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9855
              this.itemId = iprot.readI64();
9856
              setItemIdIsSet(true);
9857
            } else { 
9858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9859
            }
9860
            break;
9861
          case 2: // WAREHOUSE_ID
9862
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9863
              this.warehouseId = iprot.readI64();
9864
              setWarehouseIdIsSet(true);
9865
            } else { 
9866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9867
            }
9868
            break;
9869
          case 3: // QUANTITY
9870
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9871
              this.quantity = iprot.readI64();
9872
              setQuantityIsSet(true);
9873
            } else { 
9874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9875
            }
9876
            break;
9877
          default:
9878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9879
        }
9880
        iprot.readFieldEnd();
9881
      }
9882
      iprot.readStructEnd();
9883
      validate();
9884
    }
9885
 
9886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9887
      validate();
9888
 
9889
      oprot.writeStructBegin(STRUCT_DESC);
9890
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9891
      oprot.writeI64(this.itemId);
9892
      oprot.writeFieldEnd();
9893
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9894
      oprot.writeI64(this.warehouseId);
9895
      oprot.writeFieldEnd();
9896
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
9897
      oprot.writeI64(this.quantity);
9898
      oprot.writeFieldEnd();
9899
      oprot.writeFieldStop();
9900
      oprot.writeStructEnd();
9901
    }
9902
 
9903
    @Override
9904
    public String toString() {
9905
      StringBuilder sb = new StringBuilder("addInventory_args(");
9906
      boolean first = true;
9907
 
9908
      sb.append("itemId:");
9909
      sb.append(this.itemId);
9910
      first = false;
9911
      if (!first) sb.append(", ");
9912
      sb.append("warehouseId:");
9913
      sb.append(this.warehouseId);
9914
      first = false;
9915
      if (!first) sb.append(", ");
9916
      sb.append("quantity:");
9917
      sb.append(this.quantity);
9918
      first = false;
9919
      sb.append(")");
9920
      return sb.toString();
9921
    }
9922
 
9923
    public void validate() throws org.apache.thrift.TException {
9924
      // check for required fields
9925
    }
9926
 
9927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9928
      try {
9929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9930
      } catch (org.apache.thrift.TException te) {
9931
        throw new java.io.IOException(te);
9932
      }
9933
    }
9934
 
9935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9936
      try {
9937
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9938
        __isset_bit_vector = new BitSet(1);
9939
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9940
      } catch (org.apache.thrift.TException te) {
9941
        throw new java.io.IOException(te);
9942
      }
9943
    }
9944
 
9945
  }
9946
 
9947
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
9948
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
9949
 
9950
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
9951
 
9952
    private InventoryServiceException cex; // required
9953
 
9954
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9955
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9956
      CEX((short)1, "cex");
9957
 
9958
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9959
 
9960
      static {
9961
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9962
          byName.put(field.getFieldName(), field);
9963
        }
9964
      }
9965
 
9966
      /**
9967
       * Find the _Fields constant that matches fieldId, or null if its not found.
9968
       */
9969
      public static _Fields findByThriftId(int fieldId) {
9970
        switch(fieldId) {
9971
          case 1: // CEX
9972
            return CEX;
9973
          default:
9974
            return null;
9975
        }
9976
      }
9977
 
9978
      /**
9979
       * Find the _Fields constant that matches fieldId, throwing an exception
9980
       * if it is not found.
9981
       */
9982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9983
        _Fields fields = findByThriftId(fieldId);
9984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9985
        return fields;
9986
      }
9987
 
9988
      /**
9989
       * Find the _Fields constant that matches name, or null if its not found.
9990
       */
9991
      public static _Fields findByName(String name) {
9992
        return byName.get(name);
9993
      }
9994
 
9995
      private final short _thriftId;
9996
      private final String _fieldName;
9997
 
9998
      _Fields(short thriftId, String fieldName) {
9999
        _thriftId = thriftId;
10000
        _fieldName = fieldName;
10001
      }
10002
 
10003
      public short getThriftFieldId() {
10004
        return _thriftId;
10005
      }
10006
 
10007
      public String getFieldName() {
10008
        return _fieldName;
10009
      }
10010
    }
10011
 
10012
    // isset id assignments
10013
 
10014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10015
    static {
10016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10017
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10018
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10019
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10020
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
10021
    }
10022
 
10023
    public addInventory_result() {
10024
    }
10025
 
10026
    public addInventory_result(
10027
      InventoryServiceException cex)
10028
    {
10029
      this();
10030
      this.cex = cex;
10031
    }
10032
 
10033
    /**
10034
     * Performs a deep copy on <i>other</i>.
10035
     */
10036
    public addInventory_result(addInventory_result other) {
10037
      if (other.isSetCex()) {
10038
        this.cex = new InventoryServiceException(other.cex);
10039
      }
10040
    }
10041
 
10042
    public addInventory_result deepCopy() {
10043
      return new addInventory_result(this);
10044
    }
10045
 
10046
    @Override
10047
    public void clear() {
10048
      this.cex = null;
10049
    }
10050
 
10051
    public InventoryServiceException getCex() {
10052
      return this.cex;
10053
    }
10054
 
10055
    public void setCex(InventoryServiceException cex) {
10056
      this.cex = cex;
10057
    }
10058
 
10059
    public void unsetCex() {
10060
      this.cex = null;
10061
    }
10062
 
10063
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10064
    public boolean isSetCex() {
10065
      return this.cex != null;
10066
    }
10067
 
10068
    public void setCexIsSet(boolean value) {
10069
      if (!value) {
10070
        this.cex = null;
10071
      }
10072
    }
10073
 
10074
    public void setFieldValue(_Fields field, Object value) {
10075
      switch (field) {
10076
      case CEX:
10077
        if (value == null) {
10078
          unsetCex();
10079
        } else {
10080
          setCex((InventoryServiceException)value);
10081
        }
10082
        break;
10083
 
10084
      }
10085
    }
10086
 
10087
    public Object getFieldValue(_Fields field) {
10088
      switch (field) {
10089
      case CEX:
10090
        return getCex();
10091
 
10092
      }
10093
      throw new IllegalStateException();
10094
    }
10095
 
10096
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10097
    public boolean isSet(_Fields field) {
10098
      if (field == null) {
10099
        throw new IllegalArgumentException();
10100
      }
10101
 
10102
      switch (field) {
10103
      case CEX:
10104
        return isSetCex();
10105
      }
10106
      throw new IllegalStateException();
10107
    }
10108
 
10109
    @Override
10110
    public boolean equals(Object that) {
10111
      if (that == null)
10112
        return false;
10113
      if (that instanceof addInventory_result)
10114
        return this.equals((addInventory_result)that);
10115
      return false;
10116
    }
10117
 
10118
    public boolean equals(addInventory_result that) {
10119
      if (that == null)
10120
        return false;
10121
 
10122
      boolean this_present_cex = true && this.isSetCex();
10123
      boolean that_present_cex = true && that.isSetCex();
10124
      if (this_present_cex || that_present_cex) {
10125
        if (!(this_present_cex && that_present_cex))
10126
          return false;
10127
        if (!this.cex.equals(that.cex))
10128
          return false;
10129
      }
10130
 
10131
      return true;
10132
    }
10133
 
10134
    @Override
10135
    public int hashCode() {
10136
      return 0;
10137
    }
10138
 
10139
    public int compareTo(addInventory_result other) {
10140
      if (!getClass().equals(other.getClass())) {
10141
        return getClass().getName().compareTo(other.getClass().getName());
10142
      }
10143
 
10144
      int lastComparison = 0;
10145
      addInventory_result typedOther = (addInventory_result)other;
10146
 
10147
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10148
      if (lastComparison != 0) {
10149
        return lastComparison;
10150
      }
10151
      if (isSetCex()) {
10152
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10153
        if (lastComparison != 0) {
10154
          return lastComparison;
10155
        }
10156
      }
10157
      return 0;
10158
    }
10159
 
10160
    public _Fields fieldForId(int fieldId) {
10161
      return _Fields.findByThriftId(fieldId);
10162
    }
10163
 
10164
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10165
      org.apache.thrift.protocol.TField field;
10166
      iprot.readStructBegin();
10167
      while (true)
10168
      {
10169
        field = iprot.readFieldBegin();
10170
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10171
          break;
10172
        }
10173
        switch (field.id) {
10174
          case 1: // CEX
10175
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10176
              this.cex = new InventoryServiceException();
10177
              this.cex.read(iprot);
10178
            } else { 
10179
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10180
            }
10181
            break;
10182
          default:
10183
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10184
        }
10185
        iprot.readFieldEnd();
10186
      }
10187
      iprot.readStructEnd();
10188
      validate();
10189
    }
10190
 
10191
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10192
      oprot.writeStructBegin(STRUCT_DESC);
10193
 
10194
      if (this.isSetCex()) {
10195
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10196
        this.cex.write(oprot);
10197
        oprot.writeFieldEnd();
10198
      }
10199
      oprot.writeFieldStop();
10200
      oprot.writeStructEnd();
10201
    }
10202
 
10203
    @Override
10204
    public String toString() {
10205
      StringBuilder sb = new StringBuilder("addInventory_result(");
10206
      boolean first = true;
10207
 
10208
      sb.append("cex:");
10209
      if (this.cex == null) {
10210
        sb.append("null");
10211
      } else {
10212
        sb.append(this.cex);
10213
      }
10214
      first = false;
10215
      sb.append(")");
10216
      return sb.toString();
10217
    }
10218
 
10219
    public void validate() throws org.apache.thrift.TException {
10220
      // check for required fields
10221
    }
10222
 
10223
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10224
      try {
10225
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10226
      } catch (org.apache.thrift.TException te) {
10227
        throw new java.io.IOException(te);
10228
      }
10229
    }
10230
 
10231
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10232
      try {
10233
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10234
      } catch (org.apache.thrift.TException te) {
10235
        throw new java.io.IOException(te);
10236
      }
10237
    }
10238
 
10239
  }
10240
 
10241
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
10242
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
10243
 
10244
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
10245
 
10246
    private long warehouse_id; // required
10247
 
10248
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10249
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10250
      WAREHOUSE_ID((short)1, "warehouse_id");
10251
 
10252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10253
 
10254
      static {
10255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10256
          byName.put(field.getFieldName(), field);
10257
        }
10258
      }
10259
 
10260
      /**
10261
       * Find the _Fields constant that matches fieldId, or null if its not found.
10262
       */
10263
      public static _Fields findByThriftId(int fieldId) {
10264
        switch(fieldId) {
10265
          case 1: // WAREHOUSE_ID
10266
            return WAREHOUSE_ID;
10267
          default:
10268
            return null;
10269
        }
10270
      }
10271
 
10272
      /**
10273
       * Find the _Fields constant that matches fieldId, throwing an exception
10274
       * if it is not found.
10275
       */
10276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10277
        _Fields fields = findByThriftId(fieldId);
10278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10279
        return fields;
10280
      }
10281
 
10282
      /**
10283
       * Find the _Fields constant that matches name, or null if its not found.
10284
       */
10285
      public static _Fields findByName(String name) {
10286
        return byName.get(name);
10287
      }
10288
 
10289
      private final short _thriftId;
10290
      private final String _fieldName;
10291
 
10292
      _Fields(short thriftId, String fieldName) {
10293
        _thriftId = thriftId;
10294
        _fieldName = fieldName;
10295
      }
10296
 
10297
      public short getThriftFieldId() {
10298
        return _thriftId;
10299
      }
10300
 
10301
      public String getFieldName() {
10302
        return _fieldName;
10303
      }
10304
    }
10305
 
10306
    // isset id assignments
10307
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
10308
    private BitSet __isset_bit_vector = new BitSet(1);
10309
 
10310
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10311
    static {
10312
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10313
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10314
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10315
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10316
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
10317
    }
10318
 
10319
    public retireWarehouse_args() {
10320
    }
10321
 
10322
    public retireWarehouse_args(
10323
      long warehouse_id)
10324
    {
10325
      this();
10326
      this.warehouse_id = warehouse_id;
10327
      setWarehouse_idIsSet(true);
10328
    }
10329
 
10330
    /**
10331
     * Performs a deep copy on <i>other</i>.
10332
     */
10333
    public retireWarehouse_args(retireWarehouse_args other) {
10334
      __isset_bit_vector.clear();
10335
      __isset_bit_vector.or(other.__isset_bit_vector);
10336
      this.warehouse_id = other.warehouse_id;
10337
    }
10338
 
10339
    public retireWarehouse_args deepCopy() {
10340
      return new retireWarehouse_args(this);
10341
    }
10342
 
10343
    @Override
10344
    public void clear() {
10345
      setWarehouse_idIsSet(false);
10346
      this.warehouse_id = 0;
10347
    }
10348
 
10349
    public long getWarehouse_id() {
10350
      return this.warehouse_id;
10351
    }
10352
 
10353
    public void setWarehouse_id(long warehouse_id) {
10354
      this.warehouse_id = warehouse_id;
10355
      setWarehouse_idIsSet(true);
10356
    }
10357
 
10358
    public void unsetWarehouse_id() {
10359
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
10360
    }
10361
 
10362
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
10363
    public boolean isSetWarehouse_id() {
10364
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
10365
    }
10366
 
10367
    public void setWarehouse_idIsSet(boolean value) {
10368
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
10369
    }
10370
 
10371
    public void setFieldValue(_Fields field, Object value) {
10372
      switch (field) {
10373
      case WAREHOUSE_ID:
10374
        if (value == null) {
10375
          unsetWarehouse_id();
10376
        } else {
10377
          setWarehouse_id((Long)value);
10378
        }
10379
        break;
10380
 
10381
      }
10382
    }
10383
 
10384
    public Object getFieldValue(_Fields field) {
10385
      switch (field) {
10386
      case WAREHOUSE_ID:
10387
        return Long.valueOf(getWarehouse_id());
10388
 
10389
      }
10390
      throw new IllegalStateException();
10391
    }
10392
 
10393
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10394
    public boolean isSet(_Fields field) {
10395
      if (field == null) {
10396
        throw new IllegalArgumentException();
10397
      }
10398
 
10399
      switch (field) {
10400
      case WAREHOUSE_ID:
10401
        return isSetWarehouse_id();
10402
      }
10403
      throw new IllegalStateException();
10404
    }
10405
 
10406
    @Override
10407
    public boolean equals(Object that) {
10408
      if (that == null)
10409
        return false;
10410
      if (that instanceof retireWarehouse_args)
10411
        return this.equals((retireWarehouse_args)that);
10412
      return false;
10413
    }
10414
 
10415
    public boolean equals(retireWarehouse_args that) {
10416
      if (that == null)
10417
        return false;
10418
 
10419
      boolean this_present_warehouse_id = true;
10420
      boolean that_present_warehouse_id = true;
10421
      if (this_present_warehouse_id || that_present_warehouse_id) {
10422
        if (!(this_present_warehouse_id && that_present_warehouse_id))
10423
          return false;
10424
        if (this.warehouse_id != that.warehouse_id)
10425
          return false;
10426
      }
10427
 
10428
      return true;
10429
    }
10430
 
10431
    @Override
10432
    public int hashCode() {
10433
      return 0;
10434
    }
10435
 
10436
    public int compareTo(retireWarehouse_args other) {
10437
      if (!getClass().equals(other.getClass())) {
10438
        return getClass().getName().compareTo(other.getClass().getName());
10439
      }
10440
 
10441
      int lastComparison = 0;
10442
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
10443
 
10444
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
10445
      if (lastComparison != 0) {
10446
        return lastComparison;
10447
      }
10448
      if (isSetWarehouse_id()) {
10449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
10450
        if (lastComparison != 0) {
10451
          return lastComparison;
10452
        }
10453
      }
10454
      return 0;
10455
    }
10456
 
10457
    public _Fields fieldForId(int fieldId) {
10458
      return _Fields.findByThriftId(fieldId);
10459
    }
10460
 
10461
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10462
      org.apache.thrift.protocol.TField field;
10463
      iprot.readStructBegin();
10464
      while (true)
10465
      {
10466
        field = iprot.readFieldBegin();
10467
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10468
          break;
10469
        }
10470
        switch (field.id) {
10471
          case 1: // WAREHOUSE_ID
10472
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10473
              this.warehouse_id = iprot.readI64();
10474
              setWarehouse_idIsSet(true);
10475
            } else { 
10476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10477
            }
10478
            break;
10479
          default:
10480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10481
        }
10482
        iprot.readFieldEnd();
10483
      }
10484
      iprot.readStructEnd();
10485
      validate();
10486
    }
10487
 
10488
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10489
      validate();
10490
 
10491
      oprot.writeStructBegin(STRUCT_DESC);
10492
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10493
      oprot.writeI64(this.warehouse_id);
10494
      oprot.writeFieldEnd();
10495
      oprot.writeFieldStop();
10496
      oprot.writeStructEnd();
10497
    }
10498
 
10499
    @Override
10500
    public String toString() {
10501
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
10502
      boolean first = true;
10503
 
10504
      sb.append("warehouse_id:");
10505
      sb.append(this.warehouse_id);
10506
      first = false;
10507
      sb.append(")");
10508
      return sb.toString();
10509
    }
10510
 
10511
    public void validate() throws org.apache.thrift.TException {
10512
      // check for required fields
10513
    }
10514
 
10515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10516
      try {
10517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10518
      } catch (org.apache.thrift.TException te) {
10519
        throw new java.io.IOException(te);
10520
      }
10521
    }
10522
 
10523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10524
      try {
10525
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10526
        __isset_bit_vector = new BitSet(1);
10527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10528
      } catch (org.apache.thrift.TException te) {
10529
        throw new java.io.IOException(te);
10530
      }
10531
    }
10532
 
10533
  }
10534
 
10535
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
10536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
10537
 
10538
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10539
 
10540
    private InventoryServiceException cex; // required
10541
 
10542
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10543
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10544
      CEX((short)1, "cex");
10545
 
10546
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10547
 
10548
      static {
10549
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10550
          byName.put(field.getFieldName(), field);
10551
        }
10552
      }
10553
 
10554
      /**
10555
       * Find the _Fields constant that matches fieldId, or null if its not found.
10556
       */
10557
      public static _Fields findByThriftId(int fieldId) {
10558
        switch(fieldId) {
10559
          case 1: // CEX
10560
            return CEX;
10561
          default:
10562
            return null;
10563
        }
10564
      }
10565
 
10566
      /**
10567
       * Find the _Fields constant that matches fieldId, throwing an exception
10568
       * if it is not found.
10569
       */
10570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10571
        _Fields fields = findByThriftId(fieldId);
10572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10573
        return fields;
10574
      }
10575
 
10576
      /**
10577
       * Find the _Fields constant that matches name, or null if its not found.
10578
       */
10579
      public static _Fields findByName(String name) {
10580
        return byName.get(name);
10581
      }
10582
 
10583
      private final short _thriftId;
10584
      private final String _fieldName;
10585
 
10586
      _Fields(short thriftId, String fieldName) {
10587
        _thriftId = thriftId;
10588
        _fieldName = fieldName;
10589
      }
10590
 
10591
      public short getThriftFieldId() {
10592
        return _thriftId;
10593
      }
10594
 
10595
      public String getFieldName() {
10596
        return _fieldName;
10597
      }
10598
    }
10599
 
10600
    // isset id assignments
10601
 
10602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10603
    static {
10604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10605
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
10609
    }
10610
 
10611
    public retireWarehouse_result() {
10612
    }
10613
 
10614
    public retireWarehouse_result(
10615
      InventoryServiceException cex)
10616
    {
10617
      this();
10618
      this.cex = cex;
10619
    }
10620
 
10621
    /**
10622
     * Performs a deep copy on <i>other</i>.
10623
     */
10624
    public retireWarehouse_result(retireWarehouse_result other) {
10625
      if (other.isSetCex()) {
10626
        this.cex = new InventoryServiceException(other.cex);
10627
      }
10628
    }
10629
 
10630
    public retireWarehouse_result deepCopy() {
10631
      return new retireWarehouse_result(this);
10632
    }
10633
 
10634
    @Override
10635
    public void clear() {
10636
      this.cex = null;
10637
    }
10638
 
10639
    public InventoryServiceException getCex() {
10640
      return this.cex;
10641
    }
10642
 
10643
    public void setCex(InventoryServiceException cex) {
10644
      this.cex = cex;
10645
    }
10646
 
10647
    public void unsetCex() {
10648
      this.cex = null;
10649
    }
10650
 
10651
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10652
    public boolean isSetCex() {
10653
      return this.cex != null;
10654
    }
10655
 
10656
    public void setCexIsSet(boolean value) {
10657
      if (!value) {
10658
        this.cex = null;
10659
      }
10660
    }
10661
 
10662
    public void setFieldValue(_Fields field, Object value) {
10663
      switch (field) {
10664
      case CEX:
10665
        if (value == null) {
10666
          unsetCex();
10667
        } else {
10668
          setCex((InventoryServiceException)value);
10669
        }
10670
        break;
10671
 
10672
      }
10673
    }
10674
 
10675
    public Object getFieldValue(_Fields field) {
10676
      switch (field) {
10677
      case CEX:
10678
        return getCex();
10679
 
10680
      }
10681
      throw new IllegalStateException();
10682
    }
10683
 
10684
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10685
    public boolean isSet(_Fields field) {
10686
      if (field == null) {
10687
        throw new IllegalArgumentException();
10688
      }
10689
 
10690
      switch (field) {
10691
      case CEX:
10692
        return isSetCex();
10693
      }
10694
      throw new IllegalStateException();
10695
    }
10696
 
10697
    @Override
10698
    public boolean equals(Object that) {
10699
      if (that == null)
10700
        return false;
10701
      if (that instanceof retireWarehouse_result)
10702
        return this.equals((retireWarehouse_result)that);
10703
      return false;
10704
    }
10705
 
10706
    public boolean equals(retireWarehouse_result that) {
10707
      if (that == null)
10708
        return false;
10709
 
10710
      boolean this_present_cex = true && this.isSetCex();
10711
      boolean that_present_cex = true && that.isSetCex();
10712
      if (this_present_cex || that_present_cex) {
10713
        if (!(this_present_cex && that_present_cex))
10714
          return false;
10715
        if (!this.cex.equals(that.cex))
10716
          return false;
10717
      }
10718
 
10719
      return true;
10720
    }
10721
 
10722
    @Override
10723
    public int hashCode() {
10724
      return 0;
10725
    }
10726
 
10727
    public int compareTo(retireWarehouse_result other) {
10728
      if (!getClass().equals(other.getClass())) {
10729
        return getClass().getName().compareTo(other.getClass().getName());
10730
      }
10731
 
10732
      int lastComparison = 0;
10733
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
10734
 
10735
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10736
      if (lastComparison != 0) {
10737
        return lastComparison;
10738
      }
10739
      if (isSetCex()) {
10740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10741
        if (lastComparison != 0) {
10742
          return lastComparison;
10743
        }
10744
      }
10745
      return 0;
10746
    }
10747
 
10748
    public _Fields fieldForId(int fieldId) {
10749
      return _Fields.findByThriftId(fieldId);
10750
    }
10751
 
10752
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10753
      org.apache.thrift.protocol.TField field;
10754
      iprot.readStructBegin();
10755
      while (true)
10756
      {
10757
        field = iprot.readFieldBegin();
10758
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10759
          break;
10760
        }
10761
        switch (field.id) {
10762
          case 1: // CEX
10763
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10764
              this.cex = new InventoryServiceException();
10765
              this.cex.read(iprot);
10766
            } else { 
10767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10768
            }
10769
            break;
10770
          default:
10771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10772
        }
10773
        iprot.readFieldEnd();
10774
      }
10775
      iprot.readStructEnd();
10776
      validate();
10777
    }
10778
 
10779
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10780
      oprot.writeStructBegin(STRUCT_DESC);
10781
 
10782
      if (this.isSetCex()) {
10783
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10784
        this.cex.write(oprot);
10785
        oprot.writeFieldEnd();
10786
      }
10787
      oprot.writeFieldStop();
10788
      oprot.writeStructEnd();
10789
    }
10790
 
10791
    @Override
10792
    public String toString() {
10793
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
10794
      boolean first = true;
10795
 
10796
      sb.append("cex:");
10797
      if (this.cex == null) {
10798
        sb.append("null");
10799
      } else {
10800
        sb.append(this.cex);
10801
      }
10802
      first = false;
10803
      sb.append(")");
10804
      return sb.toString();
10805
    }
10806
 
10807
    public void validate() throws org.apache.thrift.TException {
10808
      // check for required fields
10809
    }
10810
 
10811
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10812
      try {
10813
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10814
      } catch (org.apache.thrift.TException te) {
10815
        throw new java.io.IOException(te);
10816
      }
10817
    }
10818
 
10819
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10820
      try {
10821
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10822
      } catch (org.apache.thrift.TException te) {
10823
        throw new java.io.IOException(te);
10824
      }
10825
    }
10826
 
10827
  }
10828
 
10829
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
10830
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
10831
 
10832
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
10833
 
10834
    private long item_id; // required
10835
 
10836
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10837
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10838
      ITEM_ID((short)1, "item_id");
10839
 
10840
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10841
 
10842
      static {
10843
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10844
          byName.put(field.getFieldName(), field);
10845
        }
10846
      }
10847
 
10848
      /**
10849
       * Find the _Fields constant that matches fieldId, or null if its not found.
10850
       */
10851
      public static _Fields findByThriftId(int fieldId) {
10852
        switch(fieldId) {
10853
          case 1: // ITEM_ID
10854
            return ITEM_ID;
10855
          default:
10856
            return null;
10857
        }
10858
      }
10859
 
10860
      /**
10861
       * Find the _Fields constant that matches fieldId, throwing an exception
10862
       * if it is not found.
10863
       */
10864
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10865
        _Fields fields = findByThriftId(fieldId);
10866
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10867
        return fields;
10868
      }
10869
 
10870
      /**
10871
       * Find the _Fields constant that matches name, or null if its not found.
10872
       */
10873
      public static _Fields findByName(String name) {
10874
        return byName.get(name);
10875
      }
10876
 
10877
      private final short _thriftId;
10878
      private final String _fieldName;
10879
 
10880
      _Fields(short thriftId, String fieldName) {
10881
        _thriftId = thriftId;
10882
        _fieldName = fieldName;
10883
      }
10884
 
10885
      public short getThriftFieldId() {
10886
        return _thriftId;
10887
      }
10888
 
10889
      public String getFieldName() {
10890
        return _fieldName;
10891
      }
10892
    }
10893
 
10894
    // isset id assignments
10895
    private static final int __ITEM_ID_ISSET_ID = 0;
10896
    private BitSet __isset_bit_vector = new BitSet(1);
10897
 
10898
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10899
    static {
10900
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10901
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10902
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10903
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10904
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
10905
    }
10906
 
10907
    public getItemInventoryByItemId_args() {
10908
    }
10909
 
10910
    public getItemInventoryByItemId_args(
10911
      long item_id)
10912
    {
10913
      this();
10914
      this.item_id = item_id;
10915
      setItem_idIsSet(true);
10916
    }
10917
 
10918
    /**
10919
     * Performs a deep copy on <i>other</i>.
10920
     */
10921
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
10922
      __isset_bit_vector.clear();
10923
      __isset_bit_vector.or(other.__isset_bit_vector);
10924
      this.item_id = other.item_id;
10925
    }
10926
 
10927
    public getItemInventoryByItemId_args deepCopy() {
10928
      return new getItemInventoryByItemId_args(this);
10929
    }
10930
 
10931
    @Override
10932
    public void clear() {
10933
      setItem_idIsSet(false);
10934
      this.item_id = 0;
10935
    }
10936
 
10937
    public long getItem_id() {
10938
      return this.item_id;
10939
    }
10940
 
10941
    public void setItem_id(long item_id) {
10942
      this.item_id = item_id;
10943
      setItem_idIsSet(true);
10944
    }
10945
 
10946
    public void unsetItem_id() {
10947
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
10948
    }
10949
 
10950
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
10951
    public boolean isSetItem_id() {
10952
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
10953
    }
10954
 
10955
    public void setItem_idIsSet(boolean value) {
10956
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
10957
    }
10958
 
10959
    public void setFieldValue(_Fields field, Object value) {
10960
      switch (field) {
10961
      case ITEM_ID:
10962
        if (value == null) {
10963
          unsetItem_id();
10964
        } else {
10965
          setItem_id((Long)value);
10966
        }
10967
        break;
10968
 
10969
      }
10970
    }
10971
 
10972
    public Object getFieldValue(_Fields field) {
10973
      switch (field) {
10974
      case ITEM_ID:
10975
        return Long.valueOf(getItem_id());
10976
 
10977
      }
10978
      throw new IllegalStateException();
10979
    }
10980
 
10981
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10982
    public boolean isSet(_Fields field) {
10983
      if (field == null) {
10984
        throw new IllegalArgumentException();
10985
      }
10986
 
10987
      switch (field) {
10988
      case ITEM_ID:
10989
        return isSetItem_id();
10990
      }
10991
      throw new IllegalStateException();
10992
    }
10993
 
10994
    @Override
10995
    public boolean equals(Object that) {
10996
      if (that == null)
10997
        return false;
10998
      if (that instanceof getItemInventoryByItemId_args)
10999
        return this.equals((getItemInventoryByItemId_args)that);
11000
      return false;
11001
    }
11002
 
11003
    public boolean equals(getItemInventoryByItemId_args that) {
11004
      if (that == null)
11005
        return false;
11006
 
11007
      boolean this_present_item_id = true;
11008
      boolean that_present_item_id = true;
11009
      if (this_present_item_id || that_present_item_id) {
11010
        if (!(this_present_item_id && that_present_item_id))
11011
          return false;
11012
        if (this.item_id != that.item_id)
11013
          return false;
11014
      }
11015
 
11016
      return true;
11017
    }
11018
 
11019
    @Override
11020
    public int hashCode() {
11021
      return 0;
11022
    }
11023
 
11024
    public int compareTo(getItemInventoryByItemId_args other) {
11025
      if (!getClass().equals(other.getClass())) {
11026
        return getClass().getName().compareTo(other.getClass().getName());
11027
      }
11028
 
11029
      int lastComparison = 0;
11030
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
11031
 
11032
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
11033
      if (lastComparison != 0) {
11034
        return lastComparison;
11035
      }
11036
      if (isSetItem_id()) {
11037
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
11038
        if (lastComparison != 0) {
11039
          return lastComparison;
11040
        }
11041
      }
11042
      return 0;
11043
    }
11044
 
11045
    public _Fields fieldForId(int fieldId) {
11046
      return _Fields.findByThriftId(fieldId);
11047
    }
11048
 
11049
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11050
      org.apache.thrift.protocol.TField field;
11051
      iprot.readStructBegin();
11052
      while (true)
11053
      {
11054
        field = iprot.readFieldBegin();
11055
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11056
          break;
11057
        }
11058
        switch (field.id) {
11059
          case 1: // ITEM_ID
11060
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11061
              this.item_id = iprot.readI64();
11062
              setItem_idIsSet(true);
11063
            } else { 
11064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11065
            }
11066
            break;
11067
          default:
11068
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11069
        }
11070
        iprot.readFieldEnd();
11071
      }
11072
      iprot.readStructEnd();
11073
      validate();
11074
    }
11075
 
11076
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11077
      validate();
11078
 
11079
      oprot.writeStructBegin(STRUCT_DESC);
11080
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
11081
      oprot.writeI64(this.item_id);
11082
      oprot.writeFieldEnd();
11083
      oprot.writeFieldStop();
11084
      oprot.writeStructEnd();
11085
    }
11086
 
11087
    @Override
11088
    public String toString() {
11089
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
11090
      boolean first = true;
11091
 
11092
      sb.append("item_id:");
11093
      sb.append(this.item_id);
11094
      first = false;
11095
      sb.append(")");
11096
      return sb.toString();
11097
    }
11098
 
11099
    public void validate() throws org.apache.thrift.TException {
11100
      // check for required fields
11101
    }
11102
 
11103
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11104
      try {
11105
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11106
      } catch (org.apache.thrift.TException te) {
11107
        throw new java.io.IOException(te);
11108
      }
11109
    }
11110
 
11111
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11112
      try {
11113
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11114
        __isset_bit_vector = new BitSet(1);
11115
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11116
      } catch (org.apache.thrift.TException te) {
11117
        throw new java.io.IOException(te);
11118
      }
11119
    }
11120
 
11121
  }
11122
 
11123
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
11124
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
11125
 
11126
    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);
11127
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11128
 
11129
    private ItemInventory success; // required
11130
    private InventoryServiceException cex; // required
11131
 
11132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11134
      SUCCESS((short)0, "success"),
11135
      CEX((short)1, "cex");
11136
 
11137
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11138
 
11139
      static {
11140
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11141
          byName.put(field.getFieldName(), field);
11142
        }
11143
      }
11144
 
11145
      /**
11146
       * Find the _Fields constant that matches fieldId, or null if its not found.
11147
       */
11148
      public static _Fields findByThriftId(int fieldId) {
11149
        switch(fieldId) {
11150
          case 0: // SUCCESS
11151
            return SUCCESS;
11152
          case 1: // CEX
11153
            return CEX;
11154
          default:
11155
            return null;
11156
        }
11157
      }
11158
 
11159
      /**
11160
       * Find the _Fields constant that matches fieldId, throwing an exception
11161
       * if it is not found.
11162
       */
11163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11164
        _Fields fields = findByThriftId(fieldId);
11165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11166
        return fields;
11167
      }
11168
 
11169
      /**
11170
       * Find the _Fields constant that matches name, or null if its not found.
11171
       */
11172
      public static _Fields findByName(String name) {
11173
        return byName.get(name);
11174
      }
11175
 
11176
      private final short _thriftId;
11177
      private final String _fieldName;
11178
 
11179
      _Fields(short thriftId, String fieldName) {
11180
        _thriftId = thriftId;
11181
        _fieldName = fieldName;
11182
      }
11183
 
11184
      public short getThriftFieldId() {
11185
        return _thriftId;
11186
      }
11187
 
11188
      public String getFieldName() {
11189
        return _fieldName;
11190
      }
11191
    }
11192
 
11193
    // isset id assignments
11194
 
11195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11196
    static {
11197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11198
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11199
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
11200
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11202
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11203
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
11204
    }
11205
 
11206
    public getItemInventoryByItemId_result() {
11207
    }
11208
 
11209
    public getItemInventoryByItemId_result(
11210
      ItemInventory success,
11211
      InventoryServiceException cex)
11212
    {
11213
      this();
11214
      this.success = success;
11215
      this.cex = cex;
11216
    }
11217
 
11218
    /**
11219
     * Performs a deep copy on <i>other</i>.
11220
     */
11221
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
11222
      if (other.isSetSuccess()) {
11223
        this.success = new ItemInventory(other.success);
11224
      }
11225
      if (other.isSetCex()) {
11226
        this.cex = new InventoryServiceException(other.cex);
11227
      }
11228
    }
11229
 
11230
    public getItemInventoryByItemId_result deepCopy() {
11231
      return new getItemInventoryByItemId_result(this);
11232
    }
11233
 
11234
    @Override
11235
    public void clear() {
11236
      this.success = null;
11237
      this.cex = null;
11238
    }
11239
 
11240
    public ItemInventory getSuccess() {
11241
      return this.success;
11242
    }
11243
 
11244
    public void setSuccess(ItemInventory success) {
11245
      this.success = success;
11246
    }
11247
 
11248
    public void unsetSuccess() {
11249
      this.success = null;
11250
    }
11251
 
11252
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11253
    public boolean isSetSuccess() {
11254
      return this.success != null;
11255
    }
11256
 
11257
    public void setSuccessIsSet(boolean value) {
11258
      if (!value) {
11259
        this.success = null;
11260
      }
11261
    }
11262
 
11263
    public InventoryServiceException getCex() {
11264
      return this.cex;
11265
    }
11266
 
11267
    public void setCex(InventoryServiceException cex) {
11268
      this.cex = cex;
11269
    }
11270
 
11271
    public void unsetCex() {
11272
      this.cex = null;
11273
    }
11274
 
11275
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11276
    public boolean isSetCex() {
11277
      return this.cex != null;
11278
    }
11279
 
11280
    public void setCexIsSet(boolean value) {
11281
      if (!value) {
11282
        this.cex = null;
11283
      }
11284
    }
11285
 
11286
    public void setFieldValue(_Fields field, Object value) {
11287
      switch (field) {
11288
      case SUCCESS:
11289
        if (value == null) {
11290
          unsetSuccess();
11291
        } else {
11292
          setSuccess((ItemInventory)value);
11293
        }
11294
        break;
11295
 
11296
      case CEX:
11297
        if (value == null) {
11298
          unsetCex();
11299
        } else {
11300
          setCex((InventoryServiceException)value);
11301
        }
11302
        break;
11303
 
11304
      }
11305
    }
11306
 
11307
    public Object getFieldValue(_Fields field) {
11308
      switch (field) {
11309
      case SUCCESS:
11310
        return getSuccess();
11311
 
11312
      case CEX:
11313
        return getCex();
11314
 
11315
      }
11316
      throw new IllegalStateException();
11317
    }
11318
 
11319
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11320
    public boolean isSet(_Fields field) {
11321
      if (field == null) {
11322
        throw new IllegalArgumentException();
11323
      }
11324
 
11325
      switch (field) {
11326
      case SUCCESS:
11327
        return isSetSuccess();
11328
      case CEX:
11329
        return isSetCex();
11330
      }
11331
      throw new IllegalStateException();
11332
    }
11333
 
11334
    @Override
11335
    public boolean equals(Object that) {
11336
      if (that == null)
11337
        return false;
11338
      if (that instanceof getItemInventoryByItemId_result)
11339
        return this.equals((getItemInventoryByItemId_result)that);
11340
      return false;
11341
    }
11342
 
11343
    public boolean equals(getItemInventoryByItemId_result that) {
11344
      if (that == null)
11345
        return false;
11346
 
11347
      boolean this_present_success = true && this.isSetSuccess();
11348
      boolean that_present_success = true && that.isSetSuccess();
11349
      if (this_present_success || that_present_success) {
11350
        if (!(this_present_success && that_present_success))
11351
          return false;
11352
        if (!this.success.equals(that.success))
11353
          return false;
11354
      }
11355
 
11356
      boolean this_present_cex = true && this.isSetCex();
11357
      boolean that_present_cex = true && that.isSetCex();
11358
      if (this_present_cex || that_present_cex) {
11359
        if (!(this_present_cex && that_present_cex))
11360
          return false;
11361
        if (!this.cex.equals(that.cex))
11362
          return false;
11363
      }
11364
 
11365
      return true;
11366
    }
11367
 
11368
    @Override
11369
    public int hashCode() {
11370
      return 0;
11371
    }
11372
 
11373
    public int compareTo(getItemInventoryByItemId_result other) {
11374
      if (!getClass().equals(other.getClass())) {
11375
        return getClass().getName().compareTo(other.getClass().getName());
11376
      }
11377
 
11378
      int lastComparison = 0;
11379
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
11380
 
11381
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11382
      if (lastComparison != 0) {
11383
        return lastComparison;
11384
      }
11385
      if (isSetSuccess()) {
11386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11387
        if (lastComparison != 0) {
11388
          return lastComparison;
11389
        }
11390
      }
11391
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11392
      if (lastComparison != 0) {
11393
        return lastComparison;
11394
      }
11395
      if (isSetCex()) {
11396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11397
        if (lastComparison != 0) {
11398
          return lastComparison;
11399
        }
11400
      }
11401
      return 0;
11402
    }
11403
 
11404
    public _Fields fieldForId(int fieldId) {
11405
      return _Fields.findByThriftId(fieldId);
11406
    }
11407
 
11408
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11409
      org.apache.thrift.protocol.TField field;
11410
      iprot.readStructBegin();
11411
      while (true)
11412
      {
11413
        field = iprot.readFieldBegin();
11414
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11415
          break;
11416
        }
11417
        switch (field.id) {
11418
          case 0: // SUCCESS
11419
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11420
              this.success = new ItemInventory();
11421
              this.success.read(iprot);
11422
            } else { 
11423
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11424
            }
11425
            break;
11426
          case 1: // CEX
11427
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11428
              this.cex = new InventoryServiceException();
11429
              this.cex.read(iprot);
11430
            } else { 
11431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11432
            }
11433
            break;
11434
          default:
11435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11436
        }
11437
        iprot.readFieldEnd();
11438
      }
11439
      iprot.readStructEnd();
11440
      validate();
11441
    }
11442
 
11443
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11444
      oprot.writeStructBegin(STRUCT_DESC);
11445
 
11446
      if (this.isSetSuccess()) {
11447
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11448
        this.success.write(oprot);
11449
        oprot.writeFieldEnd();
11450
      } else if (this.isSetCex()) {
11451
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11452
        this.cex.write(oprot);
11453
        oprot.writeFieldEnd();
11454
      }
11455
      oprot.writeFieldStop();
11456
      oprot.writeStructEnd();
11457
    }
11458
 
11459
    @Override
11460
    public String toString() {
11461
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
11462
      boolean first = true;
11463
 
11464
      sb.append("success:");
11465
      if (this.success == null) {
11466
        sb.append("null");
11467
      } else {
11468
        sb.append(this.success);
11469
      }
11470
      first = false;
11471
      if (!first) sb.append(", ");
11472
      sb.append("cex:");
11473
      if (this.cex == null) {
11474
        sb.append("null");
11475
      } else {
11476
        sb.append(this.cex);
11477
      }
11478
      first = false;
11479
      sb.append(")");
11480
      return sb.toString();
11481
    }
11482
 
11483
    public void validate() throws org.apache.thrift.TException {
11484
      // check for required fields
11485
    }
11486
 
11487
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11488
      try {
11489
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11490
      } catch (org.apache.thrift.TException te) {
11491
        throw new java.io.IOException(te);
11492
      }
11493
    }
11494
 
11495
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11496
      try {
11497
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11498
      } catch (org.apache.thrift.TException te) {
11499
        throw new java.io.IOException(te);
11500
      }
11501
    }
11502
 
11503
  }
11504
 
11505
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
11507
 
11508
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
11509
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
11510
 
11511
    private long warehouse_id; // required
11512
    private long item_id; // required
11513
 
11514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11516
      WAREHOUSE_ID((short)1, "warehouse_id"),
11517
      ITEM_ID((short)2, "item_id");
11518
 
11519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11520
 
11521
      static {
11522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11523
          byName.put(field.getFieldName(), field);
11524
        }
11525
      }
11526
 
11527
      /**
11528
       * Find the _Fields constant that matches fieldId, or null if its not found.
11529
       */
11530
      public static _Fields findByThriftId(int fieldId) {
11531
        switch(fieldId) {
11532
          case 1: // WAREHOUSE_ID
11533
            return WAREHOUSE_ID;
11534
          case 2: // ITEM_ID
11535
            return ITEM_ID;
11536
          default:
11537
            return null;
11538
        }
11539
      }
11540
 
11541
      /**
11542
       * Find the _Fields constant that matches fieldId, throwing an exception
11543
       * if it is not found.
11544
       */
11545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11546
        _Fields fields = findByThriftId(fieldId);
11547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11548
        return fields;
11549
      }
11550
 
11551
      /**
11552
       * Find the _Fields constant that matches name, or null if its not found.
11553
       */
11554
      public static _Fields findByName(String name) {
11555
        return byName.get(name);
11556
      }
11557
 
11558
      private final short _thriftId;
11559
      private final String _fieldName;
11560
 
11561
      _Fields(short thriftId, String fieldName) {
11562
        _thriftId = thriftId;
11563
        _fieldName = fieldName;
11564
      }
11565
 
11566
      public short getThriftFieldId() {
11567
        return _thriftId;
11568
      }
11569
 
11570
      public String getFieldName() {
11571
        return _fieldName;
11572
      }
11573
    }
11574
 
11575
    // isset id assignments
11576
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11577
    private static final int __ITEM_ID_ISSET_ID = 1;
11578
    private BitSet __isset_bit_vector = new BitSet(2);
11579
 
11580
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11581
    static {
11582
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11583
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11585
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11586
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11587
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11588
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
11589
    }
11590
 
11591
    public getItemAvailibilityAtWarehouse_args() {
11592
    }
11593
 
11594
    public getItemAvailibilityAtWarehouse_args(
11595
      long warehouse_id,
11596
      long item_id)
11597
    {
11598
      this();
11599
      this.warehouse_id = warehouse_id;
11600
      setWarehouse_idIsSet(true);
11601
      this.item_id = item_id;
11602
      setItem_idIsSet(true);
11603
    }
11604
 
11605
    /**
11606
     * Performs a deep copy on <i>other</i>.
11607
     */
11608
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
11609
      __isset_bit_vector.clear();
11610
      __isset_bit_vector.or(other.__isset_bit_vector);
11611
      this.warehouse_id = other.warehouse_id;
11612
      this.item_id = other.item_id;
11613
    }
11614
 
11615
    public getItemAvailibilityAtWarehouse_args deepCopy() {
11616
      return new getItemAvailibilityAtWarehouse_args(this);
11617
    }
11618
 
11619
    @Override
11620
    public void clear() {
11621
      setWarehouse_idIsSet(false);
11622
      this.warehouse_id = 0;
11623
      setItem_idIsSet(false);
11624
      this.item_id = 0;
11625
    }
11626
 
11627
    public long getWarehouse_id() {
11628
      return this.warehouse_id;
11629
    }
11630
 
11631
    public void setWarehouse_id(long warehouse_id) {
11632
      this.warehouse_id = warehouse_id;
11633
      setWarehouse_idIsSet(true);
11634
    }
11635
 
11636
    public void unsetWarehouse_id() {
11637
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11638
    }
11639
 
11640
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11641
    public boolean isSetWarehouse_id() {
11642
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
11643
    }
11644
 
11645
    public void setWarehouse_idIsSet(boolean value) {
11646
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
11647
    }
11648
 
11649
    public long getItem_id() {
11650
      return this.item_id;
11651
    }
11652
 
11653
    public void setItem_id(long item_id) {
11654
      this.item_id = item_id;
11655
      setItem_idIsSet(true);
11656
    }
11657
 
11658
    public void unsetItem_id() {
11659
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
11660
    }
11661
 
11662
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
11663
    public boolean isSetItem_id() {
11664
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
11665
    }
11666
 
11667
    public void setItem_idIsSet(boolean value) {
11668
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
11669
    }
11670
 
11671
    public void setFieldValue(_Fields field, Object value) {
11672
      switch (field) {
11673
      case WAREHOUSE_ID:
11674
        if (value == null) {
11675
          unsetWarehouse_id();
11676
        } else {
11677
          setWarehouse_id((Long)value);
11678
        }
11679
        break;
11680
 
11681
      case ITEM_ID:
11682
        if (value == null) {
11683
          unsetItem_id();
11684
        } else {
11685
          setItem_id((Long)value);
11686
        }
11687
        break;
11688
 
11689
      }
11690
    }
11691
 
11692
    public Object getFieldValue(_Fields field) {
11693
      switch (field) {
11694
      case WAREHOUSE_ID:
11695
        return Long.valueOf(getWarehouse_id());
11696
 
11697
      case ITEM_ID:
11698
        return Long.valueOf(getItem_id());
11699
 
11700
      }
11701
      throw new IllegalStateException();
11702
    }
11703
 
11704
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11705
    public boolean isSet(_Fields field) {
11706
      if (field == null) {
11707
        throw new IllegalArgumentException();
11708
      }
11709
 
11710
      switch (field) {
11711
      case WAREHOUSE_ID:
11712
        return isSetWarehouse_id();
11713
      case ITEM_ID:
11714
        return isSetItem_id();
11715
      }
11716
      throw new IllegalStateException();
11717
    }
11718
 
11719
    @Override
11720
    public boolean equals(Object that) {
11721
      if (that == null)
11722
        return false;
11723
      if (that instanceof getItemAvailibilityAtWarehouse_args)
11724
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
11725
      return false;
11726
    }
11727
 
11728
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
11729
      if (that == null)
11730
        return false;
11731
 
11732
      boolean this_present_warehouse_id = true;
11733
      boolean that_present_warehouse_id = true;
11734
      if (this_present_warehouse_id || that_present_warehouse_id) {
11735
        if (!(this_present_warehouse_id && that_present_warehouse_id))
11736
          return false;
11737
        if (this.warehouse_id != that.warehouse_id)
11738
          return false;
11739
      }
11740
 
11741
      boolean this_present_item_id = true;
11742
      boolean that_present_item_id = true;
11743
      if (this_present_item_id || that_present_item_id) {
11744
        if (!(this_present_item_id && that_present_item_id))
11745
          return false;
11746
        if (this.item_id != that.item_id)
11747
          return false;
11748
      }
11749
 
11750
      return true;
11751
    }
11752
 
11753
    @Override
11754
    public int hashCode() {
11755
      return 0;
11756
    }
11757
 
11758
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
11759
      if (!getClass().equals(other.getClass())) {
11760
        return getClass().getName().compareTo(other.getClass().getName());
11761
      }
11762
 
11763
      int lastComparison = 0;
11764
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
11765
 
11766
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
11767
      if (lastComparison != 0) {
11768
        return lastComparison;
11769
      }
11770
      if (isSetWarehouse_id()) {
11771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
11772
        if (lastComparison != 0) {
11773
          return lastComparison;
11774
        }
11775
      }
11776
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
11777
      if (lastComparison != 0) {
11778
        return lastComparison;
11779
      }
11780
      if (isSetItem_id()) {
11781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
11782
        if (lastComparison != 0) {
11783
          return lastComparison;
11784
        }
11785
      }
11786
      return 0;
11787
    }
11788
 
11789
    public _Fields fieldForId(int fieldId) {
11790
      return _Fields.findByThriftId(fieldId);
11791
    }
11792
 
11793
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11794
      org.apache.thrift.protocol.TField field;
11795
      iprot.readStructBegin();
11796
      while (true)
11797
      {
11798
        field = iprot.readFieldBegin();
11799
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11800
          break;
11801
        }
11802
        switch (field.id) {
11803
          case 1: // WAREHOUSE_ID
11804
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11805
              this.warehouse_id = iprot.readI64();
11806
              setWarehouse_idIsSet(true);
11807
            } else { 
11808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11809
            }
11810
            break;
11811
          case 2: // ITEM_ID
11812
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11813
              this.item_id = iprot.readI64();
11814
              setItem_idIsSet(true);
11815
            } else { 
11816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11817
            }
11818
            break;
11819
          default:
11820
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11821
        }
11822
        iprot.readFieldEnd();
11823
      }
11824
      iprot.readStructEnd();
11825
      validate();
11826
    }
11827
 
11828
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11829
      validate();
11830
 
11831
      oprot.writeStructBegin(STRUCT_DESC);
11832
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
11833
      oprot.writeI64(this.warehouse_id);
11834
      oprot.writeFieldEnd();
11835
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
11836
      oprot.writeI64(this.item_id);
11837
      oprot.writeFieldEnd();
11838
      oprot.writeFieldStop();
11839
      oprot.writeStructEnd();
11840
    }
11841
 
11842
    @Override
11843
    public String toString() {
11844
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
11845
      boolean first = true;
11846
 
11847
      sb.append("warehouse_id:");
11848
      sb.append(this.warehouse_id);
11849
      first = false;
11850
      if (!first) sb.append(", ");
11851
      sb.append("item_id:");
11852
      sb.append(this.item_id);
11853
      first = false;
11854
      sb.append(")");
11855
      return sb.toString();
11856
    }
11857
 
11858
    public void validate() throws org.apache.thrift.TException {
11859
      // check for required fields
11860
    }
11861
 
11862
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11863
      try {
11864
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11865
      } catch (org.apache.thrift.TException te) {
11866
        throw new java.io.IOException(te);
11867
      }
11868
    }
11869
 
11870
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11871
      try {
11872
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11873
        __isset_bit_vector = new BitSet(1);
11874
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11875
      } catch (org.apache.thrift.TException te) {
11876
        throw new java.io.IOException(te);
11877
      }
11878
    }
11879
 
11880
  }
11881
 
11882
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
11883
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
11884
 
11885
    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);
11886
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11887
 
11888
    private long success; // required
11889
    private InventoryServiceException cex; // required
11890
 
11891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11893
      SUCCESS((short)0, "success"),
11894
      CEX((short)1, "cex");
11895
 
11896
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11897
 
11898
      static {
11899
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11900
          byName.put(field.getFieldName(), field);
11901
        }
11902
      }
11903
 
11904
      /**
11905
       * Find the _Fields constant that matches fieldId, or null if its not found.
11906
       */
11907
      public static _Fields findByThriftId(int fieldId) {
11908
        switch(fieldId) {
11909
          case 0: // SUCCESS
11910
            return SUCCESS;
11911
          case 1: // CEX
11912
            return CEX;
11913
          default:
11914
            return null;
11915
        }
11916
      }
11917
 
11918
      /**
11919
       * Find the _Fields constant that matches fieldId, throwing an exception
11920
       * if it is not found.
11921
       */
11922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11923
        _Fields fields = findByThriftId(fieldId);
11924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11925
        return fields;
11926
      }
11927
 
11928
      /**
11929
       * Find the _Fields constant that matches name, or null if its not found.
11930
       */
11931
      public static _Fields findByName(String name) {
11932
        return byName.get(name);
11933
      }
11934
 
11935
      private final short _thriftId;
11936
      private final String _fieldName;
11937
 
11938
      _Fields(short thriftId, String fieldName) {
11939
        _thriftId = thriftId;
11940
        _fieldName = fieldName;
11941
      }
11942
 
11943
      public short getThriftFieldId() {
11944
        return _thriftId;
11945
      }
11946
 
11947
      public String getFieldName() {
11948
        return _fieldName;
11949
      }
11950
    }
11951
 
11952
    // isset id assignments
11953
    private static final int __SUCCESS_ISSET_ID = 0;
11954
    private BitSet __isset_bit_vector = new BitSet(1);
11955
 
11956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11957
    static {
11958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11959
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11961
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
11965
    }
11966
 
11967
    public getItemAvailibilityAtWarehouse_result() {
11968
    }
11969
 
11970
    public getItemAvailibilityAtWarehouse_result(
11971
      long success,
11972
      InventoryServiceException cex)
11973
    {
11974
      this();
11975
      this.success = success;
11976
      setSuccessIsSet(true);
11977
      this.cex = cex;
11978
    }
11979
 
11980
    /**
11981
     * Performs a deep copy on <i>other</i>.
11982
     */
11983
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
11984
      __isset_bit_vector.clear();
11985
      __isset_bit_vector.or(other.__isset_bit_vector);
11986
      this.success = other.success;
11987
      if (other.isSetCex()) {
11988
        this.cex = new InventoryServiceException(other.cex);
11989
      }
11990
    }
11991
 
11992
    public getItemAvailibilityAtWarehouse_result deepCopy() {
11993
      return new getItemAvailibilityAtWarehouse_result(this);
11994
    }
11995
 
11996
    @Override
11997
    public void clear() {
11998
      setSuccessIsSet(false);
11999
      this.success = 0;
12000
      this.cex = null;
12001
    }
12002
 
12003
    public long getSuccess() {
12004
      return this.success;
12005
    }
12006
 
12007
    public void setSuccess(long success) {
12008
      this.success = success;
12009
      setSuccessIsSet(true);
12010
    }
12011
 
12012
    public void unsetSuccess() {
12013
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12014
    }
12015
 
12016
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12017
    public boolean isSetSuccess() {
12018
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12019
    }
12020
 
12021
    public void setSuccessIsSet(boolean value) {
12022
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12023
    }
12024
 
12025
    public InventoryServiceException getCex() {
12026
      return this.cex;
12027
    }
12028
 
12029
    public void setCex(InventoryServiceException cex) {
12030
      this.cex = cex;
12031
    }
12032
 
12033
    public void unsetCex() {
12034
      this.cex = null;
12035
    }
12036
 
12037
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12038
    public boolean isSetCex() {
12039
      return this.cex != null;
12040
    }
12041
 
12042
    public void setCexIsSet(boolean value) {
12043
      if (!value) {
12044
        this.cex = null;
12045
      }
12046
    }
12047
 
12048
    public void setFieldValue(_Fields field, Object value) {
12049
      switch (field) {
12050
      case SUCCESS:
12051
        if (value == null) {
12052
          unsetSuccess();
12053
        } else {
12054
          setSuccess((Long)value);
12055
        }
12056
        break;
12057
 
12058
      case CEX:
12059
        if (value == null) {
12060
          unsetCex();
12061
        } else {
12062
          setCex((InventoryServiceException)value);
12063
        }
12064
        break;
12065
 
12066
      }
12067
    }
12068
 
12069
    public Object getFieldValue(_Fields field) {
12070
      switch (field) {
12071
      case SUCCESS:
12072
        return Long.valueOf(getSuccess());
12073
 
12074
      case CEX:
12075
        return getCex();
12076
 
12077
      }
12078
      throw new IllegalStateException();
12079
    }
12080
 
12081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12082
    public boolean isSet(_Fields field) {
12083
      if (field == null) {
12084
        throw new IllegalArgumentException();
12085
      }
12086
 
12087
      switch (field) {
12088
      case SUCCESS:
12089
        return isSetSuccess();
12090
      case CEX:
12091
        return isSetCex();
12092
      }
12093
      throw new IllegalStateException();
12094
    }
12095
 
12096
    @Override
12097
    public boolean equals(Object that) {
12098
      if (that == null)
12099
        return false;
12100
      if (that instanceof getItemAvailibilityAtWarehouse_result)
12101
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
12102
      return false;
12103
    }
12104
 
12105
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
12106
      if (that == null)
12107
        return false;
12108
 
12109
      boolean this_present_success = true;
12110
      boolean that_present_success = true;
12111
      if (this_present_success || that_present_success) {
12112
        if (!(this_present_success && that_present_success))
12113
          return false;
12114
        if (this.success != that.success)
12115
          return false;
12116
      }
12117
 
12118
      boolean this_present_cex = true && this.isSetCex();
12119
      boolean that_present_cex = true && that.isSetCex();
12120
      if (this_present_cex || that_present_cex) {
12121
        if (!(this_present_cex && that_present_cex))
12122
          return false;
12123
        if (!this.cex.equals(that.cex))
12124
          return false;
12125
      }
12126
 
12127
      return true;
12128
    }
12129
 
12130
    @Override
12131
    public int hashCode() {
12132
      return 0;
12133
    }
12134
 
12135
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
12136
      if (!getClass().equals(other.getClass())) {
12137
        return getClass().getName().compareTo(other.getClass().getName());
12138
      }
12139
 
12140
      int lastComparison = 0;
12141
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
12142
 
12143
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12144
      if (lastComparison != 0) {
12145
        return lastComparison;
12146
      }
12147
      if (isSetSuccess()) {
12148
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12149
        if (lastComparison != 0) {
12150
          return lastComparison;
12151
        }
12152
      }
12153
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12154
      if (lastComparison != 0) {
12155
        return lastComparison;
12156
      }
12157
      if (isSetCex()) {
12158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12159
        if (lastComparison != 0) {
12160
          return lastComparison;
12161
        }
12162
      }
12163
      return 0;
12164
    }
12165
 
12166
    public _Fields fieldForId(int fieldId) {
12167
      return _Fields.findByThriftId(fieldId);
12168
    }
12169
 
12170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12171
      org.apache.thrift.protocol.TField field;
12172
      iprot.readStructBegin();
12173
      while (true)
12174
      {
12175
        field = iprot.readFieldBegin();
12176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12177
          break;
12178
        }
12179
        switch (field.id) {
12180
          case 0: // SUCCESS
12181
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12182
              this.success = iprot.readI64();
12183
              setSuccessIsSet(true);
12184
            } else { 
12185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12186
            }
12187
            break;
12188
          case 1: // CEX
12189
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12190
              this.cex = new InventoryServiceException();
12191
              this.cex.read(iprot);
12192
            } else { 
12193
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12194
            }
12195
            break;
12196
          default:
12197
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12198
        }
12199
        iprot.readFieldEnd();
12200
      }
12201
      iprot.readStructEnd();
12202
      validate();
12203
    }
12204
 
12205
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12206
      oprot.writeStructBegin(STRUCT_DESC);
12207
 
12208
      if (this.isSetSuccess()) {
12209
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12210
        oprot.writeI64(this.success);
12211
        oprot.writeFieldEnd();
12212
      } else if (this.isSetCex()) {
12213
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12214
        this.cex.write(oprot);
12215
        oprot.writeFieldEnd();
12216
      }
12217
      oprot.writeFieldStop();
12218
      oprot.writeStructEnd();
12219
    }
12220
 
12221
    @Override
12222
    public String toString() {
12223
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
12224
      boolean first = true;
12225
 
12226
      sb.append("success:");
12227
      sb.append(this.success);
12228
      first = false;
12229
      if (!first) sb.append(", ");
12230
      sb.append("cex:");
12231
      if (this.cex == null) {
12232
        sb.append("null");
12233
      } else {
12234
        sb.append(this.cex);
12235
      }
12236
      first = false;
12237
      sb.append(")");
12238
      return sb.toString();
12239
    }
12240
 
12241
    public void validate() throws org.apache.thrift.TException {
12242
      // check for required fields
12243
    }
12244
 
12245
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12246
      try {
12247
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12248
      } catch (org.apache.thrift.TException te) {
12249
        throw new java.io.IOException(te);
12250
      }
12251
    }
12252
 
12253
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12254
      try {
12255
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12256
      } catch (org.apache.thrift.TException te) {
12257
        throw new java.io.IOException(te);
12258
      }
12259
    }
12260
 
12261
  }
12262
 
12263
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
12264
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
12265
 
12266
    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);
5978 rajveer 12267
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)2);
5945 mandeep.dh 12268
 
12269
    private long itemId; // required
5978 rajveer 12270
    private long sourceId; // required
5945 mandeep.dh 12271
 
12272
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12273
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 12274
      ITEM_ID((short)1, "itemId"),
12275
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 12276
 
12277
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12278
 
12279
      static {
12280
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12281
          byName.put(field.getFieldName(), field);
12282
        }
12283
      }
12284
 
12285
      /**
12286
       * Find the _Fields constant that matches fieldId, or null if its not found.
12287
       */
12288
      public static _Fields findByThriftId(int fieldId) {
12289
        switch(fieldId) {
12290
          case 1: // ITEM_ID
12291
            return ITEM_ID;
5978 rajveer 12292
          case 2: // SOURCE_ID
12293
            return SOURCE_ID;
5945 mandeep.dh 12294
          default:
12295
            return null;
12296
        }
12297
      }
12298
 
12299
      /**
12300
       * Find the _Fields constant that matches fieldId, throwing an exception
12301
       * if it is not found.
12302
       */
12303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12304
        _Fields fields = findByThriftId(fieldId);
12305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12306
        return fields;
12307
      }
12308
 
12309
      /**
12310
       * Find the _Fields constant that matches name, or null if its not found.
12311
       */
12312
      public static _Fields findByName(String name) {
12313
        return byName.get(name);
12314
      }
12315
 
12316
      private final short _thriftId;
12317
      private final String _fieldName;
12318
 
12319
      _Fields(short thriftId, String fieldName) {
12320
        _thriftId = thriftId;
12321
        _fieldName = fieldName;
12322
      }
12323
 
12324
      public short getThriftFieldId() {
12325
        return _thriftId;
12326
      }
12327
 
12328
      public String getFieldName() {
12329
        return _fieldName;
12330
      }
12331
    }
12332
 
12333
    // isset id assignments
12334
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 12335
    private static final int __SOURCEID_ISSET_ID = 1;
12336
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 12337
 
12338
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12339
    static {
12340
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12341
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12342
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 12343
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12344
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 12345
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12346
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
12347
    }
12348
 
12349
    public getItemAvailabilityAtLocation_args() {
12350
    }
12351
 
12352
    public getItemAvailabilityAtLocation_args(
5978 rajveer 12353
      long itemId,
12354
      long sourceId)
5945 mandeep.dh 12355
    {
12356
      this();
12357
      this.itemId = itemId;
12358
      setItemIdIsSet(true);
5978 rajveer 12359
      this.sourceId = sourceId;
12360
      setSourceIdIsSet(true);
5945 mandeep.dh 12361
    }
12362
 
12363
    /**
12364
     * Performs a deep copy on <i>other</i>.
12365
     */
12366
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
12367
      __isset_bit_vector.clear();
12368
      __isset_bit_vector.or(other.__isset_bit_vector);
12369
      this.itemId = other.itemId;
5978 rajveer 12370
      this.sourceId = other.sourceId;
5945 mandeep.dh 12371
    }
12372
 
12373
    public getItemAvailabilityAtLocation_args deepCopy() {
12374
      return new getItemAvailabilityAtLocation_args(this);
12375
    }
12376
 
12377
    @Override
12378
    public void clear() {
12379
      setItemIdIsSet(false);
12380
      this.itemId = 0;
5978 rajveer 12381
      setSourceIdIsSet(false);
12382
      this.sourceId = 0;
5945 mandeep.dh 12383
    }
12384
 
12385
    public long getItemId() {
12386
      return this.itemId;
12387
    }
12388
 
12389
    public void setItemId(long itemId) {
12390
      this.itemId = itemId;
12391
      setItemIdIsSet(true);
12392
    }
12393
 
12394
    public void unsetItemId() {
12395
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12396
    }
12397
 
12398
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
12399
    public boolean isSetItemId() {
12400
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
12401
    }
12402
 
12403
    public void setItemIdIsSet(boolean value) {
12404
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
12405
    }
12406
 
5978 rajveer 12407
    public long getSourceId() {
12408
      return this.sourceId;
12409
    }
12410
 
12411
    public void setSourceId(long sourceId) {
12412
      this.sourceId = sourceId;
12413
      setSourceIdIsSet(true);
12414
    }
12415
 
12416
    public void unsetSourceId() {
12417
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
12418
    }
12419
 
12420
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
12421
    public boolean isSetSourceId() {
12422
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
12423
    }
12424
 
12425
    public void setSourceIdIsSet(boolean value) {
12426
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
12427
    }
12428
 
5945 mandeep.dh 12429
    public void setFieldValue(_Fields field, Object value) {
12430
      switch (field) {
12431
      case ITEM_ID:
12432
        if (value == null) {
12433
          unsetItemId();
12434
        } else {
12435
          setItemId((Long)value);
12436
        }
12437
        break;
12438
 
5978 rajveer 12439
      case SOURCE_ID:
12440
        if (value == null) {
12441
          unsetSourceId();
12442
        } else {
12443
          setSourceId((Long)value);
12444
        }
12445
        break;
12446
 
5945 mandeep.dh 12447
      }
12448
    }
12449
 
12450
    public Object getFieldValue(_Fields field) {
12451
      switch (field) {
12452
      case ITEM_ID:
12453
        return Long.valueOf(getItemId());
12454
 
5978 rajveer 12455
      case SOURCE_ID:
12456
        return Long.valueOf(getSourceId());
12457
 
5945 mandeep.dh 12458
      }
12459
      throw new IllegalStateException();
12460
    }
12461
 
12462
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12463
    public boolean isSet(_Fields field) {
12464
      if (field == null) {
12465
        throw new IllegalArgumentException();
12466
      }
12467
 
12468
      switch (field) {
12469
      case ITEM_ID:
12470
        return isSetItemId();
5978 rajveer 12471
      case SOURCE_ID:
12472
        return isSetSourceId();
5945 mandeep.dh 12473
      }
12474
      throw new IllegalStateException();
12475
    }
12476
 
12477
    @Override
12478
    public boolean equals(Object that) {
12479
      if (that == null)
12480
        return false;
12481
      if (that instanceof getItemAvailabilityAtLocation_args)
12482
        return this.equals((getItemAvailabilityAtLocation_args)that);
12483
      return false;
12484
    }
12485
 
12486
    public boolean equals(getItemAvailabilityAtLocation_args that) {
12487
      if (that == null)
12488
        return false;
12489
 
12490
      boolean this_present_itemId = true;
12491
      boolean that_present_itemId = true;
12492
      if (this_present_itemId || that_present_itemId) {
12493
        if (!(this_present_itemId && that_present_itemId))
12494
          return false;
12495
        if (this.itemId != that.itemId)
12496
          return false;
12497
      }
12498
 
5978 rajveer 12499
      boolean this_present_sourceId = true;
12500
      boolean that_present_sourceId = true;
12501
      if (this_present_sourceId || that_present_sourceId) {
12502
        if (!(this_present_sourceId && that_present_sourceId))
12503
          return false;
12504
        if (this.sourceId != that.sourceId)
12505
          return false;
12506
      }
12507
 
5945 mandeep.dh 12508
      return true;
12509
    }
12510
 
12511
    @Override
12512
    public int hashCode() {
12513
      return 0;
12514
    }
12515
 
12516
    public int compareTo(getItemAvailabilityAtLocation_args other) {
12517
      if (!getClass().equals(other.getClass())) {
12518
        return getClass().getName().compareTo(other.getClass().getName());
12519
      }
12520
 
12521
      int lastComparison = 0;
12522
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
12523
 
12524
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
12525
      if (lastComparison != 0) {
12526
        return lastComparison;
12527
      }
12528
      if (isSetItemId()) {
12529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
12530
        if (lastComparison != 0) {
12531
          return lastComparison;
12532
        }
12533
      }
5978 rajveer 12534
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
12535
      if (lastComparison != 0) {
12536
        return lastComparison;
12537
      }
12538
      if (isSetSourceId()) {
12539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
12540
        if (lastComparison != 0) {
12541
          return lastComparison;
12542
        }
12543
      }
5945 mandeep.dh 12544
      return 0;
12545
    }
12546
 
12547
    public _Fields fieldForId(int fieldId) {
12548
      return _Fields.findByThriftId(fieldId);
12549
    }
12550
 
12551
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12552
      org.apache.thrift.protocol.TField field;
12553
      iprot.readStructBegin();
12554
      while (true)
12555
      {
12556
        field = iprot.readFieldBegin();
12557
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12558
          break;
12559
        }
12560
        switch (field.id) {
12561
          case 1: // ITEM_ID
12562
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12563
              this.itemId = iprot.readI64();
12564
              setItemIdIsSet(true);
12565
            } else { 
12566
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12567
            }
12568
            break;
5978 rajveer 12569
          case 2: // SOURCE_ID
12570
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12571
              this.sourceId = iprot.readI64();
12572
              setSourceIdIsSet(true);
12573
            } else { 
12574
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12575
            }
12576
            break;
5945 mandeep.dh 12577
          default:
12578
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12579
        }
12580
        iprot.readFieldEnd();
12581
      }
12582
      iprot.readStructEnd();
12583
      validate();
12584
    }
12585
 
12586
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12587
      validate();
12588
 
12589
      oprot.writeStructBegin(STRUCT_DESC);
12590
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
12591
      oprot.writeI64(this.itemId);
12592
      oprot.writeFieldEnd();
5978 rajveer 12593
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
12594
      oprot.writeI64(this.sourceId);
12595
      oprot.writeFieldEnd();
5945 mandeep.dh 12596
      oprot.writeFieldStop();
12597
      oprot.writeStructEnd();
12598
    }
12599
 
12600
    @Override
12601
    public String toString() {
12602
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
12603
      boolean first = true;
12604
 
12605
      sb.append("itemId:");
12606
      sb.append(this.itemId);
12607
      first = false;
5978 rajveer 12608
      if (!first) sb.append(", ");
12609
      sb.append("sourceId:");
12610
      sb.append(this.sourceId);
12611
      first = false;
5945 mandeep.dh 12612
      sb.append(")");
12613
      return sb.toString();
12614
    }
12615
 
12616
    public void validate() throws org.apache.thrift.TException {
12617
      // check for required fields
12618
    }
12619
 
12620
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12621
      try {
12622
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12623
      } catch (org.apache.thrift.TException te) {
12624
        throw new java.io.IOException(te);
12625
      }
12626
    }
12627
 
12628
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12629
      try {
12630
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12631
      } catch (org.apache.thrift.TException te) {
12632
        throw new java.io.IOException(te);
12633
      }
12634
    }
12635
 
12636
  }
12637
 
12638
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
12639
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
12640
 
12641
    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);
12642
    private static final org.apache.thrift.protocol.TField ISEX_FIELD_DESC = new org.apache.thrift.protocol.TField("isex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
12643
 
12644
    private List<Long> success; // required
12645
    private InventoryServiceException isex; // required
12646
 
12647
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12648
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12649
      SUCCESS((short)0, "success"),
12650
      ISEX((short)1, "isex");
12651
 
12652
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12653
 
12654
      static {
12655
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12656
          byName.put(field.getFieldName(), field);
12657
        }
12658
      }
12659
 
12660
      /**
12661
       * Find the _Fields constant that matches fieldId, or null if its not found.
12662
       */
12663
      public static _Fields findByThriftId(int fieldId) {
12664
        switch(fieldId) {
12665
          case 0: // SUCCESS
12666
            return SUCCESS;
12667
          case 1: // ISEX
12668
            return ISEX;
12669
          default:
12670
            return null;
12671
        }
12672
      }
12673
 
12674
      /**
12675
       * Find the _Fields constant that matches fieldId, throwing an exception
12676
       * if it is not found.
12677
       */
12678
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12679
        _Fields fields = findByThriftId(fieldId);
12680
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12681
        return fields;
12682
      }
12683
 
12684
      /**
12685
       * Find the _Fields constant that matches name, or null if its not found.
12686
       */
12687
      public static _Fields findByName(String name) {
12688
        return byName.get(name);
12689
      }
12690
 
12691
      private final short _thriftId;
12692
      private final String _fieldName;
12693
 
12694
      _Fields(short thriftId, String fieldName) {
12695
        _thriftId = thriftId;
12696
        _fieldName = fieldName;
12697
      }
12698
 
12699
      public short getThriftFieldId() {
12700
        return _thriftId;
12701
      }
12702
 
12703
      public String getFieldName() {
12704
        return _fieldName;
12705
      }
12706
    }
12707
 
12708
    // isset id assignments
12709
 
12710
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12711
    static {
12712
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12713
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12714
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12715
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
12716
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
12720
    }
12721
 
12722
    public getItemAvailabilityAtLocation_result() {
12723
    }
12724
 
12725
    public getItemAvailabilityAtLocation_result(
12726
      List<Long> success,
12727
      InventoryServiceException isex)
12728
    {
12729
      this();
12730
      this.success = success;
12731
      this.isex = isex;
12732
    }
12733
 
12734
    /**
12735
     * Performs a deep copy on <i>other</i>.
12736
     */
12737
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
12738
      if (other.isSetSuccess()) {
12739
        List<Long> __this__success = new ArrayList<Long>();
12740
        for (Long other_element : other.success) {
12741
          __this__success.add(other_element);
12742
        }
12743
        this.success = __this__success;
12744
      }
12745
      if (other.isSetIsex()) {
12746
        this.isex = new InventoryServiceException(other.isex);
12747
      }
12748
    }
12749
 
12750
    public getItemAvailabilityAtLocation_result deepCopy() {
12751
      return new getItemAvailabilityAtLocation_result(this);
12752
    }
12753
 
12754
    @Override
12755
    public void clear() {
12756
      this.success = null;
12757
      this.isex = null;
12758
    }
12759
 
12760
    public int getSuccessSize() {
12761
      return (this.success == null) ? 0 : this.success.size();
12762
    }
12763
 
12764
    public java.util.Iterator<Long> getSuccessIterator() {
12765
      return (this.success == null) ? null : this.success.iterator();
12766
    }
12767
 
12768
    public void addToSuccess(long elem) {
12769
      if (this.success == null) {
12770
        this.success = new ArrayList<Long>();
12771
      }
12772
      this.success.add(elem);
12773
    }
12774
 
12775
    public List<Long> getSuccess() {
12776
      return this.success;
12777
    }
12778
 
12779
    public void setSuccess(List<Long> success) {
12780
      this.success = success;
12781
    }
12782
 
12783
    public void unsetSuccess() {
12784
      this.success = null;
12785
    }
12786
 
12787
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12788
    public boolean isSetSuccess() {
12789
      return this.success != null;
12790
    }
12791
 
12792
    public void setSuccessIsSet(boolean value) {
12793
      if (!value) {
12794
        this.success = null;
12795
      }
12796
    }
12797
 
12798
    public InventoryServiceException getIsex() {
12799
      return this.isex;
12800
    }
12801
 
12802
    public void setIsex(InventoryServiceException isex) {
12803
      this.isex = isex;
12804
    }
12805
 
12806
    public void unsetIsex() {
12807
      this.isex = null;
12808
    }
12809
 
12810
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
12811
    public boolean isSetIsex() {
12812
      return this.isex != null;
12813
    }
12814
 
12815
    public void setIsexIsSet(boolean value) {
12816
      if (!value) {
12817
        this.isex = null;
12818
      }
12819
    }
12820
 
12821
    public void setFieldValue(_Fields field, Object value) {
12822
      switch (field) {
12823
      case SUCCESS:
12824
        if (value == null) {
12825
          unsetSuccess();
12826
        } else {
12827
          setSuccess((List<Long>)value);
12828
        }
12829
        break;
12830
 
12831
      case ISEX:
12832
        if (value == null) {
12833
          unsetIsex();
12834
        } else {
12835
          setIsex((InventoryServiceException)value);
12836
        }
12837
        break;
12838
 
12839
      }
12840
    }
12841
 
12842
    public Object getFieldValue(_Fields field) {
12843
      switch (field) {
12844
      case SUCCESS:
12845
        return getSuccess();
12846
 
12847
      case ISEX:
12848
        return getIsex();
12849
 
12850
      }
12851
      throw new IllegalStateException();
12852
    }
12853
 
12854
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12855
    public boolean isSet(_Fields field) {
12856
      if (field == null) {
12857
        throw new IllegalArgumentException();
12858
      }
12859
 
12860
      switch (field) {
12861
      case SUCCESS:
12862
        return isSetSuccess();
12863
      case ISEX:
12864
        return isSetIsex();
12865
      }
12866
      throw new IllegalStateException();
12867
    }
12868
 
12869
    @Override
12870
    public boolean equals(Object that) {
12871
      if (that == null)
12872
        return false;
12873
      if (that instanceof getItemAvailabilityAtLocation_result)
12874
        return this.equals((getItemAvailabilityAtLocation_result)that);
12875
      return false;
12876
    }
12877
 
12878
    public boolean equals(getItemAvailabilityAtLocation_result that) {
12879
      if (that == null)
12880
        return false;
12881
 
12882
      boolean this_present_success = true && this.isSetSuccess();
12883
      boolean that_present_success = true && that.isSetSuccess();
12884
      if (this_present_success || that_present_success) {
12885
        if (!(this_present_success && that_present_success))
12886
          return false;
12887
        if (!this.success.equals(that.success))
12888
          return false;
12889
      }
12890
 
12891
      boolean this_present_isex = true && this.isSetIsex();
12892
      boolean that_present_isex = true && that.isSetIsex();
12893
      if (this_present_isex || that_present_isex) {
12894
        if (!(this_present_isex && that_present_isex))
12895
          return false;
12896
        if (!this.isex.equals(that.isex))
12897
          return false;
12898
      }
12899
 
12900
      return true;
12901
    }
12902
 
12903
    @Override
12904
    public int hashCode() {
12905
      return 0;
12906
    }
12907
 
12908
    public int compareTo(getItemAvailabilityAtLocation_result other) {
12909
      if (!getClass().equals(other.getClass())) {
12910
        return getClass().getName().compareTo(other.getClass().getName());
12911
      }
12912
 
12913
      int lastComparison = 0;
12914
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
12915
 
12916
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12917
      if (lastComparison != 0) {
12918
        return lastComparison;
12919
      }
12920
      if (isSetSuccess()) {
12921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12922
        if (lastComparison != 0) {
12923
          return lastComparison;
12924
        }
12925
      }
12926
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
12927
      if (lastComparison != 0) {
12928
        return lastComparison;
12929
      }
12930
      if (isSetIsex()) {
12931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
12932
        if (lastComparison != 0) {
12933
          return lastComparison;
12934
        }
12935
      }
12936
      return 0;
12937
    }
12938
 
12939
    public _Fields fieldForId(int fieldId) {
12940
      return _Fields.findByThriftId(fieldId);
12941
    }
12942
 
12943
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12944
      org.apache.thrift.protocol.TField field;
12945
      iprot.readStructBegin();
12946
      while (true)
12947
      {
12948
        field = iprot.readFieldBegin();
12949
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12950
          break;
12951
        }
12952
        switch (field.id) {
12953
          case 0: // SUCCESS
12954
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12955
              {
8182 amar.kumar 12956
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
12957
                this.success = new ArrayList<Long>(_list25.size);
12958
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
5945 mandeep.dh 12959
                {
8182 amar.kumar 12960
                  long _elem27; // required
12961
                  _elem27 = iprot.readI64();
12962
                  this.success.add(_elem27);
5945 mandeep.dh 12963
                }
12964
                iprot.readListEnd();
12965
              }
12966
            } else { 
12967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12968
            }
12969
            break;
12970
          case 1: // ISEX
12971
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12972
              this.isex = new InventoryServiceException();
12973
              this.isex.read(iprot);
12974
            } else { 
12975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12976
            }
12977
            break;
12978
          default:
12979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12980
        }
12981
        iprot.readFieldEnd();
12982
      }
12983
      iprot.readStructEnd();
12984
      validate();
12985
    }
12986
 
12987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12988
      oprot.writeStructBegin(STRUCT_DESC);
12989
 
12990
      if (this.isSetSuccess()) {
12991
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12992
        {
12993
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 12994
          for (long _iter28 : this.success)
5945 mandeep.dh 12995
          {
8182 amar.kumar 12996
            oprot.writeI64(_iter28);
5945 mandeep.dh 12997
          }
12998
          oprot.writeListEnd();
12999
        }
13000
        oprot.writeFieldEnd();
13001
      } else if (this.isSetIsex()) {
13002
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
13003
        this.isex.write(oprot);
13004
        oprot.writeFieldEnd();
13005
      }
13006
      oprot.writeFieldStop();
13007
      oprot.writeStructEnd();
13008
    }
13009
 
13010
    @Override
13011
    public String toString() {
13012
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
13013
      boolean first = true;
13014
 
13015
      sb.append("success:");
13016
      if (this.success == null) {
13017
        sb.append("null");
13018
      } else {
13019
        sb.append(this.success);
13020
      }
13021
      first = false;
13022
      if (!first) sb.append(", ");
13023
      sb.append("isex:");
13024
      if (this.isex == null) {
13025
        sb.append("null");
13026
      } else {
13027
        sb.append(this.isex);
13028
      }
13029
      first = false;
13030
      sb.append(")");
13031
      return sb.toString();
13032
    }
13033
 
13034
    public void validate() throws org.apache.thrift.TException {
13035
      // check for required fields
13036
    }
13037
 
13038
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13039
      try {
13040
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13041
      } catch (org.apache.thrift.TException te) {
13042
        throw new java.io.IOException(te);
13043
      }
13044
    }
13045
 
13046
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13047
      try {
13048
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13049
      } catch (org.apache.thrift.TException te) {
13050
        throw new java.io.IOException(te);
13051
      }
13052
    }
13053
 
13054
  }
13055
 
13056
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
13057
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
13058
 
13059
    private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)1);
13060
 
13061
    private boolean isActive; // required
13062
 
13063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13065
      IS_ACTIVE((short)1, "isActive");
13066
 
13067
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13068
 
13069
      static {
13070
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13071
          byName.put(field.getFieldName(), field);
13072
        }
13073
      }
13074
 
13075
      /**
13076
       * Find the _Fields constant that matches fieldId, or null if its not found.
13077
       */
13078
      public static _Fields findByThriftId(int fieldId) {
13079
        switch(fieldId) {
13080
          case 1: // IS_ACTIVE
13081
            return IS_ACTIVE;
13082
          default:
13083
            return null;
13084
        }
13085
      }
13086
 
13087
      /**
13088
       * Find the _Fields constant that matches fieldId, throwing an exception
13089
       * if it is not found.
13090
       */
13091
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13092
        _Fields fields = findByThriftId(fieldId);
13093
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13094
        return fields;
13095
      }
13096
 
13097
      /**
13098
       * Find the _Fields constant that matches name, or null if its not found.
13099
       */
13100
      public static _Fields findByName(String name) {
13101
        return byName.get(name);
13102
      }
13103
 
13104
      private final short _thriftId;
13105
      private final String _fieldName;
13106
 
13107
      _Fields(short thriftId, String fieldName) {
13108
        _thriftId = thriftId;
13109
        _fieldName = fieldName;
13110
      }
13111
 
13112
      public short getThriftFieldId() {
13113
        return _thriftId;
13114
      }
13115
 
13116
      public String getFieldName() {
13117
        return _fieldName;
13118
      }
13119
    }
13120
 
13121
    // isset id assignments
13122
    private static final int __ISACTIVE_ISSET_ID = 0;
13123
    private BitSet __isset_bit_vector = new BitSet(1);
13124
 
13125
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13126
    static {
13127
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13128
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13130
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13131
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
13132
    }
13133
 
13134
    public getAllWarehouses_args() {
13135
    }
13136
 
13137
    public getAllWarehouses_args(
13138
      boolean isActive)
13139
    {
13140
      this();
13141
      this.isActive = isActive;
13142
      setIsActiveIsSet(true);
13143
    }
13144
 
13145
    /**
13146
     * Performs a deep copy on <i>other</i>.
13147
     */
13148
    public getAllWarehouses_args(getAllWarehouses_args other) {
13149
      __isset_bit_vector.clear();
13150
      __isset_bit_vector.or(other.__isset_bit_vector);
13151
      this.isActive = other.isActive;
13152
    }
13153
 
13154
    public getAllWarehouses_args deepCopy() {
13155
      return new getAllWarehouses_args(this);
13156
    }
13157
 
13158
    @Override
13159
    public void clear() {
13160
      setIsActiveIsSet(false);
13161
      this.isActive = false;
13162
    }
13163
 
13164
    public boolean isIsActive() {
13165
      return this.isActive;
13166
    }
13167
 
13168
    public void setIsActive(boolean isActive) {
13169
      this.isActive = isActive;
13170
      setIsActiveIsSet(true);
13171
    }
13172
 
13173
    public void unsetIsActive() {
13174
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
13175
    }
13176
 
13177
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
13178
    public boolean isSetIsActive() {
13179
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
13180
    }
13181
 
13182
    public void setIsActiveIsSet(boolean value) {
13183
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
13184
    }
13185
 
13186
    public void setFieldValue(_Fields field, Object value) {
13187
      switch (field) {
13188
      case IS_ACTIVE:
13189
        if (value == null) {
13190
          unsetIsActive();
13191
        } else {
13192
          setIsActive((Boolean)value);
13193
        }
13194
        break;
13195
 
13196
      }
13197
    }
13198
 
13199
    public Object getFieldValue(_Fields field) {
13200
      switch (field) {
13201
      case IS_ACTIVE:
13202
        return Boolean.valueOf(isIsActive());
13203
 
13204
      }
13205
      throw new IllegalStateException();
13206
    }
13207
 
13208
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13209
    public boolean isSet(_Fields field) {
13210
      if (field == null) {
13211
        throw new IllegalArgumentException();
13212
      }
13213
 
13214
      switch (field) {
13215
      case IS_ACTIVE:
13216
        return isSetIsActive();
13217
      }
13218
      throw new IllegalStateException();
13219
    }
13220
 
13221
    @Override
13222
    public boolean equals(Object that) {
13223
      if (that == null)
13224
        return false;
13225
      if (that instanceof getAllWarehouses_args)
13226
        return this.equals((getAllWarehouses_args)that);
13227
      return false;
13228
    }
13229
 
13230
    public boolean equals(getAllWarehouses_args that) {
13231
      if (that == null)
13232
        return false;
13233
 
13234
      boolean this_present_isActive = true;
13235
      boolean that_present_isActive = true;
13236
      if (this_present_isActive || that_present_isActive) {
13237
        if (!(this_present_isActive && that_present_isActive))
13238
          return false;
13239
        if (this.isActive != that.isActive)
13240
          return false;
13241
      }
13242
 
13243
      return true;
13244
    }
13245
 
13246
    @Override
13247
    public int hashCode() {
13248
      return 0;
13249
    }
13250
 
13251
    public int compareTo(getAllWarehouses_args other) {
13252
      if (!getClass().equals(other.getClass())) {
13253
        return getClass().getName().compareTo(other.getClass().getName());
13254
      }
13255
 
13256
      int lastComparison = 0;
13257
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
13258
 
13259
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
13260
      if (lastComparison != 0) {
13261
        return lastComparison;
13262
      }
13263
      if (isSetIsActive()) {
13264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
13265
        if (lastComparison != 0) {
13266
          return lastComparison;
13267
        }
13268
      }
13269
      return 0;
13270
    }
13271
 
13272
    public _Fields fieldForId(int fieldId) {
13273
      return _Fields.findByThriftId(fieldId);
13274
    }
13275
 
13276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13277
      org.apache.thrift.protocol.TField field;
13278
      iprot.readStructBegin();
13279
      while (true)
13280
      {
13281
        field = iprot.readFieldBegin();
13282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13283
          break;
13284
        }
13285
        switch (field.id) {
13286
          case 1: // IS_ACTIVE
13287
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13288
              this.isActive = iprot.readBool();
13289
              setIsActiveIsSet(true);
13290
            } else { 
13291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13292
            }
13293
            break;
13294
          default:
13295
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13296
        }
13297
        iprot.readFieldEnd();
13298
      }
13299
      iprot.readStructEnd();
13300
      validate();
13301
    }
13302
 
13303
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13304
      validate();
13305
 
13306
      oprot.writeStructBegin(STRUCT_DESC);
13307
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
13308
      oprot.writeBool(this.isActive);
13309
      oprot.writeFieldEnd();
13310
      oprot.writeFieldStop();
13311
      oprot.writeStructEnd();
13312
    }
13313
 
13314
    @Override
13315
    public String toString() {
13316
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
13317
      boolean first = true;
13318
 
13319
      sb.append("isActive:");
13320
      sb.append(this.isActive);
13321
      first = false;
13322
      sb.append(")");
13323
      return sb.toString();
13324
    }
13325
 
13326
    public void validate() throws org.apache.thrift.TException {
13327
      // check for required fields
13328
    }
13329
 
13330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13331
      try {
13332
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13333
      } catch (org.apache.thrift.TException te) {
13334
        throw new java.io.IOException(te);
13335
      }
13336
    }
13337
 
13338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13339
      try {
7968 amar.kumar 13340
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13341
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 13342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13343
      } catch (org.apache.thrift.TException te) {
13344
        throw new java.io.IOException(te);
13345
      }
13346
    }
13347
 
13348
  }
13349
 
13350
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
13351
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
13352
 
13353
    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);
13354
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
13355
 
13356
    private List<Warehouse> success; // required
13357
    private InventoryServiceException cex; // required
13358
 
13359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13360
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13361
      SUCCESS((short)0, "success"),
13362
      CEX((short)1, "cex");
13363
 
13364
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13365
 
13366
      static {
13367
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13368
          byName.put(field.getFieldName(), field);
13369
        }
13370
      }
13371
 
13372
      /**
13373
       * Find the _Fields constant that matches fieldId, or null if its not found.
13374
       */
13375
      public static _Fields findByThriftId(int fieldId) {
13376
        switch(fieldId) {
13377
          case 0: // SUCCESS
13378
            return SUCCESS;
13379
          case 1: // CEX
13380
            return CEX;
13381
          default:
13382
            return null;
13383
        }
13384
      }
13385
 
13386
      /**
13387
       * Find the _Fields constant that matches fieldId, throwing an exception
13388
       * if it is not found.
13389
       */
13390
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13391
        _Fields fields = findByThriftId(fieldId);
13392
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13393
        return fields;
13394
      }
13395
 
13396
      /**
13397
       * Find the _Fields constant that matches name, or null if its not found.
13398
       */
13399
      public static _Fields findByName(String name) {
13400
        return byName.get(name);
13401
      }
13402
 
13403
      private final short _thriftId;
13404
      private final String _fieldName;
13405
 
13406
      _Fields(short thriftId, String fieldName) {
13407
        _thriftId = thriftId;
13408
        _fieldName = fieldName;
13409
      }
13410
 
13411
      public short getThriftFieldId() {
13412
        return _thriftId;
13413
      }
13414
 
13415
      public String getFieldName() {
13416
        return _fieldName;
13417
      }
13418
    }
13419
 
13420
    // isset id assignments
13421
 
13422
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13423
    static {
13424
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13425
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13426
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13427
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
13428
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
13432
    }
13433
 
13434
    public getAllWarehouses_result() {
13435
    }
13436
 
13437
    public getAllWarehouses_result(
13438
      List<Warehouse> success,
13439
      InventoryServiceException cex)
13440
    {
13441
      this();
13442
      this.success = success;
13443
      this.cex = cex;
13444
    }
13445
 
13446
    /**
13447
     * Performs a deep copy on <i>other</i>.
13448
     */
13449
    public getAllWarehouses_result(getAllWarehouses_result other) {
13450
      if (other.isSetSuccess()) {
13451
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
13452
        for (Warehouse other_element : other.success) {
13453
          __this__success.add(new Warehouse(other_element));
13454
        }
13455
        this.success = __this__success;
13456
      }
13457
      if (other.isSetCex()) {
13458
        this.cex = new InventoryServiceException(other.cex);
13459
      }
13460
    }
13461
 
13462
    public getAllWarehouses_result deepCopy() {
13463
      return new getAllWarehouses_result(this);
13464
    }
13465
 
13466
    @Override
13467
    public void clear() {
13468
      this.success = null;
13469
      this.cex = null;
13470
    }
13471
 
13472
    public int getSuccessSize() {
13473
      return (this.success == null) ? 0 : this.success.size();
13474
    }
13475
 
13476
    public java.util.Iterator<Warehouse> getSuccessIterator() {
13477
      return (this.success == null) ? null : this.success.iterator();
13478
    }
13479
 
13480
    public void addToSuccess(Warehouse elem) {
13481
      if (this.success == null) {
13482
        this.success = new ArrayList<Warehouse>();
13483
      }
13484
      this.success.add(elem);
13485
    }
13486
 
13487
    public List<Warehouse> getSuccess() {
13488
      return this.success;
13489
    }
13490
 
13491
    public void setSuccess(List<Warehouse> success) {
13492
      this.success = success;
13493
    }
13494
 
13495
    public void unsetSuccess() {
13496
      this.success = null;
13497
    }
13498
 
13499
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13500
    public boolean isSetSuccess() {
13501
      return this.success != null;
13502
    }
13503
 
13504
    public void setSuccessIsSet(boolean value) {
13505
      if (!value) {
13506
        this.success = null;
13507
      }
13508
    }
13509
 
13510
    public InventoryServiceException getCex() {
13511
      return this.cex;
13512
    }
13513
 
13514
    public void setCex(InventoryServiceException cex) {
13515
      this.cex = cex;
13516
    }
13517
 
13518
    public void unsetCex() {
13519
      this.cex = null;
13520
    }
13521
 
13522
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
13523
    public boolean isSetCex() {
13524
      return this.cex != null;
13525
    }
13526
 
13527
    public void setCexIsSet(boolean value) {
13528
      if (!value) {
13529
        this.cex = null;
13530
      }
13531
    }
13532
 
13533
    public void setFieldValue(_Fields field, Object value) {
13534
      switch (field) {
13535
      case SUCCESS:
13536
        if (value == null) {
13537
          unsetSuccess();
13538
        } else {
13539
          setSuccess((List<Warehouse>)value);
13540
        }
13541
        break;
13542
 
13543
      case CEX:
13544
        if (value == null) {
13545
          unsetCex();
13546
        } else {
13547
          setCex((InventoryServiceException)value);
13548
        }
13549
        break;
13550
 
13551
      }
13552
    }
13553
 
13554
    public Object getFieldValue(_Fields field) {
13555
      switch (field) {
13556
      case SUCCESS:
13557
        return getSuccess();
13558
 
13559
      case CEX:
13560
        return getCex();
13561
 
13562
      }
13563
      throw new IllegalStateException();
13564
    }
13565
 
13566
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13567
    public boolean isSet(_Fields field) {
13568
      if (field == null) {
13569
        throw new IllegalArgumentException();
13570
      }
13571
 
13572
      switch (field) {
13573
      case SUCCESS:
13574
        return isSetSuccess();
13575
      case CEX:
13576
        return isSetCex();
13577
      }
13578
      throw new IllegalStateException();
13579
    }
13580
 
13581
    @Override
13582
    public boolean equals(Object that) {
13583
      if (that == null)
13584
        return false;
13585
      if (that instanceof getAllWarehouses_result)
13586
        return this.equals((getAllWarehouses_result)that);
13587
      return false;
13588
    }
13589
 
13590
    public boolean equals(getAllWarehouses_result that) {
13591
      if (that == null)
13592
        return false;
13593
 
13594
      boolean this_present_success = true && this.isSetSuccess();
13595
      boolean that_present_success = true && that.isSetSuccess();
13596
      if (this_present_success || that_present_success) {
13597
        if (!(this_present_success && that_present_success))
13598
          return false;
13599
        if (!this.success.equals(that.success))
13600
          return false;
13601
      }
13602
 
13603
      boolean this_present_cex = true && this.isSetCex();
13604
      boolean that_present_cex = true && that.isSetCex();
13605
      if (this_present_cex || that_present_cex) {
13606
        if (!(this_present_cex && that_present_cex))
13607
          return false;
13608
        if (!this.cex.equals(that.cex))
13609
          return false;
13610
      }
13611
 
13612
      return true;
13613
    }
13614
 
13615
    @Override
13616
    public int hashCode() {
13617
      return 0;
13618
    }
13619
 
13620
    public int compareTo(getAllWarehouses_result other) {
13621
      if (!getClass().equals(other.getClass())) {
13622
        return getClass().getName().compareTo(other.getClass().getName());
13623
      }
13624
 
13625
      int lastComparison = 0;
13626
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
13627
 
13628
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13629
      if (lastComparison != 0) {
13630
        return lastComparison;
13631
      }
13632
      if (isSetSuccess()) {
13633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13634
        if (lastComparison != 0) {
13635
          return lastComparison;
13636
        }
13637
      }
13638
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
13639
      if (lastComparison != 0) {
13640
        return lastComparison;
13641
      }
13642
      if (isSetCex()) {
13643
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
13644
        if (lastComparison != 0) {
13645
          return lastComparison;
13646
        }
13647
      }
13648
      return 0;
13649
    }
13650
 
13651
    public _Fields fieldForId(int fieldId) {
13652
      return _Fields.findByThriftId(fieldId);
13653
    }
13654
 
13655
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13656
      org.apache.thrift.protocol.TField field;
13657
      iprot.readStructBegin();
13658
      while (true)
13659
      {
13660
        field = iprot.readFieldBegin();
13661
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13662
          break;
13663
        }
13664
        switch (field.id) {
13665
          case 0: // SUCCESS
13666
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13667
              {
8182 amar.kumar 13668
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
13669
                this.success = new ArrayList<Warehouse>(_list29.size);
13670
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
5945 mandeep.dh 13671
                {
8182 amar.kumar 13672
                  Warehouse _elem31; // required
13673
                  _elem31 = new Warehouse();
13674
                  _elem31.read(iprot);
13675
                  this.success.add(_elem31);
5945 mandeep.dh 13676
                }
13677
                iprot.readListEnd();
13678
              }
13679
            } else { 
13680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13681
            }
13682
            break;
13683
          case 1: // CEX
13684
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13685
              this.cex = new InventoryServiceException();
13686
              this.cex.read(iprot);
13687
            } else { 
13688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13689
            }
13690
            break;
13691
          default:
13692
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13693
        }
13694
        iprot.readFieldEnd();
13695
      }
13696
      iprot.readStructEnd();
13697
      validate();
13698
    }
13699
 
13700
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13701
      oprot.writeStructBegin(STRUCT_DESC);
13702
 
13703
      if (this.isSetSuccess()) {
13704
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13705
        {
13706
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 13707
          for (Warehouse _iter32 : this.success)
5945 mandeep.dh 13708
          {
8182 amar.kumar 13709
            _iter32.write(oprot);
5945 mandeep.dh 13710
          }
13711
          oprot.writeListEnd();
13712
        }
13713
        oprot.writeFieldEnd();
13714
      } else if (this.isSetCex()) {
13715
        oprot.writeFieldBegin(CEX_FIELD_DESC);
13716
        this.cex.write(oprot);
13717
        oprot.writeFieldEnd();
13718
      }
13719
      oprot.writeFieldStop();
13720
      oprot.writeStructEnd();
13721
    }
13722
 
13723
    @Override
13724
    public String toString() {
13725
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
13726
      boolean first = true;
13727
 
13728
      sb.append("success:");
13729
      if (this.success == null) {
13730
        sb.append("null");
13731
      } else {
13732
        sb.append(this.success);
13733
      }
13734
      first = false;
13735
      if (!first) sb.append(", ");
13736
      sb.append("cex:");
13737
      if (this.cex == null) {
13738
        sb.append("null");
13739
      } else {
13740
        sb.append(this.cex);
13741
      }
13742
      first = false;
13743
      sb.append(")");
13744
      return sb.toString();
13745
    }
13746
 
13747
    public void validate() throws org.apache.thrift.TException {
13748
      // check for required fields
13749
    }
13750
 
13751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13752
      try {
13753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13754
      } catch (org.apache.thrift.TException te) {
13755
        throw new java.io.IOException(te);
13756
      }
13757
    }
13758
 
13759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13760
      try {
13761
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13762
      } catch (org.apache.thrift.TException te) {
13763
        throw new java.io.IOException(te);
13764
      }
13765
    }
13766
 
13767
  }
13768
 
13769
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
13770
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
13771
 
13772
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
13773
 
13774
    private long warehouse_id; // required
13775
 
13776
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13777
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13778
      WAREHOUSE_ID((short)1, "warehouse_id");
13779
 
13780
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13781
 
13782
      static {
13783
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13784
          byName.put(field.getFieldName(), field);
13785
        }
13786
      }
13787
 
13788
      /**
13789
       * Find the _Fields constant that matches fieldId, or null if its not found.
13790
       */
13791
      public static _Fields findByThriftId(int fieldId) {
13792
        switch(fieldId) {
13793
          case 1: // WAREHOUSE_ID
13794
            return WAREHOUSE_ID;
13795
          default:
13796
            return null;
13797
        }
13798
      }
13799
 
13800
      /**
13801
       * Find the _Fields constant that matches fieldId, throwing an exception
13802
       * if it is not found.
13803
       */
13804
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13805
        _Fields fields = findByThriftId(fieldId);
13806
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13807
        return fields;
13808
      }
13809
 
13810
      /**
13811
       * Find the _Fields constant that matches name, or null if its not found.
13812
       */
13813
      public static _Fields findByName(String name) {
13814
        return byName.get(name);
13815
      }
13816
 
13817
      private final short _thriftId;
13818
      private final String _fieldName;
13819
 
13820
      _Fields(short thriftId, String fieldName) {
13821
        _thriftId = thriftId;
13822
        _fieldName = fieldName;
13823
      }
13824
 
13825
      public short getThriftFieldId() {
13826
        return _thriftId;
13827
      }
13828
 
13829
      public String getFieldName() {
13830
        return _fieldName;
13831
      }
13832
    }
13833
 
13834
    // isset id assignments
13835
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
13836
    private BitSet __isset_bit_vector = new BitSet(1);
13837
 
13838
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13839
    static {
13840
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13841
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13842
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13843
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13844
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
13845
    }
13846
 
13847
    public getWarehouse_args() {
13848
    }
13849
 
13850
    public getWarehouse_args(
13851
      long warehouse_id)
13852
    {
13853
      this();
13854
      this.warehouse_id = warehouse_id;
13855
      setWarehouse_idIsSet(true);
13856
    }
13857
 
13858
    /**
13859
     * Performs a deep copy on <i>other</i>.
13860
     */
13861
    public getWarehouse_args(getWarehouse_args other) {
13862
      __isset_bit_vector.clear();
13863
      __isset_bit_vector.or(other.__isset_bit_vector);
13864
      this.warehouse_id = other.warehouse_id;
13865
    }
13866
 
13867
    public getWarehouse_args deepCopy() {
13868
      return new getWarehouse_args(this);
13869
    }
13870
 
13871
    @Override
13872
    public void clear() {
13873
      setWarehouse_idIsSet(false);
13874
      this.warehouse_id = 0;
13875
    }
13876
 
13877
    public long getWarehouse_id() {
13878
      return this.warehouse_id;
13879
    }
13880
 
13881
    public void setWarehouse_id(long warehouse_id) {
13882
      this.warehouse_id = warehouse_id;
13883
      setWarehouse_idIsSet(true);
13884
    }
13885
 
13886
    public void unsetWarehouse_id() {
13887
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
13888
    }
13889
 
13890
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
13891
    public boolean isSetWarehouse_id() {
13892
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
13893
    }
13894
 
13895
    public void setWarehouse_idIsSet(boolean value) {
13896
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
13897
    }
13898
 
13899
    public void setFieldValue(_Fields field, Object value) {
13900
      switch (field) {
13901
      case WAREHOUSE_ID:
13902
        if (value == null) {
13903
          unsetWarehouse_id();
13904
        } else {
13905
          setWarehouse_id((Long)value);
13906
        }
13907
        break;
13908
 
13909
      }
13910
    }
13911
 
13912
    public Object getFieldValue(_Fields field) {
13913
      switch (field) {
13914
      case WAREHOUSE_ID:
13915
        return Long.valueOf(getWarehouse_id());
13916
 
13917
      }
13918
      throw new IllegalStateException();
13919
    }
13920
 
13921
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13922
    public boolean isSet(_Fields field) {
13923
      if (field == null) {
13924
        throw new IllegalArgumentException();
13925
      }
13926
 
13927
      switch (field) {
13928
      case WAREHOUSE_ID:
13929
        return isSetWarehouse_id();
13930
      }
13931
      throw new IllegalStateException();
13932
    }
13933
 
13934
    @Override
13935
    public boolean equals(Object that) {
13936
      if (that == null)
13937
        return false;
13938
      if (that instanceof getWarehouse_args)
13939
        return this.equals((getWarehouse_args)that);
13940
      return false;
13941
    }
13942
 
13943
    public boolean equals(getWarehouse_args that) {
13944
      if (that == null)
13945
        return false;
13946
 
13947
      boolean this_present_warehouse_id = true;
13948
      boolean that_present_warehouse_id = true;
13949
      if (this_present_warehouse_id || that_present_warehouse_id) {
13950
        if (!(this_present_warehouse_id && that_present_warehouse_id))
13951
          return false;
13952
        if (this.warehouse_id != that.warehouse_id)
13953
          return false;
13954
      }
13955
 
13956
      return true;
13957
    }
13958
 
13959
    @Override
13960
    public int hashCode() {
13961
      return 0;
13962
    }
13963
 
13964
    public int compareTo(getWarehouse_args other) {
13965
      if (!getClass().equals(other.getClass())) {
13966
        return getClass().getName().compareTo(other.getClass().getName());
13967
      }
13968
 
13969
      int lastComparison = 0;
13970
      getWarehouse_args typedOther = (getWarehouse_args)other;
13971
 
13972
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
13973
      if (lastComparison != 0) {
13974
        return lastComparison;
13975
      }
13976
      if (isSetWarehouse_id()) {
13977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
13978
        if (lastComparison != 0) {
13979
          return lastComparison;
13980
        }
13981
      }
13982
      return 0;
13983
    }
13984
 
13985
    public _Fields fieldForId(int fieldId) {
13986
      return _Fields.findByThriftId(fieldId);
13987
    }
13988
 
13989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13990
      org.apache.thrift.protocol.TField field;
13991
      iprot.readStructBegin();
13992
      while (true)
13993
      {
13994
        field = iprot.readFieldBegin();
13995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13996
          break;
13997
        }
13998
        switch (field.id) {
13999
          case 1: // WAREHOUSE_ID
14000
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14001
              this.warehouse_id = iprot.readI64();
14002
              setWarehouse_idIsSet(true);
14003
            } else { 
14004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14005
            }
14006
            break;
14007
          default:
14008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14009
        }
14010
        iprot.readFieldEnd();
14011
      }
14012
      iprot.readStructEnd();
14013
      validate();
14014
    }
14015
 
14016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14017
      validate();
14018
 
14019
      oprot.writeStructBegin(STRUCT_DESC);
14020
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14021
      oprot.writeI64(this.warehouse_id);
14022
      oprot.writeFieldEnd();
14023
      oprot.writeFieldStop();
14024
      oprot.writeStructEnd();
14025
    }
14026
 
14027
    @Override
14028
    public String toString() {
14029
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
14030
      boolean first = true;
14031
 
14032
      sb.append("warehouse_id:");
14033
      sb.append(this.warehouse_id);
14034
      first = false;
14035
      sb.append(")");
14036
      return sb.toString();
14037
    }
14038
 
14039
    public void validate() throws org.apache.thrift.TException {
14040
      // check for required fields
14041
    }
14042
 
14043
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14044
      try {
14045
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14046
      } catch (org.apache.thrift.TException te) {
14047
        throw new java.io.IOException(te);
14048
      }
14049
    }
14050
 
14051
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14052
      try {
14053
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14054
        __isset_bit_vector = new BitSet(1);
14055
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14056
      } catch (org.apache.thrift.TException te) {
14057
        throw new java.io.IOException(te);
14058
      }
14059
    }
14060
 
14061
  }
14062
 
14063
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
14064
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
14065
 
14066
    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);
14067
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
14068
 
14069
    private Warehouse success; // required
14070
    private InventoryServiceException cex; // required
14071
 
14072
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14073
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14074
      SUCCESS((short)0, "success"),
14075
      CEX((short)1, "cex");
14076
 
14077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14078
 
14079
      static {
14080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14081
          byName.put(field.getFieldName(), field);
14082
        }
14083
      }
14084
 
14085
      /**
14086
       * Find the _Fields constant that matches fieldId, or null if its not found.
14087
       */
14088
      public static _Fields findByThriftId(int fieldId) {
14089
        switch(fieldId) {
14090
          case 0: // SUCCESS
14091
            return SUCCESS;
14092
          case 1: // CEX
14093
            return CEX;
14094
          default:
14095
            return null;
14096
        }
14097
      }
14098
 
14099
      /**
14100
       * Find the _Fields constant that matches fieldId, throwing an exception
14101
       * if it is not found.
14102
       */
14103
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14104
        _Fields fields = findByThriftId(fieldId);
14105
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14106
        return fields;
14107
      }
14108
 
14109
      /**
14110
       * Find the _Fields constant that matches name, or null if its not found.
14111
       */
14112
      public static _Fields findByName(String name) {
14113
        return byName.get(name);
14114
      }
14115
 
14116
      private final short _thriftId;
14117
      private final String _fieldName;
14118
 
14119
      _Fields(short thriftId, String fieldName) {
14120
        _thriftId = thriftId;
14121
        _fieldName = fieldName;
14122
      }
14123
 
14124
      public short getThriftFieldId() {
14125
        return _thriftId;
14126
      }
14127
 
14128
      public String getFieldName() {
14129
        return _fieldName;
14130
      }
14131
    }
14132
 
14133
    // isset id assignments
14134
 
14135
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14136
    static {
14137
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14138
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14139
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
14140
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
14144
    }
14145
 
14146
    public getWarehouse_result() {
14147
    }
14148
 
14149
    public getWarehouse_result(
14150
      Warehouse success,
14151
      InventoryServiceException cex)
14152
    {
14153
      this();
14154
      this.success = success;
14155
      this.cex = cex;
14156
    }
14157
 
14158
    /**
14159
     * Performs a deep copy on <i>other</i>.
14160
     */
14161
    public getWarehouse_result(getWarehouse_result other) {
14162
      if (other.isSetSuccess()) {
14163
        this.success = new Warehouse(other.success);
14164
      }
14165
      if (other.isSetCex()) {
14166
        this.cex = new InventoryServiceException(other.cex);
14167
      }
14168
    }
14169
 
14170
    public getWarehouse_result deepCopy() {
14171
      return new getWarehouse_result(this);
14172
    }
14173
 
14174
    @Override
14175
    public void clear() {
14176
      this.success = null;
14177
      this.cex = null;
14178
    }
14179
 
14180
    public Warehouse getSuccess() {
14181
      return this.success;
14182
    }
14183
 
14184
    public void setSuccess(Warehouse success) {
14185
      this.success = success;
14186
    }
14187
 
14188
    public void unsetSuccess() {
14189
      this.success = null;
14190
    }
14191
 
14192
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14193
    public boolean isSetSuccess() {
14194
      return this.success != null;
14195
    }
14196
 
14197
    public void setSuccessIsSet(boolean value) {
14198
      if (!value) {
14199
        this.success = null;
14200
      }
14201
    }
14202
 
14203
    public InventoryServiceException getCex() {
14204
      return this.cex;
14205
    }
14206
 
14207
    public void setCex(InventoryServiceException cex) {
14208
      this.cex = cex;
14209
    }
14210
 
14211
    public void unsetCex() {
14212
      this.cex = null;
14213
    }
14214
 
14215
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14216
    public boolean isSetCex() {
14217
      return this.cex != null;
14218
    }
14219
 
14220
    public void setCexIsSet(boolean value) {
14221
      if (!value) {
14222
        this.cex = null;
14223
      }
14224
    }
14225
 
14226
    public void setFieldValue(_Fields field, Object value) {
14227
      switch (field) {
14228
      case SUCCESS:
14229
        if (value == null) {
14230
          unsetSuccess();
14231
        } else {
14232
          setSuccess((Warehouse)value);
14233
        }
14234
        break;
14235
 
14236
      case CEX:
14237
        if (value == null) {
14238
          unsetCex();
14239
        } else {
14240
          setCex((InventoryServiceException)value);
14241
        }
14242
        break;
14243
 
14244
      }
14245
    }
14246
 
14247
    public Object getFieldValue(_Fields field) {
14248
      switch (field) {
14249
      case SUCCESS:
14250
        return getSuccess();
14251
 
14252
      case CEX:
14253
        return getCex();
14254
 
14255
      }
14256
      throw new IllegalStateException();
14257
    }
14258
 
14259
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14260
    public boolean isSet(_Fields field) {
14261
      if (field == null) {
14262
        throw new IllegalArgumentException();
14263
      }
14264
 
14265
      switch (field) {
14266
      case SUCCESS:
14267
        return isSetSuccess();
14268
      case CEX:
14269
        return isSetCex();
14270
      }
14271
      throw new IllegalStateException();
14272
    }
14273
 
14274
    @Override
14275
    public boolean equals(Object that) {
14276
      if (that == null)
14277
        return false;
14278
      if (that instanceof getWarehouse_result)
14279
        return this.equals((getWarehouse_result)that);
14280
      return false;
14281
    }
14282
 
14283
    public boolean equals(getWarehouse_result that) {
14284
      if (that == null)
14285
        return false;
14286
 
14287
      boolean this_present_success = true && this.isSetSuccess();
14288
      boolean that_present_success = true && that.isSetSuccess();
14289
      if (this_present_success || that_present_success) {
14290
        if (!(this_present_success && that_present_success))
14291
          return false;
14292
        if (!this.success.equals(that.success))
14293
          return false;
14294
      }
14295
 
14296
      boolean this_present_cex = true && this.isSetCex();
14297
      boolean that_present_cex = true && that.isSetCex();
14298
      if (this_present_cex || that_present_cex) {
14299
        if (!(this_present_cex && that_present_cex))
14300
          return false;
14301
        if (!this.cex.equals(that.cex))
14302
          return false;
14303
      }
14304
 
14305
      return true;
14306
    }
14307
 
14308
    @Override
14309
    public int hashCode() {
14310
      return 0;
14311
    }
14312
 
14313
    public int compareTo(getWarehouse_result other) {
14314
      if (!getClass().equals(other.getClass())) {
14315
        return getClass().getName().compareTo(other.getClass().getName());
14316
      }
14317
 
14318
      int lastComparison = 0;
14319
      getWarehouse_result typedOther = (getWarehouse_result)other;
14320
 
14321
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14322
      if (lastComparison != 0) {
14323
        return lastComparison;
14324
      }
14325
      if (isSetSuccess()) {
14326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14327
        if (lastComparison != 0) {
14328
          return lastComparison;
14329
        }
14330
      }
14331
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14332
      if (lastComparison != 0) {
14333
        return lastComparison;
14334
      }
14335
      if (isSetCex()) {
14336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14337
        if (lastComparison != 0) {
14338
          return lastComparison;
14339
        }
14340
      }
14341
      return 0;
14342
    }
14343
 
14344
    public _Fields fieldForId(int fieldId) {
14345
      return _Fields.findByThriftId(fieldId);
14346
    }
14347
 
14348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14349
      org.apache.thrift.protocol.TField field;
14350
      iprot.readStructBegin();
14351
      while (true)
14352
      {
14353
        field = iprot.readFieldBegin();
14354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14355
          break;
14356
        }
14357
        switch (field.id) {
14358
          case 0: // SUCCESS
14359
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14360
              this.success = new Warehouse();
14361
              this.success.read(iprot);
14362
            } else { 
14363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14364
            }
14365
            break;
14366
          case 1: // CEX
14367
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14368
              this.cex = new InventoryServiceException();
14369
              this.cex.read(iprot);
14370
            } else { 
14371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14372
            }
14373
            break;
14374
          default:
14375
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14376
        }
14377
        iprot.readFieldEnd();
14378
      }
14379
      iprot.readStructEnd();
14380
      validate();
14381
    }
14382
 
14383
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14384
      oprot.writeStructBegin(STRUCT_DESC);
14385
 
14386
      if (this.isSetSuccess()) {
14387
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14388
        this.success.write(oprot);
14389
        oprot.writeFieldEnd();
14390
      } else if (this.isSetCex()) {
14391
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14392
        this.cex.write(oprot);
14393
        oprot.writeFieldEnd();
14394
      }
14395
      oprot.writeFieldStop();
14396
      oprot.writeStructEnd();
14397
    }
14398
 
14399
    @Override
14400
    public String toString() {
14401
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
14402
      boolean first = true;
14403
 
14404
      sb.append("success:");
14405
      if (this.success == null) {
14406
        sb.append("null");
14407
      } else {
14408
        sb.append(this.success);
14409
      }
14410
      first = false;
14411
      if (!first) sb.append(", ");
14412
      sb.append("cex:");
14413
      if (this.cex == null) {
14414
        sb.append("null");
14415
      } else {
14416
        sb.append(this.cex);
14417
      }
14418
      first = false;
14419
      sb.append(")");
14420
      return sb.toString();
14421
    }
14422
 
14423
    public void validate() throws org.apache.thrift.TException {
14424
      // check for required fields
14425
    }
14426
 
14427
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14428
      try {
14429
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14430
      } catch (org.apache.thrift.TException te) {
14431
        throw new java.io.IOException(te);
14432
      }
14433
    }
14434
 
14435
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14436
      try {
14437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14438
      } catch (org.apache.thrift.TException te) {
14439
        throw new java.io.IOException(te);
14440
      }
14441
    }
14442
 
14443
  }
14444
 
14445
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
14446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
14447
 
14448
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
14449
 
14450
    private long warehouse_id; // required
14451
 
14452
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14453
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14454
      WAREHOUSE_ID((short)1, "warehouse_id");
14455
 
14456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14457
 
14458
      static {
14459
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14460
          byName.put(field.getFieldName(), field);
14461
        }
14462
      }
14463
 
14464
      /**
14465
       * Find the _Fields constant that matches fieldId, or null if its not found.
14466
       */
14467
      public static _Fields findByThriftId(int fieldId) {
14468
        switch(fieldId) {
14469
          case 1: // WAREHOUSE_ID
14470
            return WAREHOUSE_ID;
14471
          default:
14472
            return null;
14473
        }
14474
      }
14475
 
14476
      /**
14477
       * Find the _Fields constant that matches fieldId, throwing an exception
14478
       * if it is not found.
14479
       */
14480
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14481
        _Fields fields = findByThriftId(fieldId);
14482
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14483
        return fields;
14484
      }
14485
 
14486
      /**
14487
       * Find the _Fields constant that matches name, or null if its not found.
14488
       */
14489
      public static _Fields findByName(String name) {
14490
        return byName.get(name);
14491
      }
14492
 
14493
      private final short _thriftId;
14494
      private final String _fieldName;
14495
 
14496
      _Fields(short thriftId, String fieldName) {
14497
        _thriftId = thriftId;
14498
        _fieldName = fieldName;
14499
      }
14500
 
14501
      public short getThriftFieldId() {
14502
        return _thriftId;
14503
      }
14504
 
14505
      public String getFieldName() {
14506
        return _fieldName;
14507
      }
14508
    }
14509
 
14510
    // isset id assignments
14511
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
14512
    private BitSet __isset_bit_vector = new BitSet(1);
14513
 
14514
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14515
    static {
14516
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14517
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14518
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14519
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14520
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
14521
    }
14522
 
14523
    public getAllItemsForWarehouse_args() {
14524
    }
14525
 
14526
    public getAllItemsForWarehouse_args(
14527
      long warehouse_id)
14528
    {
14529
      this();
14530
      this.warehouse_id = warehouse_id;
14531
      setWarehouse_idIsSet(true);
14532
    }
14533
 
14534
    /**
14535
     * Performs a deep copy on <i>other</i>.
14536
     */
14537
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
14538
      __isset_bit_vector.clear();
14539
      __isset_bit_vector.or(other.__isset_bit_vector);
14540
      this.warehouse_id = other.warehouse_id;
14541
    }
14542
 
14543
    public getAllItemsForWarehouse_args deepCopy() {
14544
      return new getAllItemsForWarehouse_args(this);
14545
    }
14546
 
14547
    @Override
14548
    public void clear() {
14549
      setWarehouse_idIsSet(false);
14550
      this.warehouse_id = 0;
14551
    }
14552
 
14553
    public long getWarehouse_id() {
14554
      return this.warehouse_id;
14555
    }
14556
 
14557
    public void setWarehouse_id(long warehouse_id) {
14558
      this.warehouse_id = warehouse_id;
14559
      setWarehouse_idIsSet(true);
14560
    }
14561
 
14562
    public void unsetWarehouse_id() {
14563
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
14564
    }
14565
 
14566
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
14567
    public boolean isSetWarehouse_id() {
14568
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
14569
    }
14570
 
14571
    public void setWarehouse_idIsSet(boolean value) {
14572
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
14573
    }
14574
 
14575
    public void setFieldValue(_Fields field, Object value) {
14576
      switch (field) {
14577
      case WAREHOUSE_ID:
14578
        if (value == null) {
14579
          unsetWarehouse_id();
14580
        } else {
14581
          setWarehouse_id((Long)value);
14582
        }
14583
        break;
14584
 
14585
      }
14586
    }
14587
 
14588
    public Object getFieldValue(_Fields field) {
14589
      switch (field) {
14590
      case WAREHOUSE_ID:
14591
        return Long.valueOf(getWarehouse_id());
14592
 
14593
      }
14594
      throw new IllegalStateException();
14595
    }
14596
 
14597
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14598
    public boolean isSet(_Fields field) {
14599
      if (field == null) {
14600
        throw new IllegalArgumentException();
14601
      }
14602
 
14603
      switch (field) {
14604
      case WAREHOUSE_ID:
14605
        return isSetWarehouse_id();
14606
      }
14607
      throw new IllegalStateException();
14608
    }
14609
 
14610
    @Override
14611
    public boolean equals(Object that) {
14612
      if (that == null)
14613
        return false;
14614
      if (that instanceof getAllItemsForWarehouse_args)
14615
        return this.equals((getAllItemsForWarehouse_args)that);
14616
      return false;
14617
    }
14618
 
14619
    public boolean equals(getAllItemsForWarehouse_args that) {
14620
      if (that == null)
14621
        return false;
14622
 
14623
      boolean this_present_warehouse_id = true;
14624
      boolean that_present_warehouse_id = true;
14625
      if (this_present_warehouse_id || that_present_warehouse_id) {
14626
        if (!(this_present_warehouse_id && that_present_warehouse_id))
14627
          return false;
14628
        if (this.warehouse_id != that.warehouse_id)
14629
          return false;
14630
      }
14631
 
14632
      return true;
14633
    }
14634
 
14635
    @Override
14636
    public int hashCode() {
14637
      return 0;
14638
    }
14639
 
14640
    public int compareTo(getAllItemsForWarehouse_args other) {
14641
      if (!getClass().equals(other.getClass())) {
14642
        return getClass().getName().compareTo(other.getClass().getName());
14643
      }
14644
 
14645
      int lastComparison = 0;
14646
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
14647
 
14648
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
14649
      if (lastComparison != 0) {
14650
        return lastComparison;
14651
      }
14652
      if (isSetWarehouse_id()) {
14653
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
14654
        if (lastComparison != 0) {
14655
          return lastComparison;
14656
        }
14657
      }
14658
      return 0;
14659
    }
14660
 
14661
    public _Fields fieldForId(int fieldId) {
14662
      return _Fields.findByThriftId(fieldId);
14663
    }
14664
 
14665
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14666
      org.apache.thrift.protocol.TField field;
14667
      iprot.readStructBegin();
14668
      while (true)
14669
      {
14670
        field = iprot.readFieldBegin();
14671
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14672
          break;
14673
        }
14674
        switch (field.id) {
14675
          case 1: // WAREHOUSE_ID
14676
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14677
              this.warehouse_id = iprot.readI64();
14678
              setWarehouse_idIsSet(true);
14679
            } else { 
14680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14681
            }
14682
            break;
14683
          default:
14684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14685
        }
14686
        iprot.readFieldEnd();
14687
      }
14688
      iprot.readStructEnd();
14689
      validate();
14690
    }
14691
 
14692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14693
      validate();
14694
 
14695
      oprot.writeStructBegin(STRUCT_DESC);
14696
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14697
      oprot.writeI64(this.warehouse_id);
14698
      oprot.writeFieldEnd();
14699
      oprot.writeFieldStop();
14700
      oprot.writeStructEnd();
14701
    }
14702
 
14703
    @Override
14704
    public String toString() {
14705
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
14706
      boolean first = true;
14707
 
14708
      sb.append("warehouse_id:");
14709
      sb.append(this.warehouse_id);
14710
      first = false;
14711
      sb.append(")");
14712
      return sb.toString();
14713
    }
14714
 
14715
    public void validate() throws org.apache.thrift.TException {
14716
      // check for required fields
14717
    }
14718
 
14719
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14720
      try {
14721
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14722
      } catch (org.apache.thrift.TException te) {
14723
        throw new java.io.IOException(te);
14724
      }
14725
    }
14726
 
14727
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14728
      try {
14729
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14730
        __isset_bit_vector = new BitSet(1);
14731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14732
      } catch (org.apache.thrift.TException te) {
14733
        throw new java.io.IOException(te);
14734
      }
14735
    }
14736
 
14737
  }
14738
 
14739
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
14740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
14741
 
14742
    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);
14743
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
14744
 
14745
    private List<Long> success; // required
14746
    private InventoryServiceException cex; // required
14747
 
14748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14750
      SUCCESS((short)0, "success"),
14751
      CEX((short)1, "cex");
14752
 
14753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14754
 
14755
      static {
14756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14757
          byName.put(field.getFieldName(), field);
14758
        }
14759
      }
14760
 
14761
      /**
14762
       * Find the _Fields constant that matches fieldId, or null if its not found.
14763
       */
14764
      public static _Fields findByThriftId(int fieldId) {
14765
        switch(fieldId) {
14766
          case 0: // SUCCESS
14767
            return SUCCESS;
14768
          case 1: // CEX
14769
            return CEX;
14770
          default:
14771
            return null;
14772
        }
14773
      }
14774
 
14775
      /**
14776
       * Find the _Fields constant that matches fieldId, throwing an exception
14777
       * if it is not found.
14778
       */
14779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14780
        _Fields fields = findByThriftId(fieldId);
14781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14782
        return fields;
14783
      }
14784
 
14785
      /**
14786
       * Find the _Fields constant that matches name, or null if its not found.
14787
       */
14788
      public static _Fields findByName(String name) {
14789
        return byName.get(name);
14790
      }
14791
 
14792
      private final short _thriftId;
14793
      private final String _fieldName;
14794
 
14795
      _Fields(short thriftId, String fieldName) {
14796
        _thriftId = thriftId;
14797
        _fieldName = fieldName;
14798
      }
14799
 
14800
      public short getThriftFieldId() {
14801
        return _thriftId;
14802
      }
14803
 
14804
      public String getFieldName() {
14805
        return _fieldName;
14806
      }
14807
    }
14808
 
14809
    // isset id assignments
14810
 
14811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14812
    static {
14813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14814
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14815
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14816
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
14817
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
14821
    }
14822
 
14823
    public getAllItemsForWarehouse_result() {
14824
    }
14825
 
14826
    public getAllItemsForWarehouse_result(
14827
      List<Long> success,
14828
      InventoryServiceException cex)
14829
    {
14830
      this();
14831
      this.success = success;
14832
      this.cex = cex;
14833
    }
14834
 
14835
    /**
14836
     * Performs a deep copy on <i>other</i>.
14837
     */
14838
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
14839
      if (other.isSetSuccess()) {
14840
        List<Long> __this__success = new ArrayList<Long>();
14841
        for (Long other_element : other.success) {
14842
          __this__success.add(other_element);
14843
        }
14844
        this.success = __this__success;
14845
      }
14846
      if (other.isSetCex()) {
14847
        this.cex = new InventoryServiceException(other.cex);
14848
      }
14849
    }
14850
 
14851
    public getAllItemsForWarehouse_result deepCopy() {
14852
      return new getAllItemsForWarehouse_result(this);
14853
    }
14854
 
14855
    @Override
14856
    public void clear() {
14857
      this.success = null;
14858
      this.cex = null;
14859
    }
14860
 
14861
    public int getSuccessSize() {
14862
      return (this.success == null) ? 0 : this.success.size();
14863
    }
14864
 
14865
    public java.util.Iterator<Long> getSuccessIterator() {
14866
      return (this.success == null) ? null : this.success.iterator();
14867
    }
14868
 
14869
    public void addToSuccess(long elem) {
14870
      if (this.success == null) {
14871
        this.success = new ArrayList<Long>();
14872
      }
14873
      this.success.add(elem);
14874
    }
14875
 
14876
    public List<Long> getSuccess() {
14877
      return this.success;
14878
    }
14879
 
14880
    public void setSuccess(List<Long> success) {
14881
      this.success = success;
14882
    }
14883
 
14884
    public void unsetSuccess() {
14885
      this.success = null;
14886
    }
14887
 
14888
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14889
    public boolean isSetSuccess() {
14890
      return this.success != null;
14891
    }
14892
 
14893
    public void setSuccessIsSet(boolean value) {
14894
      if (!value) {
14895
        this.success = null;
14896
      }
14897
    }
14898
 
14899
    public InventoryServiceException getCex() {
14900
      return this.cex;
14901
    }
14902
 
14903
    public void setCex(InventoryServiceException cex) {
14904
      this.cex = cex;
14905
    }
14906
 
14907
    public void unsetCex() {
14908
      this.cex = null;
14909
    }
14910
 
14911
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14912
    public boolean isSetCex() {
14913
      return this.cex != null;
14914
    }
14915
 
14916
    public void setCexIsSet(boolean value) {
14917
      if (!value) {
14918
        this.cex = null;
14919
      }
14920
    }
14921
 
14922
    public void setFieldValue(_Fields field, Object value) {
14923
      switch (field) {
14924
      case SUCCESS:
14925
        if (value == null) {
14926
          unsetSuccess();
14927
        } else {
14928
          setSuccess((List<Long>)value);
14929
        }
14930
        break;
14931
 
14932
      case CEX:
14933
        if (value == null) {
14934
          unsetCex();
14935
        } else {
14936
          setCex((InventoryServiceException)value);
14937
        }
14938
        break;
14939
 
14940
      }
14941
    }
14942
 
14943
    public Object getFieldValue(_Fields field) {
14944
      switch (field) {
14945
      case SUCCESS:
14946
        return getSuccess();
14947
 
14948
      case CEX:
14949
        return getCex();
14950
 
14951
      }
14952
      throw new IllegalStateException();
14953
    }
14954
 
14955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14956
    public boolean isSet(_Fields field) {
14957
      if (field == null) {
14958
        throw new IllegalArgumentException();
14959
      }
14960
 
14961
      switch (field) {
14962
      case SUCCESS:
14963
        return isSetSuccess();
14964
      case CEX:
14965
        return isSetCex();
14966
      }
14967
      throw new IllegalStateException();
14968
    }
14969
 
14970
    @Override
14971
    public boolean equals(Object that) {
14972
      if (that == null)
14973
        return false;
14974
      if (that instanceof getAllItemsForWarehouse_result)
14975
        return this.equals((getAllItemsForWarehouse_result)that);
14976
      return false;
14977
    }
14978
 
14979
    public boolean equals(getAllItemsForWarehouse_result that) {
14980
      if (that == null)
14981
        return false;
14982
 
14983
      boolean this_present_success = true && this.isSetSuccess();
14984
      boolean that_present_success = true && that.isSetSuccess();
14985
      if (this_present_success || that_present_success) {
14986
        if (!(this_present_success && that_present_success))
14987
          return false;
14988
        if (!this.success.equals(that.success))
14989
          return false;
14990
      }
14991
 
14992
      boolean this_present_cex = true && this.isSetCex();
14993
      boolean that_present_cex = true && that.isSetCex();
14994
      if (this_present_cex || that_present_cex) {
14995
        if (!(this_present_cex && that_present_cex))
14996
          return false;
14997
        if (!this.cex.equals(that.cex))
14998
          return false;
14999
      }
15000
 
15001
      return true;
15002
    }
15003
 
15004
    @Override
15005
    public int hashCode() {
15006
      return 0;
15007
    }
15008
 
15009
    public int compareTo(getAllItemsForWarehouse_result other) {
15010
      if (!getClass().equals(other.getClass())) {
15011
        return getClass().getName().compareTo(other.getClass().getName());
15012
      }
15013
 
15014
      int lastComparison = 0;
15015
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
15016
 
15017
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15018
      if (lastComparison != 0) {
15019
        return lastComparison;
15020
      }
15021
      if (isSetSuccess()) {
15022
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15023
        if (lastComparison != 0) {
15024
          return lastComparison;
15025
        }
15026
      }
15027
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15028
      if (lastComparison != 0) {
15029
        return lastComparison;
15030
      }
15031
      if (isSetCex()) {
15032
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15033
        if (lastComparison != 0) {
15034
          return lastComparison;
15035
        }
15036
      }
15037
      return 0;
15038
    }
15039
 
15040
    public _Fields fieldForId(int fieldId) {
15041
      return _Fields.findByThriftId(fieldId);
15042
    }
15043
 
15044
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15045
      org.apache.thrift.protocol.TField field;
15046
      iprot.readStructBegin();
15047
      while (true)
15048
      {
15049
        field = iprot.readFieldBegin();
15050
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15051
          break;
15052
        }
15053
        switch (field.id) {
15054
          case 0: // SUCCESS
15055
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15056
              {
8182 amar.kumar 15057
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
15058
                this.success = new ArrayList<Long>(_list33.size);
15059
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
5945 mandeep.dh 15060
                {
8182 amar.kumar 15061
                  long _elem35; // required
15062
                  _elem35 = iprot.readI64();
15063
                  this.success.add(_elem35);
5945 mandeep.dh 15064
                }
15065
                iprot.readListEnd();
15066
              }
15067
            } else { 
15068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15069
            }
15070
            break;
15071
          case 1: // CEX
15072
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15073
              this.cex = new InventoryServiceException();
15074
              this.cex.read(iprot);
15075
            } else { 
15076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15077
            }
15078
            break;
15079
          default:
15080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15081
        }
15082
        iprot.readFieldEnd();
15083
      }
15084
      iprot.readStructEnd();
15085
      validate();
15086
    }
15087
 
15088
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15089
      oprot.writeStructBegin(STRUCT_DESC);
15090
 
15091
      if (this.isSetSuccess()) {
15092
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15093
        {
15094
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 15095
          for (long _iter36 : this.success)
5945 mandeep.dh 15096
          {
8182 amar.kumar 15097
            oprot.writeI64(_iter36);
5945 mandeep.dh 15098
          }
15099
          oprot.writeListEnd();
15100
        }
15101
        oprot.writeFieldEnd();
15102
      } else if (this.isSetCex()) {
15103
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15104
        this.cex.write(oprot);
15105
        oprot.writeFieldEnd();
15106
      }
15107
      oprot.writeFieldStop();
15108
      oprot.writeStructEnd();
15109
    }
15110
 
15111
    @Override
15112
    public String toString() {
15113
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
15114
      boolean first = true;
15115
 
15116
      sb.append("success:");
15117
      if (this.success == null) {
15118
        sb.append("null");
15119
      } else {
15120
        sb.append(this.success);
15121
      }
15122
      first = false;
15123
      if (!first) sb.append(", ");
15124
      sb.append("cex:");
15125
      if (this.cex == null) {
15126
        sb.append("null");
15127
      } else {
15128
        sb.append(this.cex);
15129
      }
15130
      first = false;
15131
      sb.append(")");
15132
      return sb.toString();
15133
    }
15134
 
15135
    public void validate() throws org.apache.thrift.TException {
15136
      // check for required fields
15137
    }
15138
 
15139
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15140
      try {
15141
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15142
      } catch (org.apache.thrift.TException te) {
15143
        throw new java.io.IOException(te);
15144
      }
15145
    }
15146
 
15147
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15148
      try {
15149
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15150
      } catch (org.apache.thrift.TException te) {
15151
        throw new java.io.IOException(te);
15152
      }
15153
    }
15154
 
15155
  }
15156
 
5967 rajveer 15157
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
15158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
15159
 
15160
    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);
15161
    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)2);
15162
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
15163
    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);
15164
 
15165
    private long itemId; // required
15166
    private long warehouseId; // required
15167
    private long sourceId; // required
15168
    private long orderId; // required
15169
 
15170
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15171
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15172
      ITEM_ID((short)1, "itemId"),
15173
      WAREHOUSE_ID((short)2, "warehouseId"),
15174
      SOURCE_ID((short)3, "sourceId"),
15175
      ORDER_ID((short)4, "orderId");
15176
 
15177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15178
 
15179
      static {
15180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15181
          byName.put(field.getFieldName(), field);
15182
        }
15183
      }
15184
 
15185
      /**
15186
       * Find the _Fields constant that matches fieldId, or null if its not found.
15187
       */
15188
      public static _Fields findByThriftId(int fieldId) {
15189
        switch(fieldId) {
15190
          case 1: // ITEM_ID
15191
            return ITEM_ID;
15192
          case 2: // WAREHOUSE_ID
15193
            return WAREHOUSE_ID;
15194
          case 3: // SOURCE_ID
15195
            return SOURCE_ID;
15196
          case 4: // ORDER_ID
15197
            return ORDER_ID;
15198
          default:
15199
            return null;
15200
        }
15201
      }
15202
 
15203
      /**
15204
       * Find the _Fields constant that matches fieldId, throwing an exception
15205
       * if it is not found.
15206
       */
15207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15208
        _Fields fields = findByThriftId(fieldId);
15209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15210
        return fields;
15211
      }
15212
 
15213
      /**
15214
       * Find the _Fields constant that matches name, or null if its not found.
15215
       */
15216
      public static _Fields findByName(String name) {
15217
        return byName.get(name);
15218
      }
15219
 
15220
      private final short _thriftId;
15221
      private final String _fieldName;
15222
 
15223
      _Fields(short thriftId, String fieldName) {
15224
        _thriftId = thriftId;
15225
        _fieldName = fieldName;
15226
      }
15227
 
15228
      public short getThriftFieldId() {
15229
        return _thriftId;
15230
      }
15231
 
15232
      public String getFieldName() {
15233
        return _fieldName;
15234
      }
15235
    }
15236
 
15237
    // isset id assignments
15238
    private static final int __ITEMID_ISSET_ID = 0;
15239
    private static final int __WAREHOUSEID_ISSET_ID = 1;
15240
    private static final int __SOURCEID_ISSET_ID = 2;
15241
    private static final int __ORDERID_ISSET_ID = 3;
15242
    private BitSet __isset_bit_vector = new BitSet(4);
15243
 
15244
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15245
    static {
15246
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15247
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15248
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15249
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15250
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15251
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15252
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15253
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15254
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15255
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15256
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
15257
    }
15258
 
15259
    public isOrderBillable_args() {
15260
    }
15261
 
15262
    public isOrderBillable_args(
15263
      long itemId,
15264
      long warehouseId,
15265
      long sourceId,
15266
      long orderId)
15267
    {
15268
      this();
15269
      this.itemId = itemId;
15270
      setItemIdIsSet(true);
15271
      this.warehouseId = warehouseId;
15272
      setWarehouseIdIsSet(true);
15273
      this.sourceId = sourceId;
15274
      setSourceIdIsSet(true);
15275
      this.orderId = orderId;
15276
      setOrderIdIsSet(true);
15277
    }
15278
 
15279
    /**
15280
     * Performs a deep copy on <i>other</i>.
15281
     */
15282
    public isOrderBillable_args(isOrderBillable_args other) {
15283
      __isset_bit_vector.clear();
15284
      __isset_bit_vector.or(other.__isset_bit_vector);
15285
      this.itemId = other.itemId;
15286
      this.warehouseId = other.warehouseId;
15287
      this.sourceId = other.sourceId;
15288
      this.orderId = other.orderId;
15289
    }
15290
 
15291
    public isOrderBillable_args deepCopy() {
15292
      return new isOrderBillable_args(this);
15293
    }
15294
 
15295
    @Override
15296
    public void clear() {
15297
      setItemIdIsSet(false);
15298
      this.itemId = 0;
15299
      setWarehouseIdIsSet(false);
15300
      this.warehouseId = 0;
15301
      setSourceIdIsSet(false);
15302
      this.sourceId = 0;
15303
      setOrderIdIsSet(false);
15304
      this.orderId = 0;
15305
    }
15306
 
15307
    public long getItemId() {
15308
      return this.itemId;
15309
    }
15310
 
15311
    public void setItemId(long itemId) {
15312
      this.itemId = itemId;
15313
      setItemIdIsSet(true);
15314
    }
15315
 
15316
    public void unsetItemId() {
15317
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15318
    }
15319
 
15320
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15321
    public boolean isSetItemId() {
15322
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15323
    }
15324
 
15325
    public void setItemIdIsSet(boolean value) {
15326
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15327
    }
15328
 
15329
    public long getWarehouseId() {
15330
      return this.warehouseId;
15331
    }
15332
 
15333
    public void setWarehouseId(long warehouseId) {
15334
      this.warehouseId = warehouseId;
15335
      setWarehouseIdIsSet(true);
15336
    }
15337
 
15338
    public void unsetWarehouseId() {
15339
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
15340
    }
15341
 
15342
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
15343
    public boolean isSetWarehouseId() {
15344
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
15345
    }
15346
 
15347
    public void setWarehouseIdIsSet(boolean value) {
15348
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
15349
    }
15350
 
15351
    public long getSourceId() {
15352
      return this.sourceId;
15353
    }
15354
 
15355
    public void setSourceId(long sourceId) {
15356
      this.sourceId = sourceId;
15357
      setSourceIdIsSet(true);
15358
    }
15359
 
15360
    public void unsetSourceId() {
15361
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
15362
    }
15363
 
15364
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
15365
    public boolean isSetSourceId() {
15366
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
15367
    }
15368
 
15369
    public void setSourceIdIsSet(boolean value) {
15370
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
15371
    }
15372
 
15373
    public long getOrderId() {
15374
      return this.orderId;
15375
    }
15376
 
15377
    public void setOrderId(long orderId) {
15378
      this.orderId = orderId;
15379
      setOrderIdIsSet(true);
15380
    }
15381
 
15382
    public void unsetOrderId() {
15383
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
15384
    }
15385
 
15386
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
15387
    public boolean isSetOrderId() {
15388
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
15389
    }
15390
 
15391
    public void setOrderIdIsSet(boolean value) {
15392
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
15393
    }
15394
 
15395
    public void setFieldValue(_Fields field, Object value) {
15396
      switch (field) {
15397
      case ITEM_ID:
15398
        if (value == null) {
15399
          unsetItemId();
15400
        } else {
15401
          setItemId((Long)value);
15402
        }
15403
        break;
15404
 
15405
      case WAREHOUSE_ID:
15406
        if (value == null) {
15407
          unsetWarehouseId();
15408
        } else {
15409
          setWarehouseId((Long)value);
15410
        }
15411
        break;
15412
 
15413
      case SOURCE_ID:
15414
        if (value == null) {
15415
          unsetSourceId();
15416
        } else {
15417
          setSourceId((Long)value);
15418
        }
15419
        break;
15420
 
15421
      case ORDER_ID:
15422
        if (value == null) {
15423
          unsetOrderId();
15424
        } else {
15425
          setOrderId((Long)value);
15426
        }
15427
        break;
15428
 
15429
      }
15430
    }
15431
 
15432
    public Object getFieldValue(_Fields field) {
15433
      switch (field) {
15434
      case ITEM_ID:
15435
        return Long.valueOf(getItemId());
15436
 
15437
      case WAREHOUSE_ID:
15438
        return Long.valueOf(getWarehouseId());
15439
 
15440
      case SOURCE_ID:
15441
        return Long.valueOf(getSourceId());
15442
 
15443
      case ORDER_ID:
15444
        return Long.valueOf(getOrderId());
15445
 
15446
      }
15447
      throw new IllegalStateException();
15448
    }
15449
 
15450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15451
    public boolean isSet(_Fields field) {
15452
      if (field == null) {
15453
        throw new IllegalArgumentException();
15454
      }
15455
 
15456
      switch (field) {
15457
      case ITEM_ID:
15458
        return isSetItemId();
15459
      case WAREHOUSE_ID:
15460
        return isSetWarehouseId();
15461
      case SOURCE_ID:
15462
        return isSetSourceId();
15463
      case ORDER_ID:
15464
        return isSetOrderId();
15465
      }
15466
      throw new IllegalStateException();
15467
    }
15468
 
15469
    @Override
15470
    public boolean equals(Object that) {
15471
      if (that == null)
15472
        return false;
15473
      if (that instanceof isOrderBillable_args)
15474
        return this.equals((isOrderBillable_args)that);
15475
      return false;
15476
    }
15477
 
15478
    public boolean equals(isOrderBillable_args that) {
15479
      if (that == null)
15480
        return false;
15481
 
15482
      boolean this_present_itemId = true;
15483
      boolean that_present_itemId = true;
15484
      if (this_present_itemId || that_present_itemId) {
15485
        if (!(this_present_itemId && that_present_itemId))
15486
          return false;
15487
        if (this.itemId != that.itemId)
15488
          return false;
15489
      }
15490
 
15491
      boolean this_present_warehouseId = true;
15492
      boolean that_present_warehouseId = true;
15493
      if (this_present_warehouseId || that_present_warehouseId) {
15494
        if (!(this_present_warehouseId && that_present_warehouseId))
15495
          return false;
15496
        if (this.warehouseId != that.warehouseId)
15497
          return false;
15498
      }
15499
 
15500
      boolean this_present_sourceId = true;
15501
      boolean that_present_sourceId = true;
15502
      if (this_present_sourceId || that_present_sourceId) {
15503
        if (!(this_present_sourceId && that_present_sourceId))
15504
          return false;
15505
        if (this.sourceId != that.sourceId)
15506
          return false;
15507
      }
15508
 
15509
      boolean this_present_orderId = true;
15510
      boolean that_present_orderId = true;
15511
      if (this_present_orderId || that_present_orderId) {
15512
        if (!(this_present_orderId && that_present_orderId))
15513
          return false;
15514
        if (this.orderId != that.orderId)
15515
          return false;
15516
      }
15517
 
15518
      return true;
15519
    }
15520
 
15521
    @Override
15522
    public int hashCode() {
15523
      return 0;
15524
    }
15525
 
15526
    public int compareTo(isOrderBillable_args other) {
15527
      if (!getClass().equals(other.getClass())) {
15528
        return getClass().getName().compareTo(other.getClass().getName());
15529
      }
15530
 
15531
      int lastComparison = 0;
15532
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
15533
 
15534
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15535
      if (lastComparison != 0) {
15536
        return lastComparison;
15537
      }
15538
      if (isSetItemId()) {
15539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15540
        if (lastComparison != 0) {
15541
          return lastComparison;
15542
        }
15543
      }
15544
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
15545
      if (lastComparison != 0) {
15546
        return lastComparison;
15547
      }
15548
      if (isSetWarehouseId()) {
15549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
15550
        if (lastComparison != 0) {
15551
          return lastComparison;
15552
        }
15553
      }
15554
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
15555
      if (lastComparison != 0) {
15556
        return lastComparison;
15557
      }
15558
      if (isSetSourceId()) {
15559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
15560
        if (lastComparison != 0) {
15561
          return lastComparison;
15562
        }
15563
      }
15564
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
15565
      if (lastComparison != 0) {
15566
        return lastComparison;
15567
      }
15568
      if (isSetOrderId()) {
15569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
15570
        if (lastComparison != 0) {
15571
          return lastComparison;
15572
        }
15573
      }
15574
      return 0;
15575
    }
15576
 
15577
    public _Fields fieldForId(int fieldId) {
15578
      return _Fields.findByThriftId(fieldId);
15579
    }
15580
 
15581
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15582
      org.apache.thrift.protocol.TField field;
15583
      iprot.readStructBegin();
15584
      while (true)
15585
      {
15586
        field = iprot.readFieldBegin();
15587
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15588
          break;
15589
        }
15590
        switch (field.id) {
15591
          case 1: // ITEM_ID
15592
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15593
              this.itemId = iprot.readI64();
15594
              setItemIdIsSet(true);
15595
            } else { 
15596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15597
            }
15598
            break;
15599
          case 2: // WAREHOUSE_ID
15600
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15601
              this.warehouseId = iprot.readI64();
15602
              setWarehouseIdIsSet(true);
15603
            } else { 
15604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15605
            }
15606
            break;
15607
          case 3: // SOURCE_ID
15608
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15609
              this.sourceId = iprot.readI64();
15610
              setSourceIdIsSet(true);
15611
            } else { 
15612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15613
            }
15614
            break;
15615
          case 4: // ORDER_ID
15616
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15617
              this.orderId = iprot.readI64();
15618
              setOrderIdIsSet(true);
15619
            } else { 
15620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15621
            }
15622
            break;
15623
          default:
15624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15625
        }
15626
        iprot.readFieldEnd();
15627
      }
15628
      iprot.readStructEnd();
15629
      validate();
15630
    }
15631
 
15632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15633
      validate();
15634
 
15635
      oprot.writeStructBegin(STRUCT_DESC);
15636
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15637
      oprot.writeI64(this.itemId);
15638
      oprot.writeFieldEnd();
15639
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15640
      oprot.writeI64(this.warehouseId);
15641
      oprot.writeFieldEnd();
15642
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
15643
      oprot.writeI64(this.sourceId);
15644
      oprot.writeFieldEnd();
15645
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15646
      oprot.writeI64(this.orderId);
15647
      oprot.writeFieldEnd();
15648
      oprot.writeFieldStop();
15649
      oprot.writeStructEnd();
15650
    }
15651
 
15652
    @Override
15653
    public String toString() {
15654
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
15655
      boolean first = true;
15656
 
15657
      sb.append("itemId:");
15658
      sb.append(this.itemId);
15659
      first = false;
15660
      if (!first) sb.append(", ");
15661
      sb.append("warehouseId:");
15662
      sb.append(this.warehouseId);
15663
      first = false;
15664
      if (!first) sb.append(", ");
15665
      sb.append("sourceId:");
15666
      sb.append(this.sourceId);
15667
      first = false;
15668
      if (!first) sb.append(", ");
15669
      sb.append("orderId:");
15670
      sb.append(this.orderId);
15671
      first = false;
15672
      sb.append(")");
15673
      return sb.toString();
15674
    }
15675
 
15676
    public void validate() throws org.apache.thrift.TException {
15677
      // check for required fields
15678
    }
15679
 
15680
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15681
      try {
15682
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15683
      } catch (org.apache.thrift.TException te) {
15684
        throw new java.io.IOException(te);
15685
      }
15686
    }
15687
 
15688
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15689
      try {
15690
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15691
      } catch (org.apache.thrift.TException te) {
15692
        throw new java.io.IOException(te);
15693
      }
15694
    }
15695
 
15696
  }
15697
 
15698
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
15699
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
15700
 
15701
    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);
15702
 
15703
    private boolean success; // required
15704
 
15705
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15706
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15707
      SUCCESS((short)0, "success");
15708
 
15709
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15710
 
15711
      static {
15712
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15713
          byName.put(field.getFieldName(), field);
15714
        }
15715
      }
15716
 
15717
      /**
15718
       * Find the _Fields constant that matches fieldId, or null if its not found.
15719
       */
15720
      public static _Fields findByThriftId(int fieldId) {
15721
        switch(fieldId) {
15722
          case 0: // SUCCESS
15723
            return SUCCESS;
15724
          default:
15725
            return null;
15726
        }
15727
      }
15728
 
15729
      /**
15730
       * Find the _Fields constant that matches fieldId, throwing an exception
15731
       * if it is not found.
15732
       */
15733
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15734
        _Fields fields = findByThriftId(fieldId);
15735
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15736
        return fields;
15737
      }
15738
 
15739
      /**
15740
       * Find the _Fields constant that matches name, or null if its not found.
15741
       */
15742
      public static _Fields findByName(String name) {
15743
        return byName.get(name);
15744
      }
15745
 
15746
      private final short _thriftId;
15747
      private final String _fieldName;
15748
 
15749
      _Fields(short thriftId, String fieldName) {
15750
        _thriftId = thriftId;
15751
        _fieldName = fieldName;
15752
      }
15753
 
15754
      public short getThriftFieldId() {
15755
        return _thriftId;
15756
      }
15757
 
15758
      public String getFieldName() {
15759
        return _fieldName;
15760
      }
15761
    }
15762
 
15763
    // isset id assignments
15764
    private static final int __SUCCESS_ISSET_ID = 0;
15765
    private BitSet __isset_bit_vector = new BitSet(1);
15766
 
15767
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15768
    static {
15769
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15770
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
15774
    }
15775
 
15776
    public isOrderBillable_result() {
15777
    }
15778
 
15779
    public isOrderBillable_result(
15780
      boolean success)
15781
    {
15782
      this();
15783
      this.success = success;
15784
      setSuccessIsSet(true);
15785
    }
15786
 
15787
    /**
15788
     * Performs a deep copy on <i>other</i>.
15789
     */
15790
    public isOrderBillable_result(isOrderBillable_result other) {
15791
      __isset_bit_vector.clear();
15792
      __isset_bit_vector.or(other.__isset_bit_vector);
15793
      this.success = other.success;
15794
    }
15795
 
15796
    public isOrderBillable_result deepCopy() {
15797
      return new isOrderBillable_result(this);
15798
    }
15799
 
15800
    @Override
15801
    public void clear() {
15802
      setSuccessIsSet(false);
15803
      this.success = false;
15804
    }
15805
 
15806
    public boolean isSuccess() {
15807
      return this.success;
15808
    }
15809
 
15810
    public void setSuccess(boolean success) {
15811
      this.success = success;
15812
      setSuccessIsSet(true);
15813
    }
15814
 
15815
    public void unsetSuccess() {
15816
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15817
    }
15818
 
15819
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15820
    public boolean isSetSuccess() {
15821
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15822
    }
15823
 
15824
    public void setSuccessIsSet(boolean value) {
15825
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15826
    }
15827
 
15828
    public void setFieldValue(_Fields field, Object value) {
15829
      switch (field) {
15830
      case SUCCESS:
15831
        if (value == null) {
15832
          unsetSuccess();
15833
        } else {
15834
          setSuccess((Boolean)value);
15835
        }
15836
        break;
15837
 
15838
      }
15839
    }
15840
 
15841
    public Object getFieldValue(_Fields field) {
15842
      switch (field) {
15843
      case SUCCESS:
15844
        return Boolean.valueOf(isSuccess());
15845
 
15846
      }
15847
      throw new IllegalStateException();
15848
    }
15849
 
15850
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15851
    public boolean isSet(_Fields field) {
15852
      if (field == null) {
15853
        throw new IllegalArgumentException();
15854
      }
15855
 
15856
      switch (field) {
15857
      case SUCCESS:
15858
        return isSetSuccess();
15859
      }
15860
      throw new IllegalStateException();
15861
    }
15862
 
15863
    @Override
15864
    public boolean equals(Object that) {
15865
      if (that == null)
15866
        return false;
15867
      if (that instanceof isOrderBillable_result)
15868
        return this.equals((isOrderBillable_result)that);
15869
      return false;
15870
    }
15871
 
15872
    public boolean equals(isOrderBillable_result that) {
15873
      if (that == null)
15874
        return false;
15875
 
15876
      boolean this_present_success = true;
15877
      boolean that_present_success = true;
15878
      if (this_present_success || that_present_success) {
15879
        if (!(this_present_success && that_present_success))
15880
          return false;
15881
        if (this.success != that.success)
15882
          return false;
15883
      }
15884
 
15885
      return true;
15886
    }
15887
 
15888
    @Override
15889
    public int hashCode() {
15890
      return 0;
15891
    }
15892
 
15893
    public int compareTo(isOrderBillable_result other) {
15894
      if (!getClass().equals(other.getClass())) {
15895
        return getClass().getName().compareTo(other.getClass().getName());
15896
      }
15897
 
15898
      int lastComparison = 0;
15899
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
15900
 
15901
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15902
      if (lastComparison != 0) {
15903
        return lastComparison;
15904
      }
15905
      if (isSetSuccess()) {
15906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15907
        if (lastComparison != 0) {
15908
          return lastComparison;
15909
        }
15910
      }
15911
      return 0;
15912
    }
15913
 
15914
    public _Fields fieldForId(int fieldId) {
15915
      return _Fields.findByThriftId(fieldId);
15916
    }
15917
 
15918
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15919
      org.apache.thrift.protocol.TField field;
15920
      iprot.readStructBegin();
15921
      while (true)
15922
      {
15923
        field = iprot.readFieldBegin();
15924
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15925
          break;
15926
        }
15927
        switch (field.id) {
15928
          case 0: // SUCCESS
15929
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15930
              this.success = iprot.readBool();
15931
              setSuccessIsSet(true);
15932
            } else { 
15933
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15934
            }
15935
            break;
15936
          default:
15937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15938
        }
15939
        iprot.readFieldEnd();
15940
      }
15941
      iprot.readStructEnd();
15942
      validate();
15943
    }
15944
 
15945
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15946
      oprot.writeStructBegin(STRUCT_DESC);
15947
 
15948
      if (this.isSetSuccess()) {
15949
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15950
        oprot.writeBool(this.success);
15951
        oprot.writeFieldEnd();
15952
      }
15953
      oprot.writeFieldStop();
15954
      oprot.writeStructEnd();
15955
    }
15956
 
15957
    @Override
15958
    public String toString() {
15959
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
15960
      boolean first = true;
15961
 
15962
      sb.append("success:");
15963
      sb.append(this.success);
15964
      first = false;
15965
      sb.append(")");
15966
      return sb.toString();
15967
    }
15968
 
15969
    public void validate() throws org.apache.thrift.TException {
15970
      // check for required fields
15971
    }
15972
 
15973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15974
      try {
15975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15976
      } catch (org.apache.thrift.TException te) {
15977
        throw new java.io.IOException(te);
15978
      }
15979
    }
15980
 
15981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15982
      try {
15983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15984
      } catch (org.apache.thrift.TException te) {
15985
        throw new java.io.IOException(te);
15986
      }
15987
    }
15988
 
15989
  }
15990
 
5945 mandeep.dh 15991
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
15992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
15993
 
15994
    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);
15995
    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)2);
5967 rajveer 15996
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
15997
    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);
15998
    private static final org.apache.thrift.protocol.TField CREATED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("createdTimestamp", org.apache.thrift.protocol.TType.I64, (short)5);
15999
    private static final org.apache.thrift.protocol.TField PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("promisedShippingTimestamp", org.apache.thrift.protocol.TType.I64, (short)6);
16000
    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)7);
5945 mandeep.dh 16001
 
16002
    private long itemId; // required
16003
    private long warehouseId; // required
5967 rajveer 16004
    private long sourceId; // required
16005
    private long orderId; // required
16006
    private long createdTimestamp; // required
16007
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 16008
    private double quantity; // required
16009
 
16010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16011
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16012
      ITEM_ID((short)1, "itemId"),
16013
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 16014
      SOURCE_ID((short)3, "sourceId"),
16015
      ORDER_ID((short)4, "orderId"),
16016
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
16017
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
16018
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 16019
 
16020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16021
 
16022
      static {
16023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16024
          byName.put(field.getFieldName(), field);
16025
        }
16026
      }
16027
 
16028
      /**
16029
       * Find the _Fields constant that matches fieldId, or null if its not found.
16030
       */
16031
      public static _Fields findByThriftId(int fieldId) {
16032
        switch(fieldId) {
16033
          case 1: // ITEM_ID
16034
            return ITEM_ID;
16035
          case 2: // WAREHOUSE_ID
16036
            return WAREHOUSE_ID;
5967 rajveer 16037
          case 3: // SOURCE_ID
16038
            return SOURCE_ID;
16039
          case 4: // ORDER_ID
16040
            return ORDER_ID;
16041
          case 5: // CREATED_TIMESTAMP
16042
            return CREATED_TIMESTAMP;
16043
          case 6: // PROMISED_SHIPPING_TIMESTAMP
16044
            return PROMISED_SHIPPING_TIMESTAMP;
16045
          case 7: // QUANTITY
5945 mandeep.dh 16046
            return QUANTITY;
16047
          default:
16048
            return null;
16049
        }
16050
      }
16051
 
16052
      /**
16053
       * Find the _Fields constant that matches fieldId, throwing an exception
16054
       * if it is not found.
16055
       */
16056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16057
        _Fields fields = findByThriftId(fieldId);
16058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16059
        return fields;
16060
      }
16061
 
16062
      /**
16063
       * Find the _Fields constant that matches name, or null if its not found.
16064
       */
16065
      public static _Fields findByName(String name) {
16066
        return byName.get(name);
16067
      }
16068
 
16069
      private final short _thriftId;
16070
      private final String _fieldName;
16071
 
16072
      _Fields(short thriftId, String fieldName) {
16073
        _thriftId = thriftId;
16074
        _fieldName = fieldName;
16075
      }
16076
 
16077
      public short getThriftFieldId() {
16078
        return _thriftId;
16079
      }
16080
 
16081
      public String getFieldName() {
16082
        return _fieldName;
16083
      }
16084
    }
16085
 
16086
    // isset id assignments
16087
    private static final int __ITEMID_ISSET_ID = 0;
16088
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 16089
    private static final int __SOURCEID_ISSET_ID = 2;
16090
    private static final int __ORDERID_ISSET_ID = 3;
16091
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
16092
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
16093
    private static final int __QUANTITY_ISSET_ID = 6;
16094
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 16095
 
16096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16097
    static {
16098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16099
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16100
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16101
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16102
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 16103
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16104
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16105
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16106
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16107
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16108
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16109
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16110
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 16111
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
16113
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16114
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
16115
    }
16116
 
16117
    public reserveItemInWarehouse_args() {
16118
    }
16119
 
16120
    public reserveItemInWarehouse_args(
16121
      long itemId,
16122
      long warehouseId,
5967 rajveer 16123
      long sourceId,
16124
      long orderId,
16125
      long createdTimestamp,
16126
      long promisedShippingTimestamp,
5945 mandeep.dh 16127
      double quantity)
16128
    {
16129
      this();
16130
      this.itemId = itemId;
16131
      setItemIdIsSet(true);
16132
      this.warehouseId = warehouseId;
16133
      setWarehouseIdIsSet(true);
5967 rajveer 16134
      this.sourceId = sourceId;
16135
      setSourceIdIsSet(true);
16136
      this.orderId = orderId;
16137
      setOrderIdIsSet(true);
16138
      this.createdTimestamp = createdTimestamp;
16139
      setCreatedTimestampIsSet(true);
16140
      this.promisedShippingTimestamp = promisedShippingTimestamp;
16141
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 16142
      this.quantity = quantity;
16143
      setQuantityIsSet(true);
16144
    }
16145
 
16146
    /**
16147
     * Performs a deep copy on <i>other</i>.
16148
     */
16149
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
16150
      __isset_bit_vector.clear();
16151
      __isset_bit_vector.or(other.__isset_bit_vector);
16152
      this.itemId = other.itemId;
16153
      this.warehouseId = other.warehouseId;
5967 rajveer 16154
      this.sourceId = other.sourceId;
16155
      this.orderId = other.orderId;
16156
      this.createdTimestamp = other.createdTimestamp;
16157
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 16158
      this.quantity = other.quantity;
16159
    }
16160
 
16161
    public reserveItemInWarehouse_args deepCopy() {
16162
      return new reserveItemInWarehouse_args(this);
16163
    }
16164
 
16165
    @Override
16166
    public void clear() {
16167
      setItemIdIsSet(false);
16168
      this.itemId = 0;
16169
      setWarehouseIdIsSet(false);
16170
      this.warehouseId = 0;
5967 rajveer 16171
      setSourceIdIsSet(false);
16172
      this.sourceId = 0;
16173
      setOrderIdIsSet(false);
16174
      this.orderId = 0;
16175
      setCreatedTimestampIsSet(false);
16176
      this.createdTimestamp = 0;
16177
      setPromisedShippingTimestampIsSet(false);
16178
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 16179
      setQuantityIsSet(false);
16180
      this.quantity = 0.0;
16181
    }
16182
 
16183
    public long getItemId() {
16184
      return this.itemId;
16185
    }
16186
 
16187
    public void setItemId(long itemId) {
16188
      this.itemId = itemId;
16189
      setItemIdIsSet(true);
16190
    }
16191
 
16192
    public void unsetItemId() {
16193
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
16194
    }
16195
 
16196
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
16197
    public boolean isSetItemId() {
16198
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
16199
    }
16200
 
16201
    public void setItemIdIsSet(boolean value) {
16202
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
16203
    }
16204
 
16205
    public long getWarehouseId() {
16206
      return this.warehouseId;
16207
    }
16208
 
16209
    public void setWarehouseId(long warehouseId) {
16210
      this.warehouseId = warehouseId;
16211
      setWarehouseIdIsSet(true);
16212
    }
16213
 
16214
    public void unsetWarehouseId() {
16215
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
16216
    }
16217
 
16218
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
16219
    public boolean isSetWarehouseId() {
16220
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
16221
    }
16222
 
16223
    public void setWarehouseIdIsSet(boolean value) {
16224
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
16225
    }
16226
 
5967 rajveer 16227
    public long getSourceId() {
16228
      return this.sourceId;
16229
    }
16230
 
16231
    public void setSourceId(long sourceId) {
16232
      this.sourceId = sourceId;
16233
      setSourceIdIsSet(true);
16234
    }
16235
 
16236
    public void unsetSourceId() {
16237
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
16238
    }
16239
 
16240
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
16241
    public boolean isSetSourceId() {
16242
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
16243
    }
16244
 
16245
    public void setSourceIdIsSet(boolean value) {
16246
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
16247
    }
16248
 
16249
    public long getOrderId() {
16250
      return this.orderId;
16251
    }
16252
 
16253
    public void setOrderId(long orderId) {
16254
      this.orderId = orderId;
16255
      setOrderIdIsSet(true);
16256
    }
16257
 
16258
    public void unsetOrderId() {
16259
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
16260
    }
16261
 
16262
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
16263
    public boolean isSetOrderId() {
16264
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
16265
    }
16266
 
16267
    public void setOrderIdIsSet(boolean value) {
16268
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
16269
    }
16270
 
16271
    public long getCreatedTimestamp() {
16272
      return this.createdTimestamp;
16273
    }
16274
 
16275
    public void setCreatedTimestamp(long createdTimestamp) {
16276
      this.createdTimestamp = createdTimestamp;
16277
      setCreatedTimestampIsSet(true);
16278
    }
16279
 
16280
    public void unsetCreatedTimestamp() {
16281
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
16282
    }
16283
 
16284
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
16285
    public boolean isSetCreatedTimestamp() {
16286
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
16287
    }
16288
 
16289
    public void setCreatedTimestampIsSet(boolean value) {
16290
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
16291
    }
16292
 
16293
    public long getPromisedShippingTimestamp() {
16294
      return this.promisedShippingTimestamp;
16295
    }
16296
 
16297
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
16298
      this.promisedShippingTimestamp = promisedShippingTimestamp;
16299
      setPromisedShippingTimestampIsSet(true);
16300
    }
16301
 
16302
    public void unsetPromisedShippingTimestamp() {
16303
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
16304
    }
16305
 
16306
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
16307
    public boolean isSetPromisedShippingTimestamp() {
16308
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
16309
    }
16310
 
16311
    public void setPromisedShippingTimestampIsSet(boolean value) {
16312
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
16313
    }
16314
 
5945 mandeep.dh 16315
    public double getQuantity() {
16316
      return this.quantity;
16317
    }
16318
 
16319
    public void setQuantity(double quantity) {
16320
      this.quantity = quantity;
16321
      setQuantityIsSet(true);
16322
    }
16323
 
16324
    public void unsetQuantity() {
16325
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
16326
    }
16327
 
16328
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
16329
    public boolean isSetQuantity() {
16330
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
16331
    }
16332
 
16333
    public void setQuantityIsSet(boolean value) {
16334
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
16335
    }
16336
 
16337
    public void setFieldValue(_Fields field, Object value) {
16338
      switch (field) {
16339
      case ITEM_ID:
16340
        if (value == null) {
16341
          unsetItemId();
16342
        } else {
16343
          setItemId((Long)value);
16344
        }
16345
        break;
16346
 
16347
      case WAREHOUSE_ID:
16348
        if (value == null) {
16349
          unsetWarehouseId();
16350
        } else {
16351
          setWarehouseId((Long)value);
16352
        }
16353
        break;
16354
 
5967 rajveer 16355
      case SOURCE_ID:
16356
        if (value == null) {
16357
          unsetSourceId();
16358
        } else {
16359
          setSourceId((Long)value);
16360
        }
16361
        break;
16362
 
16363
      case ORDER_ID:
16364
        if (value == null) {
16365
          unsetOrderId();
16366
        } else {
16367
          setOrderId((Long)value);
16368
        }
16369
        break;
16370
 
16371
      case CREATED_TIMESTAMP:
16372
        if (value == null) {
16373
          unsetCreatedTimestamp();
16374
        } else {
16375
          setCreatedTimestamp((Long)value);
16376
        }
16377
        break;
16378
 
16379
      case PROMISED_SHIPPING_TIMESTAMP:
16380
        if (value == null) {
16381
          unsetPromisedShippingTimestamp();
16382
        } else {
16383
          setPromisedShippingTimestamp((Long)value);
16384
        }
16385
        break;
16386
 
5945 mandeep.dh 16387
      case QUANTITY:
16388
        if (value == null) {
16389
          unsetQuantity();
16390
        } else {
16391
          setQuantity((Double)value);
16392
        }
16393
        break;
16394
 
16395
      }
16396
    }
16397
 
16398
    public Object getFieldValue(_Fields field) {
16399
      switch (field) {
16400
      case ITEM_ID:
16401
        return Long.valueOf(getItemId());
16402
 
16403
      case WAREHOUSE_ID:
16404
        return Long.valueOf(getWarehouseId());
16405
 
5967 rajveer 16406
      case SOURCE_ID:
16407
        return Long.valueOf(getSourceId());
16408
 
16409
      case ORDER_ID:
16410
        return Long.valueOf(getOrderId());
16411
 
16412
      case CREATED_TIMESTAMP:
16413
        return Long.valueOf(getCreatedTimestamp());
16414
 
16415
      case PROMISED_SHIPPING_TIMESTAMP:
16416
        return Long.valueOf(getPromisedShippingTimestamp());
16417
 
5945 mandeep.dh 16418
      case QUANTITY:
16419
        return Double.valueOf(getQuantity());
16420
 
16421
      }
16422
      throw new IllegalStateException();
16423
    }
16424
 
16425
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16426
    public boolean isSet(_Fields field) {
16427
      if (field == null) {
16428
        throw new IllegalArgumentException();
16429
      }
16430
 
16431
      switch (field) {
16432
      case ITEM_ID:
16433
        return isSetItemId();
16434
      case WAREHOUSE_ID:
16435
        return isSetWarehouseId();
5967 rajveer 16436
      case SOURCE_ID:
16437
        return isSetSourceId();
16438
      case ORDER_ID:
16439
        return isSetOrderId();
16440
      case CREATED_TIMESTAMP:
16441
        return isSetCreatedTimestamp();
16442
      case PROMISED_SHIPPING_TIMESTAMP:
16443
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 16444
      case QUANTITY:
16445
        return isSetQuantity();
16446
      }
16447
      throw new IllegalStateException();
16448
    }
16449
 
16450
    @Override
16451
    public boolean equals(Object that) {
16452
      if (that == null)
16453
        return false;
16454
      if (that instanceof reserveItemInWarehouse_args)
16455
        return this.equals((reserveItemInWarehouse_args)that);
16456
      return false;
16457
    }
16458
 
16459
    public boolean equals(reserveItemInWarehouse_args that) {
16460
      if (that == null)
16461
        return false;
16462
 
16463
      boolean this_present_itemId = true;
16464
      boolean that_present_itemId = true;
16465
      if (this_present_itemId || that_present_itemId) {
16466
        if (!(this_present_itemId && that_present_itemId))
16467
          return false;
16468
        if (this.itemId != that.itemId)
16469
          return false;
16470
      }
16471
 
16472
      boolean this_present_warehouseId = true;
16473
      boolean that_present_warehouseId = true;
16474
      if (this_present_warehouseId || that_present_warehouseId) {
16475
        if (!(this_present_warehouseId && that_present_warehouseId))
16476
          return false;
16477
        if (this.warehouseId != that.warehouseId)
16478
          return false;
16479
      }
16480
 
5967 rajveer 16481
      boolean this_present_sourceId = true;
16482
      boolean that_present_sourceId = true;
16483
      if (this_present_sourceId || that_present_sourceId) {
16484
        if (!(this_present_sourceId && that_present_sourceId))
16485
          return false;
16486
        if (this.sourceId != that.sourceId)
16487
          return false;
16488
      }
16489
 
16490
      boolean this_present_orderId = true;
16491
      boolean that_present_orderId = true;
16492
      if (this_present_orderId || that_present_orderId) {
16493
        if (!(this_present_orderId && that_present_orderId))
16494
          return false;
16495
        if (this.orderId != that.orderId)
16496
          return false;
16497
      }
16498
 
16499
      boolean this_present_createdTimestamp = true;
16500
      boolean that_present_createdTimestamp = true;
16501
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
16502
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
16503
          return false;
16504
        if (this.createdTimestamp != that.createdTimestamp)
16505
          return false;
16506
      }
16507
 
16508
      boolean this_present_promisedShippingTimestamp = true;
16509
      boolean that_present_promisedShippingTimestamp = true;
16510
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
16511
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
16512
          return false;
16513
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
16514
          return false;
16515
      }
16516
 
5945 mandeep.dh 16517
      boolean this_present_quantity = true;
16518
      boolean that_present_quantity = true;
16519
      if (this_present_quantity || that_present_quantity) {
16520
        if (!(this_present_quantity && that_present_quantity))
16521
          return false;
16522
        if (this.quantity != that.quantity)
16523
          return false;
16524
      }
16525
 
16526
      return true;
16527
    }
16528
 
16529
    @Override
16530
    public int hashCode() {
16531
      return 0;
16532
    }
16533
 
16534
    public int compareTo(reserveItemInWarehouse_args other) {
16535
      if (!getClass().equals(other.getClass())) {
16536
        return getClass().getName().compareTo(other.getClass().getName());
16537
      }
16538
 
16539
      int lastComparison = 0;
16540
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
16541
 
16542
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16543
      if (lastComparison != 0) {
16544
        return lastComparison;
16545
      }
16546
      if (isSetItemId()) {
16547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16548
        if (lastComparison != 0) {
16549
          return lastComparison;
16550
        }
16551
      }
16552
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
16553
      if (lastComparison != 0) {
16554
        return lastComparison;
16555
      }
16556
      if (isSetWarehouseId()) {
16557
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
16558
        if (lastComparison != 0) {
16559
          return lastComparison;
16560
        }
16561
      }
5967 rajveer 16562
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
16563
      if (lastComparison != 0) {
16564
        return lastComparison;
16565
      }
16566
      if (isSetSourceId()) {
16567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
16568
        if (lastComparison != 0) {
16569
          return lastComparison;
16570
        }
16571
      }
16572
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
16573
      if (lastComparison != 0) {
16574
        return lastComparison;
16575
      }
16576
      if (isSetOrderId()) {
16577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
16578
        if (lastComparison != 0) {
16579
          return lastComparison;
16580
        }
16581
      }
16582
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
16583
      if (lastComparison != 0) {
16584
        return lastComparison;
16585
      }
16586
      if (isSetCreatedTimestamp()) {
16587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
16588
        if (lastComparison != 0) {
16589
          return lastComparison;
16590
        }
16591
      }
16592
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
16593
      if (lastComparison != 0) {
16594
        return lastComparison;
16595
      }
16596
      if (isSetPromisedShippingTimestamp()) {
16597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
16598
        if (lastComparison != 0) {
16599
          return lastComparison;
16600
        }
16601
      }
5945 mandeep.dh 16602
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
16603
      if (lastComparison != 0) {
16604
        return lastComparison;
16605
      }
16606
      if (isSetQuantity()) {
16607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
16608
        if (lastComparison != 0) {
16609
          return lastComparison;
16610
        }
16611
      }
16612
      return 0;
16613
    }
16614
 
16615
    public _Fields fieldForId(int fieldId) {
16616
      return _Fields.findByThriftId(fieldId);
16617
    }
16618
 
16619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16620
      org.apache.thrift.protocol.TField field;
16621
      iprot.readStructBegin();
16622
      while (true)
16623
      {
16624
        field = iprot.readFieldBegin();
16625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16626
          break;
16627
        }
16628
        switch (field.id) {
16629
          case 1: // ITEM_ID
16630
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16631
              this.itemId = iprot.readI64();
16632
              setItemIdIsSet(true);
16633
            } else { 
16634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16635
            }
16636
            break;
16637
          case 2: // WAREHOUSE_ID
16638
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16639
              this.warehouseId = iprot.readI64();
16640
              setWarehouseIdIsSet(true);
16641
            } else { 
16642
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16643
            }
16644
            break;
5967 rajveer 16645
          case 3: // SOURCE_ID
16646
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16647
              this.sourceId = iprot.readI64();
16648
              setSourceIdIsSet(true);
16649
            } else { 
16650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16651
            }
16652
            break;
16653
          case 4: // ORDER_ID
16654
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16655
              this.orderId = iprot.readI64();
16656
              setOrderIdIsSet(true);
16657
            } else { 
16658
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16659
            }
16660
            break;
16661
          case 5: // CREATED_TIMESTAMP
16662
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16663
              this.createdTimestamp = iprot.readI64();
16664
              setCreatedTimestampIsSet(true);
16665
            } else { 
16666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16667
            }
16668
            break;
16669
          case 6: // PROMISED_SHIPPING_TIMESTAMP
16670
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16671
              this.promisedShippingTimestamp = iprot.readI64();
16672
              setPromisedShippingTimestampIsSet(true);
16673
            } else { 
16674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16675
            }
16676
            break;
16677
          case 7: // QUANTITY
5945 mandeep.dh 16678
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
16679
              this.quantity = iprot.readDouble();
16680
              setQuantityIsSet(true);
16681
            } else { 
16682
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16683
            }
16684
            break;
16685
          default:
16686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16687
        }
16688
        iprot.readFieldEnd();
16689
      }
16690
      iprot.readStructEnd();
16691
      validate();
16692
    }
16693
 
16694
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16695
      validate();
16696
 
16697
      oprot.writeStructBegin(STRUCT_DESC);
16698
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16699
      oprot.writeI64(this.itemId);
16700
      oprot.writeFieldEnd();
16701
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
16702
      oprot.writeI64(this.warehouseId);
16703
      oprot.writeFieldEnd();
5967 rajveer 16704
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
16705
      oprot.writeI64(this.sourceId);
16706
      oprot.writeFieldEnd();
16707
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
16708
      oprot.writeI64(this.orderId);
16709
      oprot.writeFieldEnd();
16710
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
16711
      oprot.writeI64(this.createdTimestamp);
16712
      oprot.writeFieldEnd();
16713
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
16714
      oprot.writeI64(this.promisedShippingTimestamp);
16715
      oprot.writeFieldEnd();
5945 mandeep.dh 16716
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
16717
      oprot.writeDouble(this.quantity);
16718
      oprot.writeFieldEnd();
16719
      oprot.writeFieldStop();
16720
      oprot.writeStructEnd();
16721
    }
16722
 
16723
    @Override
16724
    public String toString() {
16725
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
16726
      boolean first = true;
16727
 
16728
      sb.append("itemId:");
16729
      sb.append(this.itemId);
16730
      first = false;
16731
      if (!first) sb.append(", ");
16732
      sb.append("warehouseId:");
16733
      sb.append(this.warehouseId);
16734
      first = false;
16735
      if (!first) sb.append(", ");
5967 rajveer 16736
      sb.append("sourceId:");
16737
      sb.append(this.sourceId);
16738
      first = false;
16739
      if (!first) sb.append(", ");
16740
      sb.append("orderId:");
16741
      sb.append(this.orderId);
16742
      first = false;
16743
      if (!first) sb.append(", ");
16744
      sb.append("createdTimestamp:");
16745
      sb.append(this.createdTimestamp);
16746
      first = false;
16747
      if (!first) sb.append(", ");
16748
      sb.append("promisedShippingTimestamp:");
16749
      sb.append(this.promisedShippingTimestamp);
16750
      first = false;
16751
      if (!first) sb.append(", ");
5945 mandeep.dh 16752
      sb.append("quantity:");
16753
      sb.append(this.quantity);
16754
      first = false;
16755
      sb.append(")");
16756
      return sb.toString();
16757
    }
16758
 
16759
    public void validate() throws org.apache.thrift.TException {
16760
      // check for required fields
16761
    }
16762
 
16763
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16764
      try {
16765
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16766
      } catch (org.apache.thrift.TException te) {
16767
        throw new java.io.IOException(te);
16768
      }
16769
    }
16770
 
16771
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16772
      try {
16773
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16774
      } catch (org.apache.thrift.TException te) {
16775
        throw new java.io.IOException(te);
16776
      }
16777
    }
16778
 
16779
  }
16780
 
16781
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
16782
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
16783
 
16784
    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);
16785
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
16786
 
16787
    private boolean success; // required
16788
    private InventoryServiceException cex; // required
16789
 
16790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16792
      SUCCESS((short)0, "success"),
16793
      CEX((short)1, "cex");
16794
 
16795
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16796
 
16797
      static {
16798
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16799
          byName.put(field.getFieldName(), field);
16800
        }
16801
      }
16802
 
16803
      /**
16804
       * Find the _Fields constant that matches fieldId, or null if its not found.
16805
       */
16806
      public static _Fields findByThriftId(int fieldId) {
16807
        switch(fieldId) {
16808
          case 0: // SUCCESS
16809
            return SUCCESS;
16810
          case 1: // CEX
16811
            return CEX;
16812
          default:
16813
            return null;
16814
        }
16815
      }
16816
 
16817
      /**
16818
       * Find the _Fields constant that matches fieldId, throwing an exception
16819
       * if it is not found.
16820
       */
16821
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16822
        _Fields fields = findByThriftId(fieldId);
16823
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16824
        return fields;
16825
      }
16826
 
16827
      /**
16828
       * Find the _Fields constant that matches name, or null if its not found.
16829
       */
16830
      public static _Fields findByName(String name) {
16831
        return byName.get(name);
16832
      }
16833
 
16834
      private final short _thriftId;
16835
      private final String _fieldName;
16836
 
16837
      _Fields(short thriftId, String fieldName) {
16838
        _thriftId = thriftId;
16839
        _fieldName = fieldName;
16840
      }
16841
 
16842
      public short getThriftFieldId() {
16843
        return _thriftId;
16844
      }
16845
 
16846
      public String getFieldName() {
16847
        return _fieldName;
16848
      }
16849
    }
16850
 
16851
    // isset id assignments
16852
    private static final int __SUCCESS_ISSET_ID = 0;
16853
    private BitSet __isset_bit_vector = new BitSet(1);
16854
 
16855
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16856
    static {
16857
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16858
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16860
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
16864
    }
16865
 
16866
    public reserveItemInWarehouse_result() {
16867
    }
16868
 
16869
    public reserveItemInWarehouse_result(
16870
      boolean success,
16871
      InventoryServiceException cex)
16872
    {
16873
      this();
16874
      this.success = success;
16875
      setSuccessIsSet(true);
16876
      this.cex = cex;
16877
    }
16878
 
16879
    /**
16880
     * Performs a deep copy on <i>other</i>.
16881
     */
16882
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
16883
      __isset_bit_vector.clear();
16884
      __isset_bit_vector.or(other.__isset_bit_vector);
16885
      this.success = other.success;
16886
      if (other.isSetCex()) {
16887
        this.cex = new InventoryServiceException(other.cex);
16888
      }
16889
    }
16890
 
16891
    public reserveItemInWarehouse_result deepCopy() {
16892
      return new reserveItemInWarehouse_result(this);
16893
    }
16894
 
16895
    @Override
16896
    public void clear() {
16897
      setSuccessIsSet(false);
16898
      this.success = false;
16899
      this.cex = null;
16900
    }
16901
 
16902
    public boolean isSuccess() {
16903
      return this.success;
16904
    }
16905
 
16906
    public void setSuccess(boolean success) {
16907
      this.success = success;
16908
      setSuccessIsSet(true);
16909
    }
16910
 
16911
    public void unsetSuccess() {
16912
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16913
    }
16914
 
16915
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16916
    public boolean isSetSuccess() {
16917
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16918
    }
16919
 
16920
    public void setSuccessIsSet(boolean value) {
16921
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16922
    }
16923
 
16924
    public InventoryServiceException getCex() {
16925
      return this.cex;
16926
    }
16927
 
16928
    public void setCex(InventoryServiceException cex) {
16929
      this.cex = cex;
16930
    }
16931
 
16932
    public void unsetCex() {
16933
      this.cex = null;
16934
    }
16935
 
16936
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16937
    public boolean isSetCex() {
16938
      return this.cex != null;
16939
    }
16940
 
16941
    public void setCexIsSet(boolean value) {
16942
      if (!value) {
16943
        this.cex = null;
16944
      }
16945
    }
16946
 
16947
    public void setFieldValue(_Fields field, Object value) {
16948
      switch (field) {
16949
      case SUCCESS:
16950
        if (value == null) {
16951
          unsetSuccess();
16952
        } else {
16953
          setSuccess((Boolean)value);
16954
        }
16955
        break;
16956
 
16957
      case CEX:
16958
        if (value == null) {
16959
          unsetCex();
16960
        } else {
16961
          setCex((InventoryServiceException)value);
16962
        }
16963
        break;
16964
 
16965
      }
16966
    }
16967
 
16968
    public Object getFieldValue(_Fields field) {
16969
      switch (field) {
16970
      case SUCCESS:
16971
        return Boolean.valueOf(isSuccess());
16972
 
16973
      case CEX:
16974
        return getCex();
16975
 
16976
      }
16977
      throw new IllegalStateException();
16978
    }
16979
 
16980
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16981
    public boolean isSet(_Fields field) {
16982
      if (field == null) {
16983
        throw new IllegalArgumentException();
16984
      }
16985
 
16986
      switch (field) {
16987
      case SUCCESS:
16988
        return isSetSuccess();
16989
      case CEX:
16990
        return isSetCex();
16991
      }
16992
      throw new IllegalStateException();
16993
    }
16994
 
16995
    @Override
16996
    public boolean equals(Object that) {
16997
      if (that == null)
16998
        return false;
16999
      if (that instanceof reserveItemInWarehouse_result)
17000
        return this.equals((reserveItemInWarehouse_result)that);
17001
      return false;
17002
    }
17003
 
17004
    public boolean equals(reserveItemInWarehouse_result that) {
17005
      if (that == null)
17006
        return false;
17007
 
17008
      boolean this_present_success = true;
17009
      boolean that_present_success = true;
17010
      if (this_present_success || that_present_success) {
17011
        if (!(this_present_success && that_present_success))
17012
          return false;
17013
        if (this.success != that.success)
17014
          return false;
17015
      }
17016
 
17017
      boolean this_present_cex = true && this.isSetCex();
17018
      boolean that_present_cex = true && that.isSetCex();
17019
      if (this_present_cex || that_present_cex) {
17020
        if (!(this_present_cex && that_present_cex))
17021
          return false;
17022
        if (!this.cex.equals(that.cex))
17023
          return false;
17024
      }
17025
 
17026
      return true;
17027
    }
17028
 
17029
    @Override
17030
    public int hashCode() {
17031
      return 0;
17032
    }
17033
 
17034
    public int compareTo(reserveItemInWarehouse_result other) {
17035
      if (!getClass().equals(other.getClass())) {
17036
        return getClass().getName().compareTo(other.getClass().getName());
17037
      }
17038
 
17039
      int lastComparison = 0;
17040
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
17041
 
17042
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17043
      if (lastComparison != 0) {
17044
        return lastComparison;
17045
      }
17046
      if (isSetSuccess()) {
17047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17048
        if (lastComparison != 0) {
17049
          return lastComparison;
17050
        }
17051
      }
17052
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17053
      if (lastComparison != 0) {
17054
        return lastComparison;
17055
      }
17056
      if (isSetCex()) {
17057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17058
        if (lastComparison != 0) {
17059
          return lastComparison;
17060
        }
17061
      }
17062
      return 0;
17063
    }
17064
 
17065
    public _Fields fieldForId(int fieldId) {
17066
      return _Fields.findByThriftId(fieldId);
17067
    }
17068
 
17069
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17070
      org.apache.thrift.protocol.TField field;
17071
      iprot.readStructBegin();
17072
      while (true)
17073
      {
17074
        field = iprot.readFieldBegin();
17075
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17076
          break;
17077
        }
17078
        switch (field.id) {
17079
          case 0: // SUCCESS
17080
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17081
              this.success = iprot.readBool();
17082
              setSuccessIsSet(true);
17083
            } else { 
17084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17085
            }
17086
            break;
17087
          case 1: // CEX
17088
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17089
              this.cex = new InventoryServiceException();
17090
              this.cex.read(iprot);
17091
            } else { 
17092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17093
            }
17094
            break;
17095
          default:
17096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17097
        }
17098
        iprot.readFieldEnd();
17099
      }
17100
      iprot.readStructEnd();
17101
      validate();
17102
    }
17103
 
17104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17105
      oprot.writeStructBegin(STRUCT_DESC);
17106
 
17107
      if (this.isSetSuccess()) {
17108
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17109
        oprot.writeBool(this.success);
17110
        oprot.writeFieldEnd();
17111
      } else if (this.isSetCex()) {
17112
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17113
        this.cex.write(oprot);
17114
        oprot.writeFieldEnd();
17115
      }
17116
      oprot.writeFieldStop();
17117
      oprot.writeStructEnd();
17118
    }
17119
 
17120
    @Override
17121
    public String toString() {
17122
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
17123
      boolean first = true;
17124
 
17125
      sb.append("success:");
17126
      sb.append(this.success);
17127
      first = false;
17128
      if (!first) sb.append(", ");
17129
      sb.append("cex:");
17130
      if (this.cex == null) {
17131
        sb.append("null");
17132
      } else {
17133
        sb.append(this.cex);
17134
      }
17135
      first = false;
17136
      sb.append(")");
17137
      return sb.toString();
17138
    }
17139
 
17140
    public void validate() throws org.apache.thrift.TException {
17141
      // check for required fields
17142
    }
17143
 
17144
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17145
      try {
17146
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17147
      } catch (org.apache.thrift.TException te) {
17148
        throw new java.io.IOException(te);
17149
      }
17150
    }
17151
 
17152
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17153
      try {
17154
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17155
      } catch (org.apache.thrift.TException te) {
17156
        throw new java.io.IOException(te);
17157
      }
17158
    }
17159
 
17160
  }
17161
 
7968 amar.kumar 17162
  public static class updateReservationForOrder_args implements org.apache.thrift.TBase<updateReservationForOrder_args, updateReservationForOrder_args._Fields>, java.io.Serializable, Cloneable   {
17163
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_args");
17164
 
17165
    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);
17166
    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)2);
17167
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
17168
    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);
17169
    private static final org.apache.thrift.protocol.TField CREATED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("createdTimestamp", org.apache.thrift.protocol.TType.I64, (short)5);
17170
    private static final org.apache.thrift.protocol.TField PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("promisedShippingTimestamp", org.apache.thrift.protocol.TType.I64, (short)6);
17171
    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)7);
17172
 
17173
    private long itemId; // required
17174
    private long warehouseId; // required
17175
    private long sourceId; // required
17176
    private long orderId; // required
17177
    private long createdTimestamp; // required
17178
    private long promisedShippingTimestamp; // required
17179
    private double quantity; // required
17180
 
17181
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17182
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17183
      ITEM_ID((short)1, "itemId"),
17184
      WAREHOUSE_ID((short)2, "warehouseId"),
17185
      SOURCE_ID((short)3, "sourceId"),
17186
      ORDER_ID((short)4, "orderId"),
17187
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
17188
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
17189
      QUANTITY((short)7, "quantity");
17190
 
17191
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17192
 
17193
      static {
17194
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17195
          byName.put(field.getFieldName(), field);
17196
        }
17197
      }
17198
 
17199
      /**
17200
       * Find the _Fields constant that matches fieldId, or null if its not found.
17201
       */
17202
      public static _Fields findByThriftId(int fieldId) {
17203
        switch(fieldId) {
17204
          case 1: // ITEM_ID
17205
            return ITEM_ID;
17206
          case 2: // WAREHOUSE_ID
17207
            return WAREHOUSE_ID;
17208
          case 3: // SOURCE_ID
17209
            return SOURCE_ID;
17210
          case 4: // ORDER_ID
17211
            return ORDER_ID;
17212
          case 5: // CREATED_TIMESTAMP
17213
            return CREATED_TIMESTAMP;
17214
          case 6: // PROMISED_SHIPPING_TIMESTAMP
17215
            return PROMISED_SHIPPING_TIMESTAMP;
17216
          case 7: // QUANTITY
17217
            return QUANTITY;
17218
          default:
17219
            return null;
17220
        }
17221
      }
17222
 
17223
      /**
17224
       * Find the _Fields constant that matches fieldId, throwing an exception
17225
       * if it is not found.
17226
       */
17227
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17228
        _Fields fields = findByThriftId(fieldId);
17229
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17230
        return fields;
17231
      }
17232
 
17233
      /**
17234
       * Find the _Fields constant that matches name, or null if its not found.
17235
       */
17236
      public static _Fields findByName(String name) {
17237
        return byName.get(name);
17238
      }
17239
 
17240
      private final short _thriftId;
17241
      private final String _fieldName;
17242
 
17243
      _Fields(short thriftId, String fieldName) {
17244
        _thriftId = thriftId;
17245
        _fieldName = fieldName;
17246
      }
17247
 
17248
      public short getThriftFieldId() {
17249
        return _thriftId;
17250
      }
17251
 
17252
      public String getFieldName() {
17253
        return _fieldName;
17254
      }
17255
    }
17256
 
17257
    // isset id assignments
17258
    private static final int __ITEMID_ISSET_ID = 0;
17259
    private static final int __WAREHOUSEID_ISSET_ID = 1;
17260
    private static final int __SOURCEID_ISSET_ID = 2;
17261
    private static final int __ORDERID_ISSET_ID = 3;
17262
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
17263
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
17264
    private static final int __QUANTITY_ISSET_ID = 6;
17265
    private BitSet __isset_bit_vector = new BitSet(7);
17266
 
17267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17268
    static {
17269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17270
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17272
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17274
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17276
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17278
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17280
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17281
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17282
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17283
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
17284
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17285
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_args.class, metaDataMap);
17286
    }
17287
 
17288
    public updateReservationForOrder_args() {
17289
    }
17290
 
17291
    public updateReservationForOrder_args(
17292
      long itemId,
17293
      long warehouseId,
17294
      long sourceId,
17295
      long orderId,
17296
      long createdTimestamp,
17297
      long promisedShippingTimestamp,
17298
      double quantity)
17299
    {
17300
      this();
17301
      this.itemId = itemId;
17302
      setItemIdIsSet(true);
17303
      this.warehouseId = warehouseId;
17304
      setWarehouseIdIsSet(true);
17305
      this.sourceId = sourceId;
17306
      setSourceIdIsSet(true);
17307
      this.orderId = orderId;
17308
      setOrderIdIsSet(true);
17309
      this.createdTimestamp = createdTimestamp;
17310
      setCreatedTimestampIsSet(true);
17311
      this.promisedShippingTimestamp = promisedShippingTimestamp;
17312
      setPromisedShippingTimestampIsSet(true);
17313
      this.quantity = quantity;
17314
      setQuantityIsSet(true);
17315
    }
17316
 
17317
    /**
17318
     * Performs a deep copy on <i>other</i>.
17319
     */
17320
    public updateReservationForOrder_args(updateReservationForOrder_args other) {
17321
      __isset_bit_vector.clear();
17322
      __isset_bit_vector.or(other.__isset_bit_vector);
17323
      this.itemId = other.itemId;
17324
      this.warehouseId = other.warehouseId;
17325
      this.sourceId = other.sourceId;
17326
      this.orderId = other.orderId;
17327
      this.createdTimestamp = other.createdTimestamp;
17328
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
17329
      this.quantity = other.quantity;
17330
    }
17331
 
17332
    public updateReservationForOrder_args deepCopy() {
17333
      return new updateReservationForOrder_args(this);
17334
    }
17335
 
17336
    @Override
17337
    public void clear() {
17338
      setItemIdIsSet(false);
17339
      this.itemId = 0;
17340
      setWarehouseIdIsSet(false);
17341
      this.warehouseId = 0;
17342
      setSourceIdIsSet(false);
17343
      this.sourceId = 0;
17344
      setOrderIdIsSet(false);
17345
      this.orderId = 0;
17346
      setCreatedTimestampIsSet(false);
17347
      this.createdTimestamp = 0;
17348
      setPromisedShippingTimestampIsSet(false);
17349
      this.promisedShippingTimestamp = 0;
17350
      setQuantityIsSet(false);
17351
      this.quantity = 0.0;
17352
    }
17353
 
17354
    public long getItemId() {
17355
      return this.itemId;
17356
    }
17357
 
17358
    public void setItemId(long itemId) {
17359
      this.itemId = itemId;
17360
      setItemIdIsSet(true);
17361
    }
17362
 
17363
    public void unsetItemId() {
17364
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
17365
    }
17366
 
17367
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
17368
    public boolean isSetItemId() {
17369
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
17370
    }
17371
 
17372
    public void setItemIdIsSet(boolean value) {
17373
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
17374
    }
17375
 
17376
    public long getWarehouseId() {
17377
      return this.warehouseId;
17378
    }
17379
 
17380
    public void setWarehouseId(long warehouseId) {
17381
      this.warehouseId = warehouseId;
17382
      setWarehouseIdIsSet(true);
17383
    }
17384
 
17385
    public void unsetWarehouseId() {
17386
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
17387
    }
17388
 
17389
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
17390
    public boolean isSetWarehouseId() {
17391
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
17392
    }
17393
 
17394
    public void setWarehouseIdIsSet(boolean value) {
17395
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
17396
    }
17397
 
17398
    public long getSourceId() {
17399
      return this.sourceId;
17400
    }
17401
 
17402
    public void setSourceId(long sourceId) {
17403
      this.sourceId = sourceId;
17404
      setSourceIdIsSet(true);
17405
    }
17406
 
17407
    public void unsetSourceId() {
17408
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
17409
    }
17410
 
17411
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
17412
    public boolean isSetSourceId() {
17413
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
17414
    }
17415
 
17416
    public void setSourceIdIsSet(boolean value) {
17417
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
17418
    }
17419
 
17420
    public long getOrderId() {
17421
      return this.orderId;
17422
    }
17423
 
17424
    public void setOrderId(long orderId) {
17425
      this.orderId = orderId;
17426
      setOrderIdIsSet(true);
17427
    }
17428
 
17429
    public void unsetOrderId() {
17430
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
17431
    }
17432
 
17433
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
17434
    public boolean isSetOrderId() {
17435
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
17436
    }
17437
 
17438
    public void setOrderIdIsSet(boolean value) {
17439
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
17440
    }
17441
 
17442
    public long getCreatedTimestamp() {
17443
      return this.createdTimestamp;
17444
    }
17445
 
17446
    public void setCreatedTimestamp(long createdTimestamp) {
17447
      this.createdTimestamp = createdTimestamp;
17448
      setCreatedTimestampIsSet(true);
17449
    }
17450
 
17451
    public void unsetCreatedTimestamp() {
17452
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
17453
    }
17454
 
17455
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
17456
    public boolean isSetCreatedTimestamp() {
17457
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
17458
    }
17459
 
17460
    public void setCreatedTimestampIsSet(boolean value) {
17461
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
17462
    }
17463
 
17464
    public long getPromisedShippingTimestamp() {
17465
      return this.promisedShippingTimestamp;
17466
    }
17467
 
17468
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
17469
      this.promisedShippingTimestamp = promisedShippingTimestamp;
17470
      setPromisedShippingTimestampIsSet(true);
17471
    }
17472
 
17473
    public void unsetPromisedShippingTimestamp() {
17474
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
17475
    }
17476
 
17477
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
17478
    public boolean isSetPromisedShippingTimestamp() {
17479
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
17480
    }
17481
 
17482
    public void setPromisedShippingTimestampIsSet(boolean value) {
17483
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
17484
    }
17485
 
17486
    public double getQuantity() {
17487
      return this.quantity;
17488
    }
17489
 
17490
    public void setQuantity(double quantity) {
17491
      this.quantity = quantity;
17492
      setQuantityIsSet(true);
17493
    }
17494
 
17495
    public void unsetQuantity() {
17496
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
17497
    }
17498
 
17499
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
17500
    public boolean isSetQuantity() {
17501
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
17502
    }
17503
 
17504
    public void setQuantityIsSet(boolean value) {
17505
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
17506
    }
17507
 
17508
    public void setFieldValue(_Fields field, Object value) {
17509
      switch (field) {
17510
      case ITEM_ID:
17511
        if (value == null) {
17512
          unsetItemId();
17513
        } else {
17514
          setItemId((Long)value);
17515
        }
17516
        break;
17517
 
17518
      case WAREHOUSE_ID:
17519
        if (value == null) {
17520
          unsetWarehouseId();
17521
        } else {
17522
          setWarehouseId((Long)value);
17523
        }
17524
        break;
17525
 
17526
      case SOURCE_ID:
17527
        if (value == null) {
17528
          unsetSourceId();
17529
        } else {
17530
          setSourceId((Long)value);
17531
        }
17532
        break;
17533
 
17534
      case ORDER_ID:
17535
        if (value == null) {
17536
          unsetOrderId();
17537
        } else {
17538
          setOrderId((Long)value);
17539
        }
17540
        break;
17541
 
17542
      case CREATED_TIMESTAMP:
17543
        if (value == null) {
17544
          unsetCreatedTimestamp();
17545
        } else {
17546
          setCreatedTimestamp((Long)value);
17547
        }
17548
        break;
17549
 
17550
      case PROMISED_SHIPPING_TIMESTAMP:
17551
        if (value == null) {
17552
          unsetPromisedShippingTimestamp();
17553
        } else {
17554
          setPromisedShippingTimestamp((Long)value);
17555
        }
17556
        break;
17557
 
17558
      case QUANTITY:
17559
        if (value == null) {
17560
          unsetQuantity();
17561
        } else {
17562
          setQuantity((Double)value);
17563
        }
17564
        break;
17565
 
17566
      }
17567
    }
17568
 
17569
    public Object getFieldValue(_Fields field) {
17570
      switch (field) {
17571
      case ITEM_ID:
17572
        return Long.valueOf(getItemId());
17573
 
17574
      case WAREHOUSE_ID:
17575
        return Long.valueOf(getWarehouseId());
17576
 
17577
      case SOURCE_ID:
17578
        return Long.valueOf(getSourceId());
17579
 
17580
      case ORDER_ID:
17581
        return Long.valueOf(getOrderId());
17582
 
17583
      case CREATED_TIMESTAMP:
17584
        return Long.valueOf(getCreatedTimestamp());
17585
 
17586
      case PROMISED_SHIPPING_TIMESTAMP:
17587
        return Long.valueOf(getPromisedShippingTimestamp());
17588
 
17589
      case QUANTITY:
17590
        return Double.valueOf(getQuantity());
17591
 
17592
      }
17593
      throw new IllegalStateException();
17594
    }
17595
 
17596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17597
    public boolean isSet(_Fields field) {
17598
      if (field == null) {
17599
        throw new IllegalArgumentException();
17600
      }
17601
 
17602
      switch (field) {
17603
      case ITEM_ID:
17604
        return isSetItemId();
17605
      case WAREHOUSE_ID:
17606
        return isSetWarehouseId();
17607
      case SOURCE_ID:
17608
        return isSetSourceId();
17609
      case ORDER_ID:
17610
        return isSetOrderId();
17611
      case CREATED_TIMESTAMP:
17612
        return isSetCreatedTimestamp();
17613
      case PROMISED_SHIPPING_TIMESTAMP:
17614
        return isSetPromisedShippingTimestamp();
17615
      case QUANTITY:
17616
        return isSetQuantity();
17617
      }
17618
      throw new IllegalStateException();
17619
    }
17620
 
17621
    @Override
17622
    public boolean equals(Object that) {
17623
      if (that == null)
17624
        return false;
17625
      if (that instanceof updateReservationForOrder_args)
17626
        return this.equals((updateReservationForOrder_args)that);
17627
      return false;
17628
    }
17629
 
17630
    public boolean equals(updateReservationForOrder_args that) {
17631
      if (that == null)
17632
        return false;
17633
 
17634
      boolean this_present_itemId = true;
17635
      boolean that_present_itemId = true;
17636
      if (this_present_itemId || that_present_itemId) {
17637
        if (!(this_present_itemId && that_present_itemId))
17638
          return false;
17639
        if (this.itemId != that.itemId)
17640
          return false;
17641
      }
17642
 
17643
      boolean this_present_warehouseId = true;
17644
      boolean that_present_warehouseId = true;
17645
      if (this_present_warehouseId || that_present_warehouseId) {
17646
        if (!(this_present_warehouseId && that_present_warehouseId))
17647
          return false;
17648
        if (this.warehouseId != that.warehouseId)
17649
          return false;
17650
      }
17651
 
17652
      boolean this_present_sourceId = true;
17653
      boolean that_present_sourceId = true;
17654
      if (this_present_sourceId || that_present_sourceId) {
17655
        if (!(this_present_sourceId && that_present_sourceId))
17656
          return false;
17657
        if (this.sourceId != that.sourceId)
17658
          return false;
17659
      }
17660
 
17661
      boolean this_present_orderId = true;
17662
      boolean that_present_orderId = true;
17663
      if (this_present_orderId || that_present_orderId) {
17664
        if (!(this_present_orderId && that_present_orderId))
17665
          return false;
17666
        if (this.orderId != that.orderId)
17667
          return false;
17668
      }
17669
 
17670
      boolean this_present_createdTimestamp = true;
17671
      boolean that_present_createdTimestamp = true;
17672
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
17673
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
17674
          return false;
17675
        if (this.createdTimestamp != that.createdTimestamp)
17676
          return false;
17677
      }
17678
 
17679
      boolean this_present_promisedShippingTimestamp = true;
17680
      boolean that_present_promisedShippingTimestamp = true;
17681
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
17682
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
17683
          return false;
17684
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
17685
          return false;
17686
      }
17687
 
17688
      boolean this_present_quantity = true;
17689
      boolean that_present_quantity = true;
17690
      if (this_present_quantity || that_present_quantity) {
17691
        if (!(this_present_quantity && that_present_quantity))
17692
          return false;
17693
        if (this.quantity != that.quantity)
17694
          return false;
17695
      }
17696
 
17697
      return true;
17698
    }
17699
 
17700
    @Override
17701
    public int hashCode() {
17702
      return 0;
17703
    }
17704
 
17705
    public int compareTo(updateReservationForOrder_args other) {
17706
      if (!getClass().equals(other.getClass())) {
17707
        return getClass().getName().compareTo(other.getClass().getName());
17708
      }
17709
 
17710
      int lastComparison = 0;
17711
      updateReservationForOrder_args typedOther = (updateReservationForOrder_args)other;
17712
 
17713
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
17714
      if (lastComparison != 0) {
17715
        return lastComparison;
17716
      }
17717
      if (isSetItemId()) {
17718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
17719
        if (lastComparison != 0) {
17720
          return lastComparison;
17721
        }
17722
      }
17723
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
17724
      if (lastComparison != 0) {
17725
        return lastComparison;
17726
      }
17727
      if (isSetWarehouseId()) {
17728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
17729
        if (lastComparison != 0) {
17730
          return lastComparison;
17731
        }
17732
      }
17733
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
17734
      if (lastComparison != 0) {
17735
        return lastComparison;
17736
      }
17737
      if (isSetSourceId()) {
17738
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
17739
        if (lastComparison != 0) {
17740
          return lastComparison;
17741
        }
17742
      }
17743
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
17744
      if (lastComparison != 0) {
17745
        return lastComparison;
17746
      }
17747
      if (isSetOrderId()) {
17748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
17749
        if (lastComparison != 0) {
17750
          return lastComparison;
17751
        }
17752
      }
17753
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
17754
      if (lastComparison != 0) {
17755
        return lastComparison;
17756
      }
17757
      if (isSetCreatedTimestamp()) {
17758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
17759
        if (lastComparison != 0) {
17760
          return lastComparison;
17761
        }
17762
      }
17763
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
17764
      if (lastComparison != 0) {
17765
        return lastComparison;
17766
      }
17767
      if (isSetPromisedShippingTimestamp()) {
17768
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
17769
        if (lastComparison != 0) {
17770
          return lastComparison;
17771
        }
17772
      }
17773
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
17774
      if (lastComparison != 0) {
17775
        return lastComparison;
17776
      }
17777
      if (isSetQuantity()) {
17778
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
17779
        if (lastComparison != 0) {
17780
          return lastComparison;
17781
        }
17782
      }
17783
      return 0;
17784
    }
17785
 
17786
    public _Fields fieldForId(int fieldId) {
17787
      return _Fields.findByThriftId(fieldId);
17788
    }
17789
 
17790
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17791
      org.apache.thrift.protocol.TField field;
17792
      iprot.readStructBegin();
17793
      while (true)
17794
      {
17795
        field = iprot.readFieldBegin();
17796
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17797
          break;
17798
        }
17799
        switch (field.id) {
17800
          case 1: // ITEM_ID
17801
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17802
              this.itemId = iprot.readI64();
17803
              setItemIdIsSet(true);
17804
            } else { 
17805
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17806
            }
17807
            break;
17808
          case 2: // WAREHOUSE_ID
17809
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17810
              this.warehouseId = iprot.readI64();
17811
              setWarehouseIdIsSet(true);
17812
            } else { 
17813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17814
            }
17815
            break;
17816
          case 3: // SOURCE_ID
17817
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17818
              this.sourceId = iprot.readI64();
17819
              setSourceIdIsSet(true);
17820
            } else { 
17821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17822
            }
17823
            break;
17824
          case 4: // ORDER_ID
17825
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17826
              this.orderId = iprot.readI64();
17827
              setOrderIdIsSet(true);
17828
            } else { 
17829
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17830
            }
17831
            break;
17832
          case 5: // CREATED_TIMESTAMP
17833
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17834
              this.createdTimestamp = iprot.readI64();
17835
              setCreatedTimestampIsSet(true);
17836
            } else { 
17837
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17838
            }
17839
            break;
17840
          case 6: // PROMISED_SHIPPING_TIMESTAMP
17841
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17842
              this.promisedShippingTimestamp = iprot.readI64();
17843
              setPromisedShippingTimestampIsSet(true);
17844
            } else { 
17845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17846
            }
17847
            break;
17848
          case 7: // QUANTITY
17849
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
17850
              this.quantity = iprot.readDouble();
17851
              setQuantityIsSet(true);
17852
            } else { 
17853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17854
            }
17855
            break;
17856
          default:
17857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17858
        }
17859
        iprot.readFieldEnd();
17860
      }
17861
      iprot.readStructEnd();
17862
      validate();
17863
    }
17864
 
17865
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17866
      validate();
17867
 
17868
      oprot.writeStructBegin(STRUCT_DESC);
17869
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
17870
      oprot.writeI64(this.itemId);
17871
      oprot.writeFieldEnd();
17872
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
17873
      oprot.writeI64(this.warehouseId);
17874
      oprot.writeFieldEnd();
17875
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
17876
      oprot.writeI64(this.sourceId);
17877
      oprot.writeFieldEnd();
17878
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
17879
      oprot.writeI64(this.orderId);
17880
      oprot.writeFieldEnd();
17881
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
17882
      oprot.writeI64(this.createdTimestamp);
17883
      oprot.writeFieldEnd();
17884
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
17885
      oprot.writeI64(this.promisedShippingTimestamp);
17886
      oprot.writeFieldEnd();
17887
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
17888
      oprot.writeDouble(this.quantity);
17889
      oprot.writeFieldEnd();
17890
      oprot.writeFieldStop();
17891
      oprot.writeStructEnd();
17892
    }
17893
 
17894
    @Override
17895
    public String toString() {
17896
      StringBuilder sb = new StringBuilder("updateReservationForOrder_args(");
17897
      boolean first = true;
17898
 
17899
      sb.append("itemId:");
17900
      sb.append(this.itemId);
17901
      first = false;
17902
      if (!first) sb.append(", ");
17903
      sb.append("warehouseId:");
17904
      sb.append(this.warehouseId);
17905
      first = false;
17906
      if (!first) sb.append(", ");
17907
      sb.append("sourceId:");
17908
      sb.append(this.sourceId);
17909
      first = false;
17910
      if (!first) sb.append(", ");
17911
      sb.append("orderId:");
17912
      sb.append(this.orderId);
17913
      first = false;
17914
      if (!first) sb.append(", ");
17915
      sb.append("createdTimestamp:");
17916
      sb.append(this.createdTimestamp);
17917
      first = false;
17918
      if (!first) sb.append(", ");
17919
      sb.append("promisedShippingTimestamp:");
17920
      sb.append(this.promisedShippingTimestamp);
17921
      first = false;
17922
      if (!first) sb.append(", ");
17923
      sb.append("quantity:");
17924
      sb.append(this.quantity);
17925
      first = false;
17926
      sb.append(")");
17927
      return sb.toString();
17928
    }
17929
 
17930
    public void validate() throws org.apache.thrift.TException {
17931
      // check for required fields
17932
    }
17933
 
17934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17935
      try {
17936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17937
      } catch (org.apache.thrift.TException te) {
17938
        throw new java.io.IOException(te);
17939
      }
17940
    }
17941
 
17942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17943
      try {
17944
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17945
        __isset_bit_vector = new BitSet(1);
17946
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17947
      } catch (org.apache.thrift.TException te) {
17948
        throw new java.io.IOException(te);
17949
      }
17950
    }
17951
 
17952
  }
17953
 
17954
  public static class updateReservationForOrder_result implements org.apache.thrift.TBase<updateReservationForOrder_result, updateReservationForOrder_result._Fields>, java.io.Serializable, Cloneable   {
17955
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_result");
17956
 
17957
    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);
17958
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
17959
 
17960
    private boolean success; // required
17961
    private InventoryServiceException cex; // required
17962
 
17963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17964
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17965
      SUCCESS((short)0, "success"),
17966
      CEX((short)1, "cex");
17967
 
17968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17969
 
17970
      static {
17971
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17972
          byName.put(field.getFieldName(), field);
17973
        }
17974
      }
17975
 
17976
      /**
17977
       * Find the _Fields constant that matches fieldId, or null if its not found.
17978
       */
17979
      public static _Fields findByThriftId(int fieldId) {
17980
        switch(fieldId) {
17981
          case 0: // SUCCESS
17982
            return SUCCESS;
17983
          case 1: // CEX
17984
            return CEX;
17985
          default:
17986
            return null;
17987
        }
17988
      }
17989
 
17990
      /**
17991
       * Find the _Fields constant that matches fieldId, throwing an exception
17992
       * if it is not found.
17993
       */
17994
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17995
        _Fields fields = findByThriftId(fieldId);
17996
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17997
        return fields;
17998
      }
17999
 
18000
      /**
18001
       * Find the _Fields constant that matches name, or null if its not found.
18002
       */
18003
      public static _Fields findByName(String name) {
18004
        return byName.get(name);
18005
      }
18006
 
18007
      private final short _thriftId;
18008
      private final String _fieldName;
18009
 
18010
      _Fields(short thriftId, String fieldName) {
18011
        _thriftId = thriftId;
18012
        _fieldName = fieldName;
18013
      }
18014
 
18015
      public short getThriftFieldId() {
18016
        return _thriftId;
18017
      }
18018
 
18019
      public String getFieldName() {
18020
        return _fieldName;
18021
      }
18022
    }
18023
 
18024
    // isset id assignments
18025
    private static final int __SUCCESS_ISSET_ID = 0;
18026
    private BitSet __isset_bit_vector = new BitSet(1);
18027
 
18028
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18029
    static {
18030
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18031
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18033
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_result.class, metaDataMap);
18037
    }
18038
 
18039
    public updateReservationForOrder_result() {
18040
    }
18041
 
18042
    public updateReservationForOrder_result(
18043
      boolean success,
18044
      InventoryServiceException cex)
18045
    {
18046
      this();
18047
      this.success = success;
18048
      setSuccessIsSet(true);
18049
      this.cex = cex;
18050
    }
18051
 
18052
    /**
18053
     * Performs a deep copy on <i>other</i>.
18054
     */
18055
    public updateReservationForOrder_result(updateReservationForOrder_result other) {
18056
      __isset_bit_vector.clear();
18057
      __isset_bit_vector.or(other.__isset_bit_vector);
18058
      this.success = other.success;
18059
      if (other.isSetCex()) {
18060
        this.cex = new InventoryServiceException(other.cex);
18061
      }
18062
    }
18063
 
18064
    public updateReservationForOrder_result deepCopy() {
18065
      return new updateReservationForOrder_result(this);
18066
    }
18067
 
18068
    @Override
18069
    public void clear() {
18070
      setSuccessIsSet(false);
18071
      this.success = false;
18072
      this.cex = null;
18073
    }
18074
 
18075
    public boolean isSuccess() {
18076
      return this.success;
18077
    }
18078
 
18079
    public void setSuccess(boolean success) {
18080
      this.success = success;
18081
      setSuccessIsSet(true);
18082
    }
18083
 
18084
    public void unsetSuccess() {
18085
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18086
    }
18087
 
18088
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18089
    public boolean isSetSuccess() {
18090
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18091
    }
18092
 
18093
    public void setSuccessIsSet(boolean value) {
18094
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18095
    }
18096
 
18097
    public InventoryServiceException getCex() {
18098
      return this.cex;
18099
    }
18100
 
18101
    public void setCex(InventoryServiceException cex) {
18102
      this.cex = cex;
18103
    }
18104
 
18105
    public void unsetCex() {
18106
      this.cex = null;
18107
    }
18108
 
18109
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
18110
    public boolean isSetCex() {
18111
      return this.cex != null;
18112
    }
18113
 
18114
    public void setCexIsSet(boolean value) {
18115
      if (!value) {
18116
        this.cex = null;
18117
      }
18118
    }
18119
 
18120
    public void setFieldValue(_Fields field, Object value) {
18121
      switch (field) {
18122
      case SUCCESS:
18123
        if (value == null) {
18124
          unsetSuccess();
18125
        } else {
18126
          setSuccess((Boolean)value);
18127
        }
18128
        break;
18129
 
18130
      case CEX:
18131
        if (value == null) {
18132
          unsetCex();
18133
        } else {
18134
          setCex((InventoryServiceException)value);
18135
        }
18136
        break;
18137
 
18138
      }
18139
    }
18140
 
18141
    public Object getFieldValue(_Fields field) {
18142
      switch (field) {
18143
      case SUCCESS:
18144
        return Boolean.valueOf(isSuccess());
18145
 
18146
      case CEX:
18147
        return getCex();
18148
 
18149
      }
18150
      throw new IllegalStateException();
18151
    }
18152
 
18153
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18154
    public boolean isSet(_Fields field) {
18155
      if (field == null) {
18156
        throw new IllegalArgumentException();
18157
      }
18158
 
18159
      switch (field) {
18160
      case SUCCESS:
18161
        return isSetSuccess();
18162
      case CEX:
18163
        return isSetCex();
18164
      }
18165
      throw new IllegalStateException();
18166
    }
18167
 
18168
    @Override
18169
    public boolean equals(Object that) {
18170
      if (that == null)
18171
        return false;
18172
      if (that instanceof updateReservationForOrder_result)
18173
        return this.equals((updateReservationForOrder_result)that);
18174
      return false;
18175
    }
18176
 
18177
    public boolean equals(updateReservationForOrder_result that) {
18178
      if (that == null)
18179
        return false;
18180
 
18181
      boolean this_present_success = true;
18182
      boolean that_present_success = true;
18183
      if (this_present_success || that_present_success) {
18184
        if (!(this_present_success && that_present_success))
18185
          return false;
18186
        if (this.success != that.success)
18187
          return false;
18188
      }
18189
 
18190
      boolean this_present_cex = true && this.isSetCex();
18191
      boolean that_present_cex = true && that.isSetCex();
18192
      if (this_present_cex || that_present_cex) {
18193
        if (!(this_present_cex && that_present_cex))
18194
          return false;
18195
        if (!this.cex.equals(that.cex))
18196
          return false;
18197
      }
18198
 
18199
      return true;
18200
    }
18201
 
18202
    @Override
18203
    public int hashCode() {
18204
      return 0;
18205
    }
18206
 
18207
    public int compareTo(updateReservationForOrder_result other) {
18208
      if (!getClass().equals(other.getClass())) {
18209
        return getClass().getName().compareTo(other.getClass().getName());
18210
      }
18211
 
18212
      int lastComparison = 0;
18213
      updateReservationForOrder_result typedOther = (updateReservationForOrder_result)other;
18214
 
18215
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18216
      if (lastComparison != 0) {
18217
        return lastComparison;
18218
      }
18219
      if (isSetSuccess()) {
18220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18221
        if (lastComparison != 0) {
18222
          return lastComparison;
18223
        }
18224
      }
18225
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
18226
      if (lastComparison != 0) {
18227
        return lastComparison;
18228
      }
18229
      if (isSetCex()) {
18230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
18231
        if (lastComparison != 0) {
18232
          return lastComparison;
18233
        }
18234
      }
18235
      return 0;
18236
    }
18237
 
18238
    public _Fields fieldForId(int fieldId) {
18239
      return _Fields.findByThriftId(fieldId);
18240
    }
18241
 
18242
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18243
      org.apache.thrift.protocol.TField field;
18244
      iprot.readStructBegin();
18245
      while (true)
18246
      {
18247
        field = iprot.readFieldBegin();
18248
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18249
          break;
18250
        }
18251
        switch (field.id) {
18252
          case 0: // SUCCESS
18253
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18254
              this.success = iprot.readBool();
18255
              setSuccessIsSet(true);
18256
            } else { 
18257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18258
            }
18259
            break;
18260
          case 1: // CEX
18261
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18262
              this.cex = new InventoryServiceException();
18263
              this.cex.read(iprot);
18264
            } else { 
18265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18266
            }
18267
            break;
18268
          default:
18269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18270
        }
18271
        iprot.readFieldEnd();
18272
      }
18273
      iprot.readStructEnd();
18274
      validate();
18275
    }
18276
 
18277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18278
      oprot.writeStructBegin(STRUCT_DESC);
18279
 
18280
      if (this.isSetSuccess()) {
18281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18282
        oprot.writeBool(this.success);
18283
        oprot.writeFieldEnd();
18284
      } else if (this.isSetCex()) {
18285
        oprot.writeFieldBegin(CEX_FIELD_DESC);
18286
        this.cex.write(oprot);
18287
        oprot.writeFieldEnd();
18288
      }
18289
      oprot.writeFieldStop();
18290
      oprot.writeStructEnd();
18291
    }
18292
 
18293
    @Override
18294
    public String toString() {
18295
      StringBuilder sb = new StringBuilder("updateReservationForOrder_result(");
18296
      boolean first = true;
18297
 
18298
      sb.append("success:");
18299
      sb.append(this.success);
18300
      first = false;
18301
      if (!first) sb.append(", ");
18302
      sb.append("cex:");
18303
      if (this.cex == null) {
18304
        sb.append("null");
18305
      } else {
18306
        sb.append(this.cex);
18307
      }
18308
      first = false;
18309
      sb.append(")");
18310
      return sb.toString();
18311
    }
18312
 
18313
    public void validate() throws org.apache.thrift.TException {
18314
      // check for required fields
18315
    }
18316
 
18317
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18318
      try {
18319
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18320
      } catch (org.apache.thrift.TException te) {
18321
        throw new java.io.IOException(te);
18322
      }
18323
    }
18324
 
18325
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18326
      try {
18327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18328
      } catch (org.apache.thrift.TException te) {
18329
        throw new java.io.IOException(te);
18330
      }
18331
    }
18332
 
18333
  }
18334
 
5945 mandeep.dh 18335
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
18336
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
18337
 
18338
    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);
18339
    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)2);
5967 rajveer 18340
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)3);
18341
    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);
18342
    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);
5945 mandeep.dh 18343
 
18344
    private long itemId; // required
18345
    private long warehouseId; // required
5967 rajveer 18346
    private long sourceId; // required
18347
    private long orderId; // required
5945 mandeep.dh 18348
    private double quantity; // required
18349
 
18350
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18351
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18352
      ITEM_ID((short)1, "itemId"),
18353
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 18354
      SOURCE_ID((short)3, "sourceId"),
18355
      ORDER_ID((short)4, "orderId"),
18356
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 18357
 
18358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18359
 
18360
      static {
18361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18362
          byName.put(field.getFieldName(), field);
18363
        }
18364
      }
18365
 
18366
      /**
18367
       * Find the _Fields constant that matches fieldId, or null if its not found.
18368
       */
18369
      public static _Fields findByThriftId(int fieldId) {
18370
        switch(fieldId) {
18371
          case 1: // ITEM_ID
18372
            return ITEM_ID;
18373
          case 2: // WAREHOUSE_ID
18374
            return WAREHOUSE_ID;
5967 rajveer 18375
          case 3: // SOURCE_ID
18376
            return SOURCE_ID;
18377
          case 4: // ORDER_ID
18378
            return ORDER_ID;
18379
          case 5: // QUANTITY
5945 mandeep.dh 18380
            return QUANTITY;
18381
          default:
18382
            return null;
18383
        }
18384
      }
18385
 
18386
      /**
18387
       * Find the _Fields constant that matches fieldId, throwing an exception
18388
       * if it is not found.
18389
       */
18390
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18391
        _Fields fields = findByThriftId(fieldId);
18392
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18393
        return fields;
18394
      }
18395
 
18396
      /**
18397
       * Find the _Fields constant that matches name, or null if its not found.
18398
       */
18399
      public static _Fields findByName(String name) {
18400
        return byName.get(name);
18401
      }
18402
 
18403
      private final short _thriftId;
18404
      private final String _fieldName;
18405
 
18406
      _Fields(short thriftId, String fieldName) {
18407
        _thriftId = thriftId;
18408
        _fieldName = fieldName;
18409
      }
18410
 
18411
      public short getThriftFieldId() {
18412
        return _thriftId;
18413
      }
18414
 
18415
      public String getFieldName() {
18416
        return _fieldName;
18417
      }
18418
    }
18419
 
18420
    // isset id assignments
18421
    private static final int __ITEMID_ISSET_ID = 0;
18422
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 18423
    private static final int __SOURCEID_ISSET_ID = 2;
18424
    private static final int __ORDERID_ISSET_ID = 3;
18425
    private static final int __QUANTITY_ISSET_ID = 4;
18426
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 18427
 
18428
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18429
    static {
18430
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18431
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18432
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18433
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 18435
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18437
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 18439
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
18441
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18442
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
18443
    }
18444
 
18445
    public reduceReservationCount_args() {
18446
    }
18447
 
18448
    public reduceReservationCount_args(
18449
      long itemId,
18450
      long warehouseId,
5967 rajveer 18451
      long sourceId,
18452
      long orderId,
5945 mandeep.dh 18453
      double quantity)
18454
    {
18455
      this();
18456
      this.itemId = itemId;
18457
      setItemIdIsSet(true);
18458
      this.warehouseId = warehouseId;
18459
      setWarehouseIdIsSet(true);
5967 rajveer 18460
      this.sourceId = sourceId;
18461
      setSourceIdIsSet(true);
18462
      this.orderId = orderId;
18463
      setOrderIdIsSet(true);
5945 mandeep.dh 18464
      this.quantity = quantity;
18465
      setQuantityIsSet(true);
18466
    }
18467
 
18468
    /**
18469
     * Performs a deep copy on <i>other</i>.
18470
     */
18471
    public reduceReservationCount_args(reduceReservationCount_args other) {
18472
      __isset_bit_vector.clear();
18473
      __isset_bit_vector.or(other.__isset_bit_vector);
18474
      this.itemId = other.itemId;
18475
      this.warehouseId = other.warehouseId;
5967 rajveer 18476
      this.sourceId = other.sourceId;
18477
      this.orderId = other.orderId;
5945 mandeep.dh 18478
      this.quantity = other.quantity;
18479
    }
18480
 
18481
    public reduceReservationCount_args deepCopy() {
18482
      return new reduceReservationCount_args(this);
18483
    }
18484
 
18485
    @Override
18486
    public void clear() {
18487
      setItemIdIsSet(false);
18488
      this.itemId = 0;
18489
      setWarehouseIdIsSet(false);
18490
      this.warehouseId = 0;
5967 rajveer 18491
      setSourceIdIsSet(false);
18492
      this.sourceId = 0;
18493
      setOrderIdIsSet(false);
18494
      this.orderId = 0;
5945 mandeep.dh 18495
      setQuantityIsSet(false);
18496
      this.quantity = 0.0;
18497
    }
18498
 
18499
    public long getItemId() {
18500
      return this.itemId;
18501
    }
18502
 
18503
    public void setItemId(long itemId) {
18504
      this.itemId = itemId;
18505
      setItemIdIsSet(true);
18506
    }
18507
 
18508
    public void unsetItemId() {
18509
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
18510
    }
18511
 
18512
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
18513
    public boolean isSetItemId() {
18514
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
18515
    }
18516
 
18517
    public void setItemIdIsSet(boolean value) {
18518
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
18519
    }
18520
 
18521
    public long getWarehouseId() {
18522
      return this.warehouseId;
18523
    }
18524
 
18525
    public void setWarehouseId(long warehouseId) {
18526
      this.warehouseId = warehouseId;
18527
      setWarehouseIdIsSet(true);
18528
    }
18529
 
18530
    public void unsetWarehouseId() {
18531
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
18532
    }
18533
 
18534
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
18535
    public boolean isSetWarehouseId() {
18536
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
18537
    }
18538
 
18539
    public void setWarehouseIdIsSet(boolean value) {
18540
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
18541
    }
18542
 
5967 rajveer 18543
    public long getSourceId() {
18544
      return this.sourceId;
18545
    }
18546
 
18547
    public void setSourceId(long sourceId) {
18548
      this.sourceId = sourceId;
18549
      setSourceIdIsSet(true);
18550
    }
18551
 
18552
    public void unsetSourceId() {
18553
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
18554
    }
18555
 
18556
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
18557
    public boolean isSetSourceId() {
18558
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
18559
    }
18560
 
18561
    public void setSourceIdIsSet(boolean value) {
18562
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
18563
    }
18564
 
18565
    public long getOrderId() {
18566
      return this.orderId;
18567
    }
18568
 
18569
    public void setOrderId(long orderId) {
18570
      this.orderId = orderId;
18571
      setOrderIdIsSet(true);
18572
    }
18573
 
18574
    public void unsetOrderId() {
18575
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
18576
    }
18577
 
18578
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
18579
    public boolean isSetOrderId() {
18580
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
18581
    }
18582
 
18583
    public void setOrderIdIsSet(boolean value) {
18584
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
18585
    }
18586
 
5945 mandeep.dh 18587
    public double getQuantity() {
18588
      return this.quantity;
18589
    }
18590
 
18591
    public void setQuantity(double quantity) {
18592
      this.quantity = quantity;
18593
      setQuantityIsSet(true);
18594
    }
18595
 
18596
    public void unsetQuantity() {
18597
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
18598
    }
18599
 
18600
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
18601
    public boolean isSetQuantity() {
18602
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
18603
    }
18604
 
18605
    public void setQuantityIsSet(boolean value) {
18606
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
18607
    }
18608
 
18609
    public void setFieldValue(_Fields field, Object value) {
18610
      switch (field) {
18611
      case ITEM_ID:
18612
        if (value == null) {
18613
          unsetItemId();
18614
        } else {
18615
          setItemId((Long)value);
18616
        }
18617
        break;
18618
 
18619
      case WAREHOUSE_ID:
18620
        if (value == null) {
18621
          unsetWarehouseId();
18622
        } else {
18623
          setWarehouseId((Long)value);
18624
        }
18625
        break;
18626
 
5967 rajveer 18627
      case SOURCE_ID:
18628
        if (value == null) {
18629
          unsetSourceId();
18630
        } else {
18631
          setSourceId((Long)value);
18632
        }
18633
        break;
18634
 
18635
      case ORDER_ID:
18636
        if (value == null) {
18637
          unsetOrderId();
18638
        } else {
18639
          setOrderId((Long)value);
18640
        }
18641
        break;
18642
 
5945 mandeep.dh 18643
      case QUANTITY:
18644
        if (value == null) {
18645
          unsetQuantity();
18646
        } else {
18647
          setQuantity((Double)value);
18648
        }
18649
        break;
18650
 
18651
      }
18652
    }
18653
 
18654
    public Object getFieldValue(_Fields field) {
18655
      switch (field) {
18656
      case ITEM_ID:
18657
        return Long.valueOf(getItemId());
18658
 
18659
      case WAREHOUSE_ID:
18660
        return Long.valueOf(getWarehouseId());
18661
 
5967 rajveer 18662
      case SOURCE_ID:
18663
        return Long.valueOf(getSourceId());
18664
 
18665
      case ORDER_ID:
18666
        return Long.valueOf(getOrderId());
18667
 
5945 mandeep.dh 18668
      case QUANTITY:
18669
        return Double.valueOf(getQuantity());
18670
 
18671
      }
18672
      throw new IllegalStateException();
18673
    }
18674
 
18675
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18676
    public boolean isSet(_Fields field) {
18677
      if (field == null) {
18678
        throw new IllegalArgumentException();
18679
      }
18680
 
18681
      switch (field) {
18682
      case ITEM_ID:
18683
        return isSetItemId();
18684
      case WAREHOUSE_ID:
18685
        return isSetWarehouseId();
5967 rajveer 18686
      case SOURCE_ID:
18687
        return isSetSourceId();
18688
      case ORDER_ID:
18689
        return isSetOrderId();
5945 mandeep.dh 18690
      case QUANTITY:
18691
        return isSetQuantity();
18692
      }
18693
      throw new IllegalStateException();
18694
    }
18695
 
18696
    @Override
18697
    public boolean equals(Object that) {
18698
      if (that == null)
18699
        return false;
18700
      if (that instanceof reduceReservationCount_args)
18701
        return this.equals((reduceReservationCount_args)that);
18702
      return false;
18703
    }
18704
 
18705
    public boolean equals(reduceReservationCount_args that) {
18706
      if (that == null)
18707
        return false;
18708
 
18709
      boolean this_present_itemId = true;
18710
      boolean that_present_itemId = true;
18711
      if (this_present_itemId || that_present_itemId) {
18712
        if (!(this_present_itemId && that_present_itemId))
18713
          return false;
18714
        if (this.itemId != that.itemId)
18715
          return false;
18716
      }
18717
 
18718
      boolean this_present_warehouseId = true;
18719
      boolean that_present_warehouseId = true;
18720
      if (this_present_warehouseId || that_present_warehouseId) {
18721
        if (!(this_present_warehouseId && that_present_warehouseId))
18722
          return false;
18723
        if (this.warehouseId != that.warehouseId)
18724
          return false;
18725
      }
18726
 
5967 rajveer 18727
      boolean this_present_sourceId = true;
18728
      boolean that_present_sourceId = true;
18729
      if (this_present_sourceId || that_present_sourceId) {
18730
        if (!(this_present_sourceId && that_present_sourceId))
18731
          return false;
18732
        if (this.sourceId != that.sourceId)
18733
          return false;
18734
      }
18735
 
18736
      boolean this_present_orderId = true;
18737
      boolean that_present_orderId = true;
18738
      if (this_present_orderId || that_present_orderId) {
18739
        if (!(this_present_orderId && that_present_orderId))
18740
          return false;
18741
        if (this.orderId != that.orderId)
18742
          return false;
18743
      }
18744
 
5945 mandeep.dh 18745
      boolean this_present_quantity = true;
18746
      boolean that_present_quantity = true;
18747
      if (this_present_quantity || that_present_quantity) {
18748
        if (!(this_present_quantity && that_present_quantity))
18749
          return false;
18750
        if (this.quantity != that.quantity)
18751
          return false;
18752
      }
18753
 
18754
      return true;
18755
    }
18756
 
18757
    @Override
18758
    public int hashCode() {
18759
      return 0;
18760
    }
18761
 
18762
    public int compareTo(reduceReservationCount_args other) {
18763
      if (!getClass().equals(other.getClass())) {
18764
        return getClass().getName().compareTo(other.getClass().getName());
18765
      }
18766
 
18767
      int lastComparison = 0;
18768
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
18769
 
18770
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
18771
      if (lastComparison != 0) {
18772
        return lastComparison;
18773
      }
18774
      if (isSetItemId()) {
18775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
18776
        if (lastComparison != 0) {
18777
          return lastComparison;
18778
        }
18779
      }
18780
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
18781
      if (lastComparison != 0) {
18782
        return lastComparison;
18783
      }
18784
      if (isSetWarehouseId()) {
18785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
18786
        if (lastComparison != 0) {
18787
          return lastComparison;
18788
        }
18789
      }
5967 rajveer 18790
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
18791
      if (lastComparison != 0) {
18792
        return lastComparison;
18793
      }
18794
      if (isSetSourceId()) {
18795
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
18796
        if (lastComparison != 0) {
18797
          return lastComparison;
18798
        }
18799
      }
18800
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
18801
      if (lastComparison != 0) {
18802
        return lastComparison;
18803
      }
18804
      if (isSetOrderId()) {
18805
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
18806
        if (lastComparison != 0) {
18807
          return lastComparison;
18808
        }
18809
      }
5945 mandeep.dh 18810
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
18811
      if (lastComparison != 0) {
18812
        return lastComparison;
18813
      }
18814
      if (isSetQuantity()) {
18815
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
18816
        if (lastComparison != 0) {
18817
          return lastComparison;
18818
        }
18819
      }
18820
      return 0;
18821
    }
18822
 
18823
    public _Fields fieldForId(int fieldId) {
18824
      return _Fields.findByThriftId(fieldId);
18825
    }
18826
 
18827
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18828
      org.apache.thrift.protocol.TField field;
18829
      iprot.readStructBegin();
18830
      while (true)
18831
      {
18832
        field = iprot.readFieldBegin();
18833
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18834
          break;
18835
        }
18836
        switch (field.id) {
18837
          case 1: // ITEM_ID
18838
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18839
              this.itemId = iprot.readI64();
18840
              setItemIdIsSet(true);
18841
            } else { 
18842
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18843
            }
18844
            break;
18845
          case 2: // WAREHOUSE_ID
18846
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18847
              this.warehouseId = iprot.readI64();
18848
              setWarehouseIdIsSet(true);
18849
            } else { 
18850
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18851
            }
18852
            break;
5967 rajveer 18853
          case 3: // SOURCE_ID
18854
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18855
              this.sourceId = iprot.readI64();
18856
              setSourceIdIsSet(true);
18857
            } else { 
18858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18859
            }
18860
            break;
18861
          case 4: // ORDER_ID
18862
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18863
              this.orderId = iprot.readI64();
18864
              setOrderIdIsSet(true);
18865
            } else { 
18866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18867
            }
18868
            break;
18869
          case 5: // QUANTITY
5945 mandeep.dh 18870
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
18871
              this.quantity = iprot.readDouble();
18872
              setQuantityIsSet(true);
18873
            } else { 
18874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18875
            }
18876
            break;
18877
          default:
18878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18879
        }
18880
        iprot.readFieldEnd();
18881
      }
18882
      iprot.readStructEnd();
18883
      validate();
18884
    }
18885
 
18886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18887
      validate();
18888
 
18889
      oprot.writeStructBegin(STRUCT_DESC);
18890
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
18891
      oprot.writeI64(this.itemId);
18892
      oprot.writeFieldEnd();
18893
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
18894
      oprot.writeI64(this.warehouseId);
18895
      oprot.writeFieldEnd();
5967 rajveer 18896
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
18897
      oprot.writeI64(this.sourceId);
18898
      oprot.writeFieldEnd();
18899
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
18900
      oprot.writeI64(this.orderId);
18901
      oprot.writeFieldEnd();
5945 mandeep.dh 18902
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
18903
      oprot.writeDouble(this.quantity);
18904
      oprot.writeFieldEnd();
18905
      oprot.writeFieldStop();
18906
      oprot.writeStructEnd();
18907
    }
18908
 
18909
    @Override
18910
    public String toString() {
18911
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
18912
      boolean first = true;
18913
 
18914
      sb.append("itemId:");
18915
      sb.append(this.itemId);
18916
      first = false;
18917
      if (!first) sb.append(", ");
18918
      sb.append("warehouseId:");
18919
      sb.append(this.warehouseId);
18920
      first = false;
18921
      if (!first) sb.append(", ");
5967 rajveer 18922
      sb.append("sourceId:");
18923
      sb.append(this.sourceId);
18924
      first = false;
18925
      if (!first) sb.append(", ");
18926
      sb.append("orderId:");
18927
      sb.append(this.orderId);
18928
      first = false;
18929
      if (!first) sb.append(", ");
5945 mandeep.dh 18930
      sb.append("quantity:");
18931
      sb.append(this.quantity);
18932
      first = false;
18933
      sb.append(")");
18934
      return sb.toString();
18935
    }
18936
 
18937
    public void validate() throws org.apache.thrift.TException {
18938
      // check for required fields
18939
    }
18940
 
18941
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18942
      try {
18943
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18944
      } catch (org.apache.thrift.TException te) {
18945
        throw new java.io.IOException(te);
18946
      }
18947
    }
18948
 
18949
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18950
      try {
18951
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18952
      } catch (org.apache.thrift.TException te) {
18953
        throw new java.io.IOException(te);
18954
      }
18955
    }
18956
 
18957
  }
18958
 
18959
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
18960
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
18961
 
18962
    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);
18963
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
18964
 
18965
    private boolean success; // required
18966
    private InventoryServiceException cex; // required
18967
 
18968
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18969
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18970
      SUCCESS((short)0, "success"),
18971
      CEX((short)1, "cex");
18972
 
18973
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18974
 
18975
      static {
18976
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18977
          byName.put(field.getFieldName(), field);
18978
        }
18979
      }
18980
 
18981
      /**
18982
       * Find the _Fields constant that matches fieldId, or null if its not found.
18983
       */
18984
      public static _Fields findByThriftId(int fieldId) {
18985
        switch(fieldId) {
18986
          case 0: // SUCCESS
18987
            return SUCCESS;
18988
          case 1: // CEX
18989
            return CEX;
18990
          default:
18991
            return null;
18992
        }
18993
      }
18994
 
18995
      /**
18996
       * Find the _Fields constant that matches fieldId, throwing an exception
18997
       * if it is not found.
18998
       */
18999
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19000
        _Fields fields = findByThriftId(fieldId);
19001
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19002
        return fields;
19003
      }
19004
 
19005
      /**
19006
       * Find the _Fields constant that matches name, or null if its not found.
19007
       */
19008
      public static _Fields findByName(String name) {
19009
        return byName.get(name);
19010
      }
19011
 
19012
      private final short _thriftId;
19013
      private final String _fieldName;
19014
 
19015
      _Fields(short thriftId, String fieldName) {
19016
        _thriftId = thriftId;
19017
        _fieldName = fieldName;
19018
      }
19019
 
19020
      public short getThriftFieldId() {
19021
        return _thriftId;
19022
      }
19023
 
19024
      public String getFieldName() {
19025
        return _fieldName;
19026
      }
19027
    }
19028
 
19029
    // isset id assignments
19030
    private static final int __SUCCESS_ISSET_ID = 0;
19031
    private BitSet __isset_bit_vector = new BitSet(1);
19032
 
19033
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19034
    static {
19035
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19036
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19038
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19040
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19041
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
19042
    }
19043
 
19044
    public reduceReservationCount_result() {
19045
    }
19046
 
19047
    public reduceReservationCount_result(
19048
      boolean success,
19049
      InventoryServiceException cex)
19050
    {
19051
      this();
19052
      this.success = success;
19053
      setSuccessIsSet(true);
19054
      this.cex = cex;
19055
    }
19056
 
19057
    /**
19058
     * Performs a deep copy on <i>other</i>.
19059
     */
19060
    public reduceReservationCount_result(reduceReservationCount_result other) {
19061
      __isset_bit_vector.clear();
19062
      __isset_bit_vector.or(other.__isset_bit_vector);
19063
      this.success = other.success;
19064
      if (other.isSetCex()) {
19065
        this.cex = new InventoryServiceException(other.cex);
19066
      }
19067
    }
19068
 
19069
    public reduceReservationCount_result deepCopy() {
19070
      return new reduceReservationCount_result(this);
19071
    }
19072
 
19073
    @Override
19074
    public void clear() {
19075
      setSuccessIsSet(false);
19076
      this.success = false;
19077
      this.cex = null;
19078
    }
19079
 
19080
    public boolean isSuccess() {
19081
      return this.success;
19082
    }
19083
 
19084
    public void setSuccess(boolean success) {
19085
      this.success = success;
19086
      setSuccessIsSet(true);
19087
    }
19088
 
19089
    public void unsetSuccess() {
19090
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
19091
    }
19092
 
19093
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19094
    public boolean isSetSuccess() {
19095
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
19096
    }
19097
 
19098
    public void setSuccessIsSet(boolean value) {
19099
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
19100
    }
19101
 
19102
    public InventoryServiceException getCex() {
19103
      return this.cex;
19104
    }
19105
 
19106
    public void setCex(InventoryServiceException cex) {
19107
      this.cex = cex;
19108
    }
19109
 
19110
    public void unsetCex() {
19111
      this.cex = null;
19112
    }
19113
 
19114
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19115
    public boolean isSetCex() {
19116
      return this.cex != null;
19117
    }
19118
 
19119
    public void setCexIsSet(boolean value) {
19120
      if (!value) {
19121
        this.cex = null;
19122
      }
19123
    }
19124
 
19125
    public void setFieldValue(_Fields field, Object value) {
19126
      switch (field) {
19127
      case SUCCESS:
19128
        if (value == null) {
19129
          unsetSuccess();
19130
        } else {
19131
          setSuccess((Boolean)value);
19132
        }
19133
        break;
19134
 
19135
      case CEX:
19136
        if (value == null) {
19137
          unsetCex();
19138
        } else {
19139
          setCex((InventoryServiceException)value);
19140
        }
19141
        break;
19142
 
19143
      }
19144
    }
19145
 
19146
    public Object getFieldValue(_Fields field) {
19147
      switch (field) {
19148
      case SUCCESS:
19149
        return Boolean.valueOf(isSuccess());
19150
 
19151
      case CEX:
19152
        return getCex();
19153
 
19154
      }
19155
      throw new IllegalStateException();
19156
    }
19157
 
19158
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19159
    public boolean isSet(_Fields field) {
19160
      if (field == null) {
19161
        throw new IllegalArgumentException();
19162
      }
19163
 
19164
      switch (field) {
19165
      case SUCCESS:
19166
        return isSetSuccess();
19167
      case CEX:
19168
        return isSetCex();
19169
      }
19170
      throw new IllegalStateException();
19171
    }
19172
 
19173
    @Override
19174
    public boolean equals(Object that) {
19175
      if (that == null)
19176
        return false;
19177
      if (that instanceof reduceReservationCount_result)
19178
        return this.equals((reduceReservationCount_result)that);
19179
      return false;
19180
    }
19181
 
19182
    public boolean equals(reduceReservationCount_result that) {
19183
      if (that == null)
19184
        return false;
19185
 
19186
      boolean this_present_success = true;
19187
      boolean that_present_success = true;
19188
      if (this_present_success || that_present_success) {
19189
        if (!(this_present_success && that_present_success))
19190
          return false;
19191
        if (this.success != that.success)
19192
          return false;
19193
      }
19194
 
19195
      boolean this_present_cex = true && this.isSetCex();
19196
      boolean that_present_cex = true && that.isSetCex();
19197
      if (this_present_cex || that_present_cex) {
19198
        if (!(this_present_cex && that_present_cex))
19199
          return false;
19200
        if (!this.cex.equals(that.cex))
19201
          return false;
19202
      }
19203
 
19204
      return true;
19205
    }
19206
 
19207
    @Override
19208
    public int hashCode() {
19209
      return 0;
19210
    }
19211
 
19212
    public int compareTo(reduceReservationCount_result other) {
19213
      if (!getClass().equals(other.getClass())) {
19214
        return getClass().getName().compareTo(other.getClass().getName());
19215
      }
19216
 
19217
      int lastComparison = 0;
19218
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
19219
 
19220
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19221
      if (lastComparison != 0) {
19222
        return lastComparison;
19223
      }
19224
      if (isSetSuccess()) {
19225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19226
        if (lastComparison != 0) {
19227
          return lastComparison;
19228
        }
19229
      }
19230
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19231
      if (lastComparison != 0) {
19232
        return lastComparison;
19233
      }
19234
      if (isSetCex()) {
19235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19236
        if (lastComparison != 0) {
19237
          return lastComparison;
19238
        }
19239
      }
19240
      return 0;
19241
    }
19242
 
19243
    public _Fields fieldForId(int fieldId) {
19244
      return _Fields.findByThriftId(fieldId);
19245
    }
19246
 
19247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19248
      org.apache.thrift.protocol.TField field;
19249
      iprot.readStructBegin();
19250
      while (true)
19251
      {
19252
        field = iprot.readFieldBegin();
19253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19254
          break;
19255
        }
19256
        switch (field.id) {
19257
          case 0: // SUCCESS
19258
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
19259
              this.success = iprot.readBool();
19260
              setSuccessIsSet(true);
19261
            } else { 
19262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19263
            }
19264
            break;
19265
          case 1: // CEX
19266
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19267
              this.cex = new InventoryServiceException();
19268
              this.cex.read(iprot);
19269
            } else { 
19270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19271
            }
19272
            break;
19273
          default:
19274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19275
        }
19276
        iprot.readFieldEnd();
19277
      }
19278
      iprot.readStructEnd();
19279
      validate();
19280
    }
19281
 
19282
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19283
      oprot.writeStructBegin(STRUCT_DESC);
19284
 
19285
      if (this.isSetSuccess()) {
19286
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19287
        oprot.writeBool(this.success);
19288
        oprot.writeFieldEnd();
19289
      } else if (this.isSetCex()) {
19290
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19291
        this.cex.write(oprot);
19292
        oprot.writeFieldEnd();
19293
      }
19294
      oprot.writeFieldStop();
19295
      oprot.writeStructEnd();
19296
    }
19297
 
19298
    @Override
19299
    public String toString() {
19300
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
19301
      boolean first = true;
19302
 
19303
      sb.append("success:");
19304
      sb.append(this.success);
19305
      first = false;
19306
      if (!first) sb.append(", ");
19307
      sb.append("cex:");
19308
      if (this.cex == null) {
19309
        sb.append("null");
19310
      } else {
19311
        sb.append(this.cex);
19312
      }
19313
      first = false;
19314
      sb.append(")");
19315
      return sb.toString();
19316
    }
19317
 
19318
    public void validate() throws org.apache.thrift.TException {
19319
      // check for required fields
19320
    }
19321
 
19322
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19323
      try {
19324
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19325
      } catch (org.apache.thrift.TException te) {
19326
        throw new java.io.IOException(te);
19327
      }
19328
    }
19329
 
19330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19331
      try {
19332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19333
      } catch (org.apache.thrift.TException te) {
19334
        throw new java.io.IOException(te);
19335
      }
19336
    }
19337
 
19338
  }
19339
 
19340
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
19341
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
19342
 
19343
    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);
19344
    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);
19345
 
19346
    private long itemId; // required
19347
    private long vendorId; // required
19348
 
19349
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19350
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19351
      ITEM_ID((short)1, "itemId"),
19352
      VENDOR_ID((short)2, "vendorId");
19353
 
19354
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19355
 
19356
      static {
19357
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19358
          byName.put(field.getFieldName(), field);
19359
        }
19360
      }
19361
 
19362
      /**
19363
       * Find the _Fields constant that matches fieldId, or null if its not found.
19364
       */
19365
      public static _Fields findByThriftId(int fieldId) {
19366
        switch(fieldId) {
19367
          case 1: // ITEM_ID
19368
            return ITEM_ID;
19369
          case 2: // VENDOR_ID
19370
            return VENDOR_ID;
19371
          default:
19372
            return null;
19373
        }
19374
      }
19375
 
19376
      /**
19377
       * Find the _Fields constant that matches fieldId, throwing an exception
19378
       * if it is not found.
19379
       */
19380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19381
        _Fields fields = findByThriftId(fieldId);
19382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19383
        return fields;
19384
      }
19385
 
19386
      /**
19387
       * Find the _Fields constant that matches name, or null if its not found.
19388
       */
19389
      public static _Fields findByName(String name) {
19390
        return byName.get(name);
19391
      }
19392
 
19393
      private final short _thriftId;
19394
      private final String _fieldName;
19395
 
19396
      _Fields(short thriftId, String fieldName) {
19397
        _thriftId = thriftId;
19398
        _fieldName = fieldName;
19399
      }
19400
 
19401
      public short getThriftFieldId() {
19402
        return _thriftId;
19403
      }
19404
 
19405
      public String getFieldName() {
19406
        return _fieldName;
19407
      }
19408
    }
19409
 
19410
    // isset id assignments
19411
    private static final int __ITEMID_ISSET_ID = 0;
19412
    private static final int __VENDORID_ISSET_ID = 1;
19413
    private BitSet __isset_bit_vector = new BitSet(2);
19414
 
19415
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19416
    static {
19417
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19418
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19419
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19420
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19422
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19423
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
19424
    }
19425
 
19426
    public getItemPricing_args() {
19427
    }
19428
 
19429
    public getItemPricing_args(
19430
      long itemId,
19431
      long vendorId)
19432
    {
19433
      this();
19434
      this.itemId = itemId;
19435
      setItemIdIsSet(true);
19436
      this.vendorId = vendorId;
19437
      setVendorIdIsSet(true);
19438
    }
19439
 
19440
    /**
19441
     * Performs a deep copy on <i>other</i>.
19442
     */
19443
    public getItemPricing_args(getItemPricing_args other) {
19444
      __isset_bit_vector.clear();
19445
      __isset_bit_vector.or(other.__isset_bit_vector);
19446
      this.itemId = other.itemId;
19447
      this.vendorId = other.vendorId;
19448
    }
19449
 
19450
    public getItemPricing_args deepCopy() {
19451
      return new getItemPricing_args(this);
19452
    }
19453
 
19454
    @Override
19455
    public void clear() {
19456
      setItemIdIsSet(false);
19457
      this.itemId = 0;
19458
      setVendorIdIsSet(false);
19459
      this.vendorId = 0;
19460
    }
19461
 
19462
    public long getItemId() {
19463
      return this.itemId;
19464
    }
19465
 
19466
    public void setItemId(long itemId) {
19467
      this.itemId = itemId;
19468
      setItemIdIsSet(true);
19469
    }
19470
 
19471
    public void unsetItemId() {
19472
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
19473
    }
19474
 
19475
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
19476
    public boolean isSetItemId() {
19477
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
19478
    }
19479
 
19480
    public void setItemIdIsSet(boolean value) {
19481
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
19482
    }
19483
 
19484
    public long getVendorId() {
19485
      return this.vendorId;
19486
    }
19487
 
19488
    public void setVendorId(long vendorId) {
19489
      this.vendorId = vendorId;
19490
      setVendorIdIsSet(true);
19491
    }
19492
 
19493
    public void unsetVendorId() {
19494
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
19495
    }
19496
 
19497
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
19498
    public boolean isSetVendorId() {
19499
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
19500
    }
19501
 
19502
    public void setVendorIdIsSet(boolean value) {
19503
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
19504
    }
19505
 
19506
    public void setFieldValue(_Fields field, Object value) {
19507
      switch (field) {
19508
      case ITEM_ID:
19509
        if (value == null) {
19510
          unsetItemId();
19511
        } else {
19512
          setItemId((Long)value);
19513
        }
19514
        break;
19515
 
19516
      case VENDOR_ID:
19517
        if (value == null) {
19518
          unsetVendorId();
19519
        } else {
19520
          setVendorId((Long)value);
19521
        }
19522
        break;
19523
 
19524
      }
19525
    }
19526
 
19527
    public Object getFieldValue(_Fields field) {
19528
      switch (field) {
19529
      case ITEM_ID:
19530
        return Long.valueOf(getItemId());
19531
 
19532
      case VENDOR_ID:
19533
        return Long.valueOf(getVendorId());
19534
 
19535
      }
19536
      throw new IllegalStateException();
19537
    }
19538
 
19539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19540
    public boolean isSet(_Fields field) {
19541
      if (field == null) {
19542
        throw new IllegalArgumentException();
19543
      }
19544
 
19545
      switch (field) {
19546
      case ITEM_ID:
19547
        return isSetItemId();
19548
      case VENDOR_ID:
19549
        return isSetVendorId();
19550
      }
19551
      throw new IllegalStateException();
19552
    }
19553
 
19554
    @Override
19555
    public boolean equals(Object that) {
19556
      if (that == null)
19557
        return false;
19558
      if (that instanceof getItemPricing_args)
19559
        return this.equals((getItemPricing_args)that);
19560
      return false;
19561
    }
19562
 
19563
    public boolean equals(getItemPricing_args that) {
19564
      if (that == null)
19565
        return false;
19566
 
19567
      boolean this_present_itemId = true;
19568
      boolean that_present_itemId = true;
19569
      if (this_present_itemId || that_present_itemId) {
19570
        if (!(this_present_itemId && that_present_itemId))
19571
          return false;
19572
        if (this.itemId != that.itemId)
19573
          return false;
19574
      }
19575
 
19576
      boolean this_present_vendorId = true;
19577
      boolean that_present_vendorId = true;
19578
      if (this_present_vendorId || that_present_vendorId) {
19579
        if (!(this_present_vendorId && that_present_vendorId))
19580
          return false;
19581
        if (this.vendorId != that.vendorId)
19582
          return false;
19583
      }
19584
 
19585
      return true;
19586
    }
19587
 
19588
    @Override
19589
    public int hashCode() {
19590
      return 0;
19591
    }
19592
 
19593
    public int compareTo(getItemPricing_args other) {
19594
      if (!getClass().equals(other.getClass())) {
19595
        return getClass().getName().compareTo(other.getClass().getName());
19596
      }
19597
 
19598
      int lastComparison = 0;
19599
      getItemPricing_args typedOther = (getItemPricing_args)other;
19600
 
19601
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19602
      if (lastComparison != 0) {
19603
        return lastComparison;
19604
      }
19605
      if (isSetItemId()) {
19606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19607
        if (lastComparison != 0) {
19608
          return lastComparison;
19609
        }
19610
      }
19611
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
19612
      if (lastComparison != 0) {
19613
        return lastComparison;
19614
      }
19615
      if (isSetVendorId()) {
19616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
19617
        if (lastComparison != 0) {
19618
          return lastComparison;
19619
        }
19620
      }
19621
      return 0;
19622
    }
19623
 
19624
    public _Fields fieldForId(int fieldId) {
19625
      return _Fields.findByThriftId(fieldId);
19626
    }
19627
 
19628
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19629
      org.apache.thrift.protocol.TField field;
19630
      iprot.readStructBegin();
19631
      while (true)
19632
      {
19633
        field = iprot.readFieldBegin();
19634
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19635
          break;
19636
        }
19637
        switch (field.id) {
19638
          case 1: // ITEM_ID
19639
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19640
              this.itemId = iprot.readI64();
19641
              setItemIdIsSet(true);
19642
            } else { 
19643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19644
            }
19645
            break;
19646
          case 2: // VENDOR_ID
19647
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19648
              this.vendorId = iprot.readI64();
19649
              setVendorIdIsSet(true);
19650
            } else { 
19651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19652
            }
19653
            break;
19654
          default:
19655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19656
        }
19657
        iprot.readFieldEnd();
19658
      }
19659
      iprot.readStructEnd();
19660
      validate();
19661
    }
19662
 
19663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19664
      validate();
19665
 
19666
      oprot.writeStructBegin(STRUCT_DESC);
19667
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
19668
      oprot.writeI64(this.itemId);
19669
      oprot.writeFieldEnd();
19670
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
19671
      oprot.writeI64(this.vendorId);
19672
      oprot.writeFieldEnd();
19673
      oprot.writeFieldStop();
19674
      oprot.writeStructEnd();
19675
    }
19676
 
19677
    @Override
19678
    public String toString() {
19679
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
19680
      boolean first = true;
19681
 
19682
      sb.append("itemId:");
19683
      sb.append(this.itemId);
19684
      first = false;
19685
      if (!first) sb.append(", ");
19686
      sb.append("vendorId:");
19687
      sb.append(this.vendorId);
19688
      first = false;
19689
      sb.append(")");
19690
      return sb.toString();
19691
    }
19692
 
19693
    public void validate() throws org.apache.thrift.TException {
19694
      // check for required fields
19695
    }
19696
 
19697
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19698
      try {
19699
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19700
      } catch (org.apache.thrift.TException te) {
19701
        throw new java.io.IOException(te);
19702
      }
19703
    }
19704
 
19705
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19706
      try {
19707
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19708
      } catch (org.apache.thrift.TException te) {
19709
        throw new java.io.IOException(te);
19710
      }
19711
    }
19712
 
19713
  }
19714
 
19715
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
19716
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
19717
 
19718
    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);
19719
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
19720
 
19721
    private VendorItemPricing success; // required
19722
    private InventoryServiceException cex; // required
19723
 
19724
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19725
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19726
      SUCCESS((short)0, "success"),
19727
      CEX((short)1, "cex");
19728
 
19729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19730
 
19731
      static {
19732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19733
          byName.put(field.getFieldName(), field);
19734
        }
19735
      }
19736
 
19737
      /**
19738
       * Find the _Fields constant that matches fieldId, or null if its not found.
19739
       */
19740
      public static _Fields findByThriftId(int fieldId) {
19741
        switch(fieldId) {
19742
          case 0: // SUCCESS
19743
            return SUCCESS;
19744
          case 1: // CEX
19745
            return CEX;
19746
          default:
19747
            return null;
19748
        }
19749
      }
19750
 
19751
      /**
19752
       * Find the _Fields constant that matches fieldId, throwing an exception
19753
       * if it is not found.
19754
       */
19755
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19756
        _Fields fields = findByThriftId(fieldId);
19757
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19758
        return fields;
19759
      }
19760
 
19761
      /**
19762
       * Find the _Fields constant that matches name, or null if its not found.
19763
       */
19764
      public static _Fields findByName(String name) {
19765
        return byName.get(name);
19766
      }
19767
 
19768
      private final short _thriftId;
19769
      private final String _fieldName;
19770
 
19771
      _Fields(short thriftId, String fieldName) {
19772
        _thriftId = thriftId;
19773
        _fieldName = fieldName;
19774
      }
19775
 
19776
      public short getThriftFieldId() {
19777
        return _thriftId;
19778
      }
19779
 
19780
      public String getFieldName() {
19781
        return _fieldName;
19782
      }
19783
    }
19784
 
19785
    // isset id assignments
19786
 
19787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19788
    static {
19789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19790
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19791
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
19792
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19794
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19795
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
19796
    }
19797
 
19798
    public getItemPricing_result() {
19799
    }
19800
 
19801
    public getItemPricing_result(
19802
      VendorItemPricing success,
19803
      InventoryServiceException cex)
19804
    {
19805
      this();
19806
      this.success = success;
19807
      this.cex = cex;
19808
    }
19809
 
19810
    /**
19811
     * Performs a deep copy on <i>other</i>.
19812
     */
19813
    public getItemPricing_result(getItemPricing_result other) {
19814
      if (other.isSetSuccess()) {
19815
        this.success = new VendorItemPricing(other.success);
19816
      }
19817
      if (other.isSetCex()) {
19818
        this.cex = new InventoryServiceException(other.cex);
19819
      }
19820
    }
19821
 
19822
    public getItemPricing_result deepCopy() {
19823
      return new getItemPricing_result(this);
19824
    }
19825
 
19826
    @Override
19827
    public void clear() {
19828
      this.success = null;
19829
      this.cex = null;
19830
    }
19831
 
19832
    public VendorItemPricing getSuccess() {
19833
      return this.success;
19834
    }
19835
 
19836
    public void setSuccess(VendorItemPricing success) {
19837
      this.success = success;
19838
    }
19839
 
19840
    public void unsetSuccess() {
19841
      this.success = null;
19842
    }
19843
 
19844
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19845
    public boolean isSetSuccess() {
19846
      return this.success != null;
19847
    }
19848
 
19849
    public void setSuccessIsSet(boolean value) {
19850
      if (!value) {
19851
        this.success = null;
19852
      }
19853
    }
19854
 
19855
    public InventoryServiceException getCex() {
19856
      return this.cex;
19857
    }
19858
 
19859
    public void setCex(InventoryServiceException cex) {
19860
      this.cex = cex;
19861
    }
19862
 
19863
    public void unsetCex() {
19864
      this.cex = null;
19865
    }
19866
 
19867
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19868
    public boolean isSetCex() {
19869
      return this.cex != null;
19870
    }
19871
 
19872
    public void setCexIsSet(boolean value) {
19873
      if (!value) {
19874
        this.cex = null;
19875
      }
19876
    }
19877
 
19878
    public void setFieldValue(_Fields field, Object value) {
19879
      switch (field) {
19880
      case SUCCESS:
19881
        if (value == null) {
19882
          unsetSuccess();
19883
        } else {
19884
          setSuccess((VendorItemPricing)value);
19885
        }
19886
        break;
19887
 
19888
      case CEX:
19889
        if (value == null) {
19890
          unsetCex();
19891
        } else {
19892
          setCex((InventoryServiceException)value);
19893
        }
19894
        break;
19895
 
19896
      }
19897
    }
19898
 
19899
    public Object getFieldValue(_Fields field) {
19900
      switch (field) {
19901
      case SUCCESS:
19902
        return getSuccess();
19903
 
19904
      case CEX:
19905
        return getCex();
19906
 
19907
      }
19908
      throw new IllegalStateException();
19909
    }
19910
 
19911
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19912
    public boolean isSet(_Fields field) {
19913
      if (field == null) {
19914
        throw new IllegalArgumentException();
19915
      }
19916
 
19917
      switch (field) {
19918
      case SUCCESS:
19919
        return isSetSuccess();
19920
      case CEX:
19921
        return isSetCex();
19922
      }
19923
      throw new IllegalStateException();
19924
    }
19925
 
19926
    @Override
19927
    public boolean equals(Object that) {
19928
      if (that == null)
19929
        return false;
19930
      if (that instanceof getItemPricing_result)
19931
        return this.equals((getItemPricing_result)that);
19932
      return false;
19933
    }
19934
 
19935
    public boolean equals(getItemPricing_result that) {
19936
      if (that == null)
19937
        return false;
19938
 
19939
      boolean this_present_success = true && this.isSetSuccess();
19940
      boolean that_present_success = true && that.isSetSuccess();
19941
      if (this_present_success || that_present_success) {
19942
        if (!(this_present_success && that_present_success))
19943
          return false;
19944
        if (!this.success.equals(that.success))
19945
          return false;
19946
      }
19947
 
19948
      boolean this_present_cex = true && this.isSetCex();
19949
      boolean that_present_cex = true && that.isSetCex();
19950
      if (this_present_cex || that_present_cex) {
19951
        if (!(this_present_cex && that_present_cex))
19952
          return false;
19953
        if (!this.cex.equals(that.cex))
19954
          return false;
19955
      }
19956
 
19957
      return true;
19958
    }
19959
 
19960
    @Override
19961
    public int hashCode() {
19962
      return 0;
19963
    }
19964
 
19965
    public int compareTo(getItemPricing_result other) {
19966
      if (!getClass().equals(other.getClass())) {
19967
        return getClass().getName().compareTo(other.getClass().getName());
19968
      }
19969
 
19970
      int lastComparison = 0;
19971
      getItemPricing_result typedOther = (getItemPricing_result)other;
19972
 
19973
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19974
      if (lastComparison != 0) {
19975
        return lastComparison;
19976
      }
19977
      if (isSetSuccess()) {
19978
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19979
        if (lastComparison != 0) {
19980
          return lastComparison;
19981
        }
19982
      }
19983
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19984
      if (lastComparison != 0) {
19985
        return lastComparison;
19986
      }
19987
      if (isSetCex()) {
19988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19989
        if (lastComparison != 0) {
19990
          return lastComparison;
19991
        }
19992
      }
19993
      return 0;
19994
    }
19995
 
19996
    public _Fields fieldForId(int fieldId) {
19997
      return _Fields.findByThriftId(fieldId);
19998
    }
19999
 
20000
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20001
      org.apache.thrift.protocol.TField field;
20002
      iprot.readStructBegin();
20003
      while (true)
20004
      {
20005
        field = iprot.readFieldBegin();
20006
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20007
          break;
20008
        }
20009
        switch (field.id) {
20010
          case 0: // SUCCESS
20011
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20012
              this.success = new VendorItemPricing();
20013
              this.success.read(iprot);
20014
            } else { 
20015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20016
            }
20017
            break;
20018
          case 1: // CEX
20019
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20020
              this.cex = new InventoryServiceException();
20021
              this.cex.read(iprot);
20022
            } else { 
20023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20024
            }
20025
            break;
20026
          default:
20027
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20028
        }
20029
        iprot.readFieldEnd();
20030
      }
20031
      iprot.readStructEnd();
20032
      validate();
20033
    }
20034
 
20035
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20036
      oprot.writeStructBegin(STRUCT_DESC);
20037
 
20038
      if (this.isSetSuccess()) {
20039
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20040
        this.success.write(oprot);
20041
        oprot.writeFieldEnd();
20042
      } else if (this.isSetCex()) {
20043
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20044
        this.cex.write(oprot);
20045
        oprot.writeFieldEnd();
20046
      }
20047
      oprot.writeFieldStop();
20048
      oprot.writeStructEnd();
20049
    }
20050
 
20051
    @Override
20052
    public String toString() {
20053
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
20054
      boolean first = true;
20055
 
20056
      sb.append("success:");
20057
      if (this.success == null) {
20058
        sb.append("null");
20059
      } else {
20060
        sb.append(this.success);
20061
      }
20062
      first = false;
20063
      if (!first) sb.append(", ");
20064
      sb.append("cex:");
20065
      if (this.cex == null) {
20066
        sb.append("null");
20067
      } else {
20068
        sb.append(this.cex);
20069
      }
20070
      first = false;
20071
      sb.append(")");
20072
      return sb.toString();
20073
    }
20074
 
20075
    public void validate() throws org.apache.thrift.TException {
20076
      // check for required fields
20077
    }
20078
 
20079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20080
      try {
20081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20082
      } catch (org.apache.thrift.TException te) {
20083
        throw new java.io.IOException(te);
20084
      }
20085
    }
20086
 
20087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20088
      try {
20089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20090
      } catch (org.apache.thrift.TException te) {
20091
        throw new java.io.IOException(te);
20092
      }
20093
    }
20094
 
20095
  }
20096
 
20097
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
20098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
20099
 
20100
    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);
20101
 
20102
    private long itemId; // required
20103
 
20104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20106
      ITEM_ID((short)1, "itemId");
20107
 
20108
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20109
 
20110
      static {
20111
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20112
          byName.put(field.getFieldName(), field);
20113
        }
20114
      }
20115
 
20116
      /**
20117
       * Find the _Fields constant that matches fieldId, or null if its not found.
20118
       */
20119
      public static _Fields findByThriftId(int fieldId) {
20120
        switch(fieldId) {
20121
          case 1: // ITEM_ID
20122
            return ITEM_ID;
20123
          default:
20124
            return null;
20125
        }
20126
      }
20127
 
20128
      /**
20129
       * Find the _Fields constant that matches fieldId, throwing an exception
20130
       * if it is not found.
20131
       */
20132
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20133
        _Fields fields = findByThriftId(fieldId);
20134
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20135
        return fields;
20136
      }
20137
 
20138
      /**
20139
       * Find the _Fields constant that matches name, or null if its not found.
20140
       */
20141
      public static _Fields findByName(String name) {
20142
        return byName.get(name);
20143
      }
20144
 
20145
      private final short _thriftId;
20146
      private final String _fieldName;
20147
 
20148
      _Fields(short thriftId, String fieldName) {
20149
        _thriftId = thriftId;
20150
        _fieldName = fieldName;
20151
      }
20152
 
20153
      public short getThriftFieldId() {
20154
        return _thriftId;
20155
      }
20156
 
20157
      public String getFieldName() {
20158
        return _fieldName;
20159
      }
20160
    }
20161
 
20162
    // isset id assignments
20163
    private static final int __ITEMID_ISSET_ID = 0;
20164
    private BitSet __isset_bit_vector = new BitSet(1);
20165
 
20166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20167
    static {
20168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20169
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20171
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20172
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
20173
    }
20174
 
20175
    public getAllItemPricing_args() {
20176
    }
20177
 
20178
    public getAllItemPricing_args(
20179
      long itemId)
20180
    {
20181
      this();
20182
      this.itemId = itemId;
20183
      setItemIdIsSet(true);
20184
    }
20185
 
20186
    /**
20187
     * Performs a deep copy on <i>other</i>.
20188
     */
20189
    public getAllItemPricing_args(getAllItemPricing_args other) {
20190
      __isset_bit_vector.clear();
20191
      __isset_bit_vector.or(other.__isset_bit_vector);
20192
      this.itemId = other.itemId;
20193
    }
20194
 
20195
    public getAllItemPricing_args deepCopy() {
20196
      return new getAllItemPricing_args(this);
20197
    }
20198
 
20199
    @Override
20200
    public void clear() {
20201
      setItemIdIsSet(false);
20202
      this.itemId = 0;
20203
    }
20204
 
20205
    public long getItemId() {
20206
      return this.itemId;
20207
    }
20208
 
20209
    public void setItemId(long itemId) {
20210
      this.itemId = itemId;
20211
      setItemIdIsSet(true);
20212
    }
20213
 
20214
    public void unsetItemId() {
20215
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
20216
    }
20217
 
20218
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
20219
    public boolean isSetItemId() {
20220
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
20221
    }
20222
 
20223
    public void setItemIdIsSet(boolean value) {
20224
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
20225
    }
20226
 
20227
    public void setFieldValue(_Fields field, Object value) {
20228
      switch (field) {
20229
      case ITEM_ID:
20230
        if (value == null) {
20231
          unsetItemId();
20232
        } else {
20233
          setItemId((Long)value);
20234
        }
20235
        break;
20236
 
20237
      }
20238
    }
20239
 
20240
    public Object getFieldValue(_Fields field) {
20241
      switch (field) {
20242
      case ITEM_ID:
20243
        return Long.valueOf(getItemId());
20244
 
20245
      }
20246
      throw new IllegalStateException();
20247
    }
20248
 
20249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20250
    public boolean isSet(_Fields field) {
20251
      if (field == null) {
20252
        throw new IllegalArgumentException();
20253
      }
20254
 
20255
      switch (field) {
20256
      case ITEM_ID:
20257
        return isSetItemId();
20258
      }
20259
      throw new IllegalStateException();
20260
    }
20261
 
20262
    @Override
20263
    public boolean equals(Object that) {
20264
      if (that == null)
20265
        return false;
20266
      if (that instanceof getAllItemPricing_args)
20267
        return this.equals((getAllItemPricing_args)that);
20268
      return false;
20269
    }
20270
 
20271
    public boolean equals(getAllItemPricing_args that) {
20272
      if (that == null)
20273
        return false;
20274
 
20275
      boolean this_present_itemId = true;
20276
      boolean that_present_itemId = true;
20277
      if (this_present_itemId || that_present_itemId) {
20278
        if (!(this_present_itemId && that_present_itemId))
20279
          return false;
20280
        if (this.itemId != that.itemId)
20281
          return false;
20282
      }
20283
 
20284
      return true;
20285
    }
20286
 
20287
    @Override
20288
    public int hashCode() {
20289
      return 0;
20290
    }
20291
 
20292
    public int compareTo(getAllItemPricing_args other) {
20293
      if (!getClass().equals(other.getClass())) {
20294
        return getClass().getName().compareTo(other.getClass().getName());
20295
      }
20296
 
20297
      int lastComparison = 0;
20298
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
20299
 
20300
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
20301
      if (lastComparison != 0) {
20302
        return lastComparison;
20303
      }
20304
      if (isSetItemId()) {
20305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
20306
        if (lastComparison != 0) {
20307
          return lastComparison;
20308
        }
20309
      }
20310
      return 0;
20311
    }
20312
 
20313
    public _Fields fieldForId(int fieldId) {
20314
      return _Fields.findByThriftId(fieldId);
20315
    }
20316
 
20317
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20318
      org.apache.thrift.protocol.TField field;
20319
      iprot.readStructBegin();
20320
      while (true)
20321
      {
20322
        field = iprot.readFieldBegin();
20323
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20324
          break;
20325
        }
20326
        switch (field.id) {
20327
          case 1: // ITEM_ID
20328
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20329
              this.itemId = iprot.readI64();
20330
              setItemIdIsSet(true);
20331
            } else { 
20332
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20333
            }
20334
            break;
20335
          default:
20336
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20337
        }
20338
        iprot.readFieldEnd();
20339
      }
20340
      iprot.readStructEnd();
20341
      validate();
20342
    }
20343
 
20344
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20345
      validate();
20346
 
20347
      oprot.writeStructBegin(STRUCT_DESC);
20348
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
20349
      oprot.writeI64(this.itemId);
20350
      oprot.writeFieldEnd();
20351
      oprot.writeFieldStop();
20352
      oprot.writeStructEnd();
20353
    }
20354
 
20355
    @Override
20356
    public String toString() {
20357
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
20358
      boolean first = true;
20359
 
20360
      sb.append("itemId:");
20361
      sb.append(this.itemId);
20362
      first = false;
20363
      sb.append(")");
20364
      return sb.toString();
20365
    }
20366
 
20367
    public void validate() throws org.apache.thrift.TException {
20368
      // check for required fields
20369
    }
20370
 
20371
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20372
      try {
20373
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20374
      } catch (org.apache.thrift.TException te) {
20375
        throw new java.io.IOException(te);
20376
      }
20377
    }
20378
 
20379
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20380
      try {
20381
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20382
      } catch (org.apache.thrift.TException te) {
20383
        throw new java.io.IOException(te);
20384
      }
20385
    }
20386
 
20387
  }
20388
 
20389
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
20390
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
20391
 
20392
    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);
20393
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
20394
 
20395
    private List<VendorItemPricing> success; // required
20396
    private InventoryServiceException cex; // required
20397
 
20398
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20399
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20400
      SUCCESS((short)0, "success"),
20401
      CEX((short)1, "cex");
20402
 
20403
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20404
 
20405
      static {
20406
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20407
          byName.put(field.getFieldName(), field);
20408
        }
20409
      }
20410
 
20411
      /**
20412
       * Find the _Fields constant that matches fieldId, or null if its not found.
20413
       */
20414
      public static _Fields findByThriftId(int fieldId) {
20415
        switch(fieldId) {
20416
          case 0: // SUCCESS
20417
            return SUCCESS;
20418
          case 1: // CEX
20419
            return CEX;
20420
          default:
20421
            return null;
20422
        }
20423
      }
20424
 
20425
      /**
20426
       * Find the _Fields constant that matches fieldId, throwing an exception
20427
       * if it is not found.
20428
       */
20429
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20430
        _Fields fields = findByThriftId(fieldId);
20431
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20432
        return fields;
20433
      }
20434
 
20435
      /**
20436
       * Find the _Fields constant that matches name, or null if its not found.
20437
       */
20438
      public static _Fields findByName(String name) {
20439
        return byName.get(name);
20440
      }
20441
 
20442
      private final short _thriftId;
20443
      private final String _fieldName;
20444
 
20445
      _Fields(short thriftId, String fieldName) {
20446
        _thriftId = thriftId;
20447
        _fieldName = fieldName;
20448
      }
20449
 
20450
      public short getThriftFieldId() {
20451
        return _thriftId;
20452
      }
20453
 
20454
      public String getFieldName() {
20455
        return _fieldName;
20456
      }
20457
    }
20458
 
20459
    // isset id assignments
20460
 
20461
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20462
    static {
20463
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20464
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20465
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20466
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
20467
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20468
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20469
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20470
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
20471
    }
20472
 
20473
    public getAllItemPricing_result() {
20474
    }
20475
 
20476
    public getAllItemPricing_result(
20477
      List<VendorItemPricing> success,
20478
      InventoryServiceException cex)
20479
    {
20480
      this();
20481
      this.success = success;
20482
      this.cex = cex;
20483
    }
20484
 
20485
    /**
20486
     * Performs a deep copy on <i>other</i>.
20487
     */
20488
    public getAllItemPricing_result(getAllItemPricing_result other) {
20489
      if (other.isSetSuccess()) {
20490
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
20491
        for (VendorItemPricing other_element : other.success) {
20492
          __this__success.add(new VendorItemPricing(other_element));
20493
        }
20494
        this.success = __this__success;
20495
      }
20496
      if (other.isSetCex()) {
20497
        this.cex = new InventoryServiceException(other.cex);
20498
      }
20499
    }
20500
 
20501
    public getAllItemPricing_result deepCopy() {
20502
      return new getAllItemPricing_result(this);
20503
    }
20504
 
20505
    @Override
20506
    public void clear() {
20507
      this.success = null;
20508
      this.cex = null;
20509
    }
20510
 
20511
    public int getSuccessSize() {
20512
      return (this.success == null) ? 0 : this.success.size();
20513
    }
20514
 
20515
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
20516
      return (this.success == null) ? null : this.success.iterator();
20517
    }
20518
 
20519
    public void addToSuccess(VendorItemPricing elem) {
20520
      if (this.success == null) {
20521
        this.success = new ArrayList<VendorItemPricing>();
20522
      }
20523
      this.success.add(elem);
20524
    }
20525
 
20526
    public List<VendorItemPricing> getSuccess() {
20527
      return this.success;
20528
    }
20529
 
20530
    public void setSuccess(List<VendorItemPricing> success) {
20531
      this.success = success;
20532
    }
20533
 
20534
    public void unsetSuccess() {
20535
      this.success = null;
20536
    }
20537
 
20538
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20539
    public boolean isSetSuccess() {
20540
      return this.success != null;
20541
    }
20542
 
20543
    public void setSuccessIsSet(boolean value) {
20544
      if (!value) {
20545
        this.success = null;
20546
      }
20547
    }
20548
 
20549
    public InventoryServiceException getCex() {
20550
      return this.cex;
20551
    }
20552
 
20553
    public void setCex(InventoryServiceException cex) {
20554
      this.cex = cex;
20555
    }
20556
 
20557
    public void unsetCex() {
20558
      this.cex = null;
20559
    }
20560
 
20561
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
20562
    public boolean isSetCex() {
20563
      return this.cex != null;
20564
    }
20565
 
20566
    public void setCexIsSet(boolean value) {
20567
      if (!value) {
20568
        this.cex = null;
20569
      }
20570
    }
20571
 
20572
    public void setFieldValue(_Fields field, Object value) {
20573
      switch (field) {
20574
      case SUCCESS:
20575
        if (value == null) {
20576
          unsetSuccess();
20577
        } else {
20578
          setSuccess((List<VendorItemPricing>)value);
20579
        }
20580
        break;
20581
 
20582
      case CEX:
20583
        if (value == null) {
20584
          unsetCex();
20585
        } else {
20586
          setCex((InventoryServiceException)value);
20587
        }
20588
        break;
20589
 
20590
      }
20591
    }
20592
 
20593
    public Object getFieldValue(_Fields field) {
20594
      switch (field) {
20595
      case SUCCESS:
20596
        return getSuccess();
20597
 
20598
      case CEX:
20599
        return getCex();
20600
 
20601
      }
20602
      throw new IllegalStateException();
20603
    }
20604
 
20605
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20606
    public boolean isSet(_Fields field) {
20607
      if (field == null) {
20608
        throw new IllegalArgumentException();
20609
      }
20610
 
20611
      switch (field) {
20612
      case SUCCESS:
20613
        return isSetSuccess();
20614
      case CEX:
20615
        return isSetCex();
20616
      }
20617
      throw new IllegalStateException();
20618
    }
20619
 
20620
    @Override
20621
    public boolean equals(Object that) {
20622
      if (that == null)
20623
        return false;
20624
      if (that instanceof getAllItemPricing_result)
20625
        return this.equals((getAllItemPricing_result)that);
20626
      return false;
20627
    }
20628
 
20629
    public boolean equals(getAllItemPricing_result that) {
20630
      if (that == null)
20631
        return false;
20632
 
20633
      boolean this_present_success = true && this.isSetSuccess();
20634
      boolean that_present_success = true && that.isSetSuccess();
20635
      if (this_present_success || that_present_success) {
20636
        if (!(this_present_success && that_present_success))
20637
          return false;
20638
        if (!this.success.equals(that.success))
20639
          return false;
20640
      }
20641
 
20642
      boolean this_present_cex = true && this.isSetCex();
20643
      boolean that_present_cex = true && that.isSetCex();
20644
      if (this_present_cex || that_present_cex) {
20645
        if (!(this_present_cex && that_present_cex))
20646
          return false;
20647
        if (!this.cex.equals(that.cex))
20648
          return false;
20649
      }
20650
 
20651
      return true;
20652
    }
20653
 
20654
    @Override
20655
    public int hashCode() {
20656
      return 0;
20657
    }
20658
 
20659
    public int compareTo(getAllItemPricing_result other) {
20660
      if (!getClass().equals(other.getClass())) {
20661
        return getClass().getName().compareTo(other.getClass().getName());
20662
      }
20663
 
20664
      int lastComparison = 0;
20665
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
20666
 
20667
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20668
      if (lastComparison != 0) {
20669
        return lastComparison;
20670
      }
20671
      if (isSetSuccess()) {
20672
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20673
        if (lastComparison != 0) {
20674
          return lastComparison;
20675
        }
20676
      }
20677
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
20678
      if (lastComparison != 0) {
20679
        return lastComparison;
20680
      }
20681
      if (isSetCex()) {
20682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
20683
        if (lastComparison != 0) {
20684
          return lastComparison;
20685
        }
20686
      }
20687
      return 0;
20688
    }
20689
 
20690
    public _Fields fieldForId(int fieldId) {
20691
      return _Fields.findByThriftId(fieldId);
20692
    }
20693
 
20694
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20695
      org.apache.thrift.protocol.TField field;
20696
      iprot.readStructBegin();
20697
      while (true)
20698
      {
20699
        field = iprot.readFieldBegin();
20700
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20701
          break;
20702
        }
20703
        switch (field.id) {
20704
          case 0: // SUCCESS
20705
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20706
              {
8182 amar.kumar 20707
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20708
                this.success = new ArrayList<VendorItemPricing>(_list37.size);
20709
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
5945 mandeep.dh 20710
                {
8182 amar.kumar 20711
                  VendorItemPricing _elem39; // required
20712
                  _elem39 = new VendorItemPricing();
20713
                  _elem39.read(iprot);
20714
                  this.success.add(_elem39);
5945 mandeep.dh 20715
                }
20716
                iprot.readListEnd();
20717
              }
20718
            } else { 
20719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20720
            }
20721
            break;
20722
          case 1: // CEX
20723
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20724
              this.cex = new InventoryServiceException();
20725
              this.cex.read(iprot);
20726
            } else { 
20727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20728
            }
20729
            break;
20730
          default:
20731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20732
        }
20733
        iprot.readFieldEnd();
20734
      }
20735
      iprot.readStructEnd();
20736
      validate();
20737
    }
20738
 
20739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20740
      oprot.writeStructBegin(STRUCT_DESC);
20741
 
20742
      if (this.isSetSuccess()) {
20743
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20744
        {
20745
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 20746
          for (VendorItemPricing _iter40 : this.success)
5945 mandeep.dh 20747
          {
8182 amar.kumar 20748
            _iter40.write(oprot);
5945 mandeep.dh 20749
          }
20750
          oprot.writeListEnd();
20751
        }
20752
        oprot.writeFieldEnd();
20753
      } else if (this.isSetCex()) {
20754
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20755
        this.cex.write(oprot);
20756
        oprot.writeFieldEnd();
20757
      }
20758
      oprot.writeFieldStop();
20759
      oprot.writeStructEnd();
20760
    }
20761
 
20762
    @Override
20763
    public String toString() {
20764
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
20765
      boolean first = true;
20766
 
20767
      sb.append("success:");
20768
      if (this.success == null) {
20769
        sb.append("null");
20770
      } else {
20771
        sb.append(this.success);
20772
      }
20773
      first = false;
20774
      if (!first) sb.append(", ");
20775
      sb.append("cex:");
20776
      if (this.cex == null) {
20777
        sb.append("null");
20778
      } else {
20779
        sb.append(this.cex);
20780
      }
20781
      first = false;
20782
      sb.append(")");
20783
      return sb.toString();
20784
    }
20785
 
20786
    public void validate() throws org.apache.thrift.TException {
20787
      // check for required fields
20788
    }
20789
 
20790
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20791
      try {
20792
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20793
      } catch (org.apache.thrift.TException te) {
20794
        throw new java.io.IOException(te);
20795
      }
20796
    }
20797
 
20798
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20799
      try {
20800
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20801
      } catch (org.apache.thrift.TException te) {
20802
        throw new java.io.IOException(te);
20803
      }
20804
    }
20805
 
20806
  }
20807
 
20808
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
20809
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
20810
 
20811
    private static final org.apache.thrift.protocol.TField VENDOR_ITEM_PRICING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorItemPricing", org.apache.thrift.protocol.TType.STRUCT, (short)1);
20812
 
20813
    private VendorItemPricing vendorItemPricing; // required
20814
 
20815
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20816
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20817
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
20818
 
20819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20820
 
20821
      static {
20822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20823
          byName.put(field.getFieldName(), field);
20824
        }
20825
      }
20826
 
20827
      /**
20828
       * Find the _Fields constant that matches fieldId, or null if its not found.
20829
       */
20830
      public static _Fields findByThriftId(int fieldId) {
20831
        switch(fieldId) {
20832
          case 1: // VENDOR_ITEM_PRICING
20833
            return VENDOR_ITEM_PRICING;
20834
          default:
20835
            return null;
20836
        }
20837
      }
20838
 
20839
      /**
20840
       * Find the _Fields constant that matches fieldId, throwing an exception
20841
       * if it is not found.
20842
       */
20843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20844
        _Fields fields = findByThriftId(fieldId);
20845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20846
        return fields;
20847
      }
20848
 
20849
      /**
20850
       * Find the _Fields constant that matches name, or null if its not found.
20851
       */
20852
      public static _Fields findByName(String name) {
20853
        return byName.get(name);
20854
      }
20855
 
20856
      private final short _thriftId;
20857
      private final String _fieldName;
20858
 
20859
      _Fields(short thriftId, String fieldName) {
20860
        _thriftId = thriftId;
20861
        _fieldName = fieldName;
20862
      }
20863
 
20864
      public short getThriftFieldId() {
20865
        return _thriftId;
20866
      }
20867
 
20868
      public String getFieldName() {
20869
        return _fieldName;
20870
      }
20871
    }
20872
 
20873
    // isset id assignments
20874
 
20875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20876
    static {
20877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20878
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20879
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
20880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
20882
    }
20883
 
20884
    public addVendorItemPricing_args() {
20885
    }
20886
 
20887
    public addVendorItemPricing_args(
20888
      VendorItemPricing vendorItemPricing)
20889
    {
20890
      this();
20891
      this.vendorItemPricing = vendorItemPricing;
20892
    }
20893
 
20894
    /**
20895
     * Performs a deep copy on <i>other</i>.
20896
     */
20897
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
20898
      if (other.isSetVendorItemPricing()) {
20899
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
20900
      }
20901
    }
20902
 
20903
    public addVendorItemPricing_args deepCopy() {
20904
      return new addVendorItemPricing_args(this);
20905
    }
20906
 
20907
    @Override
20908
    public void clear() {
20909
      this.vendorItemPricing = null;
20910
    }
20911
 
20912
    public VendorItemPricing getVendorItemPricing() {
20913
      return this.vendorItemPricing;
20914
    }
20915
 
20916
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
20917
      this.vendorItemPricing = vendorItemPricing;
20918
    }
20919
 
20920
    public void unsetVendorItemPricing() {
20921
      this.vendorItemPricing = null;
20922
    }
20923
 
20924
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
20925
    public boolean isSetVendorItemPricing() {
20926
      return this.vendorItemPricing != null;
20927
    }
20928
 
20929
    public void setVendorItemPricingIsSet(boolean value) {
20930
      if (!value) {
20931
        this.vendorItemPricing = null;
20932
      }
20933
    }
20934
 
20935
    public void setFieldValue(_Fields field, Object value) {
20936
      switch (field) {
20937
      case VENDOR_ITEM_PRICING:
20938
        if (value == null) {
20939
          unsetVendorItemPricing();
20940
        } else {
20941
          setVendorItemPricing((VendorItemPricing)value);
20942
        }
20943
        break;
20944
 
20945
      }
20946
    }
20947
 
20948
    public Object getFieldValue(_Fields field) {
20949
      switch (field) {
20950
      case VENDOR_ITEM_PRICING:
20951
        return getVendorItemPricing();
20952
 
20953
      }
20954
      throw new IllegalStateException();
20955
    }
20956
 
20957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20958
    public boolean isSet(_Fields field) {
20959
      if (field == null) {
20960
        throw new IllegalArgumentException();
20961
      }
20962
 
20963
      switch (field) {
20964
      case VENDOR_ITEM_PRICING:
20965
        return isSetVendorItemPricing();
20966
      }
20967
      throw new IllegalStateException();
20968
    }
20969
 
20970
    @Override
20971
    public boolean equals(Object that) {
20972
      if (that == null)
20973
        return false;
20974
      if (that instanceof addVendorItemPricing_args)
20975
        return this.equals((addVendorItemPricing_args)that);
20976
      return false;
20977
    }
20978
 
20979
    public boolean equals(addVendorItemPricing_args that) {
20980
      if (that == null)
20981
        return false;
20982
 
20983
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
20984
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
20985
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
20986
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
20987
          return false;
20988
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
20989
          return false;
20990
      }
20991
 
20992
      return true;
20993
    }
20994
 
20995
    @Override
20996
    public int hashCode() {
20997
      return 0;
20998
    }
20999
 
21000
    public int compareTo(addVendorItemPricing_args other) {
21001
      if (!getClass().equals(other.getClass())) {
21002
        return getClass().getName().compareTo(other.getClass().getName());
21003
      }
21004
 
21005
      int lastComparison = 0;
21006
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
21007
 
21008
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
21009
      if (lastComparison != 0) {
21010
        return lastComparison;
21011
      }
21012
      if (isSetVendorItemPricing()) {
21013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
21014
        if (lastComparison != 0) {
21015
          return lastComparison;
21016
        }
21017
      }
21018
      return 0;
21019
    }
21020
 
21021
    public _Fields fieldForId(int fieldId) {
21022
      return _Fields.findByThriftId(fieldId);
21023
    }
21024
 
21025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21026
      org.apache.thrift.protocol.TField field;
21027
      iprot.readStructBegin();
21028
      while (true)
21029
      {
21030
        field = iprot.readFieldBegin();
21031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21032
          break;
21033
        }
21034
        switch (field.id) {
21035
          case 1: // VENDOR_ITEM_PRICING
21036
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21037
              this.vendorItemPricing = new VendorItemPricing();
21038
              this.vendorItemPricing.read(iprot);
21039
            } else { 
21040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21041
            }
21042
            break;
21043
          default:
21044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21045
        }
21046
        iprot.readFieldEnd();
21047
      }
21048
      iprot.readStructEnd();
21049
      validate();
21050
    }
21051
 
21052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21053
      validate();
21054
 
21055
      oprot.writeStructBegin(STRUCT_DESC);
21056
      if (this.vendorItemPricing != null) {
21057
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
21058
        this.vendorItemPricing.write(oprot);
21059
        oprot.writeFieldEnd();
21060
      }
21061
      oprot.writeFieldStop();
21062
      oprot.writeStructEnd();
21063
    }
21064
 
21065
    @Override
21066
    public String toString() {
21067
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
21068
      boolean first = true;
21069
 
21070
      sb.append("vendorItemPricing:");
21071
      if (this.vendorItemPricing == null) {
21072
        sb.append("null");
21073
      } else {
21074
        sb.append(this.vendorItemPricing);
21075
      }
21076
      first = false;
21077
      sb.append(")");
21078
      return sb.toString();
21079
    }
21080
 
21081
    public void validate() throws org.apache.thrift.TException {
21082
      // check for required fields
21083
    }
21084
 
21085
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21086
      try {
21087
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21088
      } catch (org.apache.thrift.TException te) {
21089
        throw new java.io.IOException(te);
21090
      }
21091
    }
21092
 
21093
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21094
      try {
21095
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21096
      } catch (org.apache.thrift.TException te) {
21097
        throw new java.io.IOException(te);
21098
      }
21099
    }
21100
 
21101
  }
21102
 
21103
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
21104
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
21105
 
21106
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
21107
 
21108
    private InventoryServiceException cex; // required
21109
 
21110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21112
      CEX((short)1, "cex");
21113
 
21114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21115
 
21116
      static {
21117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21118
          byName.put(field.getFieldName(), field);
21119
        }
21120
      }
21121
 
21122
      /**
21123
       * Find the _Fields constant that matches fieldId, or null if its not found.
21124
       */
21125
      public static _Fields findByThriftId(int fieldId) {
21126
        switch(fieldId) {
21127
          case 1: // CEX
21128
            return CEX;
21129
          default:
21130
            return null;
21131
        }
21132
      }
21133
 
21134
      /**
21135
       * Find the _Fields constant that matches fieldId, throwing an exception
21136
       * if it is not found.
21137
       */
21138
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21139
        _Fields fields = findByThriftId(fieldId);
21140
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21141
        return fields;
21142
      }
21143
 
21144
      /**
21145
       * Find the _Fields constant that matches name, or null if its not found.
21146
       */
21147
      public static _Fields findByName(String name) {
21148
        return byName.get(name);
21149
      }
21150
 
21151
      private final short _thriftId;
21152
      private final String _fieldName;
21153
 
21154
      _Fields(short thriftId, String fieldName) {
21155
        _thriftId = thriftId;
21156
        _fieldName = fieldName;
21157
      }
21158
 
21159
      public short getThriftFieldId() {
21160
        return _thriftId;
21161
      }
21162
 
21163
      public String getFieldName() {
21164
        return _fieldName;
21165
      }
21166
    }
21167
 
21168
    // isset id assignments
21169
 
21170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21171
    static {
21172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21173
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
21177
    }
21178
 
21179
    public addVendorItemPricing_result() {
21180
    }
21181
 
21182
    public addVendorItemPricing_result(
21183
      InventoryServiceException cex)
21184
    {
21185
      this();
21186
      this.cex = cex;
21187
    }
21188
 
21189
    /**
21190
     * Performs a deep copy on <i>other</i>.
21191
     */
21192
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
21193
      if (other.isSetCex()) {
21194
        this.cex = new InventoryServiceException(other.cex);
21195
      }
21196
    }
21197
 
21198
    public addVendorItemPricing_result deepCopy() {
21199
      return new addVendorItemPricing_result(this);
21200
    }
21201
 
21202
    @Override
21203
    public void clear() {
21204
      this.cex = null;
21205
    }
21206
 
21207
    public InventoryServiceException getCex() {
21208
      return this.cex;
21209
    }
21210
 
21211
    public void setCex(InventoryServiceException cex) {
21212
      this.cex = cex;
21213
    }
21214
 
21215
    public void unsetCex() {
21216
      this.cex = null;
21217
    }
21218
 
21219
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
21220
    public boolean isSetCex() {
21221
      return this.cex != null;
21222
    }
21223
 
21224
    public void setCexIsSet(boolean value) {
21225
      if (!value) {
21226
        this.cex = null;
21227
      }
21228
    }
21229
 
21230
    public void setFieldValue(_Fields field, Object value) {
21231
      switch (field) {
21232
      case CEX:
21233
        if (value == null) {
21234
          unsetCex();
21235
        } else {
21236
          setCex((InventoryServiceException)value);
21237
        }
21238
        break;
21239
 
21240
      }
21241
    }
21242
 
21243
    public Object getFieldValue(_Fields field) {
21244
      switch (field) {
21245
      case CEX:
21246
        return getCex();
21247
 
21248
      }
21249
      throw new IllegalStateException();
21250
    }
21251
 
21252
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21253
    public boolean isSet(_Fields field) {
21254
      if (field == null) {
21255
        throw new IllegalArgumentException();
21256
      }
21257
 
21258
      switch (field) {
21259
      case CEX:
21260
        return isSetCex();
21261
      }
21262
      throw new IllegalStateException();
21263
    }
21264
 
21265
    @Override
21266
    public boolean equals(Object that) {
21267
      if (that == null)
21268
        return false;
21269
      if (that instanceof addVendorItemPricing_result)
21270
        return this.equals((addVendorItemPricing_result)that);
21271
      return false;
21272
    }
21273
 
21274
    public boolean equals(addVendorItemPricing_result that) {
21275
      if (that == null)
21276
        return false;
21277
 
21278
      boolean this_present_cex = true && this.isSetCex();
21279
      boolean that_present_cex = true && that.isSetCex();
21280
      if (this_present_cex || that_present_cex) {
21281
        if (!(this_present_cex && that_present_cex))
21282
          return false;
21283
        if (!this.cex.equals(that.cex))
21284
          return false;
21285
      }
21286
 
21287
      return true;
21288
    }
21289
 
21290
    @Override
21291
    public int hashCode() {
21292
      return 0;
21293
    }
21294
 
21295
    public int compareTo(addVendorItemPricing_result other) {
21296
      if (!getClass().equals(other.getClass())) {
21297
        return getClass().getName().compareTo(other.getClass().getName());
21298
      }
21299
 
21300
      int lastComparison = 0;
21301
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
21302
 
21303
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
21304
      if (lastComparison != 0) {
21305
        return lastComparison;
21306
      }
21307
      if (isSetCex()) {
21308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
21309
        if (lastComparison != 0) {
21310
          return lastComparison;
21311
        }
21312
      }
21313
      return 0;
21314
    }
21315
 
21316
    public _Fields fieldForId(int fieldId) {
21317
      return _Fields.findByThriftId(fieldId);
21318
    }
21319
 
21320
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21321
      org.apache.thrift.protocol.TField field;
21322
      iprot.readStructBegin();
21323
      while (true)
21324
      {
21325
        field = iprot.readFieldBegin();
21326
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21327
          break;
21328
        }
21329
        switch (field.id) {
21330
          case 1: // CEX
21331
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21332
              this.cex = new InventoryServiceException();
21333
              this.cex.read(iprot);
21334
            } else { 
21335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21336
            }
21337
            break;
21338
          default:
21339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21340
        }
21341
        iprot.readFieldEnd();
21342
      }
21343
      iprot.readStructEnd();
21344
      validate();
21345
    }
21346
 
21347
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21348
      oprot.writeStructBegin(STRUCT_DESC);
21349
 
21350
      if (this.isSetCex()) {
21351
        oprot.writeFieldBegin(CEX_FIELD_DESC);
21352
        this.cex.write(oprot);
21353
        oprot.writeFieldEnd();
21354
      }
21355
      oprot.writeFieldStop();
21356
      oprot.writeStructEnd();
21357
    }
21358
 
21359
    @Override
21360
    public String toString() {
21361
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
21362
      boolean first = true;
21363
 
21364
      sb.append("cex:");
21365
      if (this.cex == null) {
21366
        sb.append("null");
21367
      } else {
21368
        sb.append(this.cex);
21369
      }
21370
      first = false;
21371
      sb.append(")");
21372
      return sb.toString();
21373
    }
21374
 
21375
    public void validate() throws org.apache.thrift.TException {
21376
      // check for required fields
21377
    }
21378
 
21379
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21380
      try {
21381
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21382
      } catch (org.apache.thrift.TException te) {
21383
        throw new java.io.IOException(te);
21384
      }
21385
    }
21386
 
21387
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21388
      try {
21389
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21390
      } catch (org.apache.thrift.TException te) {
21391
        throw new java.io.IOException(te);
21392
      }
21393
    }
21394
 
21395
  }
21396
 
21397
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
21398
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
21399
 
21400
    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)1);
21401
 
21402
    private long vendorId; // required
21403
 
21404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21405
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21406
      VENDOR_ID((short)1, "vendorId");
21407
 
21408
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21409
 
21410
      static {
21411
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21412
          byName.put(field.getFieldName(), field);
21413
        }
21414
      }
21415
 
21416
      /**
21417
       * Find the _Fields constant that matches fieldId, or null if its not found.
21418
       */
21419
      public static _Fields findByThriftId(int fieldId) {
21420
        switch(fieldId) {
21421
          case 1: // VENDOR_ID
21422
            return VENDOR_ID;
21423
          default:
21424
            return null;
21425
        }
21426
      }
21427
 
21428
      /**
21429
       * Find the _Fields constant that matches fieldId, throwing an exception
21430
       * if it is not found.
21431
       */
21432
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21433
        _Fields fields = findByThriftId(fieldId);
21434
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21435
        return fields;
21436
      }
21437
 
21438
      /**
21439
       * Find the _Fields constant that matches name, or null if its not found.
21440
       */
21441
      public static _Fields findByName(String name) {
21442
        return byName.get(name);
21443
      }
21444
 
21445
      private final short _thriftId;
21446
      private final String _fieldName;
21447
 
21448
      _Fields(short thriftId, String fieldName) {
21449
        _thriftId = thriftId;
21450
        _fieldName = fieldName;
21451
      }
21452
 
21453
      public short getThriftFieldId() {
21454
        return _thriftId;
21455
      }
21456
 
21457
      public String getFieldName() {
21458
        return _fieldName;
21459
      }
21460
    }
21461
 
21462
    // isset id assignments
21463
    private static final int __VENDORID_ISSET_ID = 0;
21464
    private BitSet __isset_bit_vector = new BitSet(1);
21465
 
21466
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21467
    static {
21468
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21469
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21470
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21471
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21472
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
21473
    }
21474
 
21475
    public getVendor_args() {
21476
    }
21477
 
21478
    public getVendor_args(
21479
      long vendorId)
21480
    {
21481
      this();
21482
      this.vendorId = vendorId;
21483
      setVendorIdIsSet(true);
21484
    }
21485
 
21486
    /**
21487
     * Performs a deep copy on <i>other</i>.
21488
     */
21489
    public getVendor_args(getVendor_args other) {
21490
      __isset_bit_vector.clear();
21491
      __isset_bit_vector.or(other.__isset_bit_vector);
21492
      this.vendorId = other.vendorId;
21493
    }
21494
 
21495
    public getVendor_args deepCopy() {
21496
      return new getVendor_args(this);
21497
    }
21498
 
21499
    @Override
21500
    public void clear() {
21501
      setVendorIdIsSet(false);
21502
      this.vendorId = 0;
21503
    }
21504
 
21505
    public long getVendorId() {
21506
      return this.vendorId;
21507
    }
21508
 
21509
    public void setVendorId(long vendorId) {
21510
      this.vendorId = vendorId;
21511
      setVendorIdIsSet(true);
21512
    }
21513
 
21514
    public void unsetVendorId() {
21515
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21516
    }
21517
 
21518
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21519
    public boolean isSetVendorId() {
21520
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21521
    }
21522
 
21523
    public void setVendorIdIsSet(boolean value) {
21524
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21525
    }
21526
 
21527
    public void setFieldValue(_Fields field, Object value) {
21528
      switch (field) {
21529
      case VENDOR_ID:
21530
        if (value == null) {
21531
          unsetVendorId();
21532
        } else {
21533
          setVendorId((Long)value);
21534
        }
21535
        break;
21536
 
21537
      }
21538
    }
21539
 
21540
    public Object getFieldValue(_Fields field) {
21541
      switch (field) {
21542
      case VENDOR_ID:
21543
        return Long.valueOf(getVendorId());
21544
 
21545
      }
21546
      throw new IllegalStateException();
21547
    }
21548
 
21549
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21550
    public boolean isSet(_Fields field) {
21551
      if (field == null) {
21552
        throw new IllegalArgumentException();
21553
      }
21554
 
21555
      switch (field) {
21556
      case VENDOR_ID:
21557
        return isSetVendorId();
21558
      }
21559
      throw new IllegalStateException();
21560
    }
21561
 
21562
    @Override
21563
    public boolean equals(Object that) {
21564
      if (that == null)
21565
        return false;
21566
      if (that instanceof getVendor_args)
21567
        return this.equals((getVendor_args)that);
21568
      return false;
21569
    }
21570
 
21571
    public boolean equals(getVendor_args that) {
21572
      if (that == null)
21573
        return false;
21574
 
21575
      boolean this_present_vendorId = true;
21576
      boolean that_present_vendorId = true;
21577
      if (this_present_vendorId || that_present_vendorId) {
21578
        if (!(this_present_vendorId && that_present_vendorId))
21579
          return false;
21580
        if (this.vendorId != that.vendorId)
21581
          return false;
21582
      }
21583
 
21584
      return true;
21585
    }
21586
 
21587
    @Override
21588
    public int hashCode() {
21589
      return 0;
21590
    }
21591
 
21592
    public int compareTo(getVendor_args other) {
21593
      if (!getClass().equals(other.getClass())) {
21594
        return getClass().getName().compareTo(other.getClass().getName());
21595
      }
21596
 
21597
      int lastComparison = 0;
21598
      getVendor_args typedOther = (getVendor_args)other;
21599
 
21600
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21601
      if (lastComparison != 0) {
21602
        return lastComparison;
21603
      }
21604
      if (isSetVendorId()) {
21605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21606
        if (lastComparison != 0) {
21607
          return lastComparison;
21608
        }
21609
      }
21610
      return 0;
21611
    }
21612
 
21613
    public _Fields fieldForId(int fieldId) {
21614
      return _Fields.findByThriftId(fieldId);
21615
    }
21616
 
21617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21618
      org.apache.thrift.protocol.TField field;
21619
      iprot.readStructBegin();
21620
      while (true)
21621
      {
21622
        field = iprot.readFieldBegin();
21623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21624
          break;
21625
        }
21626
        switch (field.id) {
21627
          case 1: // VENDOR_ID
21628
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21629
              this.vendorId = iprot.readI64();
21630
              setVendorIdIsSet(true);
21631
            } else { 
21632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21633
            }
21634
            break;
21635
          default:
21636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21637
        }
21638
        iprot.readFieldEnd();
21639
      }
21640
      iprot.readStructEnd();
21641
      validate();
21642
    }
21643
 
21644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21645
      validate();
21646
 
21647
      oprot.writeStructBegin(STRUCT_DESC);
21648
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
21649
      oprot.writeI64(this.vendorId);
21650
      oprot.writeFieldEnd();
21651
      oprot.writeFieldStop();
21652
      oprot.writeStructEnd();
21653
    }
21654
 
21655
    @Override
21656
    public String toString() {
21657
      StringBuilder sb = new StringBuilder("getVendor_args(");
21658
      boolean first = true;
21659
 
21660
      sb.append("vendorId:");
21661
      sb.append(this.vendorId);
21662
      first = false;
21663
      sb.append(")");
21664
      return sb.toString();
21665
    }
21666
 
21667
    public void validate() throws org.apache.thrift.TException {
21668
      // check for required fields
21669
    }
21670
 
21671
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21672
      try {
21673
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21674
      } catch (org.apache.thrift.TException te) {
21675
        throw new java.io.IOException(te);
21676
      }
21677
    }
21678
 
21679
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21680
      try {
21681
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21682
        __isset_bit_vector = new BitSet(1);
21683
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21684
      } catch (org.apache.thrift.TException te) {
21685
        throw new java.io.IOException(te);
21686
      }
21687
    }
21688
 
21689
  }
21690
 
21691
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
21692
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
21693
 
21694
    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);
21695
 
21696
    private Vendor success; // required
21697
 
21698
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21699
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21700
      SUCCESS((short)0, "success");
21701
 
21702
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21703
 
21704
      static {
21705
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21706
          byName.put(field.getFieldName(), field);
21707
        }
21708
      }
21709
 
21710
      /**
21711
       * Find the _Fields constant that matches fieldId, or null if its not found.
21712
       */
21713
      public static _Fields findByThriftId(int fieldId) {
21714
        switch(fieldId) {
21715
          case 0: // SUCCESS
21716
            return SUCCESS;
21717
          default:
21718
            return null;
21719
        }
21720
      }
21721
 
21722
      /**
21723
       * Find the _Fields constant that matches fieldId, throwing an exception
21724
       * if it is not found.
21725
       */
21726
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21727
        _Fields fields = findByThriftId(fieldId);
21728
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21729
        return fields;
21730
      }
21731
 
21732
      /**
21733
       * Find the _Fields constant that matches name, or null if its not found.
21734
       */
21735
      public static _Fields findByName(String name) {
21736
        return byName.get(name);
21737
      }
21738
 
21739
      private final short _thriftId;
21740
      private final String _fieldName;
21741
 
21742
      _Fields(short thriftId, String fieldName) {
21743
        _thriftId = thriftId;
21744
        _fieldName = fieldName;
21745
      }
21746
 
21747
      public short getThriftFieldId() {
21748
        return _thriftId;
21749
      }
21750
 
21751
      public String getFieldName() {
21752
        return _fieldName;
21753
      }
21754
    }
21755
 
21756
    // isset id assignments
21757
 
21758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21759
    static {
21760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21761
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21762
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
21763
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21764
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
21765
    }
21766
 
21767
    public getVendor_result() {
21768
    }
21769
 
21770
    public getVendor_result(
21771
      Vendor success)
21772
    {
21773
      this();
21774
      this.success = success;
21775
    }
21776
 
21777
    /**
21778
     * Performs a deep copy on <i>other</i>.
21779
     */
21780
    public getVendor_result(getVendor_result other) {
21781
      if (other.isSetSuccess()) {
21782
        this.success = new Vendor(other.success);
21783
      }
21784
    }
21785
 
21786
    public getVendor_result deepCopy() {
21787
      return new getVendor_result(this);
21788
    }
21789
 
21790
    @Override
21791
    public void clear() {
21792
      this.success = null;
21793
    }
21794
 
21795
    public Vendor getSuccess() {
21796
      return this.success;
21797
    }
21798
 
21799
    public void setSuccess(Vendor success) {
21800
      this.success = success;
21801
    }
21802
 
21803
    public void unsetSuccess() {
21804
      this.success = null;
21805
    }
21806
 
21807
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21808
    public boolean isSetSuccess() {
21809
      return this.success != null;
21810
    }
21811
 
21812
    public void setSuccessIsSet(boolean value) {
21813
      if (!value) {
21814
        this.success = null;
21815
      }
21816
    }
21817
 
21818
    public void setFieldValue(_Fields field, Object value) {
21819
      switch (field) {
21820
      case SUCCESS:
21821
        if (value == null) {
21822
          unsetSuccess();
21823
        } else {
21824
          setSuccess((Vendor)value);
21825
        }
21826
        break;
21827
 
21828
      }
21829
    }
21830
 
21831
    public Object getFieldValue(_Fields field) {
21832
      switch (field) {
21833
      case SUCCESS:
21834
        return getSuccess();
21835
 
21836
      }
21837
      throw new IllegalStateException();
21838
    }
21839
 
21840
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21841
    public boolean isSet(_Fields field) {
21842
      if (field == null) {
21843
        throw new IllegalArgumentException();
21844
      }
21845
 
21846
      switch (field) {
21847
      case SUCCESS:
21848
        return isSetSuccess();
21849
      }
21850
      throw new IllegalStateException();
21851
    }
21852
 
21853
    @Override
21854
    public boolean equals(Object that) {
21855
      if (that == null)
21856
        return false;
21857
      if (that instanceof getVendor_result)
21858
        return this.equals((getVendor_result)that);
21859
      return false;
21860
    }
21861
 
21862
    public boolean equals(getVendor_result that) {
21863
      if (that == null)
21864
        return false;
21865
 
21866
      boolean this_present_success = true && this.isSetSuccess();
21867
      boolean that_present_success = true && that.isSetSuccess();
21868
      if (this_present_success || that_present_success) {
21869
        if (!(this_present_success && that_present_success))
21870
          return false;
21871
        if (!this.success.equals(that.success))
21872
          return false;
21873
      }
21874
 
21875
      return true;
21876
    }
21877
 
21878
    @Override
21879
    public int hashCode() {
21880
      return 0;
21881
    }
21882
 
21883
    public int compareTo(getVendor_result other) {
21884
      if (!getClass().equals(other.getClass())) {
21885
        return getClass().getName().compareTo(other.getClass().getName());
21886
      }
21887
 
21888
      int lastComparison = 0;
21889
      getVendor_result typedOther = (getVendor_result)other;
21890
 
21891
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21892
      if (lastComparison != 0) {
21893
        return lastComparison;
21894
      }
21895
      if (isSetSuccess()) {
21896
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21897
        if (lastComparison != 0) {
21898
          return lastComparison;
21899
        }
21900
      }
21901
      return 0;
21902
    }
21903
 
21904
    public _Fields fieldForId(int fieldId) {
21905
      return _Fields.findByThriftId(fieldId);
21906
    }
21907
 
21908
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21909
      org.apache.thrift.protocol.TField field;
21910
      iprot.readStructBegin();
21911
      while (true)
21912
      {
21913
        field = iprot.readFieldBegin();
21914
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21915
          break;
21916
        }
21917
        switch (field.id) {
21918
          case 0: // SUCCESS
21919
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21920
              this.success = new Vendor();
21921
              this.success.read(iprot);
21922
            } else { 
21923
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21924
            }
21925
            break;
21926
          default:
21927
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21928
        }
21929
        iprot.readFieldEnd();
21930
      }
21931
      iprot.readStructEnd();
21932
      validate();
21933
    }
21934
 
21935
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21936
      oprot.writeStructBegin(STRUCT_DESC);
21937
 
21938
      if (this.isSetSuccess()) {
21939
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21940
        this.success.write(oprot);
21941
        oprot.writeFieldEnd();
21942
      }
21943
      oprot.writeFieldStop();
21944
      oprot.writeStructEnd();
21945
    }
21946
 
21947
    @Override
21948
    public String toString() {
21949
      StringBuilder sb = new StringBuilder("getVendor_result(");
21950
      boolean first = true;
21951
 
21952
      sb.append("success:");
21953
      if (this.success == null) {
21954
        sb.append("null");
21955
      } else {
21956
        sb.append(this.success);
21957
      }
21958
      first = false;
21959
      sb.append(")");
21960
      return sb.toString();
21961
    }
21962
 
21963
    public void validate() throws org.apache.thrift.TException {
21964
      // check for required fields
21965
    }
21966
 
21967
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21968
      try {
21969
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21970
      } catch (org.apache.thrift.TException te) {
21971
        throw new java.io.IOException(te);
21972
      }
21973
    }
21974
 
21975
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21976
      try {
21977
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21978
      } catch (org.apache.thrift.TException te) {
21979
        throw new java.io.IOException(te);
21980
      }
21981
    }
21982
 
21983
  }
21984
 
21985
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
21986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
21987
 
21988
 
21989
 
21990
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21991
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21992
;
21993
 
21994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21995
 
21996
      static {
21997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21998
          byName.put(field.getFieldName(), field);
21999
        }
22000
      }
22001
 
22002
      /**
22003
       * Find the _Fields constant that matches fieldId, or null if its not found.
22004
       */
22005
      public static _Fields findByThriftId(int fieldId) {
22006
        switch(fieldId) {
22007
          default:
22008
            return null;
22009
        }
22010
      }
22011
 
22012
      /**
22013
       * Find the _Fields constant that matches fieldId, throwing an exception
22014
       * if it is not found.
22015
       */
22016
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22017
        _Fields fields = findByThriftId(fieldId);
22018
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22019
        return fields;
22020
      }
22021
 
22022
      /**
22023
       * Find the _Fields constant that matches name, or null if its not found.
22024
       */
22025
      public static _Fields findByName(String name) {
22026
        return byName.get(name);
22027
      }
22028
 
22029
      private final short _thriftId;
22030
      private final String _fieldName;
22031
 
22032
      _Fields(short thriftId, String fieldName) {
22033
        _thriftId = thriftId;
22034
        _fieldName = fieldName;
22035
      }
22036
 
22037
      public short getThriftFieldId() {
22038
        return _thriftId;
22039
      }
22040
 
22041
      public String getFieldName() {
22042
        return _fieldName;
22043
      }
22044
    }
22045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22046
    static {
22047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22048
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22049
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
22050
    }
22051
 
22052
    public getAllVendors_args() {
22053
    }
22054
 
22055
    /**
22056
     * Performs a deep copy on <i>other</i>.
22057
     */
22058
    public getAllVendors_args(getAllVendors_args other) {
22059
    }
22060
 
22061
    public getAllVendors_args deepCopy() {
22062
      return new getAllVendors_args(this);
22063
    }
22064
 
22065
    @Override
22066
    public void clear() {
22067
    }
22068
 
22069
    public void setFieldValue(_Fields field, Object value) {
22070
      switch (field) {
22071
      }
22072
    }
22073
 
22074
    public Object getFieldValue(_Fields field) {
22075
      switch (field) {
22076
      }
22077
      throw new IllegalStateException();
22078
    }
22079
 
22080
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22081
    public boolean isSet(_Fields field) {
22082
      if (field == null) {
22083
        throw new IllegalArgumentException();
22084
      }
22085
 
22086
      switch (field) {
22087
      }
22088
      throw new IllegalStateException();
22089
    }
22090
 
22091
    @Override
22092
    public boolean equals(Object that) {
22093
      if (that == null)
22094
        return false;
22095
      if (that instanceof getAllVendors_args)
22096
        return this.equals((getAllVendors_args)that);
22097
      return false;
22098
    }
22099
 
22100
    public boolean equals(getAllVendors_args that) {
22101
      if (that == null)
22102
        return false;
22103
 
22104
      return true;
22105
    }
22106
 
22107
    @Override
22108
    public int hashCode() {
22109
      return 0;
22110
    }
22111
 
22112
    public int compareTo(getAllVendors_args other) {
22113
      if (!getClass().equals(other.getClass())) {
22114
        return getClass().getName().compareTo(other.getClass().getName());
22115
      }
22116
 
22117
      int lastComparison = 0;
22118
      getAllVendors_args typedOther = (getAllVendors_args)other;
22119
 
22120
      return 0;
22121
    }
22122
 
22123
    public _Fields fieldForId(int fieldId) {
22124
      return _Fields.findByThriftId(fieldId);
22125
    }
22126
 
22127
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22128
      org.apache.thrift.protocol.TField field;
22129
      iprot.readStructBegin();
22130
      while (true)
22131
      {
22132
        field = iprot.readFieldBegin();
22133
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22134
          break;
22135
        }
22136
        switch (field.id) {
22137
          default:
22138
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22139
        }
22140
        iprot.readFieldEnd();
22141
      }
22142
      iprot.readStructEnd();
22143
      validate();
22144
    }
22145
 
22146
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22147
      validate();
22148
 
22149
      oprot.writeStructBegin(STRUCT_DESC);
22150
      oprot.writeFieldStop();
22151
      oprot.writeStructEnd();
22152
    }
22153
 
22154
    @Override
22155
    public String toString() {
22156
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
22157
      boolean first = true;
22158
 
22159
      sb.append(")");
22160
      return sb.toString();
22161
    }
22162
 
22163
    public void validate() throws org.apache.thrift.TException {
22164
      // check for required fields
22165
    }
22166
 
22167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22168
      try {
22169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22170
      } catch (org.apache.thrift.TException te) {
22171
        throw new java.io.IOException(te);
22172
      }
22173
    }
22174
 
22175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22176
      try {
22177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22178
      } catch (org.apache.thrift.TException te) {
22179
        throw new java.io.IOException(te);
22180
      }
22181
    }
22182
 
22183
  }
22184
 
22185
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
22186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
22187
 
22188
    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);
22189
 
22190
    private List<Vendor> success; // required
22191
 
22192
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22193
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22194
      SUCCESS((short)0, "success");
22195
 
22196
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22197
 
22198
      static {
22199
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22200
          byName.put(field.getFieldName(), field);
22201
        }
22202
      }
22203
 
22204
      /**
22205
       * Find the _Fields constant that matches fieldId, or null if its not found.
22206
       */
22207
      public static _Fields findByThriftId(int fieldId) {
22208
        switch(fieldId) {
22209
          case 0: // SUCCESS
22210
            return SUCCESS;
22211
          default:
22212
            return null;
22213
        }
22214
      }
22215
 
22216
      /**
22217
       * Find the _Fields constant that matches fieldId, throwing an exception
22218
       * if it is not found.
22219
       */
22220
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22221
        _Fields fields = findByThriftId(fieldId);
22222
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22223
        return fields;
22224
      }
22225
 
22226
      /**
22227
       * Find the _Fields constant that matches name, or null if its not found.
22228
       */
22229
      public static _Fields findByName(String name) {
22230
        return byName.get(name);
22231
      }
22232
 
22233
      private final short _thriftId;
22234
      private final String _fieldName;
22235
 
22236
      _Fields(short thriftId, String fieldName) {
22237
        _thriftId = thriftId;
22238
        _fieldName = fieldName;
22239
      }
22240
 
22241
      public short getThriftFieldId() {
22242
        return _thriftId;
22243
      }
22244
 
22245
      public String getFieldName() {
22246
        return _fieldName;
22247
      }
22248
    }
22249
 
22250
    // isset id assignments
22251
 
22252
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22253
    static {
22254
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22255
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22256
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22257
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
22258
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22259
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
22260
    }
22261
 
22262
    public getAllVendors_result() {
22263
    }
22264
 
22265
    public getAllVendors_result(
22266
      List<Vendor> success)
22267
    {
22268
      this();
22269
      this.success = success;
22270
    }
22271
 
22272
    /**
22273
     * Performs a deep copy on <i>other</i>.
22274
     */
22275
    public getAllVendors_result(getAllVendors_result other) {
22276
      if (other.isSetSuccess()) {
22277
        List<Vendor> __this__success = new ArrayList<Vendor>();
22278
        for (Vendor other_element : other.success) {
22279
          __this__success.add(new Vendor(other_element));
22280
        }
22281
        this.success = __this__success;
22282
      }
22283
    }
22284
 
22285
    public getAllVendors_result deepCopy() {
22286
      return new getAllVendors_result(this);
22287
    }
22288
 
22289
    @Override
22290
    public void clear() {
22291
      this.success = null;
22292
    }
22293
 
22294
    public int getSuccessSize() {
22295
      return (this.success == null) ? 0 : this.success.size();
22296
    }
22297
 
22298
    public java.util.Iterator<Vendor> getSuccessIterator() {
22299
      return (this.success == null) ? null : this.success.iterator();
22300
    }
22301
 
22302
    public void addToSuccess(Vendor elem) {
22303
      if (this.success == null) {
22304
        this.success = new ArrayList<Vendor>();
22305
      }
22306
      this.success.add(elem);
22307
    }
22308
 
22309
    public List<Vendor> getSuccess() {
22310
      return this.success;
22311
    }
22312
 
22313
    public void setSuccess(List<Vendor> success) {
22314
      this.success = success;
22315
    }
22316
 
22317
    public void unsetSuccess() {
22318
      this.success = null;
22319
    }
22320
 
22321
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22322
    public boolean isSetSuccess() {
22323
      return this.success != null;
22324
    }
22325
 
22326
    public void setSuccessIsSet(boolean value) {
22327
      if (!value) {
22328
        this.success = null;
22329
      }
22330
    }
22331
 
22332
    public void setFieldValue(_Fields field, Object value) {
22333
      switch (field) {
22334
      case SUCCESS:
22335
        if (value == null) {
22336
          unsetSuccess();
22337
        } else {
22338
          setSuccess((List<Vendor>)value);
22339
        }
22340
        break;
22341
 
22342
      }
22343
    }
22344
 
22345
    public Object getFieldValue(_Fields field) {
22346
      switch (field) {
22347
      case SUCCESS:
22348
        return getSuccess();
22349
 
22350
      }
22351
      throw new IllegalStateException();
22352
    }
22353
 
22354
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22355
    public boolean isSet(_Fields field) {
22356
      if (field == null) {
22357
        throw new IllegalArgumentException();
22358
      }
22359
 
22360
      switch (field) {
22361
      case SUCCESS:
22362
        return isSetSuccess();
22363
      }
22364
      throw new IllegalStateException();
22365
    }
22366
 
22367
    @Override
22368
    public boolean equals(Object that) {
22369
      if (that == null)
22370
        return false;
22371
      if (that instanceof getAllVendors_result)
22372
        return this.equals((getAllVendors_result)that);
22373
      return false;
22374
    }
22375
 
22376
    public boolean equals(getAllVendors_result that) {
22377
      if (that == null)
22378
        return false;
22379
 
22380
      boolean this_present_success = true && this.isSetSuccess();
22381
      boolean that_present_success = true && that.isSetSuccess();
22382
      if (this_present_success || that_present_success) {
22383
        if (!(this_present_success && that_present_success))
22384
          return false;
22385
        if (!this.success.equals(that.success))
22386
          return false;
22387
      }
22388
 
22389
      return true;
22390
    }
22391
 
22392
    @Override
22393
    public int hashCode() {
22394
      return 0;
22395
    }
22396
 
22397
    public int compareTo(getAllVendors_result other) {
22398
      if (!getClass().equals(other.getClass())) {
22399
        return getClass().getName().compareTo(other.getClass().getName());
22400
      }
22401
 
22402
      int lastComparison = 0;
22403
      getAllVendors_result typedOther = (getAllVendors_result)other;
22404
 
22405
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22406
      if (lastComparison != 0) {
22407
        return lastComparison;
22408
      }
22409
      if (isSetSuccess()) {
22410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22411
        if (lastComparison != 0) {
22412
          return lastComparison;
22413
        }
22414
      }
22415
      return 0;
22416
    }
22417
 
22418
    public _Fields fieldForId(int fieldId) {
22419
      return _Fields.findByThriftId(fieldId);
22420
    }
22421
 
22422
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22423
      org.apache.thrift.protocol.TField field;
22424
      iprot.readStructBegin();
22425
      while (true)
22426
      {
22427
        field = iprot.readFieldBegin();
22428
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22429
          break;
22430
        }
22431
        switch (field.id) {
22432
          case 0: // SUCCESS
22433
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22434
              {
8182 amar.kumar 22435
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
22436
                this.success = new ArrayList<Vendor>(_list41.size);
22437
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
5945 mandeep.dh 22438
                {
8182 amar.kumar 22439
                  Vendor _elem43; // required
22440
                  _elem43 = new Vendor();
22441
                  _elem43.read(iprot);
22442
                  this.success.add(_elem43);
5945 mandeep.dh 22443
                }
22444
                iprot.readListEnd();
22445
              }
22446
            } else { 
22447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22448
            }
22449
            break;
22450
          default:
22451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22452
        }
22453
        iprot.readFieldEnd();
22454
      }
22455
      iprot.readStructEnd();
22456
      validate();
22457
    }
22458
 
22459
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22460
      oprot.writeStructBegin(STRUCT_DESC);
22461
 
22462
      if (this.isSetSuccess()) {
22463
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22464
        {
22465
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 22466
          for (Vendor _iter44 : this.success)
5945 mandeep.dh 22467
          {
8182 amar.kumar 22468
            _iter44.write(oprot);
5945 mandeep.dh 22469
          }
22470
          oprot.writeListEnd();
22471
        }
22472
        oprot.writeFieldEnd();
22473
      }
22474
      oprot.writeFieldStop();
22475
      oprot.writeStructEnd();
22476
    }
22477
 
22478
    @Override
22479
    public String toString() {
22480
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
22481
      boolean first = true;
22482
 
22483
      sb.append("success:");
22484
      if (this.success == null) {
22485
        sb.append("null");
22486
      } else {
22487
        sb.append(this.success);
22488
      }
22489
      first = false;
22490
      sb.append(")");
22491
      return sb.toString();
22492
    }
22493
 
22494
    public void validate() throws org.apache.thrift.TException {
22495
      // check for required fields
22496
    }
22497
 
22498
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22499
      try {
22500
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22501
      } catch (org.apache.thrift.TException te) {
22502
        throw new java.io.IOException(te);
22503
      }
22504
    }
22505
 
22506
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22507
      try {
22508
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22509
      } catch (org.apache.thrift.TException te) {
22510
        throw new java.io.IOException(te);
22511
      }
22512
    }
22513
 
22514
  }
22515
 
22516
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
22517
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
22518
 
22519
    private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1);
22520
    private static final org.apache.thrift.protocol.TField VENDOR_ITEM_MAPPING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorItemMapping", org.apache.thrift.protocol.TType.STRUCT, (short)2);
22521
 
22522
    private String key; // required
22523
    private VendorItemMapping vendorItemMapping; // required
22524
 
22525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22527
      KEY((short)1, "key"),
22528
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
22529
 
22530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22531
 
22532
      static {
22533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22534
          byName.put(field.getFieldName(), field);
22535
        }
22536
      }
22537
 
22538
      /**
22539
       * Find the _Fields constant that matches fieldId, or null if its not found.
22540
       */
22541
      public static _Fields findByThriftId(int fieldId) {
22542
        switch(fieldId) {
22543
          case 1: // KEY
22544
            return KEY;
22545
          case 2: // VENDOR_ITEM_MAPPING
22546
            return VENDOR_ITEM_MAPPING;
22547
          default:
22548
            return null;
22549
        }
22550
      }
22551
 
22552
      /**
22553
       * Find the _Fields constant that matches fieldId, throwing an exception
22554
       * if it is not found.
22555
       */
22556
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22557
        _Fields fields = findByThriftId(fieldId);
22558
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22559
        return fields;
22560
      }
22561
 
22562
      /**
22563
       * Find the _Fields constant that matches name, or null if its not found.
22564
       */
22565
      public static _Fields findByName(String name) {
22566
        return byName.get(name);
22567
      }
22568
 
22569
      private final short _thriftId;
22570
      private final String _fieldName;
22571
 
22572
      _Fields(short thriftId, String fieldName) {
22573
        _thriftId = thriftId;
22574
        _fieldName = fieldName;
22575
      }
22576
 
22577
      public short getThriftFieldId() {
22578
        return _thriftId;
22579
      }
22580
 
22581
      public String getFieldName() {
22582
        return _fieldName;
22583
      }
22584
    }
22585
 
22586
    // isset id assignments
22587
 
22588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22589
    static {
22590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22591
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22593
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22594
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
22595
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22596
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
22597
    }
22598
 
22599
    public addVendorItemMapping_args() {
22600
    }
22601
 
22602
    public addVendorItemMapping_args(
22603
      String key,
22604
      VendorItemMapping vendorItemMapping)
22605
    {
22606
      this();
22607
      this.key = key;
22608
      this.vendorItemMapping = vendorItemMapping;
22609
    }
22610
 
22611
    /**
22612
     * Performs a deep copy on <i>other</i>.
22613
     */
22614
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
22615
      if (other.isSetKey()) {
22616
        this.key = other.key;
22617
      }
22618
      if (other.isSetVendorItemMapping()) {
22619
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
22620
      }
22621
    }
22622
 
22623
    public addVendorItemMapping_args deepCopy() {
22624
      return new addVendorItemMapping_args(this);
22625
    }
22626
 
22627
    @Override
22628
    public void clear() {
22629
      this.key = null;
22630
      this.vendorItemMapping = null;
22631
    }
22632
 
22633
    public String getKey() {
22634
      return this.key;
22635
    }
22636
 
22637
    public void setKey(String key) {
22638
      this.key = key;
22639
    }
22640
 
22641
    public void unsetKey() {
22642
      this.key = null;
22643
    }
22644
 
22645
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
22646
    public boolean isSetKey() {
22647
      return this.key != null;
22648
    }
22649
 
22650
    public void setKeyIsSet(boolean value) {
22651
      if (!value) {
22652
        this.key = null;
22653
      }
22654
    }
22655
 
22656
    public VendorItemMapping getVendorItemMapping() {
22657
      return this.vendorItemMapping;
22658
    }
22659
 
22660
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
22661
      this.vendorItemMapping = vendorItemMapping;
22662
    }
22663
 
22664
    public void unsetVendorItemMapping() {
22665
      this.vendorItemMapping = null;
22666
    }
22667
 
22668
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
22669
    public boolean isSetVendorItemMapping() {
22670
      return this.vendorItemMapping != null;
22671
    }
22672
 
22673
    public void setVendorItemMappingIsSet(boolean value) {
22674
      if (!value) {
22675
        this.vendorItemMapping = null;
22676
      }
22677
    }
22678
 
22679
    public void setFieldValue(_Fields field, Object value) {
22680
      switch (field) {
22681
      case KEY:
22682
        if (value == null) {
22683
          unsetKey();
22684
        } else {
22685
          setKey((String)value);
22686
        }
22687
        break;
22688
 
22689
      case VENDOR_ITEM_MAPPING:
22690
        if (value == null) {
22691
          unsetVendorItemMapping();
22692
        } else {
22693
          setVendorItemMapping((VendorItemMapping)value);
22694
        }
22695
        break;
22696
 
22697
      }
22698
    }
22699
 
22700
    public Object getFieldValue(_Fields field) {
22701
      switch (field) {
22702
      case KEY:
22703
        return getKey();
22704
 
22705
      case VENDOR_ITEM_MAPPING:
22706
        return getVendorItemMapping();
22707
 
22708
      }
22709
      throw new IllegalStateException();
22710
    }
22711
 
22712
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22713
    public boolean isSet(_Fields field) {
22714
      if (field == null) {
22715
        throw new IllegalArgumentException();
22716
      }
22717
 
22718
      switch (field) {
22719
      case KEY:
22720
        return isSetKey();
22721
      case VENDOR_ITEM_MAPPING:
22722
        return isSetVendorItemMapping();
22723
      }
22724
      throw new IllegalStateException();
22725
    }
22726
 
22727
    @Override
22728
    public boolean equals(Object that) {
22729
      if (that == null)
22730
        return false;
22731
      if (that instanceof addVendorItemMapping_args)
22732
        return this.equals((addVendorItemMapping_args)that);
22733
      return false;
22734
    }
22735
 
22736
    public boolean equals(addVendorItemMapping_args that) {
22737
      if (that == null)
22738
        return false;
22739
 
22740
      boolean this_present_key = true && this.isSetKey();
22741
      boolean that_present_key = true && that.isSetKey();
22742
      if (this_present_key || that_present_key) {
22743
        if (!(this_present_key && that_present_key))
22744
          return false;
22745
        if (!this.key.equals(that.key))
22746
          return false;
22747
      }
22748
 
22749
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
22750
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
22751
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
22752
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
22753
          return false;
22754
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
22755
          return false;
22756
      }
22757
 
22758
      return true;
22759
    }
22760
 
22761
    @Override
22762
    public int hashCode() {
22763
      return 0;
22764
    }
22765
 
22766
    public int compareTo(addVendorItemMapping_args other) {
22767
      if (!getClass().equals(other.getClass())) {
22768
        return getClass().getName().compareTo(other.getClass().getName());
22769
      }
22770
 
22771
      int lastComparison = 0;
22772
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
22773
 
22774
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
22775
      if (lastComparison != 0) {
22776
        return lastComparison;
22777
      }
22778
      if (isSetKey()) {
22779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
22780
        if (lastComparison != 0) {
22781
          return lastComparison;
22782
        }
22783
      }
22784
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
22785
      if (lastComparison != 0) {
22786
        return lastComparison;
22787
      }
22788
      if (isSetVendorItemMapping()) {
22789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
22790
        if (lastComparison != 0) {
22791
          return lastComparison;
22792
        }
22793
      }
22794
      return 0;
22795
    }
22796
 
22797
    public _Fields fieldForId(int fieldId) {
22798
      return _Fields.findByThriftId(fieldId);
22799
    }
22800
 
22801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22802
      org.apache.thrift.protocol.TField field;
22803
      iprot.readStructBegin();
22804
      while (true)
22805
      {
22806
        field = iprot.readFieldBegin();
22807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22808
          break;
22809
        }
22810
        switch (field.id) {
22811
          case 1: // KEY
22812
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22813
              this.key = iprot.readString();
22814
            } else { 
22815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22816
            }
22817
            break;
22818
          case 2: // VENDOR_ITEM_MAPPING
22819
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22820
              this.vendorItemMapping = new VendorItemMapping();
22821
              this.vendorItemMapping.read(iprot);
22822
            } else { 
22823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22824
            }
22825
            break;
22826
          default:
22827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22828
        }
22829
        iprot.readFieldEnd();
22830
      }
22831
      iprot.readStructEnd();
22832
      validate();
22833
    }
22834
 
22835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22836
      validate();
22837
 
22838
      oprot.writeStructBegin(STRUCT_DESC);
22839
      if (this.key != null) {
22840
        oprot.writeFieldBegin(KEY_FIELD_DESC);
22841
        oprot.writeString(this.key);
22842
        oprot.writeFieldEnd();
22843
      }
22844
      if (this.vendorItemMapping != null) {
22845
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
22846
        this.vendorItemMapping.write(oprot);
22847
        oprot.writeFieldEnd();
22848
      }
22849
      oprot.writeFieldStop();
22850
      oprot.writeStructEnd();
22851
    }
22852
 
22853
    @Override
22854
    public String toString() {
22855
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
22856
      boolean first = true;
22857
 
22858
      sb.append("key:");
22859
      if (this.key == null) {
22860
        sb.append("null");
22861
      } else {
22862
        sb.append(this.key);
22863
      }
22864
      first = false;
22865
      if (!first) sb.append(", ");
22866
      sb.append("vendorItemMapping:");
22867
      if (this.vendorItemMapping == null) {
22868
        sb.append("null");
22869
      } else {
22870
        sb.append(this.vendorItemMapping);
22871
      }
22872
      first = false;
22873
      sb.append(")");
22874
      return sb.toString();
22875
    }
22876
 
22877
    public void validate() throws org.apache.thrift.TException {
22878
      // check for required fields
22879
    }
22880
 
22881
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22882
      try {
22883
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22884
      } catch (org.apache.thrift.TException te) {
22885
        throw new java.io.IOException(te);
22886
      }
22887
    }
22888
 
22889
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22890
      try {
22891
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22892
      } catch (org.apache.thrift.TException te) {
22893
        throw new java.io.IOException(te);
22894
      }
22895
    }
22896
 
22897
  }
22898
 
22899
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
22900
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
22901
 
22902
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
22903
 
22904
    private InventoryServiceException cex; // required
22905
 
22906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22908
      CEX((short)1, "cex");
22909
 
22910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22911
 
22912
      static {
22913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22914
          byName.put(field.getFieldName(), field);
22915
        }
22916
      }
22917
 
22918
      /**
22919
       * Find the _Fields constant that matches fieldId, or null if its not found.
22920
       */
22921
      public static _Fields findByThriftId(int fieldId) {
22922
        switch(fieldId) {
22923
          case 1: // CEX
22924
            return CEX;
22925
          default:
22926
            return null;
22927
        }
22928
      }
22929
 
22930
      /**
22931
       * Find the _Fields constant that matches fieldId, throwing an exception
22932
       * if it is not found.
22933
       */
22934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22935
        _Fields fields = findByThriftId(fieldId);
22936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22937
        return fields;
22938
      }
22939
 
22940
      /**
22941
       * Find the _Fields constant that matches name, or null if its not found.
22942
       */
22943
      public static _Fields findByName(String name) {
22944
        return byName.get(name);
22945
      }
22946
 
22947
      private final short _thriftId;
22948
      private final String _fieldName;
22949
 
22950
      _Fields(short thriftId, String fieldName) {
22951
        _thriftId = thriftId;
22952
        _fieldName = fieldName;
22953
      }
22954
 
22955
      public short getThriftFieldId() {
22956
        return _thriftId;
22957
      }
22958
 
22959
      public String getFieldName() {
22960
        return _fieldName;
22961
      }
22962
    }
22963
 
22964
    // isset id assignments
22965
 
22966
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22967
    static {
22968
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22969
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
22973
    }
22974
 
22975
    public addVendorItemMapping_result() {
22976
    }
22977
 
22978
    public addVendorItemMapping_result(
22979
      InventoryServiceException cex)
22980
    {
22981
      this();
22982
      this.cex = cex;
22983
    }
22984
 
22985
    /**
22986
     * Performs a deep copy on <i>other</i>.
22987
     */
22988
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
22989
      if (other.isSetCex()) {
22990
        this.cex = new InventoryServiceException(other.cex);
22991
      }
22992
    }
22993
 
22994
    public addVendorItemMapping_result deepCopy() {
22995
      return new addVendorItemMapping_result(this);
22996
    }
22997
 
22998
    @Override
22999
    public void clear() {
23000
      this.cex = null;
23001
    }
23002
 
23003
    public InventoryServiceException getCex() {
23004
      return this.cex;
23005
    }
23006
 
23007
    public void setCex(InventoryServiceException cex) {
23008
      this.cex = cex;
23009
    }
23010
 
23011
    public void unsetCex() {
23012
      this.cex = null;
23013
    }
23014
 
23015
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
23016
    public boolean isSetCex() {
23017
      return this.cex != null;
23018
    }
23019
 
23020
    public void setCexIsSet(boolean value) {
23021
      if (!value) {
23022
        this.cex = null;
23023
      }
23024
    }
23025
 
23026
    public void setFieldValue(_Fields field, Object value) {
23027
      switch (field) {
23028
      case CEX:
23029
        if (value == null) {
23030
          unsetCex();
23031
        } else {
23032
          setCex((InventoryServiceException)value);
23033
        }
23034
        break;
23035
 
23036
      }
23037
    }
23038
 
23039
    public Object getFieldValue(_Fields field) {
23040
      switch (field) {
23041
      case CEX:
23042
        return getCex();
23043
 
23044
      }
23045
      throw new IllegalStateException();
23046
    }
23047
 
23048
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23049
    public boolean isSet(_Fields field) {
23050
      if (field == null) {
23051
        throw new IllegalArgumentException();
23052
      }
23053
 
23054
      switch (field) {
23055
      case CEX:
23056
        return isSetCex();
23057
      }
23058
      throw new IllegalStateException();
23059
    }
23060
 
23061
    @Override
23062
    public boolean equals(Object that) {
23063
      if (that == null)
23064
        return false;
23065
      if (that instanceof addVendorItemMapping_result)
23066
        return this.equals((addVendorItemMapping_result)that);
23067
      return false;
23068
    }
23069
 
23070
    public boolean equals(addVendorItemMapping_result that) {
23071
      if (that == null)
23072
        return false;
23073
 
23074
      boolean this_present_cex = true && this.isSetCex();
23075
      boolean that_present_cex = true && that.isSetCex();
23076
      if (this_present_cex || that_present_cex) {
23077
        if (!(this_present_cex && that_present_cex))
23078
          return false;
23079
        if (!this.cex.equals(that.cex))
23080
          return false;
23081
      }
23082
 
23083
      return true;
23084
    }
23085
 
23086
    @Override
23087
    public int hashCode() {
23088
      return 0;
23089
    }
23090
 
23091
    public int compareTo(addVendorItemMapping_result other) {
23092
      if (!getClass().equals(other.getClass())) {
23093
        return getClass().getName().compareTo(other.getClass().getName());
23094
      }
23095
 
23096
      int lastComparison = 0;
23097
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
23098
 
23099
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23100
      if (lastComparison != 0) {
23101
        return lastComparison;
23102
      }
23103
      if (isSetCex()) {
23104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23105
        if (lastComparison != 0) {
23106
          return lastComparison;
23107
        }
23108
      }
23109
      return 0;
23110
    }
23111
 
23112
    public _Fields fieldForId(int fieldId) {
23113
      return _Fields.findByThriftId(fieldId);
23114
    }
23115
 
23116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23117
      org.apache.thrift.protocol.TField field;
23118
      iprot.readStructBegin();
23119
      while (true)
23120
      {
23121
        field = iprot.readFieldBegin();
23122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23123
          break;
23124
        }
23125
        switch (field.id) {
23126
          case 1: // CEX
23127
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23128
              this.cex = new InventoryServiceException();
23129
              this.cex.read(iprot);
23130
            } else { 
23131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23132
            }
23133
            break;
23134
          default:
23135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23136
        }
23137
        iprot.readFieldEnd();
23138
      }
23139
      iprot.readStructEnd();
23140
      validate();
23141
    }
23142
 
23143
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23144
      oprot.writeStructBegin(STRUCT_DESC);
23145
 
23146
      if (this.isSetCex()) {
23147
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23148
        this.cex.write(oprot);
23149
        oprot.writeFieldEnd();
23150
      }
23151
      oprot.writeFieldStop();
23152
      oprot.writeStructEnd();
23153
    }
23154
 
23155
    @Override
23156
    public String toString() {
23157
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
23158
      boolean first = true;
23159
 
23160
      sb.append("cex:");
23161
      if (this.cex == null) {
23162
        sb.append("null");
23163
      } else {
23164
        sb.append(this.cex);
23165
      }
23166
      first = false;
23167
      sb.append(")");
23168
      return sb.toString();
23169
    }
23170
 
23171
    public void validate() throws org.apache.thrift.TException {
23172
      // check for required fields
23173
    }
23174
 
23175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23176
      try {
23177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23178
      } catch (org.apache.thrift.TException te) {
23179
        throw new java.io.IOException(te);
23180
      }
23181
    }
23182
 
23183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23184
      try {
23185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23186
      } catch (org.apache.thrift.TException te) {
23187
        throw new java.io.IOException(te);
23188
      }
23189
    }
23190
 
23191
  }
23192
 
23193
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
23194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
23195
 
23196
    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);
23197
 
23198
    private long itemId; // required
23199
 
23200
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23201
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23202
      ITEM_ID((short)1, "itemId");
23203
 
23204
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23205
 
23206
      static {
23207
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23208
          byName.put(field.getFieldName(), field);
23209
        }
23210
      }
23211
 
23212
      /**
23213
       * Find the _Fields constant that matches fieldId, or null if its not found.
23214
       */
23215
      public static _Fields findByThriftId(int fieldId) {
23216
        switch(fieldId) {
23217
          case 1: // ITEM_ID
23218
            return ITEM_ID;
23219
          default:
23220
            return null;
23221
        }
23222
      }
23223
 
23224
      /**
23225
       * Find the _Fields constant that matches fieldId, throwing an exception
23226
       * if it is not found.
23227
       */
23228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23229
        _Fields fields = findByThriftId(fieldId);
23230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23231
        return fields;
23232
      }
23233
 
23234
      /**
23235
       * Find the _Fields constant that matches name, or null if its not found.
23236
       */
23237
      public static _Fields findByName(String name) {
23238
        return byName.get(name);
23239
      }
23240
 
23241
      private final short _thriftId;
23242
      private final String _fieldName;
23243
 
23244
      _Fields(short thriftId, String fieldName) {
23245
        _thriftId = thriftId;
23246
        _fieldName = fieldName;
23247
      }
23248
 
23249
      public short getThriftFieldId() {
23250
        return _thriftId;
23251
      }
23252
 
23253
      public String getFieldName() {
23254
        return _fieldName;
23255
      }
23256
    }
23257
 
23258
    // isset id assignments
23259
    private static final int __ITEMID_ISSET_ID = 0;
23260
    private BitSet __isset_bit_vector = new BitSet(1);
23261
 
23262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23263
    static {
23264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23265
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
23269
    }
23270
 
23271
    public getVendorItemMappings_args() {
23272
    }
23273
 
23274
    public getVendorItemMappings_args(
23275
      long itemId)
23276
    {
23277
      this();
23278
      this.itemId = itemId;
23279
      setItemIdIsSet(true);
23280
    }
23281
 
23282
    /**
23283
     * Performs a deep copy on <i>other</i>.
23284
     */
23285
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
23286
      __isset_bit_vector.clear();
23287
      __isset_bit_vector.or(other.__isset_bit_vector);
23288
      this.itemId = other.itemId;
23289
    }
23290
 
23291
    public getVendorItemMappings_args deepCopy() {
23292
      return new getVendorItemMappings_args(this);
23293
    }
23294
 
23295
    @Override
23296
    public void clear() {
23297
      setItemIdIsSet(false);
23298
      this.itemId = 0;
23299
    }
23300
 
23301
    public long getItemId() {
23302
      return this.itemId;
23303
    }
23304
 
23305
    public void setItemId(long itemId) {
23306
      this.itemId = itemId;
23307
      setItemIdIsSet(true);
23308
    }
23309
 
23310
    public void unsetItemId() {
23311
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
23312
    }
23313
 
23314
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
23315
    public boolean isSetItemId() {
23316
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
23317
    }
23318
 
23319
    public void setItemIdIsSet(boolean value) {
23320
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
23321
    }
23322
 
23323
    public void setFieldValue(_Fields field, Object value) {
23324
      switch (field) {
23325
      case ITEM_ID:
23326
        if (value == null) {
23327
          unsetItemId();
23328
        } else {
23329
          setItemId((Long)value);
23330
        }
23331
        break;
23332
 
23333
      }
23334
    }
23335
 
23336
    public Object getFieldValue(_Fields field) {
23337
      switch (field) {
23338
      case ITEM_ID:
23339
        return Long.valueOf(getItemId());
23340
 
23341
      }
23342
      throw new IllegalStateException();
23343
    }
23344
 
23345
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23346
    public boolean isSet(_Fields field) {
23347
      if (field == null) {
23348
        throw new IllegalArgumentException();
23349
      }
23350
 
23351
      switch (field) {
23352
      case ITEM_ID:
23353
        return isSetItemId();
23354
      }
23355
      throw new IllegalStateException();
23356
    }
23357
 
23358
    @Override
23359
    public boolean equals(Object that) {
23360
      if (that == null)
23361
        return false;
23362
      if (that instanceof getVendorItemMappings_args)
23363
        return this.equals((getVendorItemMappings_args)that);
23364
      return false;
23365
    }
23366
 
23367
    public boolean equals(getVendorItemMappings_args that) {
23368
      if (that == null)
23369
        return false;
23370
 
23371
      boolean this_present_itemId = true;
23372
      boolean that_present_itemId = true;
23373
      if (this_present_itemId || that_present_itemId) {
23374
        if (!(this_present_itemId && that_present_itemId))
23375
          return false;
23376
        if (this.itemId != that.itemId)
23377
          return false;
23378
      }
23379
 
23380
      return true;
23381
    }
23382
 
23383
    @Override
23384
    public int hashCode() {
23385
      return 0;
23386
    }
23387
 
23388
    public int compareTo(getVendorItemMappings_args other) {
23389
      if (!getClass().equals(other.getClass())) {
23390
        return getClass().getName().compareTo(other.getClass().getName());
23391
      }
23392
 
23393
      int lastComparison = 0;
23394
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
23395
 
23396
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
23397
      if (lastComparison != 0) {
23398
        return lastComparison;
23399
      }
23400
      if (isSetItemId()) {
23401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
23402
        if (lastComparison != 0) {
23403
          return lastComparison;
23404
        }
23405
      }
23406
      return 0;
23407
    }
23408
 
23409
    public _Fields fieldForId(int fieldId) {
23410
      return _Fields.findByThriftId(fieldId);
23411
    }
23412
 
23413
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23414
      org.apache.thrift.protocol.TField field;
23415
      iprot.readStructBegin();
23416
      while (true)
23417
      {
23418
        field = iprot.readFieldBegin();
23419
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23420
          break;
23421
        }
23422
        switch (field.id) {
23423
          case 1: // ITEM_ID
23424
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23425
              this.itemId = iprot.readI64();
23426
              setItemIdIsSet(true);
23427
            } else { 
23428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23429
            }
23430
            break;
23431
          default:
23432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23433
        }
23434
        iprot.readFieldEnd();
23435
      }
23436
      iprot.readStructEnd();
23437
      validate();
23438
    }
23439
 
23440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23441
      validate();
23442
 
23443
      oprot.writeStructBegin(STRUCT_DESC);
23444
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
23445
      oprot.writeI64(this.itemId);
23446
      oprot.writeFieldEnd();
23447
      oprot.writeFieldStop();
23448
      oprot.writeStructEnd();
23449
    }
23450
 
23451
    @Override
23452
    public String toString() {
23453
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
23454
      boolean first = true;
23455
 
23456
      sb.append("itemId:");
23457
      sb.append(this.itemId);
23458
      first = false;
23459
      sb.append(")");
23460
      return sb.toString();
23461
    }
23462
 
23463
    public void validate() throws org.apache.thrift.TException {
23464
      // check for required fields
23465
    }
23466
 
23467
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23468
      try {
23469
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23470
      } catch (org.apache.thrift.TException te) {
23471
        throw new java.io.IOException(te);
23472
      }
23473
    }
23474
 
23475
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23476
      try {
23477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23478
      } catch (org.apache.thrift.TException te) {
23479
        throw new java.io.IOException(te);
23480
      }
23481
    }
23482
 
23483
  }
23484
 
23485
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
23486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
23487
 
23488
    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);
23489
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
23490
 
23491
    private List<VendorItemMapping> success; // required
23492
    private InventoryServiceException cex; // required
23493
 
23494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23496
      SUCCESS((short)0, "success"),
23497
      CEX((short)1, "cex");
23498
 
23499
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23500
 
23501
      static {
23502
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23503
          byName.put(field.getFieldName(), field);
23504
        }
23505
      }
23506
 
23507
      /**
23508
       * Find the _Fields constant that matches fieldId, or null if its not found.
23509
       */
23510
      public static _Fields findByThriftId(int fieldId) {
23511
        switch(fieldId) {
23512
          case 0: // SUCCESS
23513
            return SUCCESS;
23514
          case 1: // CEX
23515
            return CEX;
23516
          default:
23517
            return null;
23518
        }
23519
      }
23520
 
23521
      /**
23522
       * Find the _Fields constant that matches fieldId, throwing an exception
23523
       * if it is not found.
23524
       */
23525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23526
        _Fields fields = findByThriftId(fieldId);
23527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23528
        return fields;
23529
      }
23530
 
23531
      /**
23532
       * Find the _Fields constant that matches name, or null if its not found.
23533
       */
23534
      public static _Fields findByName(String name) {
23535
        return byName.get(name);
23536
      }
23537
 
23538
      private final short _thriftId;
23539
      private final String _fieldName;
23540
 
23541
      _Fields(short thriftId, String fieldName) {
23542
        _thriftId = thriftId;
23543
        _fieldName = fieldName;
23544
      }
23545
 
23546
      public short getThriftFieldId() {
23547
        return _thriftId;
23548
      }
23549
 
23550
      public String getFieldName() {
23551
        return _fieldName;
23552
      }
23553
    }
23554
 
23555
    // isset id assignments
23556
 
23557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23558
    static {
23559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23560
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23561
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23562
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
23563
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23564
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23565
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23566
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
23567
    }
23568
 
23569
    public getVendorItemMappings_result() {
23570
    }
23571
 
23572
    public getVendorItemMappings_result(
23573
      List<VendorItemMapping> success,
23574
      InventoryServiceException cex)
23575
    {
23576
      this();
23577
      this.success = success;
23578
      this.cex = cex;
23579
    }
23580
 
23581
    /**
23582
     * Performs a deep copy on <i>other</i>.
23583
     */
23584
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
23585
      if (other.isSetSuccess()) {
23586
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
23587
        for (VendorItemMapping other_element : other.success) {
23588
          __this__success.add(new VendorItemMapping(other_element));
23589
        }
23590
        this.success = __this__success;
23591
      }
23592
      if (other.isSetCex()) {
23593
        this.cex = new InventoryServiceException(other.cex);
23594
      }
23595
    }
23596
 
23597
    public getVendorItemMappings_result deepCopy() {
23598
      return new getVendorItemMappings_result(this);
23599
    }
23600
 
23601
    @Override
23602
    public void clear() {
23603
      this.success = null;
23604
      this.cex = null;
23605
    }
23606
 
23607
    public int getSuccessSize() {
23608
      return (this.success == null) ? 0 : this.success.size();
23609
    }
23610
 
23611
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
23612
      return (this.success == null) ? null : this.success.iterator();
23613
    }
23614
 
23615
    public void addToSuccess(VendorItemMapping elem) {
23616
      if (this.success == null) {
23617
        this.success = new ArrayList<VendorItemMapping>();
23618
      }
23619
      this.success.add(elem);
23620
    }
23621
 
23622
    public List<VendorItemMapping> getSuccess() {
23623
      return this.success;
23624
    }
23625
 
23626
    public void setSuccess(List<VendorItemMapping> success) {
23627
      this.success = success;
23628
    }
23629
 
23630
    public void unsetSuccess() {
23631
      this.success = null;
23632
    }
23633
 
23634
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23635
    public boolean isSetSuccess() {
23636
      return this.success != null;
23637
    }
23638
 
23639
    public void setSuccessIsSet(boolean value) {
23640
      if (!value) {
23641
        this.success = null;
23642
      }
23643
    }
23644
 
23645
    public InventoryServiceException getCex() {
23646
      return this.cex;
23647
    }
23648
 
23649
    public void setCex(InventoryServiceException cex) {
23650
      this.cex = cex;
23651
    }
23652
 
23653
    public void unsetCex() {
23654
      this.cex = null;
23655
    }
23656
 
23657
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
23658
    public boolean isSetCex() {
23659
      return this.cex != null;
23660
    }
23661
 
23662
    public void setCexIsSet(boolean value) {
23663
      if (!value) {
23664
        this.cex = null;
23665
      }
23666
    }
23667
 
23668
    public void setFieldValue(_Fields field, Object value) {
23669
      switch (field) {
23670
      case SUCCESS:
23671
        if (value == null) {
23672
          unsetSuccess();
23673
        } else {
23674
          setSuccess((List<VendorItemMapping>)value);
23675
        }
23676
        break;
23677
 
23678
      case CEX:
23679
        if (value == null) {
23680
          unsetCex();
23681
        } else {
23682
          setCex((InventoryServiceException)value);
23683
        }
23684
        break;
23685
 
23686
      }
23687
    }
23688
 
23689
    public Object getFieldValue(_Fields field) {
23690
      switch (field) {
23691
      case SUCCESS:
23692
        return getSuccess();
23693
 
23694
      case CEX:
23695
        return getCex();
23696
 
23697
      }
23698
      throw new IllegalStateException();
23699
    }
23700
 
23701
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23702
    public boolean isSet(_Fields field) {
23703
      if (field == null) {
23704
        throw new IllegalArgumentException();
23705
      }
23706
 
23707
      switch (field) {
23708
      case SUCCESS:
23709
        return isSetSuccess();
23710
      case CEX:
23711
        return isSetCex();
23712
      }
23713
      throw new IllegalStateException();
23714
    }
23715
 
23716
    @Override
23717
    public boolean equals(Object that) {
23718
      if (that == null)
23719
        return false;
23720
      if (that instanceof getVendorItemMappings_result)
23721
        return this.equals((getVendorItemMappings_result)that);
23722
      return false;
23723
    }
23724
 
23725
    public boolean equals(getVendorItemMappings_result that) {
23726
      if (that == null)
23727
        return false;
23728
 
23729
      boolean this_present_success = true && this.isSetSuccess();
23730
      boolean that_present_success = true && that.isSetSuccess();
23731
      if (this_present_success || that_present_success) {
23732
        if (!(this_present_success && that_present_success))
23733
          return false;
23734
        if (!this.success.equals(that.success))
23735
          return false;
23736
      }
23737
 
23738
      boolean this_present_cex = true && this.isSetCex();
23739
      boolean that_present_cex = true && that.isSetCex();
23740
      if (this_present_cex || that_present_cex) {
23741
        if (!(this_present_cex && that_present_cex))
23742
          return false;
23743
        if (!this.cex.equals(that.cex))
23744
          return false;
23745
      }
23746
 
23747
      return true;
23748
    }
23749
 
23750
    @Override
23751
    public int hashCode() {
23752
      return 0;
23753
    }
23754
 
23755
    public int compareTo(getVendorItemMappings_result other) {
23756
      if (!getClass().equals(other.getClass())) {
23757
        return getClass().getName().compareTo(other.getClass().getName());
23758
      }
23759
 
23760
      int lastComparison = 0;
23761
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
23762
 
23763
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23764
      if (lastComparison != 0) {
23765
        return lastComparison;
23766
      }
23767
      if (isSetSuccess()) {
23768
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23769
        if (lastComparison != 0) {
23770
          return lastComparison;
23771
        }
23772
      }
23773
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23774
      if (lastComparison != 0) {
23775
        return lastComparison;
23776
      }
23777
      if (isSetCex()) {
23778
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23779
        if (lastComparison != 0) {
23780
          return lastComparison;
23781
        }
23782
      }
23783
      return 0;
23784
    }
23785
 
23786
    public _Fields fieldForId(int fieldId) {
23787
      return _Fields.findByThriftId(fieldId);
23788
    }
23789
 
23790
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23791
      org.apache.thrift.protocol.TField field;
23792
      iprot.readStructBegin();
23793
      while (true)
23794
      {
23795
        field = iprot.readFieldBegin();
23796
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23797
          break;
23798
        }
23799
        switch (field.id) {
23800
          case 0: // SUCCESS
23801
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23802
              {
8182 amar.kumar 23803
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
23804
                this.success = new ArrayList<VendorItemMapping>(_list45.size);
23805
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
5945 mandeep.dh 23806
                {
8182 amar.kumar 23807
                  VendorItemMapping _elem47; // required
23808
                  _elem47 = new VendorItemMapping();
23809
                  _elem47.read(iprot);
23810
                  this.success.add(_elem47);
5945 mandeep.dh 23811
                }
23812
                iprot.readListEnd();
23813
              }
23814
            } else { 
23815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23816
            }
23817
            break;
23818
          case 1: // CEX
23819
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23820
              this.cex = new InventoryServiceException();
23821
              this.cex.read(iprot);
23822
            } else { 
23823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23824
            }
23825
            break;
23826
          default:
23827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23828
        }
23829
        iprot.readFieldEnd();
23830
      }
23831
      iprot.readStructEnd();
23832
      validate();
23833
    }
23834
 
23835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23836
      oprot.writeStructBegin(STRUCT_DESC);
23837
 
23838
      if (this.isSetSuccess()) {
23839
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23840
        {
23841
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 23842
          for (VendorItemMapping _iter48 : this.success)
5945 mandeep.dh 23843
          {
8182 amar.kumar 23844
            _iter48.write(oprot);
5945 mandeep.dh 23845
          }
23846
          oprot.writeListEnd();
23847
        }
23848
        oprot.writeFieldEnd();
23849
      } else if (this.isSetCex()) {
23850
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23851
        this.cex.write(oprot);
23852
        oprot.writeFieldEnd();
23853
      }
23854
      oprot.writeFieldStop();
23855
      oprot.writeStructEnd();
23856
    }
23857
 
23858
    @Override
23859
    public String toString() {
23860
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
23861
      boolean first = true;
23862
 
23863
      sb.append("success:");
23864
      if (this.success == null) {
23865
        sb.append("null");
23866
      } else {
23867
        sb.append(this.success);
23868
      }
23869
      first = false;
23870
      if (!first) sb.append(", ");
23871
      sb.append("cex:");
23872
      if (this.cex == null) {
23873
        sb.append("null");
23874
      } else {
23875
        sb.append(this.cex);
23876
      }
23877
      first = false;
23878
      sb.append(")");
23879
      return sb.toString();
23880
    }
23881
 
23882
    public void validate() throws org.apache.thrift.TException {
23883
      // check for required fields
23884
    }
23885
 
23886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23887
      try {
23888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23889
      } catch (org.apache.thrift.TException te) {
23890
        throw new java.io.IOException(te);
23891
      }
23892
    }
23893
 
23894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23895
      try {
23896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23897
      } catch (org.apache.thrift.TException te) {
23898
        throw new java.io.IOException(te);
23899
      }
23900
    }
23901
 
23902
  }
23903
 
23904
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
23905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
23906
 
23907
    private static final org.apache.thrift.protocol.TField VENDORID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorid", org.apache.thrift.protocol.TType.I64, (short)1);
23908
 
23909
    private long vendorid; // required
23910
 
23911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23913
      VENDORID((short)1, "vendorid");
23914
 
23915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23916
 
23917
      static {
23918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23919
          byName.put(field.getFieldName(), field);
23920
        }
23921
      }
23922
 
23923
      /**
23924
       * Find the _Fields constant that matches fieldId, or null if its not found.
23925
       */
23926
      public static _Fields findByThriftId(int fieldId) {
23927
        switch(fieldId) {
23928
          case 1: // VENDORID
23929
            return VENDORID;
23930
          default:
23931
            return null;
23932
        }
23933
      }
23934
 
23935
      /**
23936
       * Find the _Fields constant that matches fieldId, throwing an exception
23937
       * if it is not found.
23938
       */
23939
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23940
        _Fields fields = findByThriftId(fieldId);
23941
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23942
        return fields;
23943
      }
23944
 
23945
      /**
23946
       * Find the _Fields constant that matches name, or null if its not found.
23947
       */
23948
      public static _Fields findByName(String name) {
23949
        return byName.get(name);
23950
      }
23951
 
23952
      private final short _thriftId;
23953
      private final String _fieldName;
23954
 
23955
      _Fields(short thriftId, String fieldName) {
23956
        _thriftId = thriftId;
23957
        _fieldName = fieldName;
23958
      }
23959
 
23960
      public short getThriftFieldId() {
23961
        return _thriftId;
23962
      }
23963
 
23964
      public String getFieldName() {
23965
        return _fieldName;
23966
      }
23967
    }
23968
 
23969
    // isset id assignments
23970
    private static final int __VENDORID_ISSET_ID = 0;
23971
    private BitSet __isset_bit_vector = new BitSet(1);
23972
 
23973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23974
    static {
23975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23976
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23977
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23978
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23979
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
23980
    }
23981
 
23982
    public getPendingOrdersInventory_args() {
23983
    }
23984
 
23985
    public getPendingOrdersInventory_args(
23986
      long vendorid)
23987
    {
23988
      this();
23989
      this.vendorid = vendorid;
23990
      setVendoridIsSet(true);
23991
    }
23992
 
23993
    /**
23994
     * Performs a deep copy on <i>other</i>.
23995
     */
23996
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
23997
      __isset_bit_vector.clear();
23998
      __isset_bit_vector.or(other.__isset_bit_vector);
23999
      this.vendorid = other.vendorid;
24000
    }
24001
 
24002
    public getPendingOrdersInventory_args deepCopy() {
24003
      return new getPendingOrdersInventory_args(this);
24004
    }
24005
 
24006
    @Override
24007
    public void clear() {
24008
      setVendoridIsSet(false);
24009
      this.vendorid = 0;
24010
    }
24011
 
24012
    public long getVendorid() {
24013
      return this.vendorid;
24014
    }
24015
 
24016
    public void setVendorid(long vendorid) {
24017
      this.vendorid = vendorid;
24018
      setVendoridIsSet(true);
24019
    }
24020
 
24021
    public void unsetVendorid() {
24022
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
24023
    }
24024
 
24025
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
24026
    public boolean isSetVendorid() {
24027
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
24028
    }
24029
 
24030
    public void setVendoridIsSet(boolean value) {
24031
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
24032
    }
24033
 
24034
    public void setFieldValue(_Fields field, Object value) {
24035
      switch (field) {
24036
      case VENDORID:
24037
        if (value == null) {
24038
          unsetVendorid();
24039
        } else {
24040
          setVendorid((Long)value);
24041
        }
24042
        break;
24043
 
24044
      }
24045
    }
24046
 
24047
    public Object getFieldValue(_Fields field) {
24048
      switch (field) {
24049
      case VENDORID:
24050
        return Long.valueOf(getVendorid());
24051
 
24052
      }
24053
      throw new IllegalStateException();
24054
    }
24055
 
24056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24057
    public boolean isSet(_Fields field) {
24058
      if (field == null) {
24059
        throw new IllegalArgumentException();
24060
      }
24061
 
24062
      switch (field) {
24063
      case VENDORID:
24064
        return isSetVendorid();
24065
      }
24066
      throw new IllegalStateException();
24067
    }
24068
 
24069
    @Override
24070
    public boolean equals(Object that) {
24071
      if (that == null)
24072
        return false;
24073
      if (that instanceof getPendingOrdersInventory_args)
24074
        return this.equals((getPendingOrdersInventory_args)that);
24075
      return false;
24076
    }
24077
 
24078
    public boolean equals(getPendingOrdersInventory_args that) {
24079
      if (that == null)
24080
        return false;
24081
 
24082
      boolean this_present_vendorid = true;
24083
      boolean that_present_vendorid = true;
24084
      if (this_present_vendorid || that_present_vendorid) {
24085
        if (!(this_present_vendorid && that_present_vendorid))
24086
          return false;
24087
        if (this.vendorid != that.vendorid)
24088
          return false;
24089
      }
24090
 
24091
      return true;
24092
    }
24093
 
24094
    @Override
24095
    public int hashCode() {
24096
      return 0;
24097
    }
24098
 
24099
    public int compareTo(getPendingOrdersInventory_args other) {
24100
      if (!getClass().equals(other.getClass())) {
24101
        return getClass().getName().compareTo(other.getClass().getName());
24102
      }
24103
 
24104
      int lastComparison = 0;
24105
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
24106
 
24107
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
24108
      if (lastComparison != 0) {
24109
        return lastComparison;
24110
      }
24111
      if (isSetVendorid()) {
24112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
24113
        if (lastComparison != 0) {
24114
          return lastComparison;
24115
        }
24116
      }
24117
      return 0;
24118
    }
24119
 
24120
    public _Fields fieldForId(int fieldId) {
24121
      return _Fields.findByThriftId(fieldId);
24122
    }
24123
 
24124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24125
      org.apache.thrift.protocol.TField field;
24126
      iprot.readStructBegin();
24127
      while (true)
24128
      {
24129
        field = iprot.readFieldBegin();
24130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24131
          break;
24132
        }
24133
        switch (field.id) {
24134
          case 1: // VENDORID
24135
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24136
              this.vendorid = iprot.readI64();
24137
              setVendoridIsSet(true);
24138
            } else { 
24139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24140
            }
24141
            break;
24142
          default:
24143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24144
        }
24145
        iprot.readFieldEnd();
24146
      }
24147
      iprot.readStructEnd();
24148
      validate();
24149
    }
24150
 
24151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24152
      validate();
24153
 
24154
      oprot.writeStructBegin(STRUCT_DESC);
24155
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
24156
      oprot.writeI64(this.vendorid);
24157
      oprot.writeFieldEnd();
24158
      oprot.writeFieldStop();
24159
      oprot.writeStructEnd();
24160
    }
24161
 
24162
    @Override
24163
    public String toString() {
24164
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
24165
      boolean first = true;
24166
 
24167
      sb.append("vendorid:");
24168
      sb.append(this.vendorid);
24169
      first = false;
24170
      sb.append(")");
24171
      return sb.toString();
24172
    }
24173
 
24174
    public void validate() throws org.apache.thrift.TException {
24175
      // check for required fields
24176
    }
24177
 
24178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24179
      try {
24180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24181
      } catch (org.apache.thrift.TException te) {
24182
        throw new java.io.IOException(te);
24183
      }
24184
    }
24185
 
24186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24187
      try {
24188
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24189
        __isset_bit_vector = new BitSet(1);
24190
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24191
      } catch (org.apache.thrift.TException te) {
24192
        throw new java.io.IOException(te);
24193
      }
24194
    }
24195
 
24196
  }
24197
 
24198
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
24199
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
24200
 
24201
    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);
24202
 
24203
    private List<AvailableAndReservedStock> success; // required
24204
 
24205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24207
      SUCCESS((short)0, "success");
24208
 
24209
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24210
 
24211
      static {
24212
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24213
          byName.put(field.getFieldName(), field);
24214
        }
24215
      }
24216
 
24217
      /**
24218
       * Find the _Fields constant that matches fieldId, or null if its not found.
24219
       */
24220
      public static _Fields findByThriftId(int fieldId) {
24221
        switch(fieldId) {
24222
          case 0: // SUCCESS
24223
            return SUCCESS;
24224
          default:
24225
            return null;
24226
        }
24227
      }
24228
 
24229
      /**
24230
       * Find the _Fields constant that matches fieldId, throwing an exception
24231
       * if it is not found.
24232
       */
24233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24234
        _Fields fields = findByThriftId(fieldId);
24235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24236
        return fields;
24237
      }
24238
 
24239
      /**
24240
       * Find the _Fields constant that matches name, or null if its not found.
24241
       */
24242
      public static _Fields findByName(String name) {
24243
        return byName.get(name);
24244
      }
24245
 
24246
      private final short _thriftId;
24247
      private final String _fieldName;
24248
 
24249
      _Fields(short thriftId, String fieldName) {
24250
        _thriftId = thriftId;
24251
        _fieldName = fieldName;
24252
      }
24253
 
24254
      public short getThriftFieldId() {
24255
        return _thriftId;
24256
      }
24257
 
24258
      public String getFieldName() {
24259
        return _fieldName;
24260
      }
24261
    }
24262
 
24263
    // isset id assignments
24264
 
24265
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24266
    static {
24267
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24268
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24269
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24270
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
24271
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24272
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
24273
    }
24274
 
24275
    public getPendingOrdersInventory_result() {
24276
    }
24277
 
24278
    public getPendingOrdersInventory_result(
24279
      List<AvailableAndReservedStock> success)
24280
    {
24281
      this();
24282
      this.success = success;
24283
    }
24284
 
24285
    /**
24286
     * Performs a deep copy on <i>other</i>.
24287
     */
24288
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
24289
      if (other.isSetSuccess()) {
24290
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
24291
        for (AvailableAndReservedStock other_element : other.success) {
24292
          __this__success.add(new AvailableAndReservedStock(other_element));
24293
        }
24294
        this.success = __this__success;
24295
      }
24296
    }
24297
 
24298
    public getPendingOrdersInventory_result deepCopy() {
24299
      return new getPendingOrdersInventory_result(this);
24300
    }
24301
 
24302
    @Override
24303
    public void clear() {
24304
      this.success = null;
24305
    }
24306
 
24307
    public int getSuccessSize() {
24308
      return (this.success == null) ? 0 : this.success.size();
24309
    }
24310
 
24311
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
24312
      return (this.success == null) ? null : this.success.iterator();
24313
    }
24314
 
24315
    public void addToSuccess(AvailableAndReservedStock elem) {
24316
      if (this.success == null) {
24317
        this.success = new ArrayList<AvailableAndReservedStock>();
24318
      }
24319
      this.success.add(elem);
24320
    }
24321
 
24322
    public List<AvailableAndReservedStock> getSuccess() {
24323
      return this.success;
24324
    }
24325
 
24326
    public void setSuccess(List<AvailableAndReservedStock> success) {
24327
      this.success = success;
24328
    }
24329
 
24330
    public void unsetSuccess() {
24331
      this.success = null;
24332
    }
24333
 
24334
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24335
    public boolean isSetSuccess() {
24336
      return this.success != null;
24337
    }
24338
 
24339
    public void setSuccessIsSet(boolean value) {
24340
      if (!value) {
24341
        this.success = null;
24342
      }
24343
    }
24344
 
24345
    public void setFieldValue(_Fields field, Object value) {
24346
      switch (field) {
24347
      case SUCCESS:
24348
        if (value == null) {
24349
          unsetSuccess();
24350
        } else {
24351
          setSuccess((List<AvailableAndReservedStock>)value);
24352
        }
24353
        break;
24354
 
24355
      }
24356
    }
24357
 
24358
    public Object getFieldValue(_Fields field) {
24359
      switch (field) {
24360
      case SUCCESS:
24361
        return getSuccess();
24362
 
24363
      }
24364
      throw new IllegalStateException();
24365
    }
24366
 
24367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24368
    public boolean isSet(_Fields field) {
24369
      if (field == null) {
24370
        throw new IllegalArgumentException();
24371
      }
24372
 
24373
      switch (field) {
24374
      case SUCCESS:
24375
        return isSetSuccess();
24376
      }
24377
      throw new IllegalStateException();
24378
    }
24379
 
24380
    @Override
24381
    public boolean equals(Object that) {
24382
      if (that == null)
24383
        return false;
24384
      if (that instanceof getPendingOrdersInventory_result)
24385
        return this.equals((getPendingOrdersInventory_result)that);
24386
      return false;
24387
    }
24388
 
24389
    public boolean equals(getPendingOrdersInventory_result that) {
24390
      if (that == null)
24391
        return false;
24392
 
24393
      boolean this_present_success = true && this.isSetSuccess();
24394
      boolean that_present_success = true && that.isSetSuccess();
24395
      if (this_present_success || that_present_success) {
24396
        if (!(this_present_success && that_present_success))
24397
          return false;
24398
        if (!this.success.equals(that.success))
24399
          return false;
24400
      }
24401
 
24402
      return true;
24403
    }
24404
 
24405
    @Override
24406
    public int hashCode() {
24407
      return 0;
24408
    }
24409
 
24410
    public int compareTo(getPendingOrdersInventory_result other) {
24411
      if (!getClass().equals(other.getClass())) {
24412
        return getClass().getName().compareTo(other.getClass().getName());
24413
      }
24414
 
24415
      int lastComparison = 0;
24416
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
24417
 
24418
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24419
      if (lastComparison != 0) {
24420
        return lastComparison;
24421
      }
24422
      if (isSetSuccess()) {
24423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24424
        if (lastComparison != 0) {
24425
          return lastComparison;
24426
        }
24427
      }
24428
      return 0;
24429
    }
24430
 
24431
    public _Fields fieldForId(int fieldId) {
24432
      return _Fields.findByThriftId(fieldId);
24433
    }
24434
 
24435
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24436
      org.apache.thrift.protocol.TField field;
24437
      iprot.readStructBegin();
24438
      while (true)
24439
      {
24440
        field = iprot.readFieldBegin();
24441
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24442
          break;
24443
        }
24444
        switch (field.id) {
24445
          case 0: // SUCCESS
24446
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24447
              {
8182 amar.kumar 24448
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
24449
                this.success = new ArrayList<AvailableAndReservedStock>(_list49.size);
24450
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
5945 mandeep.dh 24451
                {
8182 amar.kumar 24452
                  AvailableAndReservedStock _elem51; // required
24453
                  _elem51 = new AvailableAndReservedStock();
24454
                  _elem51.read(iprot);
24455
                  this.success.add(_elem51);
5945 mandeep.dh 24456
                }
24457
                iprot.readListEnd();
24458
              }
24459
            } else { 
24460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24461
            }
24462
            break;
24463
          default:
24464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24465
        }
24466
        iprot.readFieldEnd();
24467
      }
24468
      iprot.readStructEnd();
24469
      validate();
24470
    }
24471
 
24472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24473
      oprot.writeStructBegin(STRUCT_DESC);
24474
 
24475
      if (this.isSetSuccess()) {
24476
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24477
        {
24478
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 24479
          for (AvailableAndReservedStock _iter52 : this.success)
5945 mandeep.dh 24480
          {
8182 amar.kumar 24481
            _iter52.write(oprot);
5945 mandeep.dh 24482
          }
24483
          oprot.writeListEnd();
24484
        }
24485
        oprot.writeFieldEnd();
24486
      }
24487
      oprot.writeFieldStop();
24488
      oprot.writeStructEnd();
24489
    }
24490
 
24491
    @Override
24492
    public String toString() {
24493
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
24494
      boolean first = true;
24495
 
24496
      sb.append("success:");
24497
      if (this.success == null) {
24498
        sb.append("null");
24499
      } else {
24500
        sb.append(this.success);
24501
      }
24502
      first = false;
24503
      sb.append(")");
24504
      return sb.toString();
24505
    }
24506
 
24507
    public void validate() throws org.apache.thrift.TException {
24508
      // check for required fields
24509
    }
24510
 
24511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24512
      try {
24513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24514
      } catch (org.apache.thrift.TException te) {
24515
        throw new java.io.IOException(te);
24516
      }
24517
    }
24518
 
24519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24520
      try {
24521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24522
      } catch (org.apache.thrift.TException te) {
24523
        throw new java.io.IOException(te);
24524
      }
24525
    }
24526
 
24527
  }
24528
 
24529
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
24530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
24531
 
24532
    private static final org.apache.thrift.protocol.TField WAREHOUSE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseType", org.apache.thrift.protocol.TType.I32, (short)1);
24533
    private static final org.apache.thrift.protocol.TField INVENTORY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryType", org.apache.thrift.protocol.TType.I32, (short)2);
24534
    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)3);
24535
    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);
24536
    private static final org.apache.thrift.protocol.TField SHIPPING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
24537
 
24538
    private WarehouseType warehouseType; // required
24539
    private InventoryType inventoryType; // required
24540
    private long vendorId; // required
24541
    private long billingWarehouseId; // required
24542
    private long shippingWarehouseId; // required
24543
 
24544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24546
      /**
24547
       * 
24548
       * @see WarehouseType
24549
       */
24550
      WAREHOUSE_TYPE((short)1, "warehouseType"),
24551
      /**
24552
       * 
24553
       * @see InventoryType
24554
       */
24555
      INVENTORY_TYPE((short)2, "inventoryType"),
24556
      VENDOR_ID((short)3, "vendorId"),
24557
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
24558
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
24559
 
24560
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24561
 
24562
      static {
24563
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24564
          byName.put(field.getFieldName(), field);
24565
        }
24566
      }
24567
 
24568
      /**
24569
       * Find the _Fields constant that matches fieldId, or null if its not found.
24570
       */
24571
      public static _Fields findByThriftId(int fieldId) {
24572
        switch(fieldId) {
24573
          case 1: // WAREHOUSE_TYPE
24574
            return WAREHOUSE_TYPE;
24575
          case 2: // INVENTORY_TYPE
24576
            return INVENTORY_TYPE;
24577
          case 3: // VENDOR_ID
24578
            return VENDOR_ID;
24579
          case 4: // BILLING_WAREHOUSE_ID
24580
            return BILLING_WAREHOUSE_ID;
24581
          case 5: // SHIPPING_WAREHOUSE_ID
24582
            return SHIPPING_WAREHOUSE_ID;
24583
          default:
24584
            return null;
24585
        }
24586
      }
24587
 
24588
      /**
24589
       * Find the _Fields constant that matches fieldId, throwing an exception
24590
       * if it is not found.
24591
       */
24592
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24593
        _Fields fields = findByThriftId(fieldId);
24594
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24595
        return fields;
24596
      }
24597
 
24598
      /**
24599
       * Find the _Fields constant that matches name, or null if its not found.
24600
       */
24601
      public static _Fields findByName(String name) {
24602
        return byName.get(name);
24603
      }
24604
 
24605
      private final short _thriftId;
24606
      private final String _fieldName;
24607
 
24608
      _Fields(short thriftId, String fieldName) {
24609
        _thriftId = thriftId;
24610
        _fieldName = fieldName;
24611
      }
24612
 
24613
      public short getThriftFieldId() {
24614
        return _thriftId;
24615
      }
24616
 
24617
      public String getFieldName() {
24618
        return _fieldName;
24619
      }
24620
    }
24621
 
24622
    // isset id assignments
24623
    private static final int __VENDORID_ISSET_ID = 0;
24624
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
24625
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
24626
    private BitSet __isset_bit_vector = new BitSet(3);
24627
 
24628
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24629
    static {
24630
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24631
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24632
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
24633
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24634
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
24635
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24637
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24639
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24641
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24642
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
24643
    }
24644
 
24645
    public getWarehouses_args() {
24646
    }
24647
 
24648
    public getWarehouses_args(
24649
      WarehouseType warehouseType,
24650
      InventoryType inventoryType,
24651
      long vendorId,
24652
      long billingWarehouseId,
24653
      long shippingWarehouseId)
24654
    {
24655
      this();
24656
      this.warehouseType = warehouseType;
24657
      this.inventoryType = inventoryType;
24658
      this.vendorId = vendorId;
24659
      setVendorIdIsSet(true);
24660
      this.billingWarehouseId = billingWarehouseId;
24661
      setBillingWarehouseIdIsSet(true);
24662
      this.shippingWarehouseId = shippingWarehouseId;
24663
      setShippingWarehouseIdIsSet(true);
24664
    }
24665
 
24666
    /**
24667
     * Performs a deep copy on <i>other</i>.
24668
     */
24669
    public getWarehouses_args(getWarehouses_args other) {
24670
      __isset_bit_vector.clear();
24671
      __isset_bit_vector.or(other.__isset_bit_vector);
24672
      if (other.isSetWarehouseType()) {
24673
        this.warehouseType = other.warehouseType;
24674
      }
24675
      if (other.isSetInventoryType()) {
24676
        this.inventoryType = other.inventoryType;
24677
      }
24678
      this.vendorId = other.vendorId;
24679
      this.billingWarehouseId = other.billingWarehouseId;
24680
      this.shippingWarehouseId = other.shippingWarehouseId;
24681
    }
24682
 
24683
    public getWarehouses_args deepCopy() {
24684
      return new getWarehouses_args(this);
24685
    }
24686
 
24687
    @Override
24688
    public void clear() {
24689
      this.warehouseType = null;
24690
      this.inventoryType = null;
24691
      setVendorIdIsSet(false);
24692
      this.vendorId = 0;
24693
      setBillingWarehouseIdIsSet(false);
24694
      this.billingWarehouseId = 0;
24695
      setShippingWarehouseIdIsSet(false);
24696
      this.shippingWarehouseId = 0;
24697
    }
24698
 
24699
    /**
24700
     * 
24701
     * @see WarehouseType
24702
     */
24703
    public WarehouseType getWarehouseType() {
24704
      return this.warehouseType;
24705
    }
24706
 
24707
    /**
24708
     * 
24709
     * @see WarehouseType
24710
     */
24711
    public void setWarehouseType(WarehouseType warehouseType) {
24712
      this.warehouseType = warehouseType;
24713
    }
24714
 
24715
    public void unsetWarehouseType() {
24716
      this.warehouseType = null;
24717
    }
24718
 
24719
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
24720
    public boolean isSetWarehouseType() {
24721
      return this.warehouseType != null;
24722
    }
24723
 
24724
    public void setWarehouseTypeIsSet(boolean value) {
24725
      if (!value) {
24726
        this.warehouseType = null;
24727
      }
24728
    }
24729
 
24730
    /**
24731
     * 
24732
     * @see InventoryType
24733
     */
24734
    public InventoryType getInventoryType() {
24735
      return this.inventoryType;
24736
    }
24737
 
24738
    /**
24739
     * 
24740
     * @see InventoryType
24741
     */
24742
    public void setInventoryType(InventoryType inventoryType) {
24743
      this.inventoryType = inventoryType;
24744
    }
24745
 
24746
    public void unsetInventoryType() {
24747
      this.inventoryType = null;
24748
    }
24749
 
24750
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
24751
    public boolean isSetInventoryType() {
24752
      return this.inventoryType != null;
24753
    }
24754
 
24755
    public void setInventoryTypeIsSet(boolean value) {
24756
      if (!value) {
24757
        this.inventoryType = null;
24758
      }
24759
    }
24760
 
24761
    public long getVendorId() {
24762
      return this.vendorId;
24763
    }
24764
 
24765
    public void setVendorId(long vendorId) {
24766
      this.vendorId = vendorId;
24767
      setVendorIdIsSet(true);
24768
    }
24769
 
24770
    public void unsetVendorId() {
24771
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
24772
    }
24773
 
24774
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
24775
    public boolean isSetVendorId() {
24776
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
24777
    }
24778
 
24779
    public void setVendorIdIsSet(boolean value) {
24780
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
24781
    }
24782
 
24783
    public long getBillingWarehouseId() {
24784
      return this.billingWarehouseId;
24785
    }
24786
 
24787
    public void setBillingWarehouseId(long billingWarehouseId) {
24788
      this.billingWarehouseId = billingWarehouseId;
24789
      setBillingWarehouseIdIsSet(true);
24790
    }
24791
 
24792
    public void unsetBillingWarehouseId() {
24793
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
24794
    }
24795
 
24796
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
24797
    public boolean isSetBillingWarehouseId() {
24798
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
24799
    }
24800
 
24801
    public void setBillingWarehouseIdIsSet(boolean value) {
24802
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
24803
    }
24804
 
24805
    public long getShippingWarehouseId() {
24806
      return this.shippingWarehouseId;
24807
    }
24808
 
24809
    public void setShippingWarehouseId(long shippingWarehouseId) {
24810
      this.shippingWarehouseId = shippingWarehouseId;
24811
      setShippingWarehouseIdIsSet(true);
24812
    }
24813
 
24814
    public void unsetShippingWarehouseId() {
24815
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
24816
    }
24817
 
24818
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
24819
    public boolean isSetShippingWarehouseId() {
24820
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
24821
    }
24822
 
24823
    public void setShippingWarehouseIdIsSet(boolean value) {
24824
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
24825
    }
24826
 
24827
    public void setFieldValue(_Fields field, Object value) {
24828
      switch (field) {
24829
      case WAREHOUSE_TYPE:
24830
        if (value == null) {
24831
          unsetWarehouseType();
24832
        } else {
24833
          setWarehouseType((WarehouseType)value);
24834
        }
24835
        break;
24836
 
24837
      case INVENTORY_TYPE:
24838
        if (value == null) {
24839
          unsetInventoryType();
24840
        } else {
24841
          setInventoryType((InventoryType)value);
24842
        }
24843
        break;
24844
 
24845
      case VENDOR_ID:
24846
        if (value == null) {
24847
          unsetVendorId();
24848
        } else {
24849
          setVendorId((Long)value);
24850
        }
24851
        break;
24852
 
24853
      case BILLING_WAREHOUSE_ID:
24854
        if (value == null) {
24855
          unsetBillingWarehouseId();
24856
        } else {
24857
          setBillingWarehouseId((Long)value);
24858
        }
24859
        break;
24860
 
24861
      case SHIPPING_WAREHOUSE_ID:
24862
        if (value == null) {
24863
          unsetShippingWarehouseId();
24864
        } else {
24865
          setShippingWarehouseId((Long)value);
24866
        }
24867
        break;
24868
 
24869
      }
24870
    }
24871
 
24872
    public Object getFieldValue(_Fields field) {
24873
      switch (field) {
24874
      case WAREHOUSE_TYPE:
24875
        return getWarehouseType();
24876
 
24877
      case INVENTORY_TYPE:
24878
        return getInventoryType();
24879
 
24880
      case VENDOR_ID:
24881
        return Long.valueOf(getVendorId());
24882
 
24883
      case BILLING_WAREHOUSE_ID:
24884
        return Long.valueOf(getBillingWarehouseId());
24885
 
24886
      case SHIPPING_WAREHOUSE_ID:
24887
        return Long.valueOf(getShippingWarehouseId());
24888
 
24889
      }
24890
      throw new IllegalStateException();
24891
    }
24892
 
24893
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24894
    public boolean isSet(_Fields field) {
24895
      if (field == null) {
24896
        throw new IllegalArgumentException();
24897
      }
24898
 
24899
      switch (field) {
24900
      case WAREHOUSE_TYPE:
24901
        return isSetWarehouseType();
24902
      case INVENTORY_TYPE:
24903
        return isSetInventoryType();
24904
      case VENDOR_ID:
24905
        return isSetVendorId();
24906
      case BILLING_WAREHOUSE_ID:
24907
        return isSetBillingWarehouseId();
24908
      case SHIPPING_WAREHOUSE_ID:
24909
        return isSetShippingWarehouseId();
24910
      }
24911
      throw new IllegalStateException();
24912
    }
24913
 
24914
    @Override
24915
    public boolean equals(Object that) {
24916
      if (that == null)
24917
        return false;
24918
      if (that instanceof getWarehouses_args)
24919
        return this.equals((getWarehouses_args)that);
24920
      return false;
24921
    }
24922
 
24923
    public boolean equals(getWarehouses_args that) {
24924
      if (that == null)
24925
        return false;
24926
 
24927
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
24928
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
24929
      if (this_present_warehouseType || that_present_warehouseType) {
24930
        if (!(this_present_warehouseType && that_present_warehouseType))
24931
          return false;
24932
        if (!this.warehouseType.equals(that.warehouseType))
24933
          return false;
24934
      }
24935
 
24936
      boolean this_present_inventoryType = true && this.isSetInventoryType();
24937
      boolean that_present_inventoryType = true && that.isSetInventoryType();
24938
      if (this_present_inventoryType || that_present_inventoryType) {
24939
        if (!(this_present_inventoryType && that_present_inventoryType))
24940
          return false;
24941
        if (!this.inventoryType.equals(that.inventoryType))
24942
          return false;
24943
      }
24944
 
24945
      boolean this_present_vendorId = true;
24946
      boolean that_present_vendorId = true;
24947
      if (this_present_vendorId || that_present_vendorId) {
24948
        if (!(this_present_vendorId && that_present_vendorId))
24949
          return false;
24950
        if (this.vendorId != that.vendorId)
24951
          return false;
24952
      }
24953
 
24954
      boolean this_present_billingWarehouseId = true;
24955
      boolean that_present_billingWarehouseId = true;
24956
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
24957
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
24958
          return false;
24959
        if (this.billingWarehouseId != that.billingWarehouseId)
24960
          return false;
24961
      }
24962
 
24963
      boolean this_present_shippingWarehouseId = true;
24964
      boolean that_present_shippingWarehouseId = true;
24965
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
24966
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
24967
          return false;
24968
        if (this.shippingWarehouseId != that.shippingWarehouseId)
24969
          return false;
24970
      }
24971
 
24972
      return true;
24973
    }
24974
 
24975
    @Override
24976
    public int hashCode() {
24977
      return 0;
24978
    }
24979
 
24980
    public int compareTo(getWarehouses_args other) {
24981
      if (!getClass().equals(other.getClass())) {
24982
        return getClass().getName().compareTo(other.getClass().getName());
24983
      }
24984
 
24985
      int lastComparison = 0;
24986
      getWarehouses_args typedOther = (getWarehouses_args)other;
24987
 
24988
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
24989
      if (lastComparison != 0) {
24990
        return lastComparison;
24991
      }
24992
      if (isSetWarehouseType()) {
24993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
24994
        if (lastComparison != 0) {
24995
          return lastComparison;
24996
        }
24997
      }
24998
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
24999
      if (lastComparison != 0) {
25000
        return lastComparison;
25001
      }
25002
      if (isSetInventoryType()) {
25003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
25004
        if (lastComparison != 0) {
25005
          return lastComparison;
25006
        }
25007
      }
25008
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
25009
      if (lastComparison != 0) {
25010
        return lastComparison;
25011
      }
25012
      if (isSetVendorId()) {
25013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
25014
        if (lastComparison != 0) {
25015
          return lastComparison;
25016
        }
25017
      }
25018
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
25019
      if (lastComparison != 0) {
25020
        return lastComparison;
25021
      }
25022
      if (isSetBillingWarehouseId()) {
25023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
25024
        if (lastComparison != 0) {
25025
          return lastComparison;
25026
        }
25027
      }
25028
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
25029
      if (lastComparison != 0) {
25030
        return lastComparison;
25031
      }
25032
      if (isSetShippingWarehouseId()) {
25033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
25034
        if (lastComparison != 0) {
25035
          return lastComparison;
25036
        }
25037
      }
25038
      return 0;
25039
    }
25040
 
25041
    public _Fields fieldForId(int fieldId) {
25042
      return _Fields.findByThriftId(fieldId);
25043
    }
25044
 
25045
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25046
      org.apache.thrift.protocol.TField field;
25047
      iprot.readStructBegin();
25048
      while (true)
25049
      {
25050
        field = iprot.readFieldBegin();
25051
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25052
          break;
25053
        }
25054
        switch (field.id) {
25055
          case 1: // WAREHOUSE_TYPE
25056
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25057
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
25058
            } else { 
25059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25060
            }
25061
            break;
25062
          case 2: // INVENTORY_TYPE
25063
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25064
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
25065
            } else { 
25066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25067
            }
25068
            break;
25069
          case 3: // VENDOR_ID
25070
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25071
              this.vendorId = iprot.readI64();
25072
              setVendorIdIsSet(true);
25073
            } else { 
25074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25075
            }
25076
            break;
25077
          case 4: // BILLING_WAREHOUSE_ID
25078
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25079
              this.billingWarehouseId = iprot.readI64();
25080
              setBillingWarehouseIdIsSet(true);
25081
            } else { 
25082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25083
            }
25084
            break;
25085
          case 5: // SHIPPING_WAREHOUSE_ID
25086
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25087
              this.shippingWarehouseId = iprot.readI64();
25088
              setShippingWarehouseIdIsSet(true);
25089
            } else { 
25090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25091
            }
25092
            break;
25093
          default:
25094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25095
        }
25096
        iprot.readFieldEnd();
25097
      }
25098
      iprot.readStructEnd();
25099
      validate();
25100
    }
25101
 
25102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25103
      validate();
25104
 
25105
      oprot.writeStructBegin(STRUCT_DESC);
25106
      if (this.warehouseType != null) {
25107
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
25108
        oprot.writeI32(this.warehouseType.getValue());
25109
        oprot.writeFieldEnd();
25110
      }
25111
      if (this.inventoryType != null) {
25112
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
25113
        oprot.writeI32(this.inventoryType.getValue());
25114
        oprot.writeFieldEnd();
25115
      }
25116
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
25117
      oprot.writeI64(this.vendorId);
25118
      oprot.writeFieldEnd();
25119
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
25120
      oprot.writeI64(this.billingWarehouseId);
25121
      oprot.writeFieldEnd();
25122
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
25123
      oprot.writeI64(this.shippingWarehouseId);
25124
      oprot.writeFieldEnd();
25125
      oprot.writeFieldStop();
25126
      oprot.writeStructEnd();
25127
    }
25128
 
25129
    @Override
25130
    public String toString() {
25131
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
25132
      boolean first = true;
25133
 
25134
      sb.append("warehouseType:");
25135
      if (this.warehouseType == null) {
25136
        sb.append("null");
25137
      } else {
25138
        sb.append(this.warehouseType);
25139
      }
25140
      first = false;
25141
      if (!first) sb.append(", ");
25142
      sb.append("inventoryType:");
25143
      if (this.inventoryType == null) {
25144
        sb.append("null");
25145
      } else {
25146
        sb.append(this.inventoryType);
25147
      }
25148
      first = false;
25149
      if (!first) sb.append(", ");
25150
      sb.append("vendorId:");
25151
      sb.append(this.vendorId);
25152
      first = false;
25153
      if (!first) sb.append(", ");
25154
      sb.append("billingWarehouseId:");
25155
      sb.append(this.billingWarehouseId);
25156
      first = false;
25157
      if (!first) sb.append(", ");
25158
      sb.append("shippingWarehouseId:");
25159
      sb.append(this.shippingWarehouseId);
25160
      first = false;
25161
      sb.append(")");
25162
      return sb.toString();
25163
    }
25164
 
25165
    public void validate() throws org.apache.thrift.TException {
25166
      // check for required fields
25167
    }
25168
 
25169
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25170
      try {
25171
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25172
      } catch (org.apache.thrift.TException te) {
25173
        throw new java.io.IOException(te);
25174
      }
25175
    }
25176
 
25177
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25178
      try {
25179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25180
      } catch (org.apache.thrift.TException te) {
25181
        throw new java.io.IOException(te);
25182
      }
25183
    }
25184
 
25185
  }
25186
 
25187
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
25188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
25189
 
25190
    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);
25191
 
25192
    private List<Warehouse> success; // required
25193
 
25194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25196
      SUCCESS((short)0, "success");
25197
 
25198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25199
 
25200
      static {
25201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25202
          byName.put(field.getFieldName(), field);
25203
        }
25204
      }
25205
 
25206
      /**
25207
       * Find the _Fields constant that matches fieldId, or null if its not found.
25208
       */
25209
      public static _Fields findByThriftId(int fieldId) {
25210
        switch(fieldId) {
25211
          case 0: // SUCCESS
25212
            return SUCCESS;
25213
          default:
25214
            return null;
25215
        }
25216
      }
25217
 
25218
      /**
25219
       * Find the _Fields constant that matches fieldId, throwing an exception
25220
       * if it is not found.
25221
       */
25222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25223
        _Fields fields = findByThriftId(fieldId);
25224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25225
        return fields;
25226
      }
25227
 
25228
      /**
25229
       * Find the _Fields constant that matches name, or null if its not found.
25230
       */
25231
      public static _Fields findByName(String name) {
25232
        return byName.get(name);
25233
      }
25234
 
25235
      private final short _thriftId;
25236
      private final String _fieldName;
25237
 
25238
      _Fields(short thriftId, String fieldName) {
25239
        _thriftId = thriftId;
25240
        _fieldName = fieldName;
25241
      }
25242
 
25243
      public short getThriftFieldId() {
25244
        return _thriftId;
25245
      }
25246
 
25247
      public String getFieldName() {
25248
        return _fieldName;
25249
      }
25250
    }
25251
 
25252
    // isset id assignments
25253
 
25254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25255
    static {
25256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25257
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25258
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25259
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
25260
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25261
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
25262
    }
25263
 
25264
    public getWarehouses_result() {
25265
    }
25266
 
25267
    public getWarehouses_result(
25268
      List<Warehouse> success)
25269
    {
25270
      this();
25271
      this.success = success;
25272
    }
25273
 
25274
    /**
25275
     * Performs a deep copy on <i>other</i>.
25276
     */
25277
    public getWarehouses_result(getWarehouses_result other) {
25278
      if (other.isSetSuccess()) {
25279
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
25280
        for (Warehouse other_element : other.success) {
25281
          __this__success.add(new Warehouse(other_element));
25282
        }
25283
        this.success = __this__success;
25284
      }
25285
    }
25286
 
25287
    public getWarehouses_result deepCopy() {
25288
      return new getWarehouses_result(this);
25289
    }
25290
 
25291
    @Override
25292
    public void clear() {
25293
      this.success = null;
25294
    }
25295
 
25296
    public int getSuccessSize() {
25297
      return (this.success == null) ? 0 : this.success.size();
25298
    }
25299
 
25300
    public java.util.Iterator<Warehouse> getSuccessIterator() {
25301
      return (this.success == null) ? null : this.success.iterator();
25302
    }
25303
 
25304
    public void addToSuccess(Warehouse elem) {
25305
      if (this.success == null) {
25306
        this.success = new ArrayList<Warehouse>();
25307
      }
25308
      this.success.add(elem);
25309
    }
25310
 
25311
    public List<Warehouse> getSuccess() {
25312
      return this.success;
25313
    }
25314
 
25315
    public void setSuccess(List<Warehouse> success) {
25316
      this.success = success;
25317
    }
25318
 
25319
    public void unsetSuccess() {
25320
      this.success = null;
25321
    }
25322
 
25323
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25324
    public boolean isSetSuccess() {
25325
      return this.success != null;
25326
    }
25327
 
25328
    public void setSuccessIsSet(boolean value) {
25329
      if (!value) {
25330
        this.success = null;
25331
      }
25332
    }
25333
 
25334
    public void setFieldValue(_Fields field, Object value) {
25335
      switch (field) {
25336
      case SUCCESS:
25337
        if (value == null) {
25338
          unsetSuccess();
25339
        } else {
25340
          setSuccess((List<Warehouse>)value);
25341
        }
25342
        break;
25343
 
25344
      }
25345
    }
25346
 
25347
    public Object getFieldValue(_Fields field) {
25348
      switch (field) {
25349
      case SUCCESS:
25350
        return getSuccess();
25351
 
25352
      }
25353
      throw new IllegalStateException();
25354
    }
25355
 
25356
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25357
    public boolean isSet(_Fields field) {
25358
      if (field == null) {
25359
        throw new IllegalArgumentException();
25360
      }
25361
 
25362
      switch (field) {
25363
      case SUCCESS:
25364
        return isSetSuccess();
25365
      }
25366
      throw new IllegalStateException();
25367
    }
25368
 
25369
    @Override
25370
    public boolean equals(Object that) {
25371
      if (that == null)
25372
        return false;
25373
      if (that instanceof getWarehouses_result)
25374
        return this.equals((getWarehouses_result)that);
25375
      return false;
25376
    }
25377
 
25378
    public boolean equals(getWarehouses_result that) {
25379
      if (that == null)
25380
        return false;
25381
 
25382
      boolean this_present_success = true && this.isSetSuccess();
25383
      boolean that_present_success = true && that.isSetSuccess();
25384
      if (this_present_success || that_present_success) {
25385
        if (!(this_present_success && that_present_success))
25386
          return false;
25387
        if (!this.success.equals(that.success))
25388
          return false;
25389
      }
25390
 
25391
      return true;
25392
    }
25393
 
25394
    @Override
25395
    public int hashCode() {
25396
      return 0;
25397
    }
25398
 
25399
    public int compareTo(getWarehouses_result other) {
25400
      if (!getClass().equals(other.getClass())) {
25401
        return getClass().getName().compareTo(other.getClass().getName());
25402
      }
25403
 
25404
      int lastComparison = 0;
25405
      getWarehouses_result typedOther = (getWarehouses_result)other;
25406
 
25407
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25408
      if (lastComparison != 0) {
25409
        return lastComparison;
25410
      }
25411
      if (isSetSuccess()) {
25412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25413
        if (lastComparison != 0) {
25414
          return lastComparison;
25415
        }
25416
      }
25417
      return 0;
25418
    }
25419
 
25420
    public _Fields fieldForId(int fieldId) {
25421
      return _Fields.findByThriftId(fieldId);
25422
    }
25423
 
25424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25425
      org.apache.thrift.protocol.TField field;
25426
      iprot.readStructBegin();
25427
      while (true)
25428
      {
25429
        field = iprot.readFieldBegin();
25430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25431
          break;
25432
        }
25433
        switch (field.id) {
25434
          case 0: // SUCCESS
25435
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25436
              {
8182 amar.kumar 25437
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
25438
                this.success = new ArrayList<Warehouse>(_list53.size);
25439
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
5945 mandeep.dh 25440
                {
8182 amar.kumar 25441
                  Warehouse _elem55; // required
25442
                  _elem55 = new Warehouse();
25443
                  _elem55.read(iprot);
25444
                  this.success.add(_elem55);
5945 mandeep.dh 25445
                }
25446
                iprot.readListEnd();
25447
              }
25448
            } else { 
25449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25450
            }
25451
            break;
25452
          default:
25453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25454
        }
25455
        iprot.readFieldEnd();
25456
      }
25457
      iprot.readStructEnd();
25458
      validate();
25459
    }
25460
 
25461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25462
      oprot.writeStructBegin(STRUCT_DESC);
25463
 
25464
      if (this.isSetSuccess()) {
25465
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25466
        {
25467
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 25468
          for (Warehouse _iter56 : this.success)
5945 mandeep.dh 25469
          {
8182 amar.kumar 25470
            _iter56.write(oprot);
5945 mandeep.dh 25471
          }
25472
          oprot.writeListEnd();
25473
        }
25474
        oprot.writeFieldEnd();
25475
      }
25476
      oprot.writeFieldStop();
25477
      oprot.writeStructEnd();
25478
    }
25479
 
25480
    @Override
25481
    public String toString() {
25482
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
25483
      boolean first = true;
25484
 
25485
      sb.append("success:");
25486
      if (this.success == null) {
25487
        sb.append("null");
25488
      } else {
25489
        sb.append(this.success);
25490
      }
25491
      first = false;
25492
      sb.append(")");
25493
      return sb.toString();
25494
    }
25495
 
25496
    public void validate() throws org.apache.thrift.TException {
25497
      // check for required fields
25498
    }
25499
 
25500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25501
      try {
25502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25503
      } catch (org.apache.thrift.TException te) {
25504
        throw new java.io.IOException(te);
25505
      }
25506
    }
25507
 
25508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25509
      try {
25510
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25511
      } catch (org.apache.thrift.TException te) {
25512
        throw new java.io.IOException(te);
25513
      }
25514
    }
25515
 
25516
  }
25517
 
25518
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
25519
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
25520
 
25521
    private static final org.apache.thrift.protocol.TField ITEM_KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("itemKey", org.apache.thrift.protocol.TType.STRING, (short)1);
25522
    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);
25523
    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);
25524
    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)4);
25525
 
25526
    private String itemKey; // required
25527
    private long vendorId; // required
25528
    private long quantity; // required
25529
    private long warehouseId; // required
25530
 
25531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25533
      ITEM_KEY((short)1, "itemKey"),
25534
      VENDOR_ID((short)2, "vendorId"),
25535
      QUANTITY((short)3, "quantity"),
25536
      WAREHOUSE_ID((short)4, "warehouseId");
25537
 
25538
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25539
 
25540
      static {
25541
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25542
          byName.put(field.getFieldName(), field);
25543
        }
25544
      }
25545
 
25546
      /**
25547
       * Find the _Fields constant that matches fieldId, or null if its not found.
25548
       */
25549
      public static _Fields findByThriftId(int fieldId) {
25550
        switch(fieldId) {
25551
          case 1: // ITEM_KEY
25552
            return ITEM_KEY;
25553
          case 2: // VENDOR_ID
25554
            return VENDOR_ID;
25555
          case 3: // QUANTITY
25556
            return QUANTITY;
25557
          case 4: // WAREHOUSE_ID
25558
            return WAREHOUSE_ID;
25559
          default:
25560
            return null;
25561
        }
25562
      }
25563
 
25564
      /**
25565
       * Find the _Fields constant that matches fieldId, throwing an exception
25566
       * if it is not found.
25567
       */
25568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25569
        _Fields fields = findByThriftId(fieldId);
25570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25571
        return fields;
25572
      }
25573
 
25574
      /**
25575
       * Find the _Fields constant that matches name, or null if its not found.
25576
       */
25577
      public static _Fields findByName(String name) {
25578
        return byName.get(name);
25579
      }
25580
 
25581
      private final short _thriftId;
25582
      private final String _fieldName;
25583
 
25584
      _Fields(short thriftId, String fieldName) {
25585
        _thriftId = thriftId;
25586
        _fieldName = fieldName;
25587
      }
25588
 
25589
      public short getThriftFieldId() {
25590
        return _thriftId;
25591
      }
25592
 
25593
      public String getFieldName() {
25594
        return _fieldName;
25595
      }
25596
    }
25597
 
25598
    // isset id assignments
25599
    private static final int __VENDORID_ISSET_ID = 0;
25600
    private static final int __QUANTITY_ISSET_ID = 1;
25601
    private static final int __WAREHOUSEID_ISSET_ID = 2;
25602
    private BitSet __isset_bit_vector = new BitSet(3);
25603
 
25604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25605
    static {
25606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25607
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25609
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25611
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25612
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25613
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25614
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25615
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25616
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
25617
    }
25618
 
25619
    public resetAvailability_args() {
25620
    }
25621
 
25622
    public resetAvailability_args(
25623
      String itemKey,
25624
      long vendorId,
25625
      long quantity,
25626
      long warehouseId)
25627
    {
25628
      this();
25629
      this.itemKey = itemKey;
25630
      this.vendorId = vendorId;
25631
      setVendorIdIsSet(true);
25632
      this.quantity = quantity;
25633
      setQuantityIsSet(true);
25634
      this.warehouseId = warehouseId;
25635
      setWarehouseIdIsSet(true);
25636
    }
25637
 
25638
    /**
25639
     * Performs a deep copy on <i>other</i>.
25640
     */
25641
    public resetAvailability_args(resetAvailability_args other) {
25642
      __isset_bit_vector.clear();
25643
      __isset_bit_vector.or(other.__isset_bit_vector);
25644
      if (other.isSetItemKey()) {
25645
        this.itemKey = other.itemKey;
25646
      }
25647
      this.vendorId = other.vendorId;
25648
      this.quantity = other.quantity;
25649
      this.warehouseId = other.warehouseId;
25650
    }
25651
 
25652
    public resetAvailability_args deepCopy() {
25653
      return new resetAvailability_args(this);
25654
    }
25655
 
25656
    @Override
25657
    public void clear() {
25658
      this.itemKey = null;
25659
      setVendorIdIsSet(false);
25660
      this.vendorId = 0;
25661
      setQuantityIsSet(false);
25662
      this.quantity = 0;
25663
      setWarehouseIdIsSet(false);
25664
      this.warehouseId = 0;
25665
    }
25666
 
25667
    public String getItemKey() {
25668
      return this.itemKey;
25669
    }
25670
 
25671
    public void setItemKey(String itemKey) {
25672
      this.itemKey = itemKey;
25673
    }
25674
 
25675
    public void unsetItemKey() {
25676
      this.itemKey = null;
25677
    }
25678
 
25679
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
25680
    public boolean isSetItemKey() {
25681
      return this.itemKey != null;
25682
    }
25683
 
25684
    public void setItemKeyIsSet(boolean value) {
25685
      if (!value) {
25686
        this.itemKey = null;
25687
      }
25688
    }
25689
 
25690
    public long getVendorId() {
25691
      return this.vendorId;
25692
    }
25693
 
25694
    public void setVendorId(long vendorId) {
25695
      this.vendorId = vendorId;
25696
      setVendorIdIsSet(true);
25697
    }
25698
 
25699
    public void unsetVendorId() {
25700
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
25701
    }
25702
 
25703
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
25704
    public boolean isSetVendorId() {
25705
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
25706
    }
25707
 
25708
    public void setVendorIdIsSet(boolean value) {
25709
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
25710
    }
25711
 
25712
    public long getQuantity() {
25713
      return this.quantity;
25714
    }
25715
 
25716
    public void setQuantity(long quantity) {
25717
      this.quantity = quantity;
25718
      setQuantityIsSet(true);
25719
    }
25720
 
25721
    public void unsetQuantity() {
25722
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
25723
    }
25724
 
25725
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
25726
    public boolean isSetQuantity() {
25727
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
25728
    }
25729
 
25730
    public void setQuantityIsSet(boolean value) {
25731
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
25732
    }
25733
 
25734
    public long getWarehouseId() {
25735
      return this.warehouseId;
25736
    }
25737
 
25738
    public void setWarehouseId(long warehouseId) {
25739
      this.warehouseId = warehouseId;
25740
      setWarehouseIdIsSet(true);
25741
    }
25742
 
25743
    public void unsetWarehouseId() {
25744
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
25745
    }
25746
 
25747
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
25748
    public boolean isSetWarehouseId() {
25749
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
25750
    }
25751
 
25752
    public void setWarehouseIdIsSet(boolean value) {
25753
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25754
    }
25755
 
25756
    public void setFieldValue(_Fields field, Object value) {
25757
      switch (field) {
25758
      case ITEM_KEY:
25759
        if (value == null) {
25760
          unsetItemKey();
25761
        } else {
25762
          setItemKey((String)value);
25763
        }
25764
        break;
25765
 
25766
      case VENDOR_ID:
25767
        if (value == null) {
25768
          unsetVendorId();
25769
        } else {
25770
          setVendorId((Long)value);
25771
        }
25772
        break;
25773
 
25774
      case QUANTITY:
25775
        if (value == null) {
25776
          unsetQuantity();
25777
        } else {
25778
          setQuantity((Long)value);
25779
        }
25780
        break;
25781
 
25782
      case WAREHOUSE_ID:
25783
        if (value == null) {
25784
          unsetWarehouseId();
25785
        } else {
25786
          setWarehouseId((Long)value);
25787
        }
25788
        break;
25789
 
25790
      }
25791
    }
25792
 
25793
    public Object getFieldValue(_Fields field) {
25794
      switch (field) {
25795
      case ITEM_KEY:
25796
        return getItemKey();
25797
 
25798
      case VENDOR_ID:
25799
        return Long.valueOf(getVendorId());
25800
 
25801
      case QUANTITY:
25802
        return Long.valueOf(getQuantity());
25803
 
25804
      case WAREHOUSE_ID:
25805
        return Long.valueOf(getWarehouseId());
25806
 
25807
      }
25808
      throw new IllegalStateException();
25809
    }
25810
 
25811
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25812
    public boolean isSet(_Fields field) {
25813
      if (field == null) {
25814
        throw new IllegalArgumentException();
25815
      }
25816
 
25817
      switch (field) {
25818
      case ITEM_KEY:
25819
        return isSetItemKey();
25820
      case VENDOR_ID:
25821
        return isSetVendorId();
25822
      case QUANTITY:
25823
        return isSetQuantity();
25824
      case WAREHOUSE_ID:
25825
        return isSetWarehouseId();
25826
      }
25827
      throw new IllegalStateException();
25828
    }
25829
 
25830
    @Override
25831
    public boolean equals(Object that) {
25832
      if (that == null)
25833
        return false;
25834
      if (that instanceof resetAvailability_args)
25835
        return this.equals((resetAvailability_args)that);
25836
      return false;
25837
    }
25838
 
25839
    public boolean equals(resetAvailability_args that) {
25840
      if (that == null)
25841
        return false;
25842
 
25843
      boolean this_present_itemKey = true && this.isSetItemKey();
25844
      boolean that_present_itemKey = true && that.isSetItemKey();
25845
      if (this_present_itemKey || that_present_itemKey) {
25846
        if (!(this_present_itemKey && that_present_itemKey))
25847
          return false;
25848
        if (!this.itemKey.equals(that.itemKey))
25849
          return false;
25850
      }
25851
 
25852
      boolean this_present_vendorId = true;
25853
      boolean that_present_vendorId = true;
25854
      if (this_present_vendorId || that_present_vendorId) {
25855
        if (!(this_present_vendorId && that_present_vendorId))
25856
          return false;
25857
        if (this.vendorId != that.vendorId)
25858
          return false;
25859
      }
25860
 
25861
      boolean this_present_quantity = true;
25862
      boolean that_present_quantity = true;
25863
      if (this_present_quantity || that_present_quantity) {
25864
        if (!(this_present_quantity && that_present_quantity))
25865
          return false;
25866
        if (this.quantity != that.quantity)
25867
          return false;
25868
      }
25869
 
25870
      boolean this_present_warehouseId = true;
25871
      boolean that_present_warehouseId = true;
25872
      if (this_present_warehouseId || that_present_warehouseId) {
25873
        if (!(this_present_warehouseId && that_present_warehouseId))
25874
          return false;
25875
        if (this.warehouseId != that.warehouseId)
25876
          return false;
25877
      }
25878
 
25879
      return true;
25880
    }
25881
 
25882
    @Override
25883
    public int hashCode() {
25884
      return 0;
25885
    }
25886
 
25887
    public int compareTo(resetAvailability_args other) {
25888
      if (!getClass().equals(other.getClass())) {
25889
        return getClass().getName().compareTo(other.getClass().getName());
25890
      }
25891
 
25892
      int lastComparison = 0;
25893
      resetAvailability_args typedOther = (resetAvailability_args)other;
25894
 
25895
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
25896
      if (lastComparison != 0) {
25897
        return lastComparison;
25898
      }
25899
      if (isSetItemKey()) {
25900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
25901
        if (lastComparison != 0) {
25902
          return lastComparison;
25903
        }
25904
      }
25905
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
25906
      if (lastComparison != 0) {
25907
        return lastComparison;
25908
      }
25909
      if (isSetVendorId()) {
25910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
25911
        if (lastComparison != 0) {
25912
          return lastComparison;
25913
        }
25914
      }
25915
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
25916
      if (lastComparison != 0) {
25917
        return lastComparison;
25918
      }
25919
      if (isSetQuantity()) {
25920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
25921
        if (lastComparison != 0) {
25922
          return lastComparison;
25923
        }
25924
      }
25925
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
25926
      if (lastComparison != 0) {
25927
        return lastComparison;
25928
      }
25929
      if (isSetWarehouseId()) {
25930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25931
        if (lastComparison != 0) {
25932
          return lastComparison;
25933
        }
25934
      }
25935
      return 0;
25936
    }
25937
 
25938
    public _Fields fieldForId(int fieldId) {
25939
      return _Fields.findByThriftId(fieldId);
25940
    }
25941
 
25942
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25943
      org.apache.thrift.protocol.TField field;
25944
      iprot.readStructBegin();
25945
      while (true)
25946
      {
25947
        field = iprot.readFieldBegin();
25948
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25949
          break;
25950
        }
25951
        switch (field.id) {
25952
          case 1: // ITEM_KEY
25953
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25954
              this.itemKey = iprot.readString();
25955
            } else { 
25956
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25957
            }
25958
            break;
25959
          case 2: // VENDOR_ID
25960
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25961
              this.vendorId = iprot.readI64();
25962
              setVendorIdIsSet(true);
25963
            } else { 
25964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25965
            }
25966
            break;
25967
          case 3: // QUANTITY
25968
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25969
              this.quantity = iprot.readI64();
25970
              setQuantityIsSet(true);
25971
            } else { 
25972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25973
            }
25974
            break;
25975
          case 4: // WAREHOUSE_ID
25976
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25977
              this.warehouseId = iprot.readI64();
25978
              setWarehouseIdIsSet(true);
25979
            } else { 
25980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25981
            }
25982
            break;
25983
          default:
25984
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25985
        }
25986
        iprot.readFieldEnd();
25987
      }
25988
      iprot.readStructEnd();
25989
      validate();
25990
    }
25991
 
25992
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25993
      validate();
25994
 
25995
      oprot.writeStructBegin(STRUCT_DESC);
25996
      if (this.itemKey != null) {
25997
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
25998
        oprot.writeString(this.itemKey);
25999
        oprot.writeFieldEnd();
26000
      }
26001
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
26002
      oprot.writeI64(this.vendorId);
26003
      oprot.writeFieldEnd();
26004
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
26005
      oprot.writeI64(this.quantity);
26006
      oprot.writeFieldEnd();
26007
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26008
      oprot.writeI64(this.warehouseId);
26009
      oprot.writeFieldEnd();
26010
      oprot.writeFieldStop();
26011
      oprot.writeStructEnd();
26012
    }
26013
 
26014
    @Override
26015
    public String toString() {
26016
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
26017
      boolean first = true;
26018
 
26019
      sb.append("itemKey:");
26020
      if (this.itemKey == null) {
26021
        sb.append("null");
26022
      } else {
26023
        sb.append(this.itemKey);
26024
      }
26025
      first = false;
26026
      if (!first) sb.append(", ");
26027
      sb.append("vendorId:");
26028
      sb.append(this.vendorId);
26029
      first = false;
26030
      if (!first) sb.append(", ");
26031
      sb.append("quantity:");
26032
      sb.append(this.quantity);
26033
      first = false;
26034
      if (!first) sb.append(", ");
26035
      sb.append("warehouseId:");
26036
      sb.append(this.warehouseId);
26037
      first = false;
26038
      sb.append(")");
26039
      return sb.toString();
26040
    }
26041
 
26042
    public void validate() throws org.apache.thrift.TException {
26043
      // check for required fields
26044
    }
26045
 
26046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26047
      try {
26048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26049
      } catch (org.apache.thrift.TException te) {
26050
        throw new java.io.IOException(te);
26051
      }
26052
    }
26053
 
26054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26055
      try {
26056
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26057
        __isset_bit_vector = new BitSet(1);
26058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26059
      } catch (org.apache.thrift.TException te) {
26060
        throw new java.io.IOException(te);
26061
      }
26062
    }
26063
 
26064
  }
26065
 
26066
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
26067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
26068
 
26069
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26070
 
26071
    private InventoryServiceException cex; // required
26072
 
26073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26075
      CEX((short)1, "cex");
26076
 
26077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26078
 
26079
      static {
26080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26081
          byName.put(field.getFieldName(), field);
26082
        }
26083
      }
26084
 
26085
      /**
26086
       * Find the _Fields constant that matches fieldId, or null if its not found.
26087
       */
26088
      public static _Fields findByThriftId(int fieldId) {
26089
        switch(fieldId) {
26090
          case 1: // CEX
26091
            return CEX;
26092
          default:
26093
            return null;
26094
        }
26095
      }
26096
 
26097
      /**
26098
       * Find the _Fields constant that matches fieldId, throwing an exception
26099
       * if it is not found.
26100
       */
26101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26102
        _Fields fields = findByThriftId(fieldId);
26103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26104
        return fields;
26105
      }
26106
 
26107
      /**
26108
       * Find the _Fields constant that matches name, or null if its not found.
26109
       */
26110
      public static _Fields findByName(String name) {
26111
        return byName.get(name);
26112
      }
26113
 
26114
      private final short _thriftId;
26115
      private final String _fieldName;
26116
 
26117
      _Fields(short thriftId, String fieldName) {
26118
        _thriftId = thriftId;
26119
        _fieldName = fieldName;
26120
      }
26121
 
26122
      public short getThriftFieldId() {
26123
        return _thriftId;
26124
      }
26125
 
26126
      public String getFieldName() {
26127
        return _fieldName;
26128
      }
26129
    }
26130
 
26131
    // isset id assignments
26132
 
26133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26134
    static {
26135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26136
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26138
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26139
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
26140
    }
26141
 
26142
    public resetAvailability_result() {
26143
    }
26144
 
26145
    public resetAvailability_result(
26146
      InventoryServiceException cex)
26147
    {
26148
      this();
26149
      this.cex = cex;
26150
    }
26151
 
26152
    /**
26153
     * Performs a deep copy on <i>other</i>.
26154
     */
26155
    public resetAvailability_result(resetAvailability_result other) {
26156
      if (other.isSetCex()) {
26157
        this.cex = new InventoryServiceException(other.cex);
26158
      }
26159
    }
26160
 
26161
    public resetAvailability_result deepCopy() {
26162
      return new resetAvailability_result(this);
26163
    }
26164
 
26165
    @Override
26166
    public void clear() {
26167
      this.cex = null;
26168
    }
26169
 
26170
    public InventoryServiceException getCex() {
26171
      return this.cex;
26172
    }
26173
 
26174
    public void setCex(InventoryServiceException cex) {
26175
      this.cex = cex;
26176
    }
26177
 
26178
    public void unsetCex() {
26179
      this.cex = null;
26180
    }
26181
 
26182
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
26183
    public boolean isSetCex() {
26184
      return this.cex != null;
26185
    }
26186
 
26187
    public void setCexIsSet(boolean value) {
26188
      if (!value) {
26189
        this.cex = null;
26190
      }
26191
    }
26192
 
26193
    public void setFieldValue(_Fields field, Object value) {
26194
      switch (field) {
26195
      case CEX:
26196
        if (value == null) {
26197
          unsetCex();
26198
        } else {
26199
          setCex((InventoryServiceException)value);
26200
        }
26201
        break;
26202
 
26203
      }
26204
    }
26205
 
26206
    public Object getFieldValue(_Fields field) {
26207
      switch (field) {
26208
      case CEX:
26209
        return getCex();
26210
 
26211
      }
26212
      throw new IllegalStateException();
26213
    }
26214
 
26215
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26216
    public boolean isSet(_Fields field) {
26217
      if (field == null) {
26218
        throw new IllegalArgumentException();
26219
      }
26220
 
26221
      switch (field) {
26222
      case CEX:
26223
        return isSetCex();
26224
      }
26225
      throw new IllegalStateException();
26226
    }
26227
 
26228
    @Override
26229
    public boolean equals(Object that) {
26230
      if (that == null)
26231
        return false;
26232
      if (that instanceof resetAvailability_result)
26233
        return this.equals((resetAvailability_result)that);
26234
      return false;
26235
    }
26236
 
26237
    public boolean equals(resetAvailability_result that) {
26238
      if (that == null)
26239
        return false;
26240
 
26241
      boolean this_present_cex = true && this.isSetCex();
26242
      boolean that_present_cex = true && that.isSetCex();
26243
      if (this_present_cex || that_present_cex) {
26244
        if (!(this_present_cex && that_present_cex))
26245
          return false;
26246
        if (!this.cex.equals(that.cex))
26247
          return false;
26248
      }
26249
 
26250
      return true;
26251
    }
26252
 
26253
    @Override
26254
    public int hashCode() {
26255
      return 0;
26256
    }
26257
 
26258
    public int compareTo(resetAvailability_result other) {
26259
      if (!getClass().equals(other.getClass())) {
26260
        return getClass().getName().compareTo(other.getClass().getName());
26261
      }
26262
 
26263
      int lastComparison = 0;
26264
      resetAvailability_result typedOther = (resetAvailability_result)other;
26265
 
26266
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
26267
      if (lastComparison != 0) {
26268
        return lastComparison;
26269
      }
26270
      if (isSetCex()) {
26271
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
26272
        if (lastComparison != 0) {
26273
          return lastComparison;
26274
        }
26275
      }
26276
      return 0;
26277
    }
26278
 
26279
    public _Fields fieldForId(int fieldId) {
26280
      return _Fields.findByThriftId(fieldId);
26281
    }
26282
 
26283
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26284
      org.apache.thrift.protocol.TField field;
26285
      iprot.readStructBegin();
26286
      while (true)
26287
      {
26288
        field = iprot.readFieldBegin();
26289
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26290
          break;
26291
        }
26292
        switch (field.id) {
26293
          case 1: // CEX
26294
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26295
              this.cex = new InventoryServiceException();
26296
              this.cex.read(iprot);
26297
            } else { 
26298
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26299
            }
26300
            break;
26301
          default:
26302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26303
        }
26304
        iprot.readFieldEnd();
26305
      }
26306
      iprot.readStructEnd();
26307
      validate();
26308
    }
26309
 
26310
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26311
      oprot.writeStructBegin(STRUCT_DESC);
26312
 
26313
      if (this.isSetCex()) {
26314
        oprot.writeFieldBegin(CEX_FIELD_DESC);
26315
        this.cex.write(oprot);
26316
        oprot.writeFieldEnd();
26317
      }
26318
      oprot.writeFieldStop();
26319
      oprot.writeStructEnd();
26320
    }
26321
 
26322
    @Override
26323
    public String toString() {
26324
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
26325
      boolean first = true;
26326
 
26327
      sb.append("cex:");
26328
      if (this.cex == null) {
26329
        sb.append("null");
26330
      } else {
26331
        sb.append(this.cex);
26332
      }
26333
      first = false;
26334
      sb.append(")");
26335
      return sb.toString();
26336
    }
26337
 
26338
    public void validate() throws org.apache.thrift.TException {
26339
      // check for required fields
26340
    }
26341
 
26342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26343
      try {
26344
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26345
      } catch (org.apache.thrift.TException te) {
26346
        throw new java.io.IOException(te);
26347
      }
26348
    }
26349
 
26350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26351
      try {
26352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26353
      } catch (org.apache.thrift.TException te) {
26354
        throw new java.io.IOException(te);
26355
      }
26356
    }
26357
 
26358
  }
26359
 
26360
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
26361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
26362
 
26363
    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);
26364
 
26365
    private long warehouseId; // required
26366
 
26367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26369
      WAREHOUSE_ID((short)1, "warehouseId");
26370
 
26371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26372
 
26373
      static {
26374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26375
          byName.put(field.getFieldName(), field);
26376
        }
26377
      }
26378
 
26379
      /**
26380
       * Find the _Fields constant that matches fieldId, or null if its not found.
26381
       */
26382
      public static _Fields findByThriftId(int fieldId) {
26383
        switch(fieldId) {
26384
          case 1: // WAREHOUSE_ID
26385
            return WAREHOUSE_ID;
26386
          default:
26387
            return null;
26388
        }
26389
      }
26390
 
26391
      /**
26392
       * Find the _Fields constant that matches fieldId, throwing an exception
26393
       * if it is not found.
26394
       */
26395
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26396
        _Fields fields = findByThriftId(fieldId);
26397
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26398
        return fields;
26399
      }
26400
 
26401
      /**
26402
       * Find the _Fields constant that matches name, or null if its not found.
26403
       */
26404
      public static _Fields findByName(String name) {
26405
        return byName.get(name);
26406
      }
26407
 
26408
      private final short _thriftId;
26409
      private final String _fieldName;
26410
 
26411
      _Fields(short thriftId, String fieldName) {
26412
        _thriftId = thriftId;
26413
        _fieldName = fieldName;
26414
      }
26415
 
26416
      public short getThriftFieldId() {
26417
        return _thriftId;
26418
      }
26419
 
26420
      public String getFieldName() {
26421
        return _fieldName;
26422
      }
26423
    }
26424
 
26425
    // isset id assignments
26426
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26427
    private BitSet __isset_bit_vector = new BitSet(1);
26428
 
26429
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26430
    static {
26431
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26432
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26433
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
26436
    }
26437
 
26438
    public resetAvailabilityForWarehouse_args() {
26439
    }
26440
 
26441
    public resetAvailabilityForWarehouse_args(
26442
      long warehouseId)
26443
    {
26444
      this();
26445
      this.warehouseId = warehouseId;
26446
      setWarehouseIdIsSet(true);
26447
    }
26448
 
26449
    /**
26450
     * Performs a deep copy on <i>other</i>.
26451
     */
26452
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
26453
      __isset_bit_vector.clear();
26454
      __isset_bit_vector.or(other.__isset_bit_vector);
26455
      this.warehouseId = other.warehouseId;
26456
    }
26457
 
26458
    public resetAvailabilityForWarehouse_args deepCopy() {
26459
      return new resetAvailabilityForWarehouse_args(this);
26460
    }
26461
 
26462
    @Override
26463
    public void clear() {
26464
      setWarehouseIdIsSet(false);
26465
      this.warehouseId = 0;
26466
    }
26467
 
26468
    public long getWarehouseId() {
26469
      return this.warehouseId;
26470
    }
26471
 
26472
    public void setWarehouseId(long warehouseId) {
26473
      this.warehouseId = warehouseId;
26474
      setWarehouseIdIsSet(true);
26475
    }
26476
 
26477
    public void unsetWarehouseId() {
26478
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26479
    }
26480
 
26481
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26482
    public boolean isSetWarehouseId() {
26483
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26484
    }
26485
 
26486
    public void setWarehouseIdIsSet(boolean value) {
26487
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26488
    }
26489
 
26490
    public void setFieldValue(_Fields field, Object value) {
26491
      switch (field) {
26492
      case WAREHOUSE_ID:
26493
        if (value == null) {
26494
          unsetWarehouseId();
26495
        } else {
26496
          setWarehouseId((Long)value);
26497
        }
26498
        break;
26499
 
26500
      }
26501
    }
26502
 
26503
    public Object getFieldValue(_Fields field) {
26504
      switch (field) {
26505
      case WAREHOUSE_ID:
26506
        return Long.valueOf(getWarehouseId());
26507
 
26508
      }
26509
      throw new IllegalStateException();
26510
    }
26511
 
26512
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26513
    public boolean isSet(_Fields field) {
26514
      if (field == null) {
26515
        throw new IllegalArgumentException();
26516
      }
26517
 
26518
      switch (field) {
26519
      case WAREHOUSE_ID:
26520
        return isSetWarehouseId();
26521
      }
26522
      throw new IllegalStateException();
26523
    }
26524
 
26525
    @Override
26526
    public boolean equals(Object that) {
26527
      if (that == null)
26528
        return false;
26529
      if (that instanceof resetAvailabilityForWarehouse_args)
26530
        return this.equals((resetAvailabilityForWarehouse_args)that);
26531
      return false;
26532
    }
26533
 
26534
    public boolean equals(resetAvailabilityForWarehouse_args that) {
26535
      if (that == null)
26536
        return false;
26537
 
26538
      boolean this_present_warehouseId = true;
26539
      boolean that_present_warehouseId = true;
26540
      if (this_present_warehouseId || that_present_warehouseId) {
26541
        if (!(this_present_warehouseId && that_present_warehouseId))
26542
          return false;
26543
        if (this.warehouseId != that.warehouseId)
26544
          return false;
26545
      }
26546
 
26547
      return true;
26548
    }
26549
 
26550
    @Override
26551
    public int hashCode() {
26552
      return 0;
26553
    }
26554
 
26555
    public int compareTo(resetAvailabilityForWarehouse_args other) {
26556
      if (!getClass().equals(other.getClass())) {
26557
        return getClass().getName().compareTo(other.getClass().getName());
26558
      }
26559
 
26560
      int lastComparison = 0;
26561
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
26562
 
26563
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26564
      if (lastComparison != 0) {
26565
        return lastComparison;
26566
      }
26567
      if (isSetWarehouseId()) {
26568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26569
        if (lastComparison != 0) {
26570
          return lastComparison;
26571
        }
26572
      }
26573
      return 0;
26574
    }
26575
 
26576
    public _Fields fieldForId(int fieldId) {
26577
      return _Fields.findByThriftId(fieldId);
26578
    }
26579
 
26580
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26581
      org.apache.thrift.protocol.TField field;
26582
      iprot.readStructBegin();
26583
      while (true)
26584
      {
26585
        field = iprot.readFieldBegin();
26586
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26587
          break;
26588
        }
26589
        switch (field.id) {
26590
          case 1: // WAREHOUSE_ID
26591
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26592
              this.warehouseId = iprot.readI64();
26593
              setWarehouseIdIsSet(true);
26594
            } else { 
26595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26596
            }
26597
            break;
26598
          default:
26599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26600
        }
26601
        iprot.readFieldEnd();
26602
      }
26603
      iprot.readStructEnd();
26604
      validate();
26605
    }
26606
 
26607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26608
      validate();
26609
 
26610
      oprot.writeStructBegin(STRUCT_DESC);
26611
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26612
      oprot.writeI64(this.warehouseId);
26613
      oprot.writeFieldEnd();
26614
      oprot.writeFieldStop();
26615
      oprot.writeStructEnd();
26616
    }
26617
 
26618
    @Override
26619
    public String toString() {
26620
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
26621
      boolean first = true;
26622
 
26623
      sb.append("warehouseId:");
26624
      sb.append(this.warehouseId);
26625
      first = false;
26626
      sb.append(")");
26627
      return sb.toString();
26628
    }
26629
 
26630
    public void validate() throws org.apache.thrift.TException {
26631
      // check for required fields
26632
    }
26633
 
26634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26635
      try {
26636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26637
      } catch (org.apache.thrift.TException te) {
26638
        throw new java.io.IOException(te);
26639
      }
26640
    }
26641
 
26642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26643
      try {
26644
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26645
        __isset_bit_vector = new BitSet(1);
26646
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26647
      } catch (org.apache.thrift.TException te) {
26648
        throw new java.io.IOException(te);
26649
      }
26650
    }
26651
 
26652
  }
26653
 
26654
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
26655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
26656
 
26657
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26658
 
26659
    private InventoryServiceException cex; // required
26660
 
26661
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26662
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26663
      CEX((short)1, "cex");
26664
 
26665
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26666
 
26667
      static {
26668
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26669
          byName.put(field.getFieldName(), field);
26670
        }
26671
      }
26672
 
26673
      /**
26674
       * Find the _Fields constant that matches fieldId, or null if its not found.
26675
       */
26676
      public static _Fields findByThriftId(int fieldId) {
26677
        switch(fieldId) {
26678
          case 1: // CEX
26679
            return CEX;
26680
          default:
26681
            return null;
26682
        }
26683
      }
26684
 
26685
      /**
26686
       * Find the _Fields constant that matches fieldId, throwing an exception
26687
       * if it is not found.
26688
       */
26689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26690
        _Fields fields = findByThriftId(fieldId);
26691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26692
        return fields;
26693
      }
26694
 
26695
      /**
26696
       * Find the _Fields constant that matches name, or null if its not found.
26697
       */
26698
      public static _Fields findByName(String name) {
26699
        return byName.get(name);
26700
      }
26701
 
26702
      private final short _thriftId;
26703
      private final String _fieldName;
26704
 
26705
      _Fields(short thriftId, String fieldName) {
26706
        _thriftId = thriftId;
26707
        _fieldName = fieldName;
26708
      }
26709
 
26710
      public short getThriftFieldId() {
26711
        return _thriftId;
26712
      }
26713
 
26714
      public String getFieldName() {
26715
        return _fieldName;
26716
      }
26717
    }
26718
 
26719
    // isset id assignments
26720
 
26721
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26722
    static {
26723
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26724
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26725
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26726
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26727
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
26728
    }
26729
 
26730
    public resetAvailabilityForWarehouse_result() {
26731
    }
26732
 
26733
    public resetAvailabilityForWarehouse_result(
26734
      InventoryServiceException cex)
26735
    {
26736
      this();
26737
      this.cex = cex;
26738
    }
26739
 
26740
    /**
26741
     * Performs a deep copy on <i>other</i>.
26742
     */
26743
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
26744
      if (other.isSetCex()) {
26745
        this.cex = new InventoryServiceException(other.cex);
26746
      }
26747
    }
26748
 
26749
    public resetAvailabilityForWarehouse_result deepCopy() {
26750
      return new resetAvailabilityForWarehouse_result(this);
26751
    }
26752
 
26753
    @Override
26754
    public void clear() {
26755
      this.cex = null;
26756
    }
26757
 
26758
    public InventoryServiceException getCex() {
26759
      return this.cex;
26760
    }
26761
 
26762
    public void setCex(InventoryServiceException cex) {
26763
      this.cex = cex;
26764
    }
26765
 
26766
    public void unsetCex() {
26767
      this.cex = null;
26768
    }
26769
 
26770
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
26771
    public boolean isSetCex() {
26772
      return this.cex != null;
26773
    }
26774
 
26775
    public void setCexIsSet(boolean value) {
26776
      if (!value) {
26777
        this.cex = null;
26778
      }
26779
    }
26780
 
26781
    public void setFieldValue(_Fields field, Object value) {
26782
      switch (field) {
26783
      case CEX:
26784
        if (value == null) {
26785
          unsetCex();
26786
        } else {
26787
          setCex((InventoryServiceException)value);
26788
        }
26789
        break;
26790
 
26791
      }
26792
    }
26793
 
26794
    public Object getFieldValue(_Fields field) {
26795
      switch (field) {
26796
      case CEX:
26797
        return getCex();
26798
 
26799
      }
26800
      throw new IllegalStateException();
26801
    }
26802
 
26803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26804
    public boolean isSet(_Fields field) {
26805
      if (field == null) {
26806
        throw new IllegalArgumentException();
26807
      }
26808
 
26809
      switch (field) {
26810
      case CEX:
26811
        return isSetCex();
26812
      }
26813
      throw new IllegalStateException();
26814
    }
26815
 
26816
    @Override
26817
    public boolean equals(Object that) {
26818
      if (that == null)
26819
        return false;
26820
      if (that instanceof resetAvailabilityForWarehouse_result)
26821
        return this.equals((resetAvailabilityForWarehouse_result)that);
26822
      return false;
26823
    }
26824
 
26825
    public boolean equals(resetAvailabilityForWarehouse_result that) {
26826
      if (that == null)
26827
        return false;
26828
 
26829
      boolean this_present_cex = true && this.isSetCex();
26830
      boolean that_present_cex = true && that.isSetCex();
26831
      if (this_present_cex || that_present_cex) {
26832
        if (!(this_present_cex && that_present_cex))
26833
          return false;
26834
        if (!this.cex.equals(that.cex))
26835
          return false;
26836
      }
26837
 
26838
      return true;
26839
    }
26840
 
26841
    @Override
26842
    public int hashCode() {
26843
      return 0;
26844
    }
26845
 
26846
    public int compareTo(resetAvailabilityForWarehouse_result other) {
26847
      if (!getClass().equals(other.getClass())) {
26848
        return getClass().getName().compareTo(other.getClass().getName());
26849
      }
26850
 
26851
      int lastComparison = 0;
26852
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
26853
 
26854
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
26855
      if (lastComparison != 0) {
26856
        return lastComparison;
26857
      }
26858
      if (isSetCex()) {
26859
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
26860
        if (lastComparison != 0) {
26861
          return lastComparison;
26862
        }
26863
      }
26864
      return 0;
26865
    }
26866
 
26867
    public _Fields fieldForId(int fieldId) {
26868
      return _Fields.findByThriftId(fieldId);
26869
    }
26870
 
26871
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26872
      org.apache.thrift.protocol.TField field;
26873
      iprot.readStructBegin();
26874
      while (true)
26875
      {
26876
        field = iprot.readFieldBegin();
26877
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26878
          break;
26879
        }
26880
        switch (field.id) {
26881
          case 1: // CEX
26882
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26883
              this.cex = new InventoryServiceException();
26884
              this.cex.read(iprot);
26885
            } else { 
26886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26887
            }
26888
            break;
26889
          default:
26890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26891
        }
26892
        iprot.readFieldEnd();
26893
      }
26894
      iprot.readStructEnd();
26895
      validate();
26896
    }
26897
 
26898
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26899
      oprot.writeStructBegin(STRUCT_DESC);
26900
 
26901
      if (this.isSetCex()) {
26902
        oprot.writeFieldBegin(CEX_FIELD_DESC);
26903
        this.cex.write(oprot);
26904
        oprot.writeFieldEnd();
26905
      }
26906
      oprot.writeFieldStop();
26907
      oprot.writeStructEnd();
26908
    }
26909
 
26910
    @Override
26911
    public String toString() {
26912
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
26913
      boolean first = true;
26914
 
26915
      sb.append("cex:");
26916
      if (this.cex == null) {
26917
        sb.append("null");
26918
      } else {
26919
        sb.append(this.cex);
26920
      }
26921
      first = false;
26922
      sb.append(")");
26923
      return sb.toString();
26924
    }
26925
 
26926
    public void validate() throws org.apache.thrift.TException {
26927
      // check for required fields
26928
    }
26929
 
26930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26931
      try {
26932
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26933
      } catch (org.apache.thrift.TException te) {
26934
        throw new java.io.IOException(te);
26935
      }
26936
    }
26937
 
26938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26939
      try {
26940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26941
      } catch (org.apache.thrift.TException te) {
26942
        throw new java.io.IOException(te);
26943
      }
26944
    }
26945
 
26946
  }
26947
 
26948
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
26949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
26950
 
26951
    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);
26952
 
26953
    private long warehouseId; // required
26954
 
26955
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26956
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26957
      WAREHOUSE_ID((short)1, "warehouseId");
26958
 
26959
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26960
 
26961
      static {
26962
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26963
          byName.put(field.getFieldName(), field);
26964
        }
26965
      }
26966
 
26967
      /**
26968
       * Find the _Fields constant that matches fieldId, or null if its not found.
26969
       */
26970
      public static _Fields findByThriftId(int fieldId) {
26971
        switch(fieldId) {
26972
          case 1: // WAREHOUSE_ID
26973
            return WAREHOUSE_ID;
26974
          default:
26975
            return null;
26976
        }
26977
      }
26978
 
26979
      /**
26980
       * Find the _Fields constant that matches fieldId, throwing an exception
26981
       * if it is not found.
26982
       */
26983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26984
        _Fields fields = findByThriftId(fieldId);
26985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26986
        return fields;
26987
      }
26988
 
26989
      /**
26990
       * Find the _Fields constant that matches name, or null if its not found.
26991
       */
26992
      public static _Fields findByName(String name) {
26993
        return byName.get(name);
26994
      }
26995
 
26996
      private final short _thriftId;
26997
      private final String _fieldName;
26998
 
26999
      _Fields(short thriftId, String fieldName) {
27000
        _thriftId = thriftId;
27001
        _fieldName = fieldName;
27002
      }
27003
 
27004
      public short getThriftFieldId() {
27005
        return _thriftId;
27006
      }
27007
 
27008
      public String getFieldName() {
27009
        return _fieldName;
27010
      }
27011
    }
27012
 
27013
    // isset id assignments
27014
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27015
    private BitSet __isset_bit_vector = new BitSet(1);
27016
 
27017
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27018
    static {
27019
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27020
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
27024
    }
27025
 
27026
    public getItemKeysToBeProcessed_args() {
27027
    }
27028
 
27029
    public getItemKeysToBeProcessed_args(
27030
      long warehouseId)
27031
    {
27032
      this();
27033
      this.warehouseId = warehouseId;
27034
      setWarehouseIdIsSet(true);
27035
    }
27036
 
27037
    /**
27038
     * Performs a deep copy on <i>other</i>.
27039
     */
27040
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
27041
      __isset_bit_vector.clear();
27042
      __isset_bit_vector.or(other.__isset_bit_vector);
27043
      this.warehouseId = other.warehouseId;
27044
    }
27045
 
27046
    public getItemKeysToBeProcessed_args deepCopy() {
27047
      return new getItemKeysToBeProcessed_args(this);
27048
    }
27049
 
27050
    @Override
27051
    public void clear() {
27052
      setWarehouseIdIsSet(false);
27053
      this.warehouseId = 0;
27054
    }
27055
 
27056
    public long getWarehouseId() {
27057
      return this.warehouseId;
27058
    }
27059
 
27060
    public void setWarehouseId(long warehouseId) {
27061
      this.warehouseId = warehouseId;
27062
      setWarehouseIdIsSet(true);
27063
    }
27064
 
27065
    public void unsetWarehouseId() {
27066
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27067
    }
27068
 
27069
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27070
    public boolean isSetWarehouseId() {
27071
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27072
    }
27073
 
27074
    public void setWarehouseIdIsSet(boolean value) {
27075
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27076
    }
27077
 
27078
    public void setFieldValue(_Fields field, Object value) {
27079
      switch (field) {
27080
      case WAREHOUSE_ID:
27081
        if (value == null) {
27082
          unsetWarehouseId();
27083
        } else {
27084
          setWarehouseId((Long)value);
27085
        }
27086
        break;
27087
 
27088
      }
27089
    }
27090
 
27091
    public Object getFieldValue(_Fields field) {
27092
      switch (field) {
27093
      case WAREHOUSE_ID:
27094
        return Long.valueOf(getWarehouseId());
27095
 
27096
      }
27097
      throw new IllegalStateException();
27098
    }
27099
 
27100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27101
    public boolean isSet(_Fields field) {
27102
      if (field == null) {
27103
        throw new IllegalArgumentException();
27104
      }
27105
 
27106
      switch (field) {
27107
      case WAREHOUSE_ID:
27108
        return isSetWarehouseId();
27109
      }
27110
      throw new IllegalStateException();
27111
    }
27112
 
27113
    @Override
27114
    public boolean equals(Object that) {
27115
      if (that == null)
27116
        return false;
27117
      if (that instanceof getItemKeysToBeProcessed_args)
27118
        return this.equals((getItemKeysToBeProcessed_args)that);
27119
      return false;
27120
    }
27121
 
27122
    public boolean equals(getItemKeysToBeProcessed_args that) {
27123
      if (that == null)
27124
        return false;
27125
 
27126
      boolean this_present_warehouseId = true;
27127
      boolean that_present_warehouseId = true;
27128
      if (this_present_warehouseId || that_present_warehouseId) {
27129
        if (!(this_present_warehouseId && that_present_warehouseId))
27130
          return false;
27131
        if (this.warehouseId != that.warehouseId)
27132
          return false;
27133
      }
27134
 
27135
      return true;
27136
    }
27137
 
27138
    @Override
27139
    public int hashCode() {
27140
      return 0;
27141
    }
27142
 
27143
    public int compareTo(getItemKeysToBeProcessed_args other) {
27144
      if (!getClass().equals(other.getClass())) {
27145
        return getClass().getName().compareTo(other.getClass().getName());
27146
      }
27147
 
27148
      int lastComparison = 0;
27149
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
27150
 
27151
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27152
      if (lastComparison != 0) {
27153
        return lastComparison;
27154
      }
27155
      if (isSetWarehouseId()) {
27156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27157
        if (lastComparison != 0) {
27158
          return lastComparison;
27159
        }
27160
      }
27161
      return 0;
27162
    }
27163
 
27164
    public _Fields fieldForId(int fieldId) {
27165
      return _Fields.findByThriftId(fieldId);
27166
    }
27167
 
27168
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27169
      org.apache.thrift.protocol.TField field;
27170
      iprot.readStructBegin();
27171
      while (true)
27172
      {
27173
        field = iprot.readFieldBegin();
27174
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27175
          break;
27176
        }
27177
        switch (field.id) {
27178
          case 1: // WAREHOUSE_ID
27179
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27180
              this.warehouseId = iprot.readI64();
27181
              setWarehouseIdIsSet(true);
27182
            } else { 
27183
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27184
            }
27185
            break;
27186
          default:
27187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27188
        }
27189
        iprot.readFieldEnd();
27190
      }
27191
      iprot.readStructEnd();
27192
      validate();
27193
    }
27194
 
27195
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27196
      validate();
27197
 
27198
      oprot.writeStructBegin(STRUCT_DESC);
27199
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27200
      oprot.writeI64(this.warehouseId);
27201
      oprot.writeFieldEnd();
27202
      oprot.writeFieldStop();
27203
      oprot.writeStructEnd();
27204
    }
27205
 
27206
    @Override
27207
    public String toString() {
27208
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
27209
      boolean first = true;
27210
 
27211
      sb.append("warehouseId:");
27212
      sb.append(this.warehouseId);
27213
      first = false;
27214
      sb.append(")");
27215
      return sb.toString();
27216
    }
27217
 
27218
    public void validate() throws org.apache.thrift.TException {
27219
      // check for required fields
27220
    }
27221
 
27222
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27223
      try {
27224
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27225
      } catch (org.apache.thrift.TException te) {
27226
        throw new java.io.IOException(te);
27227
      }
27228
    }
27229
 
27230
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27231
      try {
27232
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27233
      } catch (org.apache.thrift.TException te) {
27234
        throw new java.io.IOException(te);
27235
      }
27236
    }
27237
 
27238
  }
27239
 
27240
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
27241
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
27242
 
27243
    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);
27244
 
27245
    private List<String> success; // required
27246
 
27247
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27248
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27249
      SUCCESS((short)0, "success");
27250
 
27251
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27252
 
27253
      static {
27254
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27255
          byName.put(field.getFieldName(), field);
27256
        }
27257
      }
27258
 
27259
      /**
27260
       * Find the _Fields constant that matches fieldId, or null if its not found.
27261
       */
27262
      public static _Fields findByThriftId(int fieldId) {
27263
        switch(fieldId) {
27264
          case 0: // SUCCESS
27265
            return SUCCESS;
27266
          default:
27267
            return null;
27268
        }
27269
      }
27270
 
27271
      /**
27272
       * Find the _Fields constant that matches fieldId, throwing an exception
27273
       * if it is not found.
27274
       */
27275
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27276
        _Fields fields = findByThriftId(fieldId);
27277
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27278
        return fields;
27279
      }
27280
 
27281
      /**
27282
       * Find the _Fields constant that matches name, or null if its not found.
27283
       */
27284
      public static _Fields findByName(String name) {
27285
        return byName.get(name);
27286
      }
27287
 
27288
      private final short _thriftId;
27289
      private final String _fieldName;
27290
 
27291
      _Fields(short thriftId, String fieldName) {
27292
        _thriftId = thriftId;
27293
        _fieldName = fieldName;
27294
      }
27295
 
27296
      public short getThriftFieldId() {
27297
        return _thriftId;
27298
      }
27299
 
27300
      public String getFieldName() {
27301
        return _fieldName;
27302
      }
27303
    }
27304
 
27305
    // isset id assignments
27306
 
27307
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27308
    static {
27309
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27310
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27311
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27312
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
27313
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27314
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
27315
    }
27316
 
27317
    public getItemKeysToBeProcessed_result() {
27318
    }
27319
 
27320
    public getItemKeysToBeProcessed_result(
27321
      List<String> success)
27322
    {
27323
      this();
27324
      this.success = success;
27325
    }
27326
 
27327
    /**
27328
     * Performs a deep copy on <i>other</i>.
27329
     */
27330
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
27331
      if (other.isSetSuccess()) {
27332
        List<String> __this__success = new ArrayList<String>();
27333
        for (String other_element : other.success) {
27334
          __this__success.add(other_element);
27335
        }
27336
        this.success = __this__success;
27337
      }
27338
    }
27339
 
27340
    public getItemKeysToBeProcessed_result deepCopy() {
27341
      return new getItemKeysToBeProcessed_result(this);
27342
    }
27343
 
27344
    @Override
27345
    public void clear() {
27346
      this.success = null;
27347
    }
27348
 
27349
    public int getSuccessSize() {
27350
      return (this.success == null) ? 0 : this.success.size();
27351
    }
27352
 
27353
    public java.util.Iterator<String> getSuccessIterator() {
27354
      return (this.success == null) ? null : this.success.iterator();
27355
    }
27356
 
27357
    public void addToSuccess(String elem) {
27358
      if (this.success == null) {
27359
        this.success = new ArrayList<String>();
27360
      }
27361
      this.success.add(elem);
27362
    }
27363
 
27364
    public List<String> getSuccess() {
27365
      return this.success;
27366
    }
27367
 
27368
    public void setSuccess(List<String> success) {
27369
      this.success = success;
27370
    }
27371
 
27372
    public void unsetSuccess() {
27373
      this.success = null;
27374
    }
27375
 
27376
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27377
    public boolean isSetSuccess() {
27378
      return this.success != null;
27379
    }
27380
 
27381
    public void setSuccessIsSet(boolean value) {
27382
      if (!value) {
27383
        this.success = null;
27384
      }
27385
    }
27386
 
27387
    public void setFieldValue(_Fields field, Object value) {
27388
      switch (field) {
27389
      case SUCCESS:
27390
        if (value == null) {
27391
          unsetSuccess();
27392
        } else {
27393
          setSuccess((List<String>)value);
27394
        }
27395
        break;
27396
 
27397
      }
27398
    }
27399
 
27400
    public Object getFieldValue(_Fields field) {
27401
      switch (field) {
27402
      case SUCCESS:
27403
        return getSuccess();
27404
 
27405
      }
27406
      throw new IllegalStateException();
27407
    }
27408
 
27409
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27410
    public boolean isSet(_Fields field) {
27411
      if (field == null) {
27412
        throw new IllegalArgumentException();
27413
      }
27414
 
27415
      switch (field) {
27416
      case SUCCESS:
27417
        return isSetSuccess();
27418
      }
27419
      throw new IllegalStateException();
27420
    }
27421
 
27422
    @Override
27423
    public boolean equals(Object that) {
27424
      if (that == null)
27425
        return false;
27426
      if (that instanceof getItemKeysToBeProcessed_result)
27427
        return this.equals((getItemKeysToBeProcessed_result)that);
27428
      return false;
27429
    }
27430
 
27431
    public boolean equals(getItemKeysToBeProcessed_result that) {
27432
      if (that == null)
27433
        return false;
27434
 
27435
      boolean this_present_success = true && this.isSetSuccess();
27436
      boolean that_present_success = true && that.isSetSuccess();
27437
      if (this_present_success || that_present_success) {
27438
        if (!(this_present_success && that_present_success))
27439
          return false;
27440
        if (!this.success.equals(that.success))
27441
          return false;
27442
      }
27443
 
27444
      return true;
27445
    }
27446
 
27447
    @Override
27448
    public int hashCode() {
27449
      return 0;
27450
    }
27451
 
27452
    public int compareTo(getItemKeysToBeProcessed_result other) {
27453
      if (!getClass().equals(other.getClass())) {
27454
        return getClass().getName().compareTo(other.getClass().getName());
27455
      }
27456
 
27457
      int lastComparison = 0;
27458
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
27459
 
27460
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27461
      if (lastComparison != 0) {
27462
        return lastComparison;
27463
      }
27464
      if (isSetSuccess()) {
27465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27466
        if (lastComparison != 0) {
27467
          return lastComparison;
27468
        }
27469
      }
27470
      return 0;
27471
    }
27472
 
27473
    public _Fields fieldForId(int fieldId) {
27474
      return _Fields.findByThriftId(fieldId);
27475
    }
27476
 
27477
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27478
      org.apache.thrift.protocol.TField field;
27479
      iprot.readStructBegin();
27480
      while (true)
27481
      {
27482
        field = iprot.readFieldBegin();
27483
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27484
          break;
27485
        }
27486
        switch (field.id) {
27487
          case 0: // SUCCESS
27488
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27489
              {
8182 amar.kumar 27490
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
27491
                this.success = new ArrayList<String>(_list57.size);
27492
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
5945 mandeep.dh 27493
                {
8182 amar.kumar 27494
                  String _elem59; // required
27495
                  _elem59 = iprot.readString();
27496
                  this.success.add(_elem59);
5945 mandeep.dh 27497
                }
27498
                iprot.readListEnd();
27499
              }
27500
            } else { 
27501
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27502
            }
27503
            break;
27504
          default:
27505
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27506
        }
27507
        iprot.readFieldEnd();
27508
      }
27509
      iprot.readStructEnd();
27510
      validate();
27511
    }
27512
 
27513
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27514
      oprot.writeStructBegin(STRUCT_DESC);
27515
 
27516
      if (this.isSetSuccess()) {
27517
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27518
        {
27519
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
8182 amar.kumar 27520
          for (String _iter60 : this.success)
5945 mandeep.dh 27521
          {
8182 amar.kumar 27522
            oprot.writeString(_iter60);
5945 mandeep.dh 27523
          }
27524
          oprot.writeListEnd();
27525
        }
27526
        oprot.writeFieldEnd();
27527
      }
27528
      oprot.writeFieldStop();
27529
      oprot.writeStructEnd();
27530
    }
27531
 
27532
    @Override
27533
    public String toString() {
27534
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
27535
      boolean first = true;
27536
 
27537
      sb.append("success:");
27538
      if (this.success == null) {
27539
        sb.append("null");
27540
      } else {
27541
        sb.append(this.success);
27542
      }
27543
      first = false;
27544
      sb.append(")");
27545
      return sb.toString();
27546
    }
27547
 
27548
    public void validate() throws org.apache.thrift.TException {
27549
      // check for required fields
27550
    }
27551
 
27552
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27553
      try {
27554
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27555
      } catch (org.apache.thrift.TException te) {
27556
        throw new java.io.IOException(te);
27557
      }
27558
    }
27559
 
27560
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27561
      try {
27562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27563
      } catch (org.apache.thrift.TException te) {
27564
        throw new java.io.IOException(te);
27565
      }
27566
    }
27567
 
27568
  }
27569
 
27570
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
27571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
27572
 
27573
    private static final org.apache.thrift.protocol.TField ITEM_KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("itemKey", org.apache.thrift.protocol.TType.STRING, (short)1);
27574
    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)2);
27575
 
27576
    private String itemKey; // required
27577
    private long warehouseId; // required
27578
 
27579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27581
      ITEM_KEY((short)1, "itemKey"),
27582
      WAREHOUSE_ID((short)2, "warehouseId");
27583
 
27584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27585
 
27586
      static {
27587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27588
          byName.put(field.getFieldName(), field);
27589
        }
27590
      }
27591
 
27592
      /**
27593
       * Find the _Fields constant that matches fieldId, or null if its not found.
27594
       */
27595
      public static _Fields findByThriftId(int fieldId) {
27596
        switch(fieldId) {
27597
          case 1: // ITEM_KEY
27598
            return ITEM_KEY;
27599
          case 2: // WAREHOUSE_ID
27600
            return WAREHOUSE_ID;
27601
          default:
27602
            return null;
27603
        }
27604
      }
27605
 
27606
      /**
27607
       * Find the _Fields constant that matches fieldId, throwing an exception
27608
       * if it is not found.
27609
       */
27610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27611
        _Fields fields = findByThriftId(fieldId);
27612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27613
        return fields;
27614
      }
27615
 
27616
      /**
27617
       * Find the _Fields constant that matches name, or null if its not found.
27618
       */
27619
      public static _Fields findByName(String name) {
27620
        return byName.get(name);
27621
      }
27622
 
27623
      private final short _thriftId;
27624
      private final String _fieldName;
27625
 
27626
      _Fields(short thriftId, String fieldName) {
27627
        _thriftId = thriftId;
27628
        _fieldName = fieldName;
27629
      }
27630
 
27631
      public short getThriftFieldId() {
27632
        return _thriftId;
27633
      }
27634
 
27635
      public String getFieldName() {
27636
        return _fieldName;
27637
      }
27638
    }
27639
 
27640
    // isset id assignments
27641
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27642
    private BitSet __isset_bit_vector = new BitSet(1);
27643
 
27644
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27645
    static {
27646
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27647
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
27649
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
27653
    }
27654
 
27655
    public markMissedInventoryUpdatesAsProcessed_args() {
27656
    }
27657
 
27658
    public markMissedInventoryUpdatesAsProcessed_args(
27659
      String itemKey,
27660
      long warehouseId)
27661
    {
27662
      this();
27663
      this.itemKey = itemKey;
27664
      this.warehouseId = warehouseId;
27665
      setWarehouseIdIsSet(true);
27666
    }
27667
 
27668
    /**
27669
     * Performs a deep copy on <i>other</i>.
27670
     */
27671
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
27672
      __isset_bit_vector.clear();
27673
      __isset_bit_vector.or(other.__isset_bit_vector);
27674
      if (other.isSetItemKey()) {
27675
        this.itemKey = other.itemKey;
27676
      }
27677
      this.warehouseId = other.warehouseId;
27678
    }
27679
 
27680
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
27681
      return new markMissedInventoryUpdatesAsProcessed_args(this);
27682
    }
27683
 
27684
    @Override
27685
    public void clear() {
27686
      this.itemKey = null;
27687
      setWarehouseIdIsSet(false);
27688
      this.warehouseId = 0;
27689
    }
27690
 
27691
    public String getItemKey() {
27692
      return this.itemKey;
27693
    }
27694
 
27695
    public void setItemKey(String itemKey) {
27696
      this.itemKey = itemKey;
27697
    }
27698
 
27699
    public void unsetItemKey() {
27700
      this.itemKey = null;
27701
    }
27702
 
27703
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
27704
    public boolean isSetItemKey() {
27705
      return this.itemKey != null;
27706
    }
27707
 
27708
    public void setItemKeyIsSet(boolean value) {
27709
      if (!value) {
27710
        this.itemKey = null;
27711
      }
27712
    }
27713
 
27714
    public long getWarehouseId() {
27715
      return this.warehouseId;
27716
    }
27717
 
27718
    public void setWarehouseId(long warehouseId) {
27719
      this.warehouseId = warehouseId;
27720
      setWarehouseIdIsSet(true);
27721
    }
27722
 
27723
    public void unsetWarehouseId() {
27724
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27725
    }
27726
 
27727
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27728
    public boolean isSetWarehouseId() {
27729
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27730
    }
27731
 
27732
    public void setWarehouseIdIsSet(boolean value) {
27733
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27734
    }
27735
 
27736
    public void setFieldValue(_Fields field, Object value) {
27737
      switch (field) {
27738
      case ITEM_KEY:
27739
        if (value == null) {
27740
          unsetItemKey();
27741
        } else {
27742
          setItemKey((String)value);
27743
        }
27744
        break;
27745
 
27746
      case WAREHOUSE_ID:
27747
        if (value == null) {
27748
          unsetWarehouseId();
27749
        } else {
27750
          setWarehouseId((Long)value);
27751
        }
27752
        break;
27753
 
27754
      }
27755
    }
27756
 
27757
    public Object getFieldValue(_Fields field) {
27758
      switch (field) {
27759
      case ITEM_KEY:
27760
        return getItemKey();
27761
 
27762
      case WAREHOUSE_ID:
27763
        return Long.valueOf(getWarehouseId());
27764
 
27765
      }
27766
      throw new IllegalStateException();
27767
    }
27768
 
27769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27770
    public boolean isSet(_Fields field) {
27771
      if (field == null) {
27772
        throw new IllegalArgumentException();
27773
      }
27774
 
27775
      switch (field) {
27776
      case ITEM_KEY:
27777
        return isSetItemKey();
27778
      case WAREHOUSE_ID:
27779
        return isSetWarehouseId();
27780
      }
27781
      throw new IllegalStateException();
27782
    }
27783
 
27784
    @Override
27785
    public boolean equals(Object that) {
27786
      if (that == null)
27787
        return false;
27788
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
27789
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
27790
      return false;
27791
    }
27792
 
27793
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
27794
      if (that == null)
27795
        return false;
27796
 
27797
      boolean this_present_itemKey = true && this.isSetItemKey();
27798
      boolean that_present_itemKey = true && that.isSetItemKey();
27799
      if (this_present_itemKey || that_present_itemKey) {
27800
        if (!(this_present_itemKey && that_present_itemKey))
27801
          return false;
27802
        if (!this.itemKey.equals(that.itemKey))
27803
          return false;
27804
      }
27805
 
27806
      boolean this_present_warehouseId = true;
27807
      boolean that_present_warehouseId = true;
27808
      if (this_present_warehouseId || that_present_warehouseId) {
27809
        if (!(this_present_warehouseId && that_present_warehouseId))
27810
          return false;
27811
        if (this.warehouseId != that.warehouseId)
27812
          return false;
27813
      }
27814
 
27815
      return true;
27816
    }
27817
 
27818
    @Override
27819
    public int hashCode() {
27820
      return 0;
27821
    }
27822
 
27823
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
27824
      if (!getClass().equals(other.getClass())) {
27825
        return getClass().getName().compareTo(other.getClass().getName());
27826
      }
27827
 
27828
      int lastComparison = 0;
27829
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
27830
 
27831
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
27832
      if (lastComparison != 0) {
27833
        return lastComparison;
27834
      }
27835
      if (isSetItemKey()) {
27836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
27837
        if (lastComparison != 0) {
27838
          return lastComparison;
27839
        }
27840
      }
27841
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27842
      if (lastComparison != 0) {
27843
        return lastComparison;
27844
      }
27845
      if (isSetWarehouseId()) {
27846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27847
        if (lastComparison != 0) {
27848
          return lastComparison;
27849
        }
27850
      }
27851
      return 0;
27852
    }
27853
 
27854
    public _Fields fieldForId(int fieldId) {
27855
      return _Fields.findByThriftId(fieldId);
27856
    }
27857
 
27858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27859
      org.apache.thrift.protocol.TField field;
27860
      iprot.readStructBegin();
27861
      while (true)
27862
      {
27863
        field = iprot.readFieldBegin();
27864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27865
          break;
27866
        }
27867
        switch (field.id) {
27868
          case 1: // ITEM_KEY
27869
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
27870
              this.itemKey = iprot.readString();
27871
            } else { 
27872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27873
            }
27874
            break;
27875
          case 2: // WAREHOUSE_ID
27876
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27877
              this.warehouseId = iprot.readI64();
27878
              setWarehouseIdIsSet(true);
27879
            } else { 
27880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27881
            }
27882
            break;
27883
          default:
27884
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27885
        }
27886
        iprot.readFieldEnd();
27887
      }
27888
      iprot.readStructEnd();
27889
      validate();
27890
    }
27891
 
27892
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27893
      validate();
27894
 
27895
      oprot.writeStructBegin(STRUCT_DESC);
27896
      if (this.itemKey != null) {
27897
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
27898
        oprot.writeString(this.itemKey);
27899
        oprot.writeFieldEnd();
27900
      }
27901
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27902
      oprot.writeI64(this.warehouseId);
27903
      oprot.writeFieldEnd();
27904
      oprot.writeFieldStop();
27905
      oprot.writeStructEnd();
27906
    }
27907
 
27908
    @Override
27909
    public String toString() {
27910
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
27911
      boolean first = true;
27912
 
27913
      sb.append("itemKey:");
27914
      if (this.itemKey == null) {
27915
        sb.append("null");
27916
      } else {
27917
        sb.append(this.itemKey);
27918
      }
27919
      first = false;
27920
      if (!first) sb.append(", ");
27921
      sb.append("warehouseId:");
27922
      sb.append(this.warehouseId);
27923
      first = false;
27924
      sb.append(")");
27925
      return sb.toString();
27926
    }
27927
 
27928
    public void validate() throws org.apache.thrift.TException {
27929
      // check for required fields
27930
    }
27931
 
27932
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27933
      try {
27934
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27935
      } catch (org.apache.thrift.TException te) {
27936
        throw new java.io.IOException(te);
27937
      }
27938
    }
27939
 
27940
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27941
      try {
27942
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27943
      } catch (org.apache.thrift.TException te) {
27944
        throw new java.io.IOException(te);
27945
      }
27946
    }
27947
 
27948
  }
27949
 
27950
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
27951
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
27952
 
27953
 
27954
 
27955
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27956
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27957
;
27958
 
27959
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27960
 
27961
      static {
27962
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27963
          byName.put(field.getFieldName(), field);
27964
        }
27965
      }
27966
 
27967
      /**
27968
       * Find the _Fields constant that matches fieldId, or null if its not found.
27969
       */
27970
      public static _Fields findByThriftId(int fieldId) {
27971
        switch(fieldId) {
27972
          default:
27973
            return null;
27974
        }
27975
      }
27976
 
27977
      /**
27978
       * Find the _Fields constant that matches fieldId, throwing an exception
27979
       * if it is not found.
27980
       */
27981
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27982
        _Fields fields = findByThriftId(fieldId);
27983
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27984
        return fields;
27985
      }
27986
 
27987
      /**
27988
       * Find the _Fields constant that matches name, or null if its not found.
27989
       */
27990
      public static _Fields findByName(String name) {
27991
        return byName.get(name);
27992
      }
27993
 
27994
      private final short _thriftId;
27995
      private final String _fieldName;
27996
 
27997
      _Fields(short thriftId, String fieldName) {
27998
        _thriftId = thriftId;
27999
        _fieldName = fieldName;
28000
      }
28001
 
28002
      public short getThriftFieldId() {
28003
        return _thriftId;
28004
      }
28005
 
28006
      public String getFieldName() {
28007
        return _fieldName;
28008
      }
28009
    }
28010
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28011
    static {
28012
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28013
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28014
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
28015
    }
28016
 
28017
    public markMissedInventoryUpdatesAsProcessed_result() {
28018
    }
28019
 
28020
    /**
28021
     * Performs a deep copy on <i>other</i>.
28022
     */
28023
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
28024
    }
28025
 
28026
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
28027
      return new markMissedInventoryUpdatesAsProcessed_result(this);
28028
    }
28029
 
28030
    @Override
28031
    public void clear() {
28032
    }
28033
 
28034
    public void setFieldValue(_Fields field, Object value) {
28035
      switch (field) {
28036
      }
28037
    }
28038
 
28039
    public Object getFieldValue(_Fields field) {
28040
      switch (field) {
28041
      }
28042
      throw new IllegalStateException();
28043
    }
28044
 
28045
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28046
    public boolean isSet(_Fields field) {
28047
      if (field == null) {
28048
        throw new IllegalArgumentException();
28049
      }
28050
 
28051
      switch (field) {
28052
      }
28053
      throw new IllegalStateException();
28054
    }
28055
 
28056
    @Override
28057
    public boolean equals(Object that) {
28058
      if (that == null)
28059
        return false;
28060
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
28061
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
28062
      return false;
28063
    }
28064
 
28065
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
28066
      if (that == null)
28067
        return false;
28068
 
28069
      return true;
28070
    }
28071
 
28072
    @Override
28073
    public int hashCode() {
28074
      return 0;
28075
    }
28076
 
28077
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
28078
      if (!getClass().equals(other.getClass())) {
28079
        return getClass().getName().compareTo(other.getClass().getName());
28080
      }
28081
 
28082
      int lastComparison = 0;
28083
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
28084
 
28085
      return 0;
28086
    }
28087
 
28088
    public _Fields fieldForId(int fieldId) {
28089
      return _Fields.findByThriftId(fieldId);
28090
    }
28091
 
28092
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28093
      org.apache.thrift.protocol.TField field;
28094
      iprot.readStructBegin();
28095
      while (true)
28096
      {
28097
        field = iprot.readFieldBegin();
28098
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28099
          break;
28100
        }
28101
        switch (field.id) {
28102
          default:
28103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28104
        }
28105
        iprot.readFieldEnd();
28106
      }
28107
      iprot.readStructEnd();
28108
      validate();
28109
    }
28110
 
28111
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28112
      oprot.writeStructBegin(STRUCT_DESC);
28113
 
28114
      oprot.writeFieldStop();
28115
      oprot.writeStructEnd();
28116
    }
28117
 
28118
    @Override
28119
    public String toString() {
28120
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
28121
      boolean first = true;
28122
 
28123
      sb.append(")");
28124
      return sb.toString();
28125
    }
28126
 
28127
    public void validate() throws org.apache.thrift.TException {
28128
      // check for required fields
28129
    }
28130
 
28131
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28132
      try {
28133
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28134
      } catch (org.apache.thrift.TException te) {
28135
        throw new java.io.IOException(te);
28136
      }
28137
    }
28138
 
28139
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28140
      try {
28141
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28142
      } catch (org.apache.thrift.TException te) {
28143
        throw new java.io.IOException(te);
28144
      }
28145
    }
28146
 
28147
  }
28148
 
28149
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
28150
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
28151
 
28152
 
28153
 
28154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28156
;
28157
 
28158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28159
 
28160
      static {
28161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28162
          byName.put(field.getFieldName(), field);
28163
        }
28164
      }
28165
 
28166
      /**
28167
       * Find the _Fields constant that matches fieldId, or null if its not found.
28168
       */
28169
      public static _Fields findByThriftId(int fieldId) {
28170
        switch(fieldId) {
28171
          default:
28172
            return null;
28173
        }
28174
      }
28175
 
28176
      /**
28177
       * Find the _Fields constant that matches fieldId, throwing an exception
28178
       * if it is not found.
28179
       */
28180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28181
        _Fields fields = findByThriftId(fieldId);
28182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28183
        return fields;
28184
      }
28185
 
28186
      /**
28187
       * Find the _Fields constant that matches name, or null if its not found.
28188
       */
28189
      public static _Fields findByName(String name) {
28190
        return byName.get(name);
28191
      }
28192
 
28193
      private final short _thriftId;
28194
      private final String _fieldName;
28195
 
28196
      _Fields(short thriftId, String fieldName) {
28197
        _thriftId = thriftId;
28198
        _fieldName = fieldName;
28199
      }
28200
 
28201
      public short getThriftFieldId() {
28202
        return _thriftId;
28203
      }
28204
 
28205
      public String getFieldName() {
28206
        return _fieldName;
28207
      }
28208
    }
28209
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28210
    static {
28211
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28212
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28213
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
28214
    }
28215
 
28216
    public getIgnoredItemKeys_args() {
28217
    }
28218
 
28219
    /**
28220
     * Performs a deep copy on <i>other</i>.
28221
     */
28222
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
28223
    }
28224
 
28225
    public getIgnoredItemKeys_args deepCopy() {
28226
      return new getIgnoredItemKeys_args(this);
28227
    }
28228
 
28229
    @Override
28230
    public void clear() {
28231
    }
28232
 
28233
    public void setFieldValue(_Fields field, Object value) {
28234
      switch (field) {
28235
      }
28236
    }
28237
 
28238
    public Object getFieldValue(_Fields field) {
28239
      switch (field) {
28240
      }
28241
      throw new IllegalStateException();
28242
    }
28243
 
28244
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28245
    public boolean isSet(_Fields field) {
28246
      if (field == null) {
28247
        throw new IllegalArgumentException();
28248
      }
28249
 
28250
      switch (field) {
28251
      }
28252
      throw new IllegalStateException();
28253
    }
28254
 
28255
    @Override
28256
    public boolean equals(Object that) {
28257
      if (that == null)
28258
        return false;
28259
      if (that instanceof getIgnoredItemKeys_args)
28260
        return this.equals((getIgnoredItemKeys_args)that);
28261
      return false;
28262
    }
28263
 
28264
    public boolean equals(getIgnoredItemKeys_args that) {
28265
      if (that == null)
28266
        return false;
28267
 
28268
      return true;
28269
    }
28270
 
28271
    @Override
28272
    public int hashCode() {
28273
      return 0;
28274
    }
28275
 
28276
    public int compareTo(getIgnoredItemKeys_args other) {
28277
      if (!getClass().equals(other.getClass())) {
28278
        return getClass().getName().compareTo(other.getClass().getName());
28279
      }
28280
 
28281
      int lastComparison = 0;
28282
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
28283
 
28284
      return 0;
28285
    }
28286
 
28287
    public _Fields fieldForId(int fieldId) {
28288
      return _Fields.findByThriftId(fieldId);
28289
    }
28290
 
28291
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28292
      org.apache.thrift.protocol.TField field;
28293
      iprot.readStructBegin();
28294
      while (true)
28295
      {
28296
        field = iprot.readFieldBegin();
28297
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28298
          break;
28299
        }
28300
        switch (field.id) {
28301
          default:
28302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28303
        }
28304
        iprot.readFieldEnd();
28305
      }
28306
      iprot.readStructEnd();
28307
      validate();
28308
    }
28309
 
28310
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28311
      validate();
28312
 
28313
      oprot.writeStructBegin(STRUCT_DESC);
28314
      oprot.writeFieldStop();
28315
      oprot.writeStructEnd();
28316
    }
28317
 
28318
    @Override
28319
    public String toString() {
28320
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
28321
      boolean first = true;
28322
 
28323
      sb.append(")");
28324
      return sb.toString();
28325
    }
28326
 
28327
    public void validate() throws org.apache.thrift.TException {
28328
      // check for required fields
28329
    }
28330
 
28331
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28332
      try {
28333
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28334
      } catch (org.apache.thrift.TException te) {
28335
        throw new java.io.IOException(te);
28336
      }
28337
    }
28338
 
28339
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28340
      try {
28341
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28342
      } catch (org.apache.thrift.TException te) {
28343
        throw new java.io.IOException(te);
28344
      }
28345
    }
28346
 
28347
  }
28348
 
28349
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
28350
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
28351
 
28352
    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);
28353
 
28354
    private Map<String,Map<Long,Long>> success; // required
28355
 
28356
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28357
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28358
      SUCCESS((short)0, "success");
28359
 
28360
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28361
 
28362
      static {
28363
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28364
          byName.put(field.getFieldName(), field);
28365
        }
28366
      }
28367
 
28368
      /**
28369
       * Find the _Fields constant that matches fieldId, or null if its not found.
28370
       */
28371
      public static _Fields findByThriftId(int fieldId) {
28372
        switch(fieldId) {
28373
          case 0: // SUCCESS
28374
            return SUCCESS;
28375
          default:
28376
            return null;
28377
        }
28378
      }
28379
 
28380
      /**
28381
       * Find the _Fields constant that matches fieldId, throwing an exception
28382
       * if it is not found.
28383
       */
28384
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28385
        _Fields fields = findByThriftId(fieldId);
28386
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28387
        return fields;
28388
      }
28389
 
28390
      /**
28391
       * Find the _Fields constant that matches name, or null if its not found.
28392
       */
28393
      public static _Fields findByName(String name) {
28394
        return byName.get(name);
28395
      }
28396
 
28397
      private final short _thriftId;
28398
      private final String _fieldName;
28399
 
28400
      _Fields(short thriftId, String fieldName) {
28401
        _thriftId = thriftId;
28402
        _fieldName = fieldName;
28403
      }
28404
 
28405
      public short getThriftFieldId() {
28406
        return _thriftId;
28407
      }
28408
 
28409
      public String getFieldName() {
28410
        return _fieldName;
28411
      }
28412
    }
28413
 
28414
    // isset id assignments
28415
 
28416
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28417
    static {
28418
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28419
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28420
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
28421
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
28422
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
28423
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
28424
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
28425
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28426
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
28427
    }
28428
 
28429
    public getIgnoredItemKeys_result() {
28430
    }
28431
 
28432
    public getIgnoredItemKeys_result(
28433
      Map<String,Map<Long,Long>> success)
28434
    {
28435
      this();
28436
      this.success = success;
28437
    }
28438
 
28439
    /**
28440
     * Performs a deep copy on <i>other</i>.
28441
     */
28442
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
28443
      if (other.isSetSuccess()) {
28444
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
28445
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
28446
 
28447
          String other_element_key = other_element.getKey();
28448
          Map<Long,Long> other_element_value = other_element.getValue();
28449
 
28450
          String __this__success_copy_key = other_element_key;
28451
 
28452
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
28453
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
28454
 
28455
            Long other_element_value_element_key = other_element_value_element.getKey();
28456
            Long other_element_value_element_value = other_element_value_element.getValue();
28457
 
28458
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
28459
 
28460
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
28461
 
28462
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
28463
          }
28464
 
28465
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
28466
        }
28467
        this.success = __this__success;
28468
      }
28469
    }
28470
 
28471
    public getIgnoredItemKeys_result deepCopy() {
28472
      return new getIgnoredItemKeys_result(this);
28473
    }
28474
 
28475
    @Override
28476
    public void clear() {
28477
      this.success = null;
28478
    }
28479
 
28480
    public int getSuccessSize() {
28481
      return (this.success == null) ? 0 : this.success.size();
28482
    }
28483
 
28484
    public void putToSuccess(String key, Map<Long,Long> val) {
28485
      if (this.success == null) {
28486
        this.success = new HashMap<String,Map<Long,Long>>();
28487
      }
28488
      this.success.put(key, val);
28489
    }
28490
 
28491
    public Map<String,Map<Long,Long>> getSuccess() {
28492
      return this.success;
28493
    }
28494
 
28495
    public void setSuccess(Map<String,Map<Long,Long>> success) {
28496
      this.success = success;
28497
    }
28498
 
28499
    public void unsetSuccess() {
28500
      this.success = null;
28501
    }
28502
 
28503
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28504
    public boolean isSetSuccess() {
28505
      return this.success != null;
28506
    }
28507
 
28508
    public void setSuccessIsSet(boolean value) {
28509
      if (!value) {
28510
        this.success = null;
28511
      }
28512
    }
28513
 
28514
    public void setFieldValue(_Fields field, Object value) {
28515
      switch (field) {
28516
      case SUCCESS:
28517
        if (value == null) {
28518
          unsetSuccess();
28519
        } else {
28520
          setSuccess((Map<String,Map<Long,Long>>)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
      }
28533
      throw new IllegalStateException();
28534
    }
28535
 
28536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28537
    public boolean isSet(_Fields field) {
28538
      if (field == null) {
28539
        throw new IllegalArgumentException();
28540
      }
28541
 
28542
      switch (field) {
28543
      case SUCCESS:
28544
        return isSetSuccess();
28545
      }
28546
      throw new IllegalStateException();
28547
    }
28548
 
28549
    @Override
28550
    public boolean equals(Object that) {
28551
      if (that == null)
28552
        return false;
28553
      if (that instanceof getIgnoredItemKeys_result)
28554
        return this.equals((getIgnoredItemKeys_result)that);
28555
      return false;
28556
    }
28557
 
28558
    public boolean equals(getIgnoredItemKeys_result that) {
28559
      if (that == null)
28560
        return false;
28561
 
28562
      boolean this_present_success = true && this.isSetSuccess();
28563
      boolean that_present_success = true && that.isSetSuccess();
28564
      if (this_present_success || that_present_success) {
28565
        if (!(this_present_success && that_present_success))
28566
          return false;
28567
        if (!this.success.equals(that.success))
28568
          return false;
28569
      }
28570
 
28571
      return true;
28572
    }
28573
 
28574
    @Override
28575
    public int hashCode() {
28576
      return 0;
28577
    }
28578
 
28579
    public int compareTo(getIgnoredItemKeys_result other) {
28580
      if (!getClass().equals(other.getClass())) {
28581
        return getClass().getName().compareTo(other.getClass().getName());
28582
      }
28583
 
28584
      int lastComparison = 0;
28585
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
28586
 
28587
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28588
      if (lastComparison != 0) {
28589
        return lastComparison;
28590
      }
28591
      if (isSetSuccess()) {
28592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28593
        if (lastComparison != 0) {
28594
          return lastComparison;
28595
        }
28596
      }
28597
      return 0;
28598
    }
28599
 
28600
    public _Fields fieldForId(int fieldId) {
28601
      return _Fields.findByThriftId(fieldId);
28602
    }
28603
 
28604
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28605
      org.apache.thrift.protocol.TField field;
28606
      iprot.readStructBegin();
28607
      while (true)
28608
      {
28609
        field = iprot.readFieldBegin();
28610
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28611
          break;
28612
        }
28613
        switch (field.id) {
28614
          case 0: // SUCCESS
28615
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
28616
              {
8182 amar.kumar 28617
                org.apache.thrift.protocol.TMap _map61 = iprot.readMapBegin();
28618
                this.success = new HashMap<String,Map<Long,Long>>(2*_map61.size);
28619
                for (int _i62 = 0; _i62 < _map61.size; ++_i62)
5945 mandeep.dh 28620
                {
8182 amar.kumar 28621
                  String _key63; // required
28622
                  Map<Long,Long> _val64; // required
28623
                  _key63 = iprot.readString();
5945 mandeep.dh 28624
                  {
8182 amar.kumar 28625
                    org.apache.thrift.protocol.TMap _map65 = iprot.readMapBegin();
28626
                    _val64 = new HashMap<Long,Long>(2*_map65.size);
28627
                    for (int _i66 = 0; _i66 < _map65.size; ++_i66)
5945 mandeep.dh 28628
                    {
8182 amar.kumar 28629
                      long _key67; // required
28630
                      long _val68; // required
28631
                      _key67 = iprot.readI64();
28632
                      _val68 = iprot.readI64();
28633
                      _val64.put(_key67, _val68);
5945 mandeep.dh 28634
                    }
28635
                    iprot.readMapEnd();
28636
                  }
8182 amar.kumar 28637
                  this.success.put(_key63, _val64);
5945 mandeep.dh 28638
                }
28639
                iprot.readMapEnd();
28640
              }
28641
            } else { 
28642
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28643
            }
28644
            break;
28645
          default:
28646
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28647
        }
28648
        iprot.readFieldEnd();
28649
      }
28650
      iprot.readStructEnd();
28651
      validate();
28652
    }
28653
 
28654
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28655
      oprot.writeStructBegin(STRUCT_DESC);
28656
 
28657
      if (this.isSetSuccess()) {
28658
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28659
        {
28660
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
8182 amar.kumar 28661
          for (Map.Entry<String, Map<Long,Long>> _iter69 : this.success.entrySet())
5945 mandeep.dh 28662
          {
8182 amar.kumar 28663
            oprot.writeString(_iter69.getKey());
5945 mandeep.dh 28664
            {
8182 amar.kumar 28665
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter69.getValue().size()));
28666
              for (Map.Entry<Long, Long> _iter70 : _iter69.getValue().entrySet())
5945 mandeep.dh 28667
              {
8182 amar.kumar 28668
                oprot.writeI64(_iter70.getKey());
28669
                oprot.writeI64(_iter70.getValue());
5945 mandeep.dh 28670
              }
28671
              oprot.writeMapEnd();
28672
            }
28673
          }
28674
          oprot.writeMapEnd();
28675
        }
28676
        oprot.writeFieldEnd();
28677
      }
28678
      oprot.writeFieldStop();
28679
      oprot.writeStructEnd();
28680
    }
28681
 
28682
    @Override
28683
    public String toString() {
28684
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
28685
      boolean first = true;
28686
 
28687
      sb.append("success:");
28688
      if (this.success == null) {
28689
        sb.append("null");
28690
      } else {
28691
        sb.append(this.success);
28692
      }
28693
      first = false;
28694
      sb.append(")");
28695
      return sb.toString();
28696
    }
28697
 
28698
    public void validate() throws org.apache.thrift.TException {
28699
      // check for required fields
28700
    }
28701
 
28702
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28703
      try {
28704
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28705
      } catch (org.apache.thrift.TException te) {
28706
        throw new java.io.IOException(te);
28707
      }
28708
    }
28709
 
28710
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28711
      try {
28712
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28713
      } catch (org.apache.thrift.TException te) {
28714
        throw new java.io.IOException(te);
28715
      }
28716
    }
28717
 
28718
  }
28719
 
28720
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
28721
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
28722
 
28723
    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);
28724
    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)2);
28725
    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);
28726
 
28727
    private long itemId; // required
28728
    private long warehouseId; // required
28729
    private long quantity; // required
28730
 
28731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28733
      ITEM_ID((short)1, "itemId"),
28734
      WAREHOUSE_ID((short)2, "warehouseId"),
28735
      QUANTITY((short)3, "quantity");
28736
 
28737
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28738
 
28739
      static {
28740
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28741
          byName.put(field.getFieldName(), field);
28742
        }
28743
      }
28744
 
28745
      /**
28746
       * Find the _Fields constant that matches fieldId, or null if its not found.
28747
       */
28748
      public static _Fields findByThriftId(int fieldId) {
28749
        switch(fieldId) {
28750
          case 1: // ITEM_ID
28751
            return ITEM_ID;
28752
          case 2: // WAREHOUSE_ID
28753
            return WAREHOUSE_ID;
28754
          case 3: // QUANTITY
28755
            return QUANTITY;
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 __ITEMID_ISSET_ID = 0;
28797
    private static final int __WAREHOUSEID_ISSET_ID = 1;
28798
    private static final int __QUANTITY_ISSET_ID = 2;
28799
    private BitSet __isset_bit_vector = new BitSet(3);
28800
 
28801
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28802
    static {
28803
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28804
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28806
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28808
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28810
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28811
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
28812
    }
28813
 
28814
    public addBadInventory_args() {
28815
    }
28816
 
28817
    public addBadInventory_args(
28818
      long itemId,
28819
      long warehouseId,
28820
      long quantity)
28821
    {
28822
      this();
28823
      this.itemId = itemId;
28824
      setItemIdIsSet(true);
28825
      this.warehouseId = warehouseId;
28826
      setWarehouseIdIsSet(true);
28827
      this.quantity = quantity;
28828
      setQuantityIsSet(true);
28829
    }
28830
 
28831
    /**
28832
     * Performs a deep copy on <i>other</i>.
28833
     */
28834
    public addBadInventory_args(addBadInventory_args other) {
28835
      __isset_bit_vector.clear();
28836
      __isset_bit_vector.or(other.__isset_bit_vector);
28837
      this.itemId = other.itemId;
28838
      this.warehouseId = other.warehouseId;
28839
      this.quantity = other.quantity;
28840
    }
28841
 
28842
    public addBadInventory_args deepCopy() {
28843
      return new addBadInventory_args(this);
28844
    }
28845
 
28846
    @Override
28847
    public void clear() {
28848
      setItemIdIsSet(false);
28849
      this.itemId = 0;
28850
      setWarehouseIdIsSet(false);
28851
      this.warehouseId = 0;
28852
      setQuantityIsSet(false);
28853
      this.quantity = 0;
28854
    }
28855
 
28856
    public long getItemId() {
28857
      return this.itemId;
28858
    }
28859
 
28860
    public void setItemId(long itemId) {
28861
      this.itemId = itemId;
28862
      setItemIdIsSet(true);
28863
    }
28864
 
28865
    public void unsetItemId() {
28866
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
28867
    }
28868
 
28869
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
28870
    public boolean isSetItemId() {
28871
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
28872
    }
28873
 
28874
    public void setItemIdIsSet(boolean value) {
28875
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
28876
    }
28877
 
28878
    public long getWarehouseId() {
28879
      return this.warehouseId;
28880
    }
28881
 
28882
    public void setWarehouseId(long warehouseId) {
28883
      this.warehouseId = warehouseId;
28884
      setWarehouseIdIsSet(true);
28885
    }
28886
 
28887
    public void unsetWarehouseId() {
28888
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
28889
    }
28890
 
28891
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
28892
    public boolean isSetWarehouseId() {
28893
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
28894
    }
28895
 
28896
    public void setWarehouseIdIsSet(boolean value) {
28897
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
28898
    }
28899
 
28900
    public long getQuantity() {
28901
      return this.quantity;
28902
    }
28903
 
28904
    public void setQuantity(long quantity) {
28905
      this.quantity = quantity;
28906
      setQuantityIsSet(true);
28907
    }
28908
 
28909
    public void unsetQuantity() {
28910
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
28911
    }
28912
 
28913
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
28914
    public boolean isSetQuantity() {
28915
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
28916
    }
28917
 
28918
    public void setQuantityIsSet(boolean value) {
28919
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
28920
    }
28921
 
28922
    public void setFieldValue(_Fields field, Object value) {
28923
      switch (field) {
28924
      case ITEM_ID:
28925
        if (value == null) {
28926
          unsetItemId();
28927
        } else {
28928
          setItemId((Long)value);
28929
        }
28930
        break;
28931
 
28932
      case WAREHOUSE_ID:
28933
        if (value == null) {
28934
          unsetWarehouseId();
28935
        } else {
28936
          setWarehouseId((Long)value);
28937
        }
28938
        break;
28939
 
28940
      case QUANTITY:
28941
        if (value == null) {
28942
          unsetQuantity();
28943
        } else {
28944
          setQuantity((Long)value);
28945
        }
28946
        break;
28947
 
28948
      }
28949
    }
28950
 
28951
    public Object getFieldValue(_Fields field) {
28952
      switch (field) {
28953
      case ITEM_ID:
28954
        return Long.valueOf(getItemId());
28955
 
28956
      case WAREHOUSE_ID:
28957
        return Long.valueOf(getWarehouseId());
28958
 
28959
      case QUANTITY:
28960
        return Long.valueOf(getQuantity());
28961
 
28962
      }
28963
      throw new IllegalStateException();
28964
    }
28965
 
28966
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28967
    public boolean isSet(_Fields field) {
28968
      if (field == null) {
28969
        throw new IllegalArgumentException();
28970
      }
28971
 
28972
      switch (field) {
28973
      case ITEM_ID:
28974
        return isSetItemId();
28975
      case WAREHOUSE_ID:
28976
        return isSetWarehouseId();
28977
      case QUANTITY:
28978
        return isSetQuantity();
28979
      }
28980
      throw new IllegalStateException();
28981
    }
28982
 
28983
    @Override
28984
    public boolean equals(Object that) {
28985
      if (that == null)
28986
        return false;
28987
      if (that instanceof addBadInventory_args)
28988
        return this.equals((addBadInventory_args)that);
28989
      return false;
28990
    }
28991
 
28992
    public boolean equals(addBadInventory_args that) {
28993
      if (that == null)
28994
        return false;
28995
 
28996
      boolean this_present_itemId = true;
28997
      boolean that_present_itemId = true;
28998
      if (this_present_itemId || that_present_itemId) {
28999
        if (!(this_present_itemId && that_present_itemId))
29000
          return false;
29001
        if (this.itemId != that.itemId)
29002
          return false;
29003
      }
29004
 
29005
      boolean this_present_warehouseId = true;
29006
      boolean that_present_warehouseId = true;
29007
      if (this_present_warehouseId || that_present_warehouseId) {
29008
        if (!(this_present_warehouseId && that_present_warehouseId))
29009
          return false;
29010
        if (this.warehouseId != that.warehouseId)
29011
          return false;
29012
      }
29013
 
29014
      boolean this_present_quantity = true;
29015
      boolean that_present_quantity = true;
29016
      if (this_present_quantity || that_present_quantity) {
29017
        if (!(this_present_quantity && that_present_quantity))
29018
          return false;
29019
        if (this.quantity != that.quantity)
29020
          return false;
29021
      }
29022
 
29023
      return true;
29024
    }
29025
 
29026
    @Override
29027
    public int hashCode() {
29028
      return 0;
29029
    }
29030
 
29031
    public int compareTo(addBadInventory_args other) {
29032
      if (!getClass().equals(other.getClass())) {
29033
        return getClass().getName().compareTo(other.getClass().getName());
29034
      }
29035
 
29036
      int lastComparison = 0;
29037
      addBadInventory_args typedOther = (addBadInventory_args)other;
29038
 
29039
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
29040
      if (lastComparison != 0) {
29041
        return lastComparison;
29042
      }
29043
      if (isSetItemId()) {
29044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
29045
        if (lastComparison != 0) {
29046
          return lastComparison;
29047
        }
29048
      }
29049
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
29050
      if (lastComparison != 0) {
29051
        return lastComparison;
29052
      }
29053
      if (isSetWarehouseId()) {
29054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
29055
        if (lastComparison != 0) {
29056
          return lastComparison;
29057
        }
29058
      }
29059
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
29060
      if (lastComparison != 0) {
29061
        return lastComparison;
29062
      }
29063
      if (isSetQuantity()) {
29064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
29065
        if (lastComparison != 0) {
29066
          return lastComparison;
29067
        }
29068
      }
29069
      return 0;
29070
    }
29071
 
29072
    public _Fields fieldForId(int fieldId) {
29073
      return _Fields.findByThriftId(fieldId);
29074
    }
29075
 
29076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29077
      org.apache.thrift.protocol.TField field;
29078
      iprot.readStructBegin();
29079
      while (true)
29080
      {
29081
        field = iprot.readFieldBegin();
29082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29083
          break;
29084
        }
29085
        switch (field.id) {
29086
          case 1: // ITEM_ID
29087
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29088
              this.itemId = iprot.readI64();
29089
              setItemIdIsSet(true);
29090
            } else { 
29091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29092
            }
29093
            break;
29094
          case 2: // WAREHOUSE_ID
29095
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29096
              this.warehouseId = iprot.readI64();
29097
              setWarehouseIdIsSet(true);
29098
            } else { 
29099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29100
            }
29101
            break;
29102
          case 3: // QUANTITY
29103
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29104
              this.quantity = iprot.readI64();
29105
              setQuantityIsSet(true);
29106
            } else { 
29107
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29108
            }
29109
            break;
29110
          default:
29111
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29112
        }
29113
        iprot.readFieldEnd();
29114
      }
29115
      iprot.readStructEnd();
29116
      validate();
29117
    }
29118
 
29119
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29120
      validate();
29121
 
29122
      oprot.writeStructBegin(STRUCT_DESC);
29123
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
29124
      oprot.writeI64(this.itemId);
29125
      oprot.writeFieldEnd();
29126
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
29127
      oprot.writeI64(this.warehouseId);
29128
      oprot.writeFieldEnd();
29129
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
29130
      oprot.writeI64(this.quantity);
29131
      oprot.writeFieldEnd();
29132
      oprot.writeFieldStop();
29133
      oprot.writeStructEnd();
29134
    }
29135
 
29136
    @Override
29137
    public String toString() {
29138
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
29139
      boolean first = true;
29140
 
29141
      sb.append("itemId:");
29142
      sb.append(this.itemId);
29143
      first = false;
29144
      if (!first) sb.append(", ");
29145
      sb.append("warehouseId:");
29146
      sb.append(this.warehouseId);
29147
      first = false;
29148
      if (!first) sb.append(", ");
29149
      sb.append("quantity:");
29150
      sb.append(this.quantity);
29151
      first = false;
29152
      sb.append(")");
29153
      return sb.toString();
29154
    }
29155
 
29156
    public void validate() throws org.apache.thrift.TException {
29157
      // check for required fields
29158
    }
29159
 
29160
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29161
      try {
29162
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29163
      } catch (org.apache.thrift.TException te) {
29164
        throw new java.io.IOException(te);
29165
      }
29166
    }
29167
 
29168
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29169
      try {
29170
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29171
      } catch (org.apache.thrift.TException te) {
29172
        throw new java.io.IOException(te);
29173
      }
29174
    }
29175
 
29176
  }
29177
 
29178
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
29179
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
29180
 
29181
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
29182
 
29183
    private InventoryServiceException cex; // required
29184
 
29185
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29186
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29187
      CEX((short)1, "cex");
29188
 
29189
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29190
 
29191
      static {
29192
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29193
          byName.put(field.getFieldName(), field);
29194
        }
29195
      }
29196
 
29197
      /**
29198
       * Find the _Fields constant that matches fieldId, or null if its not found.
29199
       */
29200
      public static _Fields findByThriftId(int fieldId) {
29201
        switch(fieldId) {
29202
          case 1: // CEX
29203
            return CEX;
29204
          default:
29205
            return null;
29206
        }
29207
      }
29208
 
29209
      /**
29210
       * Find the _Fields constant that matches fieldId, throwing an exception
29211
       * if it is not found.
29212
       */
29213
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29214
        _Fields fields = findByThriftId(fieldId);
29215
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29216
        return fields;
29217
      }
29218
 
29219
      /**
29220
       * Find the _Fields constant that matches name, or null if its not found.
29221
       */
29222
      public static _Fields findByName(String name) {
29223
        return byName.get(name);
29224
      }
29225
 
29226
      private final short _thriftId;
29227
      private final String _fieldName;
29228
 
29229
      _Fields(short thriftId, String fieldName) {
29230
        _thriftId = thriftId;
29231
        _fieldName = fieldName;
29232
      }
29233
 
29234
      public short getThriftFieldId() {
29235
        return _thriftId;
29236
      }
29237
 
29238
      public String getFieldName() {
29239
        return _fieldName;
29240
      }
29241
    }
29242
 
29243
    // isset id assignments
29244
 
29245
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29246
    static {
29247
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29248
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29250
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29251
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
29252
    }
29253
 
29254
    public addBadInventory_result() {
29255
    }
29256
 
29257
    public addBadInventory_result(
29258
      InventoryServiceException cex)
29259
    {
29260
      this();
29261
      this.cex = cex;
29262
    }
29263
 
29264
    /**
29265
     * Performs a deep copy on <i>other</i>.
29266
     */
29267
    public addBadInventory_result(addBadInventory_result other) {
29268
      if (other.isSetCex()) {
29269
        this.cex = new InventoryServiceException(other.cex);
29270
      }
29271
    }
29272
 
29273
    public addBadInventory_result deepCopy() {
29274
      return new addBadInventory_result(this);
29275
    }
29276
 
29277
    @Override
29278
    public void clear() {
29279
      this.cex = null;
29280
    }
29281
 
29282
    public InventoryServiceException getCex() {
29283
      return this.cex;
29284
    }
29285
 
29286
    public void setCex(InventoryServiceException cex) {
29287
      this.cex = cex;
29288
    }
29289
 
29290
    public void unsetCex() {
29291
      this.cex = null;
29292
    }
29293
 
29294
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
29295
    public boolean isSetCex() {
29296
      return this.cex != null;
29297
    }
29298
 
29299
    public void setCexIsSet(boolean value) {
29300
      if (!value) {
29301
        this.cex = null;
29302
      }
29303
    }
29304
 
29305
    public void setFieldValue(_Fields field, Object value) {
29306
      switch (field) {
29307
      case CEX:
29308
        if (value == null) {
29309
          unsetCex();
29310
        } else {
29311
          setCex((InventoryServiceException)value);
29312
        }
29313
        break;
29314
 
29315
      }
29316
    }
29317
 
29318
    public Object getFieldValue(_Fields field) {
29319
      switch (field) {
29320
      case CEX:
29321
        return getCex();
29322
 
29323
      }
29324
      throw new IllegalStateException();
29325
    }
29326
 
29327
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29328
    public boolean isSet(_Fields field) {
29329
      if (field == null) {
29330
        throw new IllegalArgumentException();
29331
      }
29332
 
29333
      switch (field) {
29334
      case CEX:
29335
        return isSetCex();
29336
      }
29337
      throw new IllegalStateException();
29338
    }
29339
 
29340
    @Override
29341
    public boolean equals(Object that) {
29342
      if (that == null)
29343
        return false;
29344
      if (that instanceof addBadInventory_result)
29345
        return this.equals((addBadInventory_result)that);
29346
      return false;
29347
    }
29348
 
29349
    public boolean equals(addBadInventory_result that) {
29350
      if (that == null)
29351
        return false;
29352
 
29353
      boolean this_present_cex = true && this.isSetCex();
29354
      boolean that_present_cex = true && that.isSetCex();
29355
      if (this_present_cex || that_present_cex) {
29356
        if (!(this_present_cex && that_present_cex))
29357
          return false;
29358
        if (!this.cex.equals(that.cex))
29359
          return false;
29360
      }
29361
 
29362
      return true;
29363
    }
29364
 
29365
    @Override
29366
    public int hashCode() {
29367
      return 0;
29368
    }
29369
 
29370
    public int compareTo(addBadInventory_result other) {
29371
      if (!getClass().equals(other.getClass())) {
29372
        return getClass().getName().compareTo(other.getClass().getName());
29373
      }
29374
 
29375
      int lastComparison = 0;
29376
      addBadInventory_result typedOther = (addBadInventory_result)other;
29377
 
29378
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
29379
      if (lastComparison != 0) {
29380
        return lastComparison;
29381
      }
29382
      if (isSetCex()) {
29383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
29384
        if (lastComparison != 0) {
29385
          return lastComparison;
29386
        }
29387
      }
29388
      return 0;
29389
    }
29390
 
29391
    public _Fields fieldForId(int fieldId) {
29392
      return _Fields.findByThriftId(fieldId);
29393
    }
29394
 
29395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29396
      org.apache.thrift.protocol.TField field;
29397
      iprot.readStructBegin();
29398
      while (true)
29399
      {
29400
        field = iprot.readFieldBegin();
29401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29402
          break;
29403
        }
29404
        switch (field.id) {
29405
          case 1: // CEX
29406
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29407
              this.cex = new InventoryServiceException();
29408
              this.cex.read(iprot);
29409
            } else { 
29410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29411
            }
29412
            break;
29413
          default:
29414
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29415
        }
29416
        iprot.readFieldEnd();
29417
      }
29418
      iprot.readStructEnd();
29419
      validate();
29420
    }
29421
 
29422
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29423
      oprot.writeStructBegin(STRUCT_DESC);
29424
 
29425
      if (this.isSetCex()) {
29426
        oprot.writeFieldBegin(CEX_FIELD_DESC);
29427
        this.cex.write(oprot);
29428
        oprot.writeFieldEnd();
29429
      }
29430
      oprot.writeFieldStop();
29431
      oprot.writeStructEnd();
29432
    }
29433
 
29434
    @Override
29435
    public String toString() {
29436
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
29437
      boolean first = true;
29438
 
29439
      sb.append("cex:");
29440
      if (this.cex == null) {
29441
        sb.append("null");
29442
      } else {
29443
        sb.append(this.cex);
29444
      }
29445
      first = false;
29446
      sb.append(")");
29447
      return sb.toString();
29448
    }
29449
 
29450
    public void validate() throws org.apache.thrift.TException {
29451
      // check for required fields
29452
    }
29453
 
29454
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29455
      try {
29456
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29457
      } catch (org.apache.thrift.TException te) {
29458
        throw new java.io.IOException(te);
29459
      }
29460
    }
29461
 
29462
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29463
      try {
29464
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29465
      } catch (org.apache.thrift.TException te) {
29466
        throw new java.io.IOException(te);
29467
      }
29468
    }
29469
 
29470
  }
29471
 
29472
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
29473
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
29474
 
29475
 
29476
 
29477
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29478
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29479
;
29480
 
29481
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29482
 
29483
      static {
29484
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29485
          byName.put(field.getFieldName(), field);
29486
        }
29487
      }
29488
 
29489
      /**
29490
       * Find the _Fields constant that matches fieldId, or null if its not found.
29491
       */
29492
      public static _Fields findByThriftId(int fieldId) {
29493
        switch(fieldId) {
29494
          default:
29495
            return null;
29496
        }
29497
      }
29498
 
29499
      /**
29500
       * Find the _Fields constant that matches fieldId, throwing an exception
29501
       * if it is not found.
29502
       */
29503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29504
        _Fields fields = findByThriftId(fieldId);
29505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29506
        return fields;
29507
      }
29508
 
29509
      /**
29510
       * Find the _Fields constant that matches name, or null if its not found.
29511
       */
29512
      public static _Fields findByName(String name) {
29513
        return byName.get(name);
29514
      }
29515
 
29516
      private final short _thriftId;
29517
      private final String _fieldName;
29518
 
29519
      _Fields(short thriftId, String fieldName) {
29520
        _thriftId = thriftId;
29521
        _fieldName = fieldName;
29522
      }
29523
 
29524
      public short getThriftFieldId() {
29525
        return _thriftId;
29526
      }
29527
 
29528
      public String getFieldName() {
29529
        return _fieldName;
29530
      }
29531
    }
29532
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29533
    static {
29534
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29535
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29536
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
29537
    }
29538
 
29539
    public getShippingLocations_args() {
29540
    }
29541
 
29542
    /**
29543
     * Performs a deep copy on <i>other</i>.
29544
     */
29545
    public getShippingLocations_args(getShippingLocations_args other) {
29546
    }
29547
 
29548
    public getShippingLocations_args deepCopy() {
29549
      return new getShippingLocations_args(this);
29550
    }
29551
 
29552
    @Override
29553
    public void clear() {
29554
    }
29555
 
29556
    public void setFieldValue(_Fields field, Object value) {
29557
      switch (field) {
29558
      }
29559
    }
29560
 
29561
    public Object getFieldValue(_Fields field) {
29562
      switch (field) {
29563
      }
29564
      throw new IllegalStateException();
29565
    }
29566
 
29567
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29568
    public boolean isSet(_Fields field) {
29569
      if (field == null) {
29570
        throw new IllegalArgumentException();
29571
      }
29572
 
29573
      switch (field) {
29574
      }
29575
      throw new IllegalStateException();
29576
    }
29577
 
29578
    @Override
29579
    public boolean equals(Object that) {
29580
      if (that == null)
29581
        return false;
29582
      if (that instanceof getShippingLocations_args)
29583
        return this.equals((getShippingLocations_args)that);
29584
      return false;
29585
    }
29586
 
29587
    public boolean equals(getShippingLocations_args that) {
29588
      if (that == null)
29589
        return false;
29590
 
29591
      return true;
29592
    }
29593
 
29594
    @Override
29595
    public int hashCode() {
29596
      return 0;
29597
    }
29598
 
29599
    public int compareTo(getShippingLocations_args other) {
29600
      if (!getClass().equals(other.getClass())) {
29601
        return getClass().getName().compareTo(other.getClass().getName());
29602
      }
29603
 
29604
      int lastComparison = 0;
29605
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
29606
 
29607
      return 0;
29608
    }
29609
 
29610
    public _Fields fieldForId(int fieldId) {
29611
      return _Fields.findByThriftId(fieldId);
29612
    }
29613
 
29614
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29615
      org.apache.thrift.protocol.TField field;
29616
      iprot.readStructBegin();
29617
      while (true)
29618
      {
29619
        field = iprot.readFieldBegin();
29620
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29621
          break;
29622
        }
29623
        switch (field.id) {
29624
          default:
29625
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29626
        }
29627
        iprot.readFieldEnd();
29628
      }
29629
      iprot.readStructEnd();
29630
      validate();
29631
    }
29632
 
29633
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29634
      validate();
29635
 
29636
      oprot.writeStructBegin(STRUCT_DESC);
29637
      oprot.writeFieldStop();
29638
      oprot.writeStructEnd();
29639
    }
29640
 
29641
    @Override
29642
    public String toString() {
29643
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
29644
      boolean first = true;
29645
 
29646
      sb.append(")");
29647
      return sb.toString();
29648
    }
29649
 
29650
    public void validate() throws org.apache.thrift.TException {
29651
      // check for required fields
29652
    }
29653
 
29654
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29655
      try {
29656
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29657
      } catch (org.apache.thrift.TException te) {
29658
        throw new java.io.IOException(te);
29659
      }
29660
    }
29661
 
29662
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29663
      try {
29664
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29665
      } catch (org.apache.thrift.TException te) {
29666
        throw new java.io.IOException(te);
29667
      }
29668
    }
29669
 
29670
  }
29671
 
29672
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
29673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
29674
 
29675
    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);
29676
 
29677
    private List<Warehouse> success; // required
29678
 
29679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29681
      SUCCESS((short)0, "success");
29682
 
29683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29684
 
29685
      static {
29686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29687
          byName.put(field.getFieldName(), field);
29688
        }
29689
      }
29690
 
29691
      /**
29692
       * Find the _Fields constant that matches fieldId, or null if its not found.
29693
       */
29694
      public static _Fields findByThriftId(int fieldId) {
29695
        switch(fieldId) {
29696
          case 0: // SUCCESS
29697
            return SUCCESS;
29698
          default:
29699
            return null;
29700
        }
29701
      }
29702
 
29703
      /**
29704
       * Find the _Fields constant that matches fieldId, throwing an exception
29705
       * if it is not found.
29706
       */
29707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29708
        _Fields fields = findByThriftId(fieldId);
29709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29710
        return fields;
29711
      }
29712
 
29713
      /**
29714
       * Find the _Fields constant that matches name, or null if its not found.
29715
       */
29716
      public static _Fields findByName(String name) {
29717
        return byName.get(name);
29718
      }
29719
 
29720
      private final short _thriftId;
29721
      private final String _fieldName;
29722
 
29723
      _Fields(short thriftId, String fieldName) {
29724
        _thriftId = thriftId;
29725
        _fieldName = fieldName;
29726
      }
29727
 
29728
      public short getThriftFieldId() {
29729
        return _thriftId;
29730
      }
29731
 
29732
      public String getFieldName() {
29733
        return _fieldName;
29734
      }
29735
    }
29736
 
29737
    // isset id assignments
29738
 
29739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29740
    static {
29741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29742
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29743
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29744
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
29745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
29747
    }
29748
 
29749
    public getShippingLocations_result() {
29750
    }
29751
 
29752
    public getShippingLocations_result(
29753
      List<Warehouse> success)
29754
    {
29755
      this();
29756
      this.success = success;
29757
    }
29758
 
29759
    /**
29760
     * Performs a deep copy on <i>other</i>.
29761
     */
29762
    public getShippingLocations_result(getShippingLocations_result other) {
29763
      if (other.isSetSuccess()) {
29764
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
29765
        for (Warehouse other_element : other.success) {
29766
          __this__success.add(new Warehouse(other_element));
29767
        }
29768
        this.success = __this__success;
29769
      }
29770
    }
29771
 
29772
    public getShippingLocations_result deepCopy() {
29773
      return new getShippingLocations_result(this);
29774
    }
29775
 
29776
    @Override
29777
    public void clear() {
29778
      this.success = null;
29779
    }
29780
 
29781
    public int getSuccessSize() {
29782
      return (this.success == null) ? 0 : this.success.size();
29783
    }
29784
 
29785
    public java.util.Iterator<Warehouse> getSuccessIterator() {
29786
      return (this.success == null) ? null : this.success.iterator();
29787
    }
29788
 
29789
    public void addToSuccess(Warehouse elem) {
29790
      if (this.success == null) {
29791
        this.success = new ArrayList<Warehouse>();
29792
      }
29793
      this.success.add(elem);
29794
    }
29795
 
29796
    public List<Warehouse> getSuccess() {
29797
      return this.success;
29798
    }
29799
 
29800
    public void setSuccess(List<Warehouse> success) {
29801
      this.success = success;
29802
    }
29803
 
29804
    public void unsetSuccess() {
29805
      this.success = null;
29806
    }
29807
 
29808
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29809
    public boolean isSetSuccess() {
29810
      return this.success != null;
29811
    }
29812
 
29813
    public void setSuccessIsSet(boolean value) {
29814
      if (!value) {
29815
        this.success = null;
29816
      }
29817
    }
29818
 
29819
    public void setFieldValue(_Fields field, Object value) {
29820
      switch (field) {
29821
      case SUCCESS:
29822
        if (value == null) {
29823
          unsetSuccess();
29824
        } else {
29825
          setSuccess((List<Warehouse>)value);
29826
        }
29827
        break;
29828
 
29829
      }
29830
    }
29831
 
29832
    public Object getFieldValue(_Fields field) {
29833
      switch (field) {
29834
      case SUCCESS:
29835
        return getSuccess();
29836
 
29837
      }
29838
      throw new IllegalStateException();
29839
    }
29840
 
29841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29842
    public boolean isSet(_Fields field) {
29843
      if (field == null) {
29844
        throw new IllegalArgumentException();
29845
      }
29846
 
29847
      switch (field) {
29848
      case SUCCESS:
29849
        return isSetSuccess();
29850
      }
29851
      throw new IllegalStateException();
29852
    }
29853
 
29854
    @Override
29855
    public boolean equals(Object that) {
29856
      if (that == null)
29857
        return false;
29858
      if (that instanceof getShippingLocations_result)
29859
        return this.equals((getShippingLocations_result)that);
29860
      return false;
29861
    }
29862
 
29863
    public boolean equals(getShippingLocations_result that) {
29864
      if (that == null)
29865
        return false;
29866
 
29867
      boolean this_present_success = true && this.isSetSuccess();
29868
      boolean that_present_success = true && that.isSetSuccess();
29869
      if (this_present_success || that_present_success) {
29870
        if (!(this_present_success && that_present_success))
29871
          return false;
29872
        if (!this.success.equals(that.success))
29873
          return false;
29874
      }
29875
 
29876
      return true;
29877
    }
29878
 
29879
    @Override
29880
    public int hashCode() {
29881
      return 0;
29882
    }
29883
 
29884
    public int compareTo(getShippingLocations_result other) {
29885
      if (!getClass().equals(other.getClass())) {
29886
        return getClass().getName().compareTo(other.getClass().getName());
29887
      }
29888
 
29889
      int lastComparison = 0;
29890
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
29891
 
29892
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29893
      if (lastComparison != 0) {
29894
        return lastComparison;
29895
      }
29896
      if (isSetSuccess()) {
29897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29898
        if (lastComparison != 0) {
29899
          return lastComparison;
29900
        }
29901
      }
29902
      return 0;
29903
    }
29904
 
29905
    public _Fields fieldForId(int fieldId) {
29906
      return _Fields.findByThriftId(fieldId);
29907
    }
29908
 
29909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29910
      org.apache.thrift.protocol.TField field;
29911
      iprot.readStructBegin();
29912
      while (true)
29913
      {
29914
        field = iprot.readFieldBegin();
29915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29916
          break;
29917
        }
29918
        switch (field.id) {
29919
          case 0: // SUCCESS
29920
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29921
              {
8182 amar.kumar 29922
                org.apache.thrift.protocol.TList _list71 = iprot.readListBegin();
29923
                this.success = new ArrayList<Warehouse>(_list71.size);
29924
                for (int _i72 = 0; _i72 < _list71.size; ++_i72)
5945 mandeep.dh 29925
                {
8182 amar.kumar 29926
                  Warehouse _elem73; // required
29927
                  _elem73 = new Warehouse();
29928
                  _elem73.read(iprot);
29929
                  this.success.add(_elem73);
5945 mandeep.dh 29930
                }
29931
                iprot.readListEnd();
29932
              }
29933
            } else { 
29934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29935
            }
29936
            break;
29937
          default:
29938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29939
        }
29940
        iprot.readFieldEnd();
29941
      }
29942
      iprot.readStructEnd();
29943
      validate();
29944
    }
29945
 
29946
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29947
      oprot.writeStructBegin(STRUCT_DESC);
29948
 
29949
      if (this.isSetSuccess()) {
29950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29951
        {
29952
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 29953
          for (Warehouse _iter74 : this.success)
5945 mandeep.dh 29954
          {
8182 amar.kumar 29955
            _iter74.write(oprot);
5945 mandeep.dh 29956
          }
29957
          oprot.writeListEnd();
29958
        }
29959
        oprot.writeFieldEnd();
29960
      }
29961
      oprot.writeFieldStop();
29962
      oprot.writeStructEnd();
29963
    }
29964
 
29965
    @Override
29966
    public String toString() {
29967
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
29968
      boolean first = true;
29969
 
29970
      sb.append("success:");
29971
      if (this.success == null) {
29972
        sb.append("null");
29973
      } else {
29974
        sb.append(this.success);
29975
      }
29976
      first = false;
29977
      sb.append(")");
29978
      return sb.toString();
29979
    }
29980
 
29981
    public void validate() throws org.apache.thrift.TException {
29982
      // check for required fields
29983
    }
29984
 
29985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29986
      try {
29987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29988
      } catch (org.apache.thrift.TException te) {
29989
        throw new java.io.IOException(te);
29990
      }
29991
    }
29992
 
29993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29994
      try {
29995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29996
      } catch (org.apache.thrift.TException te) {
29997
        throw new java.io.IOException(te);
29998
      }
29999
    }
30000
 
30001
  }
30002
 
30003
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
30004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
30005
 
30006
 
30007
 
30008
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30009
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30010
;
30011
 
30012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30013
 
30014
      static {
30015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30016
          byName.put(field.getFieldName(), field);
30017
        }
30018
      }
30019
 
30020
      /**
30021
       * Find the _Fields constant that matches fieldId, or null if its not found.
30022
       */
30023
      public static _Fields findByThriftId(int fieldId) {
30024
        switch(fieldId) {
30025
          default:
30026
            return null;
30027
        }
30028
      }
30029
 
30030
      /**
30031
       * Find the _Fields constant that matches fieldId, throwing an exception
30032
       * if it is not found.
30033
       */
30034
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30035
        _Fields fields = findByThriftId(fieldId);
30036
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30037
        return fields;
30038
      }
30039
 
30040
      /**
30041
       * Find the _Fields constant that matches name, or null if its not found.
30042
       */
30043
      public static _Fields findByName(String name) {
30044
        return byName.get(name);
30045
      }
30046
 
30047
      private final short _thriftId;
30048
      private final String _fieldName;
30049
 
30050
      _Fields(short thriftId, String fieldName) {
30051
        _thriftId = thriftId;
30052
        _fieldName = fieldName;
30053
      }
30054
 
30055
      public short getThriftFieldId() {
30056
        return _thriftId;
30057
      }
30058
 
30059
      public String getFieldName() {
30060
        return _fieldName;
30061
      }
30062
    }
30063
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30064
    static {
30065
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30066
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30067
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
30068
    }
30069
 
30070
    public getAllVendorItemMappings_args() {
30071
    }
30072
 
30073
    /**
30074
     * Performs a deep copy on <i>other</i>.
30075
     */
30076
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
30077
    }
30078
 
30079
    public getAllVendorItemMappings_args deepCopy() {
30080
      return new getAllVendorItemMappings_args(this);
30081
    }
30082
 
30083
    @Override
30084
    public void clear() {
30085
    }
30086
 
30087
    public void setFieldValue(_Fields field, Object value) {
30088
      switch (field) {
30089
      }
30090
    }
30091
 
30092
    public Object getFieldValue(_Fields field) {
30093
      switch (field) {
30094
      }
30095
      throw new IllegalStateException();
30096
    }
30097
 
30098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30099
    public boolean isSet(_Fields field) {
30100
      if (field == null) {
30101
        throw new IllegalArgumentException();
30102
      }
30103
 
30104
      switch (field) {
30105
      }
30106
      throw new IllegalStateException();
30107
    }
30108
 
30109
    @Override
30110
    public boolean equals(Object that) {
30111
      if (that == null)
30112
        return false;
30113
      if (that instanceof getAllVendorItemMappings_args)
30114
        return this.equals((getAllVendorItemMappings_args)that);
30115
      return false;
30116
    }
30117
 
30118
    public boolean equals(getAllVendorItemMappings_args that) {
30119
      if (that == null)
30120
        return false;
30121
 
30122
      return true;
30123
    }
30124
 
30125
    @Override
30126
    public int hashCode() {
30127
      return 0;
30128
    }
30129
 
30130
    public int compareTo(getAllVendorItemMappings_args other) {
30131
      if (!getClass().equals(other.getClass())) {
30132
        return getClass().getName().compareTo(other.getClass().getName());
30133
      }
30134
 
30135
      int lastComparison = 0;
30136
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
30137
 
30138
      return 0;
30139
    }
30140
 
30141
    public _Fields fieldForId(int fieldId) {
30142
      return _Fields.findByThriftId(fieldId);
30143
    }
30144
 
30145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30146
      org.apache.thrift.protocol.TField field;
30147
      iprot.readStructBegin();
30148
      while (true)
30149
      {
30150
        field = iprot.readFieldBegin();
30151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30152
          break;
30153
        }
30154
        switch (field.id) {
30155
          default:
30156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30157
        }
30158
        iprot.readFieldEnd();
30159
      }
30160
      iprot.readStructEnd();
30161
      validate();
30162
    }
30163
 
30164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30165
      validate();
30166
 
30167
      oprot.writeStructBegin(STRUCT_DESC);
30168
      oprot.writeFieldStop();
30169
      oprot.writeStructEnd();
30170
    }
30171
 
30172
    @Override
30173
    public String toString() {
30174
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
30175
      boolean first = true;
30176
 
30177
      sb.append(")");
30178
      return sb.toString();
30179
    }
30180
 
30181
    public void validate() throws org.apache.thrift.TException {
30182
      // check for required fields
30183
    }
30184
 
30185
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30186
      try {
30187
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30188
      } catch (org.apache.thrift.TException te) {
30189
        throw new java.io.IOException(te);
30190
      }
30191
    }
30192
 
30193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30194
      try {
30195
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30196
      } catch (org.apache.thrift.TException te) {
30197
        throw new java.io.IOException(te);
30198
      }
30199
    }
30200
 
30201
  }
30202
 
30203
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
30204
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
30205
 
30206
    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);
30207
 
30208
    private List<VendorItemMapping> success; // required
30209
 
30210
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30211
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30212
      SUCCESS((short)0, "success");
30213
 
30214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30215
 
30216
      static {
30217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30218
          byName.put(field.getFieldName(), field);
30219
        }
30220
      }
30221
 
30222
      /**
30223
       * Find the _Fields constant that matches fieldId, or null if its not found.
30224
       */
30225
      public static _Fields findByThriftId(int fieldId) {
30226
        switch(fieldId) {
30227
          case 0: // SUCCESS
30228
            return SUCCESS;
30229
          default:
30230
            return null;
30231
        }
30232
      }
30233
 
30234
      /**
30235
       * Find the _Fields constant that matches fieldId, throwing an exception
30236
       * if it is not found.
30237
       */
30238
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30239
        _Fields fields = findByThriftId(fieldId);
30240
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30241
        return fields;
30242
      }
30243
 
30244
      /**
30245
       * Find the _Fields constant that matches name, or null if its not found.
30246
       */
30247
      public static _Fields findByName(String name) {
30248
        return byName.get(name);
30249
      }
30250
 
30251
      private final short _thriftId;
30252
      private final String _fieldName;
30253
 
30254
      _Fields(short thriftId, String fieldName) {
30255
        _thriftId = thriftId;
30256
        _fieldName = fieldName;
30257
      }
30258
 
30259
      public short getThriftFieldId() {
30260
        return _thriftId;
30261
      }
30262
 
30263
      public String getFieldName() {
30264
        return _fieldName;
30265
      }
30266
    }
30267
 
30268
    // isset id assignments
30269
 
30270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30271
    static {
30272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30273
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30274
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30275
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
30276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
30278
    }
30279
 
30280
    public getAllVendorItemMappings_result() {
30281
    }
30282
 
30283
    public getAllVendorItemMappings_result(
30284
      List<VendorItemMapping> success)
30285
    {
30286
      this();
30287
      this.success = success;
30288
    }
30289
 
30290
    /**
30291
     * Performs a deep copy on <i>other</i>.
30292
     */
30293
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
30294
      if (other.isSetSuccess()) {
30295
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
30296
        for (VendorItemMapping other_element : other.success) {
30297
          __this__success.add(new VendorItemMapping(other_element));
30298
        }
30299
        this.success = __this__success;
30300
      }
30301
    }
30302
 
30303
    public getAllVendorItemMappings_result deepCopy() {
30304
      return new getAllVendorItemMappings_result(this);
30305
    }
30306
 
30307
    @Override
30308
    public void clear() {
30309
      this.success = null;
30310
    }
30311
 
30312
    public int getSuccessSize() {
30313
      return (this.success == null) ? 0 : this.success.size();
30314
    }
30315
 
30316
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
30317
      return (this.success == null) ? null : this.success.iterator();
30318
    }
30319
 
30320
    public void addToSuccess(VendorItemMapping elem) {
30321
      if (this.success == null) {
30322
        this.success = new ArrayList<VendorItemMapping>();
30323
      }
30324
      this.success.add(elem);
30325
    }
30326
 
30327
    public List<VendorItemMapping> getSuccess() {
30328
      return this.success;
30329
    }
30330
 
30331
    public void setSuccess(List<VendorItemMapping> success) {
30332
      this.success = success;
30333
    }
30334
 
30335
    public void unsetSuccess() {
30336
      this.success = null;
30337
    }
30338
 
30339
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30340
    public boolean isSetSuccess() {
30341
      return this.success != null;
30342
    }
30343
 
30344
    public void setSuccessIsSet(boolean value) {
30345
      if (!value) {
30346
        this.success = null;
30347
      }
30348
    }
30349
 
30350
    public void setFieldValue(_Fields field, Object value) {
30351
      switch (field) {
30352
      case SUCCESS:
30353
        if (value == null) {
30354
          unsetSuccess();
30355
        } else {
30356
          setSuccess((List<VendorItemMapping>)value);
30357
        }
30358
        break;
30359
 
30360
      }
30361
    }
30362
 
30363
    public Object getFieldValue(_Fields field) {
30364
      switch (field) {
30365
      case SUCCESS:
30366
        return getSuccess();
30367
 
30368
      }
30369
      throw new IllegalStateException();
30370
    }
30371
 
30372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30373
    public boolean isSet(_Fields field) {
30374
      if (field == null) {
30375
        throw new IllegalArgumentException();
30376
      }
30377
 
30378
      switch (field) {
30379
      case SUCCESS:
30380
        return isSetSuccess();
30381
      }
30382
      throw new IllegalStateException();
30383
    }
30384
 
30385
    @Override
30386
    public boolean equals(Object that) {
30387
      if (that == null)
30388
        return false;
30389
      if (that instanceof getAllVendorItemMappings_result)
30390
        return this.equals((getAllVendorItemMappings_result)that);
30391
      return false;
30392
    }
30393
 
30394
    public boolean equals(getAllVendorItemMappings_result that) {
30395
      if (that == null)
30396
        return false;
30397
 
30398
      boolean this_present_success = true && this.isSetSuccess();
30399
      boolean that_present_success = true && that.isSetSuccess();
30400
      if (this_present_success || that_present_success) {
30401
        if (!(this_present_success && that_present_success))
30402
          return false;
30403
        if (!this.success.equals(that.success))
30404
          return false;
30405
      }
30406
 
30407
      return true;
30408
    }
30409
 
30410
    @Override
30411
    public int hashCode() {
30412
      return 0;
30413
    }
30414
 
30415
    public int compareTo(getAllVendorItemMappings_result other) {
30416
      if (!getClass().equals(other.getClass())) {
30417
        return getClass().getName().compareTo(other.getClass().getName());
30418
      }
30419
 
30420
      int lastComparison = 0;
30421
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
30422
 
30423
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30424
      if (lastComparison != 0) {
30425
        return lastComparison;
30426
      }
30427
      if (isSetSuccess()) {
30428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30429
        if (lastComparison != 0) {
30430
          return lastComparison;
30431
        }
30432
      }
30433
      return 0;
30434
    }
30435
 
30436
    public _Fields fieldForId(int fieldId) {
30437
      return _Fields.findByThriftId(fieldId);
30438
    }
30439
 
30440
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30441
      org.apache.thrift.protocol.TField field;
30442
      iprot.readStructBegin();
30443
      while (true)
30444
      {
30445
        field = iprot.readFieldBegin();
30446
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30447
          break;
30448
        }
30449
        switch (field.id) {
30450
          case 0: // SUCCESS
30451
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30452
              {
8182 amar.kumar 30453
                org.apache.thrift.protocol.TList _list75 = iprot.readListBegin();
30454
                this.success = new ArrayList<VendorItemMapping>(_list75.size);
30455
                for (int _i76 = 0; _i76 < _list75.size; ++_i76)
5945 mandeep.dh 30456
                {
8182 amar.kumar 30457
                  VendorItemMapping _elem77; // required
30458
                  _elem77 = new VendorItemMapping();
30459
                  _elem77.read(iprot);
30460
                  this.success.add(_elem77);
5945 mandeep.dh 30461
                }
30462
                iprot.readListEnd();
30463
              }
30464
            } else { 
30465
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30466
            }
30467
            break;
30468
          default:
30469
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30470
        }
30471
        iprot.readFieldEnd();
30472
      }
30473
      iprot.readStructEnd();
30474
      validate();
30475
    }
30476
 
30477
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30478
      oprot.writeStructBegin(STRUCT_DESC);
30479
 
30480
      if (this.isSetSuccess()) {
30481
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30482
        {
30483
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 30484
          for (VendorItemMapping _iter78 : this.success)
5945 mandeep.dh 30485
          {
8182 amar.kumar 30486
            _iter78.write(oprot);
5945 mandeep.dh 30487
          }
30488
          oprot.writeListEnd();
30489
        }
30490
        oprot.writeFieldEnd();
30491
      }
30492
      oprot.writeFieldStop();
30493
      oprot.writeStructEnd();
30494
    }
30495
 
30496
    @Override
30497
    public String toString() {
30498
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
30499
      boolean first = true;
30500
 
30501
      sb.append("success:");
30502
      if (this.success == null) {
30503
        sb.append("null");
30504
      } else {
30505
        sb.append(this.success);
30506
      }
30507
      first = false;
30508
      sb.append(")");
30509
      return sb.toString();
30510
    }
30511
 
30512
    public void validate() throws org.apache.thrift.TException {
30513
      // check for required fields
30514
    }
30515
 
30516
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30517
      try {
30518
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30519
      } catch (org.apache.thrift.TException te) {
30520
        throw new java.io.IOException(te);
30521
      }
30522
    }
30523
 
30524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30525
      try {
30526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30527
      } catch (org.apache.thrift.TException te) {
30528
        throw new java.io.IOException(te);
30529
      }
30530
    }
30531
 
30532
  }
30533
 
30534
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
30535
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
30536
 
30537
    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);
30538
 
30539
    private long warehouseId; // required
30540
 
30541
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30542
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30543
      WAREHOUSE_ID((short)1, "warehouseId");
30544
 
30545
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30546
 
30547
      static {
30548
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30549
          byName.put(field.getFieldName(), field);
30550
        }
30551
      }
30552
 
30553
      /**
30554
       * Find the _Fields constant that matches fieldId, or null if its not found.
30555
       */
30556
      public static _Fields findByThriftId(int fieldId) {
30557
        switch(fieldId) {
30558
          case 1: // WAREHOUSE_ID
30559
            return WAREHOUSE_ID;
30560
          default:
30561
            return null;
30562
        }
30563
      }
30564
 
30565
      /**
30566
       * Find the _Fields constant that matches fieldId, throwing an exception
30567
       * if it is not found.
30568
       */
30569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30570
        _Fields fields = findByThriftId(fieldId);
30571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30572
        return fields;
30573
      }
30574
 
30575
      /**
30576
       * Find the _Fields constant that matches name, or null if its not found.
30577
       */
30578
      public static _Fields findByName(String name) {
30579
        return byName.get(name);
30580
      }
30581
 
30582
      private final short _thriftId;
30583
      private final String _fieldName;
30584
 
30585
      _Fields(short thriftId, String fieldName) {
30586
        _thriftId = thriftId;
30587
        _fieldName = fieldName;
30588
      }
30589
 
30590
      public short getThriftFieldId() {
30591
        return _thriftId;
30592
      }
30593
 
30594
      public String getFieldName() {
30595
        return _fieldName;
30596
      }
30597
    }
30598
 
30599
    // isset id assignments
30600
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30601
    private BitSet __isset_bit_vector = new BitSet(1);
30602
 
30603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30604
    static {
30605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30606
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30608
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30609
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
30610
    }
30611
 
30612
    public getInventorySnapshot_args() {
30613
    }
30614
 
30615
    public getInventorySnapshot_args(
30616
      long warehouseId)
30617
    {
30618
      this();
30619
      this.warehouseId = warehouseId;
30620
      setWarehouseIdIsSet(true);
30621
    }
30622
 
30623
    /**
30624
     * Performs a deep copy on <i>other</i>.
30625
     */
30626
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
30627
      __isset_bit_vector.clear();
30628
      __isset_bit_vector.or(other.__isset_bit_vector);
30629
      this.warehouseId = other.warehouseId;
30630
    }
30631
 
30632
    public getInventorySnapshot_args deepCopy() {
30633
      return new getInventorySnapshot_args(this);
30634
    }
30635
 
30636
    @Override
30637
    public void clear() {
30638
      setWarehouseIdIsSet(false);
30639
      this.warehouseId = 0;
30640
    }
30641
 
30642
    public long getWarehouseId() {
30643
      return this.warehouseId;
30644
    }
30645
 
30646
    public void setWarehouseId(long warehouseId) {
30647
      this.warehouseId = warehouseId;
30648
      setWarehouseIdIsSet(true);
30649
    }
30650
 
30651
    public void unsetWarehouseId() {
30652
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
30653
    }
30654
 
30655
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
30656
    public boolean isSetWarehouseId() {
30657
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
30658
    }
30659
 
30660
    public void setWarehouseIdIsSet(boolean value) {
30661
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
30662
    }
30663
 
30664
    public void setFieldValue(_Fields field, Object value) {
30665
      switch (field) {
30666
      case WAREHOUSE_ID:
30667
        if (value == null) {
30668
          unsetWarehouseId();
30669
        } else {
30670
          setWarehouseId((Long)value);
30671
        }
30672
        break;
30673
 
30674
      }
30675
    }
30676
 
30677
    public Object getFieldValue(_Fields field) {
30678
      switch (field) {
30679
      case WAREHOUSE_ID:
30680
        return Long.valueOf(getWarehouseId());
30681
 
30682
      }
30683
      throw new IllegalStateException();
30684
    }
30685
 
30686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30687
    public boolean isSet(_Fields field) {
30688
      if (field == null) {
30689
        throw new IllegalArgumentException();
30690
      }
30691
 
30692
      switch (field) {
30693
      case WAREHOUSE_ID:
30694
        return isSetWarehouseId();
30695
      }
30696
      throw new IllegalStateException();
30697
    }
30698
 
30699
    @Override
30700
    public boolean equals(Object that) {
30701
      if (that == null)
30702
        return false;
30703
      if (that instanceof getInventorySnapshot_args)
30704
        return this.equals((getInventorySnapshot_args)that);
30705
      return false;
30706
    }
30707
 
30708
    public boolean equals(getInventorySnapshot_args that) {
30709
      if (that == null)
30710
        return false;
30711
 
30712
      boolean this_present_warehouseId = true;
30713
      boolean that_present_warehouseId = true;
30714
      if (this_present_warehouseId || that_present_warehouseId) {
30715
        if (!(this_present_warehouseId && that_present_warehouseId))
30716
          return false;
30717
        if (this.warehouseId != that.warehouseId)
30718
          return false;
30719
      }
30720
 
30721
      return true;
30722
    }
30723
 
30724
    @Override
30725
    public int hashCode() {
30726
      return 0;
30727
    }
30728
 
30729
    public int compareTo(getInventorySnapshot_args other) {
30730
      if (!getClass().equals(other.getClass())) {
30731
        return getClass().getName().compareTo(other.getClass().getName());
30732
      }
30733
 
30734
      int lastComparison = 0;
30735
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
30736
 
30737
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
30738
      if (lastComparison != 0) {
30739
        return lastComparison;
30740
      }
30741
      if (isSetWarehouseId()) {
30742
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
30743
        if (lastComparison != 0) {
30744
          return lastComparison;
30745
        }
30746
      }
30747
      return 0;
30748
    }
30749
 
30750
    public _Fields fieldForId(int fieldId) {
30751
      return _Fields.findByThriftId(fieldId);
30752
    }
30753
 
30754
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30755
      org.apache.thrift.protocol.TField field;
30756
      iprot.readStructBegin();
30757
      while (true)
30758
      {
30759
        field = iprot.readFieldBegin();
30760
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30761
          break;
30762
        }
30763
        switch (field.id) {
30764
          case 1: // WAREHOUSE_ID
30765
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30766
              this.warehouseId = iprot.readI64();
30767
              setWarehouseIdIsSet(true);
30768
            } else { 
30769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30770
            }
30771
            break;
30772
          default:
30773
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30774
        }
30775
        iprot.readFieldEnd();
30776
      }
30777
      iprot.readStructEnd();
30778
      validate();
30779
    }
30780
 
30781
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30782
      validate();
30783
 
30784
      oprot.writeStructBegin(STRUCT_DESC);
30785
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
30786
      oprot.writeI64(this.warehouseId);
30787
      oprot.writeFieldEnd();
30788
      oprot.writeFieldStop();
30789
      oprot.writeStructEnd();
30790
    }
30791
 
30792
    @Override
30793
    public String toString() {
30794
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
30795
      boolean first = true;
30796
 
30797
      sb.append("warehouseId:");
30798
      sb.append(this.warehouseId);
30799
      first = false;
30800
      sb.append(")");
30801
      return sb.toString();
30802
    }
30803
 
30804
    public void validate() throws org.apache.thrift.TException {
30805
      // check for required fields
30806
    }
30807
 
30808
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30809
      try {
30810
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30811
      } catch (org.apache.thrift.TException te) {
30812
        throw new java.io.IOException(te);
30813
      }
30814
    }
30815
 
30816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30817
      try {
8363 vikram.rag 30818
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30819
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 30820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30821
      } catch (org.apache.thrift.TException te) {
30822
        throw new java.io.IOException(te);
30823
      }
30824
    }
30825
 
30826
  }
30827
 
30828
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
30829
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
30830
 
30831
    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);
30832
 
30833
    private Map<Long,ItemInventory> success; // required
30834
 
30835
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30836
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30837
      SUCCESS((short)0, "success");
30838
 
30839
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30840
 
30841
      static {
30842
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30843
          byName.put(field.getFieldName(), field);
30844
        }
30845
      }
30846
 
30847
      /**
30848
       * Find the _Fields constant that matches fieldId, or null if its not found.
30849
       */
30850
      public static _Fields findByThriftId(int fieldId) {
30851
        switch(fieldId) {
30852
          case 0: // SUCCESS
30853
            return SUCCESS;
30854
          default:
30855
            return null;
30856
        }
30857
      }
30858
 
30859
      /**
30860
       * Find the _Fields constant that matches fieldId, throwing an exception
30861
       * if it is not found.
30862
       */
30863
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30864
        _Fields fields = findByThriftId(fieldId);
30865
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30866
        return fields;
30867
      }
30868
 
30869
      /**
30870
       * Find the _Fields constant that matches name, or null if its not found.
30871
       */
30872
      public static _Fields findByName(String name) {
30873
        return byName.get(name);
30874
      }
30875
 
30876
      private final short _thriftId;
30877
      private final String _fieldName;
30878
 
30879
      _Fields(short thriftId, String fieldName) {
30880
        _thriftId = thriftId;
30881
        _fieldName = fieldName;
30882
      }
30883
 
30884
      public short getThriftFieldId() {
30885
        return _thriftId;
30886
      }
30887
 
30888
      public String getFieldName() {
30889
        return _fieldName;
30890
      }
30891
    }
30892
 
30893
    // isset id assignments
30894
 
30895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30896
    static {
30897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30898
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30899
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
30900
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
30901
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
30902
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30903
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
30904
    }
30905
 
30906
    public getInventorySnapshot_result() {
30907
    }
30908
 
30909
    public getInventorySnapshot_result(
30910
      Map<Long,ItemInventory> success)
30911
    {
30912
      this();
30913
      this.success = success;
30914
    }
30915
 
30916
    /**
30917
     * Performs a deep copy on <i>other</i>.
30918
     */
30919
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
30920
      if (other.isSetSuccess()) {
30921
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
30922
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
30923
 
30924
          Long other_element_key = other_element.getKey();
30925
          ItemInventory other_element_value = other_element.getValue();
30926
 
30927
          Long __this__success_copy_key = other_element_key;
30928
 
30929
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
30930
 
30931
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
30932
        }
30933
        this.success = __this__success;
30934
      }
30935
    }
30936
 
30937
    public getInventorySnapshot_result deepCopy() {
30938
      return new getInventorySnapshot_result(this);
30939
    }
30940
 
30941
    @Override
30942
    public void clear() {
30943
      this.success = null;
30944
    }
30945
 
30946
    public int getSuccessSize() {
30947
      return (this.success == null) ? 0 : this.success.size();
30948
    }
30949
 
30950
    public void putToSuccess(long key, ItemInventory val) {
30951
      if (this.success == null) {
30952
        this.success = new HashMap<Long,ItemInventory>();
30953
      }
30954
      this.success.put(key, val);
30955
    }
30956
 
30957
    public Map<Long,ItemInventory> getSuccess() {
30958
      return this.success;
30959
    }
30960
 
30961
    public void setSuccess(Map<Long,ItemInventory> success) {
30962
      this.success = success;
30963
    }
30964
 
30965
    public void unsetSuccess() {
30966
      this.success = null;
30967
    }
30968
 
30969
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30970
    public boolean isSetSuccess() {
30971
      return this.success != null;
30972
    }
30973
 
30974
    public void setSuccessIsSet(boolean value) {
30975
      if (!value) {
30976
        this.success = null;
30977
      }
30978
    }
30979
 
30980
    public void setFieldValue(_Fields field, Object value) {
30981
      switch (field) {
30982
      case SUCCESS:
30983
        if (value == null) {
30984
          unsetSuccess();
30985
        } else {
30986
          setSuccess((Map<Long,ItemInventory>)value);
30987
        }
30988
        break;
30989
 
30990
      }
30991
    }
30992
 
30993
    public Object getFieldValue(_Fields field) {
30994
      switch (field) {
30995
      case SUCCESS:
30996
        return getSuccess();
30997
 
30998
      }
30999
      throw new IllegalStateException();
31000
    }
31001
 
31002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31003
    public boolean isSet(_Fields field) {
31004
      if (field == null) {
31005
        throw new IllegalArgumentException();
31006
      }
31007
 
31008
      switch (field) {
31009
      case SUCCESS:
31010
        return isSetSuccess();
31011
      }
31012
      throw new IllegalStateException();
31013
    }
31014
 
31015
    @Override
31016
    public boolean equals(Object that) {
31017
      if (that == null)
31018
        return false;
31019
      if (that instanceof getInventorySnapshot_result)
31020
        return this.equals((getInventorySnapshot_result)that);
31021
      return false;
31022
    }
31023
 
31024
    public boolean equals(getInventorySnapshot_result that) {
31025
      if (that == null)
31026
        return false;
31027
 
31028
      boolean this_present_success = true && this.isSetSuccess();
31029
      boolean that_present_success = true && that.isSetSuccess();
31030
      if (this_present_success || that_present_success) {
31031
        if (!(this_present_success && that_present_success))
31032
          return false;
31033
        if (!this.success.equals(that.success))
31034
          return false;
31035
      }
31036
 
31037
      return true;
31038
    }
31039
 
31040
    @Override
31041
    public int hashCode() {
31042
      return 0;
31043
    }
31044
 
31045
    public int compareTo(getInventorySnapshot_result other) {
31046
      if (!getClass().equals(other.getClass())) {
31047
        return getClass().getName().compareTo(other.getClass().getName());
31048
      }
31049
 
31050
      int lastComparison = 0;
31051
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
31052
 
31053
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31054
      if (lastComparison != 0) {
31055
        return lastComparison;
31056
      }
31057
      if (isSetSuccess()) {
31058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31059
        if (lastComparison != 0) {
31060
          return lastComparison;
31061
        }
31062
      }
31063
      return 0;
31064
    }
31065
 
31066
    public _Fields fieldForId(int fieldId) {
31067
      return _Fields.findByThriftId(fieldId);
31068
    }
31069
 
31070
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31071
      org.apache.thrift.protocol.TField field;
31072
      iprot.readStructBegin();
31073
      while (true)
31074
      {
31075
        field = iprot.readFieldBegin();
31076
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31077
          break;
31078
        }
31079
        switch (field.id) {
31080
          case 0: // SUCCESS
31081
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31082
              {
8182 amar.kumar 31083
                org.apache.thrift.protocol.TMap _map79 = iprot.readMapBegin();
31084
                this.success = new HashMap<Long,ItemInventory>(2*_map79.size);
31085
                for (int _i80 = 0; _i80 < _map79.size; ++_i80)
5945 mandeep.dh 31086
                {
8182 amar.kumar 31087
                  long _key81; // required
31088
                  ItemInventory _val82; // required
31089
                  _key81 = iprot.readI64();
31090
                  _val82 = new ItemInventory();
31091
                  _val82.read(iprot);
31092
                  this.success.put(_key81, _val82);
5945 mandeep.dh 31093
                }
31094
                iprot.readMapEnd();
31095
              }
31096
            } else { 
31097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31098
            }
31099
            break;
31100
          default:
31101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31102
        }
31103
        iprot.readFieldEnd();
31104
      }
31105
      iprot.readStructEnd();
31106
      validate();
31107
    }
31108
 
31109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31110
      oprot.writeStructBegin(STRUCT_DESC);
31111
 
31112
      if (this.isSetSuccess()) {
31113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31114
        {
31115
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 31116
          for (Map.Entry<Long, ItemInventory> _iter83 : this.success.entrySet())
5945 mandeep.dh 31117
          {
8182 amar.kumar 31118
            oprot.writeI64(_iter83.getKey());
31119
            _iter83.getValue().write(oprot);
5945 mandeep.dh 31120
          }
31121
          oprot.writeMapEnd();
31122
        }
31123
        oprot.writeFieldEnd();
31124
      }
31125
      oprot.writeFieldStop();
31126
      oprot.writeStructEnd();
31127
    }
31128
 
31129
    @Override
31130
    public String toString() {
31131
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
31132
      boolean first = true;
31133
 
31134
      sb.append("success:");
31135
      if (this.success == null) {
31136
        sb.append("null");
31137
      } else {
31138
        sb.append(this.success);
31139
      }
31140
      first = false;
31141
      sb.append(")");
31142
      return sb.toString();
31143
    }
31144
 
31145
    public void validate() throws org.apache.thrift.TException {
31146
      // check for required fields
31147
    }
31148
 
31149
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31150
      try {
31151
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31152
      } catch (org.apache.thrift.TException te) {
31153
        throw new java.io.IOException(te);
31154
      }
31155
    }
31156
 
31157
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31158
      try {
31159
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31160
      } catch (org.apache.thrift.TException te) {
31161
        throw new java.io.IOException(te);
31162
      }
31163
    }
31164
 
31165
  }
31166
 
31167
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
31168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
31169
 
31170
 
31171
 
31172
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31173
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31174
;
31175
 
31176
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31177
 
31178
      static {
31179
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31180
          byName.put(field.getFieldName(), field);
31181
        }
31182
      }
31183
 
31184
      /**
31185
       * Find the _Fields constant that matches fieldId, or null if its not found.
31186
       */
31187
      public static _Fields findByThriftId(int fieldId) {
31188
        switch(fieldId) {
31189
          default:
31190
            return null;
31191
        }
31192
      }
31193
 
31194
      /**
31195
       * Find the _Fields constant that matches fieldId, throwing an exception
31196
       * if it is not found.
31197
       */
31198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31199
        _Fields fields = findByThriftId(fieldId);
31200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31201
        return fields;
31202
      }
31203
 
31204
      /**
31205
       * Find the _Fields constant that matches name, or null if its not found.
31206
       */
31207
      public static _Fields findByName(String name) {
31208
        return byName.get(name);
31209
      }
31210
 
31211
      private final short _thriftId;
31212
      private final String _fieldName;
31213
 
31214
      _Fields(short thriftId, String fieldName) {
31215
        _thriftId = thriftId;
31216
        _fieldName = fieldName;
31217
      }
31218
 
31219
      public short getThriftFieldId() {
31220
        return _thriftId;
31221
      }
31222
 
31223
      public String getFieldName() {
31224
        return _fieldName;
31225
      }
31226
    }
31227
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31228
    static {
31229
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31230
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31231
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
31232
    }
31233
 
31234
    public clearItemAvailabilityCache_args() {
31235
    }
31236
 
31237
    /**
31238
     * Performs a deep copy on <i>other</i>.
31239
     */
31240
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
31241
    }
31242
 
31243
    public clearItemAvailabilityCache_args deepCopy() {
31244
      return new clearItemAvailabilityCache_args(this);
31245
    }
31246
 
31247
    @Override
31248
    public void clear() {
31249
    }
31250
 
31251
    public void setFieldValue(_Fields field, Object value) {
31252
      switch (field) {
31253
      }
31254
    }
31255
 
31256
    public Object getFieldValue(_Fields field) {
31257
      switch (field) {
31258
      }
31259
      throw new IllegalStateException();
31260
    }
31261
 
31262
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31263
    public boolean isSet(_Fields field) {
31264
      if (field == null) {
31265
        throw new IllegalArgumentException();
31266
      }
31267
 
31268
      switch (field) {
31269
      }
31270
      throw new IllegalStateException();
31271
    }
31272
 
31273
    @Override
31274
    public boolean equals(Object that) {
31275
      if (that == null)
31276
        return false;
31277
      if (that instanceof clearItemAvailabilityCache_args)
31278
        return this.equals((clearItemAvailabilityCache_args)that);
31279
      return false;
31280
    }
31281
 
31282
    public boolean equals(clearItemAvailabilityCache_args that) {
31283
      if (that == null)
31284
        return false;
31285
 
31286
      return true;
31287
    }
31288
 
31289
    @Override
31290
    public int hashCode() {
31291
      return 0;
31292
    }
31293
 
31294
    public int compareTo(clearItemAvailabilityCache_args other) {
31295
      if (!getClass().equals(other.getClass())) {
31296
        return getClass().getName().compareTo(other.getClass().getName());
31297
      }
31298
 
31299
      int lastComparison = 0;
31300
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
31301
 
31302
      return 0;
31303
    }
31304
 
31305
    public _Fields fieldForId(int fieldId) {
31306
      return _Fields.findByThriftId(fieldId);
31307
    }
31308
 
31309
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31310
      org.apache.thrift.protocol.TField field;
31311
      iprot.readStructBegin();
31312
      while (true)
31313
      {
31314
        field = iprot.readFieldBegin();
31315
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31316
          break;
31317
        }
31318
        switch (field.id) {
31319
          default:
31320
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31321
        }
31322
        iprot.readFieldEnd();
31323
      }
31324
      iprot.readStructEnd();
31325
      validate();
31326
    }
31327
 
31328
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31329
      validate();
31330
 
31331
      oprot.writeStructBegin(STRUCT_DESC);
31332
      oprot.writeFieldStop();
31333
      oprot.writeStructEnd();
31334
    }
31335
 
31336
    @Override
31337
    public String toString() {
31338
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
31339
      boolean first = true;
31340
 
31341
      sb.append(")");
31342
      return sb.toString();
31343
    }
31344
 
31345
    public void validate() throws org.apache.thrift.TException {
31346
      // check for required fields
31347
    }
31348
 
31349
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31350
      try {
31351
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31352
      } catch (org.apache.thrift.TException te) {
31353
        throw new java.io.IOException(te);
31354
      }
31355
    }
31356
 
31357
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31358
      try {
31359
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31360
      } catch (org.apache.thrift.TException te) {
31361
        throw new java.io.IOException(te);
31362
      }
31363
    }
31364
 
31365
  }
31366
 
31367
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
31368
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
31369
 
31370
 
31371
 
31372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31374
;
31375
 
31376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31377
 
31378
      static {
31379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31380
          byName.put(field.getFieldName(), field);
31381
        }
31382
      }
31383
 
31384
      /**
31385
       * Find the _Fields constant that matches fieldId, or null if its not found.
31386
       */
31387
      public static _Fields findByThriftId(int fieldId) {
31388
        switch(fieldId) {
31389
          default:
31390
            return null;
31391
        }
31392
      }
31393
 
31394
      /**
31395
       * Find the _Fields constant that matches fieldId, throwing an exception
31396
       * if it is not found.
31397
       */
31398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31399
        _Fields fields = findByThriftId(fieldId);
31400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31401
        return fields;
31402
      }
31403
 
31404
      /**
31405
       * Find the _Fields constant that matches name, or null if its not found.
31406
       */
31407
      public static _Fields findByName(String name) {
31408
        return byName.get(name);
31409
      }
31410
 
31411
      private final short _thriftId;
31412
      private final String _fieldName;
31413
 
31414
      _Fields(short thriftId, String fieldName) {
31415
        _thriftId = thriftId;
31416
        _fieldName = fieldName;
31417
      }
31418
 
31419
      public short getThriftFieldId() {
31420
        return _thriftId;
31421
      }
31422
 
31423
      public String getFieldName() {
31424
        return _fieldName;
31425
      }
31426
    }
31427
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31428
    static {
31429
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
31432
    }
31433
 
31434
    public clearItemAvailabilityCache_result() {
31435
    }
31436
 
31437
    /**
31438
     * Performs a deep copy on <i>other</i>.
31439
     */
31440
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
31441
    }
31442
 
31443
    public clearItemAvailabilityCache_result deepCopy() {
31444
      return new clearItemAvailabilityCache_result(this);
31445
    }
31446
 
31447
    @Override
31448
    public void clear() {
31449
    }
31450
 
31451
    public void setFieldValue(_Fields field, Object value) {
31452
      switch (field) {
31453
      }
31454
    }
31455
 
31456
    public Object getFieldValue(_Fields field) {
31457
      switch (field) {
31458
      }
31459
      throw new IllegalStateException();
31460
    }
31461
 
31462
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31463
    public boolean isSet(_Fields field) {
31464
      if (field == null) {
31465
        throw new IllegalArgumentException();
31466
      }
31467
 
31468
      switch (field) {
31469
      }
31470
      throw new IllegalStateException();
31471
    }
31472
 
31473
    @Override
31474
    public boolean equals(Object that) {
31475
      if (that == null)
31476
        return false;
31477
      if (that instanceof clearItemAvailabilityCache_result)
31478
        return this.equals((clearItemAvailabilityCache_result)that);
31479
      return false;
31480
    }
31481
 
31482
    public boolean equals(clearItemAvailabilityCache_result that) {
31483
      if (that == null)
31484
        return false;
31485
 
31486
      return true;
31487
    }
31488
 
31489
    @Override
31490
    public int hashCode() {
31491
      return 0;
31492
    }
31493
 
31494
    public int compareTo(clearItemAvailabilityCache_result other) {
31495
      if (!getClass().equals(other.getClass())) {
31496
        return getClass().getName().compareTo(other.getClass().getName());
31497
      }
31498
 
31499
      int lastComparison = 0;
31500
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
31501
 
31502
      return 0;
31503
    }
31504
 
31505
    public _Fields fieldForId(int fieldId) {
31506
      return _Fields.findByThriftId(fieldId);
31507
    }
31508
 
31509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31510
      org.apache.thrift.protocol.TField field;
31511
      iprot.readStructBegin();
31512
      while (true)
31513
      {
31514
        field = iprot.readFieldBegin();
31515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31516
          break;
31517
        }
31518
        switch (field.id) {
31519
          default:
31520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31521
        }
31522
        iprot.readFieldEnd();
31523
      }
31524
      iprot.readStructEnd();
31525
      validate();
31526
    }
31527
 
31528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31529
      oprot.writeStructBegin(STRUCT_DESC);
31530
 
31531
      oprot.writeFieldStop();
31532
      oprot.writeStructEnd();
31533
    }
31534
 
31535
    @Override
31536
    public String toString() {
31537
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
31538
      boolean first = true;
31539
 
31540
      sb.append(")");
31541
      return sb.toString();
31542
    }
31543
 
31544
    public void validate() throws org.apache.thrift.TException {
31545
      // check for required fields
31546
    }
31547
 
31548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31549
      try {
31550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31551
      } catch (org.apache.thrift.TException te) {
31552
        throw new java.io.IOException(te);
31553
      }
31554
    }
31555
 
31556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31557
      try {
31558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31559
      } catch (org.apache.thrift.TException te) {
31560
        throw new java.io.IOException(te);
31561
      }
31562
    }
31563
 
31564
  }
31565
 
31566
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
31567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
31568
 
31569
    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);
31570
    private static final org.apache.thrift.protocol.TField VENDOR_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorString", org.apache.thrift.protocol.TType.STRING, (short)2);
31571
 
31572
    private long warehouseId; // required
31573
    private String vendorString; // required
31574
 
31575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31577
      WAREHOUSE_ID((short)1, "warehouseId"),
31578
      VENDOR_STRING((short)2, "vendorString");
31579
 
31580
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31581
 
31582
      static {
31583
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31584
          byName.put(field.getFieldName(), field);
31585
        }
31586
      }
31587
 
31588
      /**
31589
       * Find the _Fields constant that matches fieldId, or null if its not found.
31590
       */
31591
      public static _Fields findByThriftId(int fieldId) {
31592
        switch(fieldId) {
31593
          case 1: // WAREHOUSE_ID
31594
            return WAREHOUSE_ID;
31595
          case 2: // VENDOR_STRING
31596
            return VENDOR_STRING;
31597
          default:
31598
            return null;
31599
        }
31600
      }
31601
 
31602
      /**
31603
       * Find the _Fields constant that matches fieldId, throwing an exception
31604
       * if it is not found.
31605
       */
31606
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31607
        _Fields fields = findByThriftId(fieldId);
31608
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31609
        return fields;
31610
      }
31611
 
31612
      /**
31613
       * Find the _Fields constant that matches name, or null if its not found.
31614
       */
31615
      public static _Fields findByName(String name) {
31616
        return byName.get(name);
31617
      }
31618
 
31619
      private final short _thriftId;
31620
      private final String _fieldName;
31621
 
31622
      _Fields(short thriftId, String fieldName) {
31623
        _thriftId = thriftId;
31624
        _fieldName = fieldName;
31625
      }
31626
 
31627
      public short getThriftFieldId() {
31628
        return _thriftId;
31629
      }
31630
 
31631
      public String getFieldName() {
31632
        return _fieldName;
31633
      }
31634
    }
31635
 
31636
    // isset id assignments
31637
    private static final int __WAREHOUSEID_ISSET_ID = 0;
31638
    private BitSet __isset_bit_vector = new BitSet(1);
31639
 
31640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31641
    static {
31642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31643
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31644
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31645
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
31647
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31648
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
31649
    }
31650
 
31651
    public updateVendorString_args() {
31652
    }
31653
 
31654
    public updateVendorString_args(
31655
      long warehouseId,
31656
      String vendorString)
31657
    {
31658
      this();
31659
      this.warehouseId = warehouseId;
31660
      setWarehouseIdIsSet(true);
31661
      this.vendorString = vendorString;
31662
    }
31663
 
31664
    /**
31665
     * Performs a deep copy on <i>other</i>.
31666
     */
31667
    public updateVendorString_args(updateVendorString_args other) {
31668
      __isset_bit_vector.clear();
31669
      __isset_bit_vector.or(other.__isset_bit_vector);
31670
      this.warehouseId = other.warehouseId;
31671
      if (other.isSetVendorString()) {
31672
        this.vendorString = other.vendorString;
31673
      }
31674
    }
31675
 
31676
    public updateVendorString_args deepCopy() {
31677
      return new updateVendorString_args(this);
31678
    }
31679
 
31680
    @Override
31681
    public void clear() {
31682
      setWarehouseIdIsSet(false);
31683
      this.warehouseId = 0;
31684
      this.vendorString = null;
31685
    }
31686
 
31687
    public long getWarehouseId() {
31688
      return this.warehouseId;
31689
    }
31690
 
31691
    public void setWarehouseId(long warehouseId) {
31692
      this.warehouseId = warehouseId;
31693
      setWarehouseIdIsSet(true);
31694
    }
31695
 
31696
    public void unsetWarehouseId() {
31697
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
31698
    }
31699
 
31700
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
31701
    public boolean isSetWarehouseId() {
31702
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
31703
    }
31704
 
31705
    public void setWarehouseIdIsSet(boolean value) {
31706
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
31707
    }
31708
 
31709
    public String getVendorString() {
31710
      return this.vendorString;
31711
    }
31712
 
31713
    public void setVendorString(String vendorString) {
31714
      this.vendorString = vendorString;
31715
    }
31716
 
31717
    public void unsetVendorString() {
31718
      this.vendorString = null;
31719
    }
31720
 
31721
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
31722
    public boolean isSetVendorString() {
31723
      return this.vendorString != null;
31724
    }
31725
 
31726
    public void setVendorStringIsSet(boolean value) {
31727
      if (!value) {
31728
        this.vendorString = null;
31729
      }
31730
    }
31731
 
31732
    public void setFieldValue(_Fields field, Object value) {
31733
      switch (field) {
31734
      case WAREHOUSE_ID:
31735
        if (value == null) {
31736
          unsetWarehouseId();
31737
        } else {
31738
          setWarehouseId((Long)value);
31739
        }
31740
        break;
31741
 
31742
      case VENDOR_STRING:
31743
        if (value == null) {
31744
          unsetVendorString();
31745
        } else {
31746
          setVendorString((String)value);
31747
        }
31748
        break;
31749
 
31750
      }
31751
    }
31752
 
31753
    public Object getFieldValue(_Fields field) {
31754
      switch (field) {
31755
      case WAREHOUSE_ID:
31756
        return Long.valueOf(getWarehouseId());
31757
 
31758
      case VENDOR_STRING:
31759
        return getVendorString();
31760
 
31761
      }
31762
      throw new IllegalStateException();
31763
    }
31764
 
31765
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31766
    public boolean isSet(_Fields field) {
31767
      if (field == null) {
31768
        throw new IllegalArgumentException();
31769
      }
31770
 
31771
      switch (field) {
31772
      case WAREHOUSE_ID:
31773
        return isSetWarehouseId();
31774
      case VENDOR_STRING:
31775
        return isSetVendorString();
31776
      }
31777
      throw new IllegalStateException();
31778
    }
31779
 
31780
    @Override
31781
    public boolean equals(Object that) {
31782
      if (that == null)
31783
        return false;
31784
      if (that instanceof updateVendorString_args)
31785
        return this.equals((updateVendorString_args)that);
31786
      return false;
31787
    }
31788
 
31789
    public boolean equals(updateVendorString_args that) {
31790
      if (that == null)
31791
        return false;
31792
 
31793
      boolean this_present_warehouseId = true;
31794
      boolean that_present_warehouseId = true;
31795
      if (this_present_warehouseId || that_present_warehouseId) {
31796
        if (!(this_present_warehouseId && that_present_warehouseId))
31797
          return false;
31798
        if (this.warehouseId != that.warehouseId)
31799
          return false;
31800
      }
31801
 
31802
      boolean this_present_vendorString = true && this.isSetVendorString();
31803
      boolean that_present_vendorString = true && that.isSetVendorString();
31804
      if (this_present_vendorString || that_present_vendorString) {
31805
        if (!(this_present_vendorString && that_present_vendorString))
31806
          return false;
31807
        if (!this.vendorString.equals(that.vendorString))
31808
          return false;
31809
      }
31810
 
31811
      return true;
31812
    }
31813
 
31814
    @Override
31815
    public int hashCode() {
31816
      return 0;
31817
    }
31818
 
31819
    public int compareTo(updateVendorString_args other) {
31820
      if (!getClass().equals(other.getClass())) {
31821
        return getClass().getName().compareTo(other.getClass().getName());
31822
      }
31823
 
31824
      int lastComparison = 0;
31825
      updateVendorString_args typedOther = (updateVendorString_args)other;
31826
 
31827
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
31828
      if (lastComparison != 0) {
31829
        return lastComparison;
31830
      }
31831
      if (isSetWarehouseId()) {
31832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
31833
        if (lastComparison != 0) {
31834
          return lastComparison;
31835
        }
31836
      }
31837
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
31838
      if (lastComparison != 0) {
31839
        return lastComparison;
31840
      }
31841
      if (isSetVendorString()) {
31842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
31843
        if (lastComparison != 0) {
31844
          return lastComparison;
31845
        }
31846
      }
31847
      return 0;
31848
    }
31849
 
31850
    public _Fields fieldForId(int fieldId) {
31851
      return _Fields.findByThriftId(fieldId);
31852
    }
31853
 
31854
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31855
      org.apache.thrift.protocol.TField field;
31856
      iprot.readStructBegin();
31857
      while (true)
31858
      {
31859
        field = iprot.readFieldBegin();
31860
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31861
          break;
31862
        }
31863
        switch (field.id) {
31864
          case 1: // WAREHOUSE_ID
31865
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31866
              this.warehouseId = iprot.readI64();
31867
              setWarehouseIdIsSet(true);
31868
            } else { 
31869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31870
            }
31871
            break;
31872
          case 2: // VENDOR_STRING
31873
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
31874
              this.vendorString = iprot.readString();
31875
            } else { 
31876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31877
            }
31878
            break;
31879
          default:
31880
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31881
        }
31882
        iprot.readFieldEnd();
31883
      }
31884
      iprot.readStructEnd();
31885
      validate();
31886
    }
31887
 
31888
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31889
      validate();
31890
 
31891
      oprot.writeStructBegin(STRUCT_DESC);
31892
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
31893
      oprot.writeI64(this.warehouseId);
31894
      oprot.writeFieldEnd();
31895
      if (this.vendorString != null) {
31896
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
31897
        oprot.writeString(this.vendorString);
31898
        oprot.writeFieldEnd();
31899
      }
31900
      oprot.writeFieldStop();
31901
      oprot.writeStructEnd();
31902
    }
31903
 
31904
    @Override
31905
    public String toString() {
31906
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
31907
      boolean first = true;
31908
 
31909
      sb.append("warehouseId:");
31910
      sb.append(this.warehouseId);
31911
      first = false;
31912
      if (!first) sb.append(", ");
31913
      sb.append("vendorString:");
31914
      if (this.vendorString == null) {
31915
        sb.append("null");
31916
      } else {
31917
        sb.append(this.vendorString);
31918
      }
31919
      first = false;
31920
      sb.append(")");
31921
      return sb.toString();
31922
    }
31923
 
31924
    public void validate() throws org.apache.thrift.TException {
31925
      // check for required fields
31926
    }
31927
 
31928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31929
      try {
31930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31931
      } catch (org.apache.thrift.TException te) {
31932
        throw new java.io.IOException(te);
31933
      }
31934
    }
31935
 
31936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31937
      try {
5967 rajveer 31938
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31939
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 31940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31941
      } catch (org.apache.thrift.TException te) {
31942
        throw new java.io.IOException(te);
31943
      }
31944
    }
31945
 
31946
  }
31947
 
31948
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
31949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
31950
 
31951
 
31952
 
31953
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31954
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31955
;
31956
 
31957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31958
 
31959
      static {
31960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31961
          byName.put(field.getFieldName(), field);
31962
        }
31963
      }
31964
 
31965
      /**
31966
       * Find the _Fields constant that matches fieldId, or null if its not found.
31967
       */
31968
      public static _Fields findByThriftId(int fieldId) {
31969
        switch(fieldId) {
31970
          default:
31971
            return null;
31972
        }
31973
      }
31974
 
31975
      /**
31976
       * Find the _Fields constant that matches fieldId, throwing an exception
31977
       * if it is not found.
31978
       */
31979
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31980
        _Fields fields = findByThriftId(fieldId);
31981
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31982
        return fields;
31983
      }
31984
 
31985
      /**
31986
       * Find the _Fields constant that matches name, or null if its not found.
31987
       */
31988
      public static _Fields findByName(String name) {
31989
        return byName.get(name);
31990
      }
31991
 
31992
      private final short _thriftId;
31993
      private final String _fieldName;
31994
 
31995
      _Fields(short thriftId, String fieldName) {
31996
        _thriftId = thriftId;
31997
        _fieldName = fieldName;
31998
      }
31999
 
32000
      public short getThriftFieldId() {
32001
        return _thriftId;
32002
      }
32003
 
32004
      public String getFieldName() {
32005
        return _fieldName;
32006
      }
32007
    }
32008
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32009
    static {
32010
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32011
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32012
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
32013
    }
32014
 
32015
    public updateVendorString_result() {
32016
    }
32017
 
32018
    /**
32019
     * Performs a deep copy on <i>other</i>.
32020
     */
32021
    public updateVendorString_result(updateVendorString_result other) {
32022
    }
32023
 
32024
    public updateVendorString_result deepCopy() {
32025
      return new updateVendorString_result(this);
32026
    }
32027
 
32028
    @Override
32029
    public void clear() {
32030
    }
32031
 
32032
    public void setFieldValue(_Fields field, Object value) {
32033
      switch (field) {
32034
      }
32035
    }
32036
 
32037
    public Object getFieldValue(_Fields field) {
32038
      switch (field) {
32039
      }
32040
      throw new IllegalStateException();
32041
    }
32042
 
32043
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32044
    public boolean isSet(_Fields field) {
32045
      if (field == null) {
32046
        throw new IllegalArgumentException();
32047
      }
32048
 
32049
      switch (field) {
32050
      }
32051
      throw new IllegalStateException();
32052
    }
32053
 
32054
    @Override
32055
    public boolean equals(Object that) {
32056
      if (that == null)
32057
        return false;
32058
      if (that instanceof updateVendorString_result)
32059
        return this.equals((updateVendorString_result)that);
32060
      return false;
32061
    }
32062
 
32063
    public boolean equals(updateVendorString_result that) {
32064
      if (that == null)
32065
        return false;
32066
 
32067
      return true;
32068
    }
32069
 
32070
    @Override
32071
    public int hashCode() {
32072
      return 0;
32073
    }
32074
 
32075
    public int compareTo(updateVendorString_result other) {
32076
      if (!getClass().equals(other.getClass())) {
32077
        return getClass().getName().compareTo(other.getClass().getName());
32078
      }
32079
 
32080
      int lastComparison = 0;
32081
      updateVendorString_result typedOther = (updateVendorString_result)other;
32082
 
32083
      return 0;
32084
    }
32085
 
32086
    public _Fields fieldForId(int fieldId) {
32087
      return _Fields.findByThriftId(fieldId);
32088
    }
32089
 
32090
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32091
      org.apache.thrift.protocol.TField field;
32092
      iprot.readStructBegin();
32093
      while (true)
32094
      {
32095
        field = iprot.readFieldBegin();
32096
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32097
          break;
32098
        }
32099
        switch (field.id) {
32100
          default:
32101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32102
        }
32103
        iprot.readFieldEnd();
32104
      }
32105
      iprot.readStructEnd();
32106
      validate();
32107
    }
32108
 
32109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32110
      oprot.writeStructBegin(STRUCT_DESC);
32111
 
32112
      oprot.writeFieldStop();
32113
      oprot.writeStructEnd();
32114
    }
32115
 
32116
    @Override
32117
    public String toString() {
32118
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
32119
      boolean first = true;
32120
 
32121
      sb.append(")");
32122
      return sb.toString();
32123
    }
32124
 
32125
    public void validate() throws org.apache.thrift.TException {
32126
      // check for required fields
32127
    }
32128
 
32129
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32130
      try {
32131
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32132
      } catch (org.apache.thrift.TException te) {
32133
        throw new java.io.IOException(te);
32134
      }
32135
    }
32136
 
32137
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32138
      try {
32139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32140
      } catch (org.apache.thrift.TException te) {
32141
        throw new java.io.IOException(te);
32142
      }
32143
    }
32144
 
32145
  }
32146
 
6096 amit.gupta 32147
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
32148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
32149
 
32150
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
32151
 
32152
    private long item_id; // required
32153
 
32154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32156
      ITEM_ID((short)1, "item_id");
32157
 
32158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32159
 
32160
      static {
32161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32162
          byName.put(field.getFieldName(), field);
32163
        }
32164
      }
32165
 
32166
      /**
32167
       * Find the _Fields constant that matches fieldId, or null if its not found.
32168
       */
32169
      public static _Fields findByThriftId(int fieldId) {
32170
        switch(fieldId) {
32171
          case 1: // ITEM_ID
32172
            return ITEM_ID;
32173
          default:
32174
            return null;
32175
        }
32176
      }
32177
 
32178
      /**
32179
       * Find the _Fields constant that matches fieldId, throwing an exception
32180
       * if it is not found.
32181
       */
32182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32183
        _Fields fields = findByThriftId(fieldId);
32184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32185
        return fields;
32186
      }
32187
 
32188
      /**
32189
       * Find the _Fields constant that matches name, or null if its not found.
32190
       */
32191
      public static _Fields findByName(String name) {
32192
        return byName.get(name);
32193
      }
32194
 
32195
      private final short _thriftId;
32196
      private final String _fieldName;
32197
 
32198
      _Fields(short thriftId, String fieldName) {
32199
        _thriftId = thriftId;
32200
        _fieldName = fieldName;
32201
      }
32202
 
32203
      public short getThriftFieldId() {
32204
        return _thriftId;
32205
      }
32206
 
32207
      public String getFieldName() {
32208
        return _fieldName;
32209
      }
32210
    }
32211
 
32212
    // isset id assignments
32213
    private static final int __ITEM_ID_ISSET_ID = 0;
32214
    private BitSet __isset_bit_vector = new BitSet(1);
32215
 
32216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32217
    static {
32218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32219
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
32223
    }
32224
 
32225
    public clearItemAvailabilityCacheForItem_args() {
32226
    }
32227
 
32228
    public clearItemAvailabilityCacheForItem_args(
32229
      long item_id)
32230
    {
32231
      this();
32232
      this.item_id = item_id;
32233
      setItem_idIsSet(true);
32234
    }
32235
 
32236
    /**
32237
     * Performs a deep copy on <i>other</i>.
32238
     */
32239
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
32240
      __isset_bit_vector.clear();
32241
      __isset_bit_vector.or(other.__isset_bit_vector);
32242
      this.item_id = other.item_id;
32243
    }
32244
 
32245
    public clearItemAvailabilityCacheForItem_args deepCopy() {
32246
      return new clearItemAvailabilityCacheForItem_args(this);
32247
    }
32248
 
32249
    @Override
32250
    public void clear() {
32251
      setItem_idIsSet(false);
32252
      this.item_id = 0;
32253
    }
32254
 
32255
    public long getItem_id() {
32256
      return this.item_id;
32257
    }
32258
 
32259
    public void setItem_id(long item_id) {
32260
      this.item_id = item_id;
32261
      setItem_idIsSet(true);
32262
    }
32263
 
32264
    public void unsetItem_id() {
32265
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
32266
    }
32267
 
32268
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
32269
    public boolean isSetItem_id() {
32270
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
32271
    }
32272
 
32273
    public void setItem_idIsSet(boolean value) {
32274
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
32275
    }
32276
 
32277
    public void setFieldValue(_Fields field, Object value) {
32278
      switch (field) {
32279
      case ITEM_ID:
32280
        if (value == null) {
32281
          unsetItem_id();
32282
        } else {
32283
          setItem_id((Long)value);
32284
        }
32285
        break;
32286
 
32287
      }
32288
    }
32289
 
32290
    public Object getFieldValue(_Fields field) {
32291
      switch (field) {
32292
      case ITEM_ID:
32293
        return Long.valueOf(getItem_id());
32294
 
32295
      }
32296
      throw new IllegalStateException();
32297
    }
32298
 
32299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32300
    public boolean isSet(_Fields field) {
32301
      if (field == null) {
32302
        throw new IllegalArgumentException();
32303
      }
32304
 
32305
      switch (field) {
32306
      case ITEM_ID:
32307
        return isSetItem_id();
32308
      }
32309
      throw new IllegalStateException();
32310
    }
32311
 
32312
    @Override
32313
    public boolean equals(Object that) {
32314
      if (that == null)
32315
        return false;
32316
      if (that instanceof clearItemAvailabilityCacheForItem_args)
32317
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
32318
      return false;
32319
    }
32320
 
32321
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
32322
      if (that == null)
32323
        return false;
32324
 
32325
      boolean this_present_item_id = true;
32326
      boolean that_present_item_id = true;
32327
      if (this_present_item_id || that_present_item_id) {
32328
        if (!(this_present_item_id && that_present_item_id))
32329
          return false;
32330
        if (this.item_id != that.item_id)
32331
          return false;
32332
      }
32333
 
32334
      return true;
32335
    }
32336
 
32337
    @Override
32338
    public int hashCode() {
32339
      return 0;
32340
    }
32341
 
32342
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
32343
      if (!getClass().equals(other.getClass())) {
32344
        return getClass().getName().compareTo(other.getClass().getName());
32345
      }
32346
 
32347
      int lastComparison = 0;
32348
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
32349
 
32350
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
32351
      if (lastComparison != 0) {
32352
        return lastComparison;
32353
      }
32354
      if (isSetItem_id()) {
32355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
32356
        if (lastComparison != 0) {
32357
          return lastComparison;
32358
        }
32359
      }
32360
      return 0;
32361
    }
32362
 
32363
    public _Fields fieldForId(int fieldId) {
32364
      return _Fields.findByThriftId(fieldId);
32365
    }
32366
 
32367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32368
      org.apache.thrift.protocol.TField field;
32369
      iprot.readStructBegin();
32370
      while (true)
32371
      {
32372
        field = iprot.readFieldBegin();
32373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32374
          break;
32375
        }
32376
        switch (field.id) {
32377
          case 1: // ITEM_ID
32378
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32379
              this.item_id = iprot.readI64();
32380
              setItem_idIsSet(true);
32381
            } else { 
32382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32383
            }
32384
            break;
32385
          default:
32386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32387
        }
32388
        iprot.readFieldEnd();
32389
      }
32390
      iprot.readStructEnd();
32391
      validate();
32392
    }
32393
 
32394
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32395
      validate();
32396
 
32397
      oprot.writeStructBegin(STRUCT_DESC);
32398
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
32399
      oprot.writeI64(this.item_id);
32400
      oprot.writeFieldEnd();
32401
      oprot.writeFieldStop();
32402
      oprot.writeStructEnd();
32403
    }
32404
 
32405
    @Override
32406
    public String toString() {
32407
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
32408
      boolean first = true;
32409
 
32410
      sb.append("item_id:");
32411
      sb.append(this.item_id);
32412
      first = false;
32413
      sb.append(")");
32414
      return sb.toString();
32415
    }
32416
 
32417
    public void validate() throws org.apache.thrift.TException {
32418
      // check for required fields
32419
    }
32420
 
32421
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32422
      try {
32423
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32424
      } catch (org.apache.thrift.TException te) {
32425
        throw new java.io.IOException(te);
32426
      }
32427
    }
32428
 
32429
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32430
      try {
32431
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32432
        __isset_bit_vector = new BitSet(1);
32433
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32434
      } catch (org.apache.thrift.TException te) {
32435
        throw new java.io.IOException(te);
32436
      }
32437
    }
32438
 
32439
  }
32440
 
32441
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
32442
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
32443
 
32444
 
32445
 
32446
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32447
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32448
;
32449
 
32450
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32451
 
32452
      static {
32453
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32454
          byName.put(field.getFieldName(), field);
32455
        }
32456
      }
32457
 
32458
      /**
32459
       * Find the _Fields constant that matches fieldId, or null if its not found.
32460
       */
32461
      public static _Fields findByThriftId(int fieldId) {
32462
        switch(fieldId) {
32463
          default:
32464
            return null;
32465
        }
32466
      }
32467
 
32468
      /**
32469
       * Find the _Fields constant that matches fieldId, throwing an exception
32470
       * if it is not found.
32471
       */
32472
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32473
        _Fields fields = findByThriftId(fieldId);
32474
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32475
        return fields;
32476
      }
32477
 
32478
      /**
32479
       * Find the _Fields constant that matches name, or null if its not found.
32480
       */
32481
      public static _Fields findByName(String name) {
32482
        return byName.get(name);
32483
      }
32484
 
32485
      private final short _thriftId;
32486
      private final String _fieldName;
32487
 
32488
      _Fields(short thriftId, String fieldName) {
32489
        _thriftId = thriftId;
32490
        _fieldName = fieldName;
32491
      }
32492
 
32493
      public short getThriftFieldId() {
32494
        return _thriftId;
32495
      }
32496
 
32497
      public String getFieldName() {
32498
        return _fieldName;
32499
      }
32500
    }
32501
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32502
    static {
32503
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32504
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32505
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
32506
    }
32507
 
32508
    public clearItemAvailabilityCacheForItem_result() {
32509
    }
32510
 
32511
    /**
32512
     * Performs a deep copy on <i>other</i>.
32513
     */
32514
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
32515
    }
32516
 
32517
    public clearItemAvailabilityCacheForItem_result deepCopy() {
32518
      return new clearItemAvailabilityCacheForItem_result(this);
32519
    }
32520
 
32521
    @Override
32522
    public void clear() {
32523
    }
32524
 
32525
    public void setFieldValue(_Fields field, Object value) {
32526
      switch (field) {
32527
      }
32528
    }
32529
 
32530
    public Object getFieldValue(_Fields field) {
32531
      switch (field) {
32532
      }
32533
      throw new IllegalStateException();
32534
    }
32535
 
32536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32537
    public boolean isSet(_Fields field) {
32538
      if (field == null) {
32539
        throw new IllegalArgumentException();
32540
      }
32541
 
32542
      switch (field) {
32543
      }
32544
      throw new IllegalStateException();
32545
    }
32546
 
32547
    @Override
32548
    public boolean equals(Object that) {
32549
      if (that == null)
32550
        return false;
32551
      if (that instanceof clearItemAvailabilityCacheForItem_result)
32552
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
32553
      return false;
32554
    }
32555
 
32556
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
32557
      if (that == null)
32558
        return false;
32559
 
32560
      return true;
32561
    }
32562
 
32563
    @Override
32564
    public int hashCode() {
32565
      return 0;
32566
    }
32567
 
32568
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
32569
      if (!getClass().equals(other.getClass())) {
32570
        return getClass().getName().compareTo(other.getClass().getName());
32571
      }
32572
 
32573
      int lastComparison = 0;
32574
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
32575
 
32576
      return 0;
32577
    }
32578
 
32579
    public _Fields fieldForId(int fieldId) {
32580
      return _Fields.findByThriftId(fieldId);
32581
    }
32582
 
32583
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32584
      org.apache.thrift.protocol.TField field;
32585
      iprot.readStructBegin();
32586
      while (true)
32587
      {
32588
        field = iprot.readFieldBegin();
32589
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32590
          break;
32591
        }
32592
        switch (field.id) {
32593
          default:
32594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32595
        }
32596
        iprot.readFieldEnd();
32597
      }
32598
      iprot.readStructEnd();
32599
      validate();
32600
    }
32601
 
32602
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32603
      oprot.writeStructBegin(STRUCT_DESC);
32604
 
32605
      oprot.writeFieldStop();
32606
      oprot.writeStructEnd();
32607
    }
32608
 
32609
    @Override
32610
    public String toString() {
32611
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
32612
      boolean first = true;
32613
 
32614
      sb.append(")");
32615
      return sb.toString();
32616
    }
32617
 
32618
    public void validate() throws org.apache.thrift.TException {
32619
      // check for required fields
32620
    }
32621
 
32622
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32623
      try {
32624
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32625
      } catch (org.apache.thrift.TException te) {
32626
        throw new java.io.IOException(te);
32627
      }
32628
    }
32629
 
32630
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32631
      try {
32632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32633
      } catch (org.apache.thrift.TException te) {
32634
        throw new java.io.IOException(te);
32635
      }
32636
    }
32637
 
32638
  }
32639
 
6467 amar.kumar 32640
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
32641
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
32642
 
32643
    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)1);
7718 amar.kumar 32644
    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)2);
6467 amar.kumar 32645
 
32646
    private long vendorId; // required
7718 amar.kumar 32647
    private long billingWarehouseId; // required
6467 amar.kumar 32648
 
32649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32650
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7718 amar.kumar 32651
      VENDOR_ID((short)1, "vendorId"),
32652
      BILLING_WAREHOUSE_ID((short)2, "billingWarehouseId");
6467 amar.kumar 32653
 
32654
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32655
 
32656
      static {
32657
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32658
          byName.put(field.getFieldName(), field);
32659
        }
32660
      }
32661
 
32662
      /**
32663
       * Find the _Fields constant that matches fieldId, or null if its not found.
32664
       */
32665
      public static _Fields findByThriftId(int fieldId) {
32666
        switch(fieldId) {
32667
          case 1: // VENDOR_ID
32668
            return VENDOR_ID;
7718 amar.kumar 32669
          case 2: // BILLING_WAREHOUSE_ID
32670
            return BILLING_WAREHOUSE_ID;
6467 amar.kumar 32671
          default:
32672
            return null;
32673
        }
32674
      }
32675
 
32676
      /**
32677
       * Find the _Fields constant that matches fieldId, throwing an exception
32678
       * if it is not found.
32679
       */
32680
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32681
        _Fields fields = findByThriftId(fieldId);
32682
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32683
        return fields;
32684
      }
32685
 
32686
      /**
32687
       * Find the _Fields constant that matches name, or null if its not found.
32688
       */
32689
      public static _Fields findByName(String name) {
32690
        return byName.get(name);
32691
      }
32692
 
32693
      private final short _thriftId;
32694
      private final String _fieldName;
32695
 
32696
      _Fields(short thriftId, String fieldName) {
32697
        _thriftId = thriftId;
32698
        _fieldName = fieldName;
32699
      }
32700
 
32701
      public short getThriftFieldId() {
32702
        return _thriftId;
32703
      }
32704
 
32705
      public String getFieldName() {
32706
        return _fieldName;
32707
      }
32708
    }
32709
 
32710
    // isset id assignments
32711
    private static final int __VENDORID_ISSET_ID = 0;
7718 amar.kumar 32712
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
32713
    private BitSet __isset_bit_vector = new BitSet(2);
6467 amar.kumar 32714
 
32715
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32716
    static {
32717
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32718
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32719
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7718 amar.kumar 32720
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32721
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6467 amar.kumar 32722
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32723
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
32724
    }
32725
 
32726
    public getOurWarehouseIdForVendor_args() {
32727
    }
32728
 
32729
    public getOurWarehouseIdForVendor_args(
7718 amar.kumar 32730
      long vendorId,
32731
      long billingWarehouseId)
6467 amar.kumar 32732
    {
32733
      this();
32734
      this.vendorId = vendorId;
32735
      setVendorIdIsSet(true);
7718 amar.kumar 32736
      this.billingWarehouseId = billingWarehouseId;
32737
      setBillingWarehouseIdIsSet(true);
6467 amar.kumar 32738
    }
32739
 
32740
    /**
32741
     * Performs a deep copy on <i>other</i>.
32742
     */
32743
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
32744
      __isset_bit_vector.clear();
32745
      __isset_bit_vector.or(other.__isset_bit_vector);
32746
      this.vendorId = other.vendorId;
7718 amar.kumar 32747
      this.billingWarehouseId = other.billingWarehouseId;
6467 amar.kumar 32748
    }
32749
 
32750
    public getOurWarehouseIdForVendor_args deepCopy() {
32751
      return new getOurWarehouseIdForVendor_args(this);
32752
    }
32753
 
32754
    @Override
32755
    public void clear() {
32756
      setVendorIdIsSet(false);
32757
      this.vendorId = 0;
7718 amar.kumar 32758
      setBillingWarehouseIdIsSet(false);
32759
      this.billingWarehouseId = 0;
6467 amar.kumar 32760
    }
32761
 
32762
    public long getVendorId() {
32763
      return this.vendorId;
32764
    }
32765
 
32766
    public void setVendorId(long vendorId) {
32767
      this.vendorId = vendorId;
32768
      setVendorIdIsSet(true);
32769
    }
32770
 
32771
    public void unsetVendorId() {
32772
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
32773
    }
32774
 
32775
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
32776
    public boolean isSetVendorId() {
32777
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
32778
    }
32779
 
32780
    public void setVendorIdIsSet(boolean value) {
32781
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
32782
    }
32783
 
7718 amar.kumar 32784
    public long getBillingWarehouseId() {
32785
      return this.billingWarehouseId;
32786
    }
32787
 
32788
    public void setBillingWarehouseId(long billingWarehouseId) {
32789
      this.billingWarehouseId = billingWarehouseId;
32790
      setBillingWarehouseIdIsSet(true);
32791
    }
32792
 
32793
    public void unsetBillingWarehouseId() {
32794
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
32795
    }
32796
 
32797
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
32798
    public boolean isSetBillingWarehouseId() {
32799
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
32800
    }
32801
 
32802
    public void setBillingWarehouseIdIsSet(boolean value) {
32803
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
32804
    }
32805
 
6467 amar.kumar 32806
    public void setFieldValue(_Fields field, Object value) {
32807
      switch (field) {
32808
      case VENDOR_ID:
32809
        if (value == null) {
32810
          unsetVendorId();
32811
        } else {
32812
          setVendorId((Long)value);
32813
        }
32814
        break;
32815
 
7718 amar.kumar 32816
      case BILLING_WAREHOUSE_ID:
32817
        if (value == null) {
32818
          unsetBillingWarehouseId();
32819
        } else {
32820
          setBillingWarehouseId((Long)value);
32821
        }
32822
        break;
32823
 
6467 amar.kumar 32824
      }
32825
    }
32826
 
32827
    public Object getFieldValue(_Fields field) {
32828
      switch (field) {
32829
      case VENDOR_ID:
32830
        return Long.valueOf(getVendorId());
32831
 
7718 amar.kumar 32832
      case BILLING_WAREHOUSE_ID:
32833
        return Long.valueOf(getBillingWarehouseId());
32834
 
6467 amar.kumar 32835
      }
32836
      throw new IllegalStateException();
32837
    }
32838
 
32839
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32840
    public boolean isSet(_Fields field) {
32841
      if (field == null) {
32842
        throw new IllegalArgumentException();
32843
      }
32844
 
32845
      switch (field) {
32846
      case VENDOR_ID:
32847
        return isSetVendorId();
7718 amar.kumar 32848
      case BILLING_WAREHOUSE_ID:
32849
        return isSetBillingWarehouseId();
6467 amar.kumar 32850
      }
32851
      throw new IllegalStateException();
32852
    }
32853
 
32854
    @Override
32855
    public boolean equals(Object that) {
32856
      if (that == null)
32857
        return false;
32858
      if (that instanceof getOurWarehouseIdForVendor_args)
32859
        return this.equals((getOurWarehouseIdForVendor_args)that);
32860
      return false;
32861
    }
32862
 
32863
    public boolean equals(getOurWarehouseIdForVendor_args that) {
32864
      if (that == null)
32865
        return false;
32866
 
32867
      boolean this_present_vendorId = true;
32868
      boolean that_present_vendorId = true;
32869
      if (this_present_vendorId || that_present_vendorId) {
32870
        if (!(this_present_vendorId && that_present_vendorId))
32871
          return false;
32872
        if (this.vendorId != that.vendorId)
32873
          return false;
32874
      }
32875
 
7718 amar.kumar 32876
      boolean this_present_billingWarehouseId = true;
32877
      boolean that_present_billingWarehouseId = true;
32878
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
32879
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
32880
          return false;
32881
        if (this.billingWarehouseId != that.billingWarehouseId)
32882
          return false;
32883
      }
32884
 
6467 amar.kumar 32885
      return true;
32886
    }
32887
 
32888
    @Override
32889
    public int hashCode() {
32890
      return 0;
32891
    }
32892
 
32893
    public int compareTo(getOurWarehouseIdForVendor_args other) {
32894
      if (!getClass().equals(other.getClass())) {
32895
        return getClass().getName().compareTo(other.getClass().getName());
32896
      }
32897
 
32898
      int lastComparison = 0;
32899
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
32900
 
32901
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
32902
      if (lastComparison != 0) {
32903
        return lastComparison;
32904
      }
32905
      if (isSetVendorId()) {
32906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
32907
        if (lastComparison != 0) {
32908
          return lastComparison;
32909
        }
32910
      }
7718 amar.kumar 32911
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
32912
      if (lastComparison != 0) {
32913
        return lastComparison;
32914
      }
32915
      if (isSetBillingWarehouseId()) {
32916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
32917
        if (lastComparison != 0) {
32918
          return lastComparison;
32919
        }
32920
      }
6467 amar.kumar 32921
      return 0;
32922
    }
32923
 
32924
    public _Fields fieldForId(int fieldId) {
32925
      return _Fields.findByThriftId(fieldId);
32926
    }
32927
 
32928
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32929
      org.apache.thrift.protocol.TField field;
32930
      iprot.readStructBegin();
32931
      while (true)
32932
      {
32933
        field = iprot.readFieldBegin();
32934
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32935
          break;
32936
        }
32937
        switch (field.id) {
32938
          case 1: // VENDOR_ID
32939
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32940
              this.vendorId = iprot.readI64();
32941
              setVendorIdIsSet(true);
32942
            } else { 
32943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32944
            }
32945
            break;
7718 amar.kumar 32946
          case 2: // BILLING_WAREHOUSE_ID
32947
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32948
              this.billingWarehouseId = iprot.readI64();
32949
              setBillingWarehouseIdIsSet(true);
32950
            } else { 
32951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32952
            }
32953
            break;
6467 amar.kumar 32954
          default:
32955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32956
        }
32957
        iprot.readFieldEnd();
32958
      }
32959
      iprot.readStructEnd();
32960
      validate();
32961
    }
32962
 
32963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32964
      validate();
32965
 
32966
      oprot.writeStructBegin(STRUCT_DESC);
32967
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
32968
      oprot.writeI64(this.vendorId);
32969
      oprot.writeFieldEnd();
7718 amar.kumar 32970
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
32971
      oprot.writeI64(this.billingWarehouseId);
32972
      oprot.writeFieldEnd();
6467 amar.kumar 32973
      oprot.writeFieldStop();
32974
      oprot.writeStructEnd();
32975
    }
32976
 
32977
    @Override
32978
    public String toString() {
32979
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
32980
      boolean first = true;
32981
 
32982
      sb.append("vendorId:");
32983
      sb.append(this.vendorId);
32984
      first = false;
7718 amar.kumar 32985
      if (!first) sb.append(", ");
32986
      sb.append("billingWarehouseId:");
32987
      sb.append(this.billingWarehouseId);
32988
      first = false;
6467 amar.kumar 32989
      sb.append(")");
32990
      return sb.toString();
32991
    }
32992
 
32993
    public void validate() throws org.apache.thrift.TException {
32994
      // check for required fields
32995
    }
32996
 
32997
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32998
      try {
32999
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33000
      } catch (org.apache.thrift.TException te) {
33001
        throw new java.io.IOException(te);
33002
      }
33003
    }
33004
 
33005
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33006
      try {
33007
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33008
        __isset_bit_vector = new BitSet(1);
33009
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33010
      } catch (org.apache.thrift.TException te) {
33011
        throw new java.io.IOException(te);
33012
      }
33013
    }
33014
 
33015
  }
33016
 
33017
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
33018
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
33019
 
33020
    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);
33021
 
33022
    private long success; // required
33023
 
33024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33026
      SUCCESS((short)0, "success");
33027
 
33028
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33029
 
33030
      static {
33031
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33032
          byName.put(field.getFieldName(), field);
33033
        }
33034
      }
33035
 
33036
      /**
33037
       * Find the _Fields constant that matches fieldId, or null if its not found.
33038
       */
33039
      public static _Fields findByThriftId(int fieldId) {
33040
        switch(fieldId) {
33041
          case 0: // SUCCESS
33042
            return SUCCESS;
33043
          default:
33044
            return null;
33045
        }
33046
      }
33047
 
33048
      /**
33049
       * Find the _Fields constant that matches fieldId, throwing an exception
33050
       * if it is not found.
33051
       */
33052
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33053
        _Fields fields = findByThriftId(fieldId);
33054
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33055
        return fields;
33056
      }
33057
 
33058
      /**
33059
       * Find the _Fields constant that matches name, or null if its not found.
33060
       */
33061
      public static _Fields findByName(String name) {
33062
        return byName.get(name);
33063
      }
33064
 
33065
      private final short _thriftId;
33066
      private final String _fieldName;
33067
 
33068
      _Fields(short thriftId, String fieldName) {
33069
        _thriftId = thriftId;
33070
        _fieldName = fieldName;
33071
      }
33072
 
33073
      public short getThriftFieldId() {
33074
        return _thriftId;
33075
      }
33076
 
33077
      public String getFieldName() {
33078
        return _fieldName;
33079
      }
33080
    }
33081
 
33082
    // isset id assignments
33083
    private static final int __SUCCESS_ISSET_ID = 0;
33084
    private BitSet __isset_bit_vector = new BitSet(1);
33085
 
33086
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33087
    static {
33088
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33089
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
33093
    }
33094
 
33095
    public getOurWarehouseIdForVendor_result() {
33096
    }
33097
 
33098
    public getOurWarehouseIdForVendor_result(
33099
      long success)
33100
    {
33101
      this();
33102
      this.success = success;
33103
      setSuccessIsSet(true);
33104
    }
33105
 
33106
    /**
33107
     * Performs a deep copy on <i>other</i>.
33108
     */
33109
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
33110
      __isset_bit_vector.clear();
33111
      __isset_bit_vector.or(other.__isset_bit_vector);
33112
      this.success = other.success;
33113
    }
33114
 
33115
    public getOurWarehouseIdForVendor_result deepCopy() {
33116
      return new getOurWarehouseIdForVendor_result(this);
33117
    }
33118
 
33119
    @Override
33120
    public void clear() {
33121
      setSuccessIsSet(false);
33122
      this.success = 0;
33123
    }
33124
 
33125
    public long getSuccess() {
33126
      return this.success;
33127
    }
33128
 
33129
    public void setSuccess(long success) {
33130
      this.success = success;
33131
      setSuccessIsSet(true);
33132
    }
33133
 
33134
    public void unsetSuccess() {
33135
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
33136
    }
33137
 
33138
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33139
    public boolean isSetSuccess() {
33140
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
33141
    }
33142
 
33143
    public void setSuccessIsSet(boolean value) {
33144
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
33145
    }
33146
 
33147
    public void setFieldValue(_Fields field, Object value) {
33148
      switch (field) {
33149
      case SUCCESS:
33150
        if (value == null) {
33151
          unsetSuccess();
33152
        } else {
33153
          setSuccess((Long)value);
33154
        }
33155
        break;
33156
 
33157
      }
33158
    }
33159
 
33160
    public Object getFieldValue(_Fields field) {
33161
      switch (field) {
33162
      case SUCCESS:
33163
        return Long.valueOf(getSuccess());
33164
 
33165
      }
33166
      throw new IllegalStateException();
33167
    }
33168
 
33169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33170
    public boolean isSet(_Fields field) {
33171
      if (field == null) {
33172
        throw new IllegalArgumentException();
33173
      }
33174
 
33175
      switch (field) {
33176
      case SUCCESS:
33177
        return isSetSuccess();
33178
      }
33179
      throw new IllegalStateException();
33180
    }
33181
 
33182
    @Override
33183
    public boolean equals(Object that) {
33184
      if (that == null)
33185
        return false;
33186
      if (that instanceof getOurWarehouseIdForVendor_result)
33187
        return this.equals((getOurWarehouseIdForVendor_result)that);
33188
      return false;
33189
    }
33190
 
33191
    public boolean equals(getOurWarehouseIdForVendor_result that) {
33192
      if (that == null)
33193
        return false;
33194
 
33195
      boolean this_present_success = true;
33196
      boolean that_present_success = true;
33197
      if (this_present_success || that_present_success) {
33198
        if (!(this_present_success && that_present_success))
33199
          return false;
33200
        if (this.success != that.success)
33201
          return false;
33202
      }
33203
 
33204
      return true;
33205
    }
33206
 
33207
    @Override
33208
    public int hashCode() {
33209
      return 0;
33210
    }
33211
 
33212
    public int compareTo(getOurWarehouseIdForVendor_result other) {
33213
      if (!getClass().equals(other.getClass())) {
33214
        return getClass().getName().compareTo(other.getClass().getName());
33215
      }
33216
 
33217
      int lastComparison = 0;
33218
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
33219
 
33220
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33221
      if (lastComparison != 0) {
33222
        return lastComparison;
33223
      }
33224
      if (isSetSuccess()) {
33225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33226
        if (lastComparison != 0) {
33227
          return lastComparison;
33228
        }
33229
      }
33230
      return 0;
33231
    }
33232
 
33233
    public _Fields fieldForId(int fieldId) {
33234
      return _Fields.findByThriftId(fieldId);
33235
    }
33236
 
33237
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33238
      org.apache.thrift.protocol.TField field;
33239
      iprot.readStructBegin();
33240
      while (true)
33241
      {
33242
        field = iprot.readFieldBegin();
33243
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33244
          break;
33245
        }
33246
        switch (field.id) {
33247
          case 0: // SUCCESS
33248
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33249
              this.success = iprot.readI64();
33250
              setSuccessIsSet(true);
33251
            } else { 
33252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33253
            }
33254
            break;
33255
          default:
33256
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33257
        }
33258
        iprot.readFieldEnd();
33259
      }
33260
      iprot.readStructEnd();
33261
      validate();
33262
    }
33263
 
33264
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33265
      oprot.writeStructBegin(STRUCT_DESC);
33266
 
33267
      if (this.isSetSuccess()) {
33268
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33269
        oprot.writeI64(this.success);
33270
        oprot.writeFieldEnd();
33271
      }
33272
      oprot.writeFieldStop();
33273
      oprot.writeStructEnd();
33274
    }
33275
 
33276
    @Override
33277
    public String toString() {
33278
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
33279
      boolean first = true;
33280
 
33281
      sb.append("success:");
33282
      sb.append(this.success);
33283
      first = false;
33284
      sb.append(")");
33285
      return sb.toString();
33286
    }
33287
 
33288
    public void validate() throws org.apache.thrift.TException {
33289
      // check for required fields
33290
    }
33291
 
33292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33293
      try {
33294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33295
      } catch (org.apache.thrift.TException te) {
33296
        throw new java.io.IOException(te);
33297
      }
33298
    }
33299
 
33300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33301
      try {
33302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33303
      } catch (org.apache.thrift.TException te) {
33304
        throw new java.io.IOException(te);
33305
      }
33306
    }
33307
 
33308
  }
33309
 
6484 amar.kumar 33310
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
33311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
33312
 
33313
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("item_ids", org.apache.thrift.protocol.TType.LIST, (short)1);
33314
 
33315
    private List<Long> item_ids; // required
33316
 
33317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33319
      ITEM_IDS((short)1, "item_ids");
33320
 
33321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33322
 
33323
      static {
33324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33325
          byName.put(field.getFieldName(), field);
33326
        }
33327
      }
33328
 
33329
      /**
33330
       * Find the _Fields constant that matches fieldId, or null if its not found.
33331
       */
33332
      public static _Fields findByThriftId(int fieldId) {
33333
        switch(fieldId) {
33334
          case 1: // ITEM_IDS
33335
            return ITEM_IDS;
33336
          default:
33337
            return null;
33338
        }
33339
      }
33340
 
33341
      /**
33342
       * Find the _Fields constant that matches fieldId, throwing an exception
33343
       * if it is not found.
33344
       */
33345
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33346
        _Fields fields = findByThriftId(fieldId);
33347
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33348
        return fields;
33349
      }
33350
 
33351
      /**
33352
       * Find the _Fields constant that matches name, or null if its not found.
33353
       */
33354
      public static _Fields findByName(String name) {
33355
        return byName.get(name);
33356
      }
33357
 
33358
      private final short _thriftId;
33359
      private final String _fieldName;
33360
 
33361
      _Fields(short thriftId, String fieldName) {
33362
        _thriftId = thriftId;
33363
        _fieldName = fieldName;
33364
      }
33365
 
33366
      public short getThriftFieldId() {
33367
        return _thriftId;
33368
      }
33369
 
33370
      public String getFieldName() {
33371
        return _fieldName;
33372
      }
33373
    }
33374
 
33375
    // isset id assignments
33376
 
33377
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33378
    static {
33379
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33380
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33381
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33382
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
33383
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33384
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
33385
    }
33386
 
33387
    public getItemAvailabilitiesAtOurWarehouses_args() {
33388
    }
33389
 
33390
    public getItemAvailabilitiesAtOurWarehouses_args(
33391
      List<Long> item_ids)
33392
    {
33393
      this();
33394
      this.item_ids = item_ids;
33395
    }
33396
 
33397
    /**
33398
     * Performs a deep copy on <i>other</i>.
33399
     */
33400
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
33401
      if (other.isSetItem_ids()) {
33402
        List<Long> __this__item_ids = new ArrayList<Long>();
33403
        for (Long other_element : other.item_ids) {
33404
          __this__item_ids.add(other_element);
33405
        }
33406
        this.item_ids = __this__item_ids;
33407
      }
33408
    }
33409
 
33410
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
33411
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
33412
    }
33413
 
33414
    @Override
33415
    public void clear() {
33416
      this.item_ids = null;
33417
    }
33418
 
33419
    public int getItem_idsSize() {
33420
      return (this.item_ids == null) ? 0 : this.item_ids.size();
33421
    }
33422
 
33423
    public java.util.Iterator<Long> getItem_idsIterator() {
33424
      return (this.item_ids == null) ? null : this.item_ids.iterator();
33425
    }
33426
 
33427
    public void addToItem_ids(long elem) {
33428
      if (this.item_ids == null) {
33429
        this.item_ids = new ArrayList<Long>();
33430
      }
33431
      this.item_ids.add(elem);
33432
    }
33433
 
33434
    public List<Long> getItem_ids() {
33435
      return this.item_ids;
33436
    }
33437
 
33438
    public void setItem_ids(List<Long> item_ids) {
33439
      this.item_ids = item_ids;
33440
    }
33441
 
33442
    public void unsetItem_ids() {
33443
      this.item_ids = null;
33444
    }
33445
 
33446
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
33447
    public boolean isSetItem_ids() {
33448
      return this.item_ids != null;
33449
    }
33450
 
33451
    public void setItem_idsIsSet(boolean value) {
33452
      if (!value) {
33453
        this.item_ids = null;
33454
      }
33455
    }
33456
 
33457
    public void setFieldValue(_Fields field, Object value) {
33458
      switch (field) {
33459
      case ITEM_IDS:
33460
        if (value == null) {
33461
          unsetItem_ids();
33462
        } else {
33463
          setItem_ids((List<Long>)value);
33464
        }
33465
        break;
33466
 
33467
      }
33468
    }
33469
 
33470
    public Object getFieldValue(_Fields field) {
33471
      switch (field) {
33472
      case ITEM_IDS:
33473
        return getItem_ids();
33474
 
33475
      }
33476
      throw new IllegalStateException();
33477
    }
33478
 
33479
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33480
    public boolean isSet(_Fields field) {
33481
      if (field == null) {
33482
        throw new IllegalArgumentException();
33483
      }
33484
 
33485
      switch (field) {
33486
      case ITEM_IDS:
33487
        return isSetItem_ids();
33488
      }
33489
      throw new IllegalStateException();
33490
    }
33491
 
33492
    @Override
33493
    public boolean equals(Object that) {
33494
      if (that == null)
33495
        return false;
33496
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
33497
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
33498
      return false;
33499
    }
33500
 
33501
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
33502
      if (that == null)
33503
        return false;
33504
 
33505
      boolean this_present_item_ids = true && this.isSetItem_ids();
33506
      boolean that_present_item_ids = true && that.isSetItem_ids();
33507
      if (this_present_item_ids || that_present_item_ids) {
33508
        if (!(this_present_item_ids && that_present_item_ids))
33509
          return false;
33510
        if (!this.item_ids.equals(that.item_ids))
33511
          return false;
33512
      }
33513
 
33514
      return true;
33515
    }
33516
 
33517
    @Override
33518
    public int hashCode() {
33519
      return 0;
33520
    }
33521
 
33522
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
33523
      if (!getClass().equals(other.getClass())) {
33524
        return getClass().getName().compareTo(other.getClass().getName());
33525
      }
33526
 
33527
      int lastComparison = 0;
33528
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
33529
 
33530
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
33531
      if (lastComparison != 0) {
33532
        return lastComparison;
33533
      }
33534
      if (isSetItem_ids()) {
33535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
33536
        if (lastComparison != 0) {
33537
          return lastComparison;
33538
        }
33539
      }
33540
      return 0;
33541
    }
33542
 
33543
    public _Fields fieldForId(int fieldId) {
33544
      return _Fields.findByThriftId(fieldId);
33545
    }
33546
 
33547
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33548
      org.apache.thrift.protocol.TField field;
33549
      iprot.readStructBegin();
33550
      while (true)
33551
      {
33552
        field = iprot.readFieldBegin();
33553
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33554
          break;
33555
        }
33556
        switch (field.id) {
33557
          case 1: // ITEM_IDS
33558
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33559
              {
8182 amar.kumar 33560
                org.apache.thrift.protocol.TList _list84 = iprot.readListBegin();
33561
                this.item_ids = new ArrayList<Long>(_list84.size);
33562
                for (int _i85 = 0; _i85 < _list84.size; ++_i85)
6484 amar.kumar 33563
                {
8182 amar.kumar 33564
                  long _elem86; // required
33565
                  _elem86 = iprot.readI64();
33566
                  this.item_ids.add(_elem86);
6484 amar.kumar 33567
                }
33568
                iprot.readListEnd();
33569
              }
33570
            } else { 
33571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33572
            }
33573
            break;
33574
          default:
33575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33576
        }
33577
        iprot.readFieldEnd();
33578
      }
33579
      iprot.readStructEnd();
33580
      validate();
33581
    }
33582
 
33583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33584
      validate();
33585
 
33586
      oprot.writeStructBegin(STRUCT_DESC);
33587
      if (this.item_ids != null) {
33588
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
33589
        {
33590
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
8182 amar.kumar 33591
          for (long _iter87 : this.item_ids)
6484 amar.kumar 33592
          {
8182 amar.kumar 33593
            oprot.writeI64(_iter87);
6484 amar.kumar 33594
          }
33595
          oprot.writeListEnd();
33596
        }
33597
        oprot.writeFieldEnd();
33598
      }
33599
      oprot.writeFieldStop();
33600
      oprot.writeStructEnd();
33601
    }
33602
 
33603
    @Override
33604
    public String toString() {
33605
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
33606
      boolean first = true;
33607
 
33608
      sb.append("item_ids:");
33609
      if (this.item_ids == null) {
33610
        sb.append("null");
33611
      } else {
33612
        sb.append(this.item_ids);
33613
      }
33614
      first = false;
33615
      sb.append(")");
33616
      return sb.toString();
33617
    }
33618
 
33619
    public void validate() throws org.apache.thrift.TException {
33620
      // check for required fields
33621
    }
33622
 
33623
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33624
      try {
33625
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33626
      } catch (org.apache.thrift.TException te) {
33627
        throw new java.io.IOException(te);
33628
      }
33629
    }
33630
 
33631
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33632
      try {
33633
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33634
      } catch (org.apache.thrift.TException te) {
33635
        throw new java.io.IOException(te);
33636
      }
33637
    }
33638
 
33639
  }
33640
 
33641
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
33642
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
33643
 
33644
    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);
33645
 
33646
    private Map<Long,Long> success; // required
33647
 
33648
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33649
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33650
      SUCCESS((short)0, "success");
33651
 
33652
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33653
 
33654
      static {
33655
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33656
          byName.put(field.getFieldName(), field);
33657
        }
33658
      }
33659
 
33660
      /**
33661
       * Find the _Fields constant that matches fieldId, or null if its not found.
33662
       */
33663
      public static _Fields findByThriftId(int fieldId) {
33664
        switch(fieldId) {
33665
          case 0: // SUCCESS
33666
            return SUCCESS;
33667
          default:
33668
            return null;
33669
        }
33670
      }
33671
 
33672
      /**
33673
       * Find the _Fields constant that matches fieldId, throwing an exception
33674
       * if it is not found.
33675
       */
33676
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33677
        _Fields fields = findByThriftId(fieldId);
33678
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33679
        return fields;
33680
      }
33681
 
33682
      /**
33683
       * Find the _Fields constant that matches name, or null if its not found.
33684
       */
33685
      public static _Fields findByName(String name) {
33686
        return byName.get(name);
33687
      }
33688
 
33689
      private final short _thriftId;
33690
      private final String _fieldName;
33691
 
33692
      _Fields(short thriftId, String fieldName) {
33693
        _thriftId = thriftId;
33694
        _fieldName = fieldName;
33695
      }
33696
 
33697
      public short getThriftFieldId() {
33698
        return _thriftId;
33699
      }
33700
 
33701
      public String getFieldName() {
33702
        return _fieldName;
33703
      }
33704
    }
33705
 
33706
    // isset id assignments
33707
 
33708
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33709
    static {
33710
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33711
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33712
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
33713
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
33714
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
33715
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33716
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
33717
    }
33718
 
33719
    public getItemAvailabilitiesAtOurWarehouses_result() {
33720
    }
33721
 
33722
    public getItemAvailabilitiesAtOurWarehouses_result(
33723
      Map<Long,Long> success)
33724
    {
33725
      this();
33726
      this.success = success;
33727
    }
33728
 
33729
    /**
33730
     * Performs a deep copy on <i>other</i>.
33731
     */
33732
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
33733
      if (other.isSetSuccess()) {
33734
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
33735
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
33736
 
33737
          Long other_element_key = other_element.getKey();
33738
          Long other_element_value = other_element.getValue();
33739
 
33740
          Long __this__success_copy_key = other_element_key;
33741
 
33742
          Long __this__success_copy_value = other_element_value;
33743
 
33744
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
33745
        }
33746
        this.success = __this__success;
33747
      }
33748
    }
33749
 
33750
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
33751
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
33752
    }
33753
 
33754
    @Override
33755
    public void clear() {
33756
      this.success = null;
33757
    }
33758
 
33759
    public int getSuccessSize() {
33760
      return (this.success == null) ? 0 : this.success.size();
33761
    }
33762
 
33763
    public void putToSuccess(long key, long val) {
33764
      if (this.success == null) {
33765
        this.success = new HashMap<Long,Long>();
33766
      }
33767
      this.success.put(key, val);
33768
    }
33769
 
33770
    public Map<Long,Long> getSuccess() {
33771
      return this.success;
33772
    }
33773
 
33774
    public void setSuccess(Map<Long,Long> success) {
33775
      this.success = success;
33776
    }
33777
 
33778
    public void unsetSuccess() {
33779
      this.success = null;
33780
    }
33781
 
33782
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33783
    public boolean isSetSuccess() {
33784
      return this.success != null;
33785
    }
33786
 
33787
    public void setSuccessIsSet(boolean value) {
33788
      if (!value) {
33789
        this.success = null;
33790
      }
33791
    }
33792
 
33793
    public void setFieldValue(_Fields field, Object value) {
33794
      switch (field) {
33795
      case SUCCESS:
33796
        if (value == null) {
33797
          unsetSuccess();
33798
        } else {
33799
          setSuccess((Map<Long,Long>)value);
33800
        }
33801
        break;
33802
 
33803
      }
33804
    }
33805
 
33806
    public Object getFieldValue(_Fields field) {
33807
      switch (field) {
33808
      case SUCCESS:
33809
        return getSuccess();
33810
 
33811
      }
33812
      throw new IllegalStateException();
33813
    }
33814
 
33815
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33816
    public boolean isSet(_Fields field) {
33817
      if (field == null) {
33818
        throw new IllegalArgumentException();
33819
      }
33820
 
33821
      switch (field) {
33822
      case SUCCESS:
33823
        return isSetSuccess();
33824
      }
33825
      throw new IllegalStateException();
33826
    }
33827
 
33828
    @Override
33829
    public boolean equals(Object that) {
33830
      if (that == null)
33831
        return false;
33832
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
33833
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
33834
      return false;
33835
    }
33836
 
33837
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
33838
      if (that == null)
33839
        return false;
33840
 
33841
      boolean this_present_success = true && this.isSetSuccess();
33842
      boolean that_present_success = true && that.isSetSuccess();
33843
      if (this_present_success || that_present_success) {
33844
        if (!(this_present_success && that_present_success))
33845
          return false;
33846
        if (!this.success.equals(that.success))
33847
          return false;
33848
      }
33849
 
33850
      return true;
33851
    }
33852
 
33853
    @Override
33854
    public int hashCode() {
33855
      return 0;
33856
    }
33857
 
33858
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
33859
      if (!getClass().equals(other.getClass())) {
33860
        return getClass().getName().compareTo(other.getClass().getName());
33861
      }
33862
 
33863
      int lastComparison = 0;
33864
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
33865
 
33866
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33867
      if (lastComparison != 0) {
33868
        return lastComparison;
33869
      }
33870
      if (isSetSuccess()) {
33871
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33872
        if (lastComparison != 0) {
33873
          return lastComparison;
33874
        }
33875
      }
33876
      return 0;
33877
    }
33878
 
33879
    public _Fields fieldForId(int fieldId) {
33880
      return _Fields.findByThriftId(fieldId);
33881
    }
33882
 
33883
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33884
      org.apache.thrift.protocol.TField field;
33885
      iprot.readStructBegin();
33886
      while (true)
33887
      {
33888
        field = iprot.readFieldBegin();
33889
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33890
          break;
33891
        }
33892
        switch (field.id) {
33893
          case 0: // SUCCESS
33894
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
33895
              {
8182 amar.kumar 33896
                org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin();
33897
                this.success = new HashMap<Long,Long>(2*_map88.size);
33898
                for (int _i89 = 0; _i89 < _map88.size; ++_i89)
6484 amar.kumar 33899
                {
8182 amar.kumar 33900
                  long _key90; // required
33901
                  long _val91; // required
33902
                  _key90 = iprot.readI64();
33903
                  _val91 = iprot.readI64();
33904
                  this.success.put(_key90, _val91);
6484 amar.kumar 33905
                }
33906
                iprot.readMapEnd();
33907
              }
33908
            } else { 
33909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33910
            }
33911
            break;
33912
          default:
33913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33914
        }
33915
        iprot.readFieldEnd();
33916
      }
33917
      iprot.readStructEnd();
33918
      validate();
33919
    }
33920
 
33921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33922
      oprot.writeStructBegin(STRUCT_DESC);
33923
 
33924
      if (this.isSetSuccess()) {
33925
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33926
        {
33927
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 33928
          for (Map.Entry<Long, Long> _iter92 : this.success.entrySet())
6484 amar.kumar 33929
          {
8182 amar.kumar 33930
            oprot.writeI64(_iter92.getKey());
33931
            oprot.writeI64(_iter92.getValue());
6484 amar.kumar 33932
          }
33933
          oprot.writeMapEnd();
33934
        }
33935
        oprot.writeFieldEnd();
33936
      }
33937
      oprot.writeFieldStop();
33938
      oprot.writeStructEnd();
33939
    }
33940
 
33941
    @Override
33942
    public String toString() {
33943
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
33944
      boolean first = true;
33945
 
33946
      sb.append("success:");
33947
      if (this.success == null) {
33948
        sb.append("null");
33949
      } else {
33950
        sb.append(this.success);
33951
      }
33952
      first = false;
33953
      sb.append(")");
33954
      return sb.toString();
33955
    }
33956
 
33957
    public void validate() throws org.apache.thrift.TException {
33958
      // check for required fields
33959
    }
33960
 
33961
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33962
      try {
33963
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33964
      } catch (org.apache.thrift.TException te) {
33965
        throw new java.io.IOException(te);
33966
      }
33967
    }
33968
 
33969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33970
      try {
33971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33972
      } catch (org.apache.thrift.TException te) {
33973
        throw new java.io.IOException(te);
33974
      }
33975
    }
33976
 
33977
  }
33978
 
6531 vikram.rag 33979
  public static class getMonitoredWarehouseForVendors_args implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_args, getMonitoredWarehouseForVendors_args._Fields>, java.io.Serializable, Cloneable   {
33980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_args");
33981
 
33982
    private static final org.apache.thrift.protocol.TField VENDOR_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorIds", org.apache.thrift.protocol.TType.LIST, (short)1);
33983
 
33984
    private List<Long> vendorIds; // required
33985
 
33986
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33987
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33988
      VENDOR_IDS((short)1, "vendorIds");
33989
 
33990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33991
 
33992
      static {
33993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33994
          byName.put(field.getFieldName(), field);
33995
        }
33996
      }
33997
 
33998
      /**
33999
       * Find the _Fields constant that matches fieldId, or null if its not found.
34000
       */
34001
      public static _Fields findByThriftId(int fieldId) {
34002
        switch(fieldId) {
34003
          case 1: // VENDOR_IDS
34004
            return VENDOR_IDS;
34005
          default:
34006
            return null;
34007
        }
34008
      }
34009
 
34010
      /**
34011
       * Find the _Fields constant that matches fieldId, throwing an exception
34012
       * if it is not found.
34013
       */
34014
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34015
        _Fields fields = findByThriftId(fieldId);
34016
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34017
        return fields;
34018
      }
34019
 
34020
      /**
34021
       * Find the _Fields constant that matches name, or null if its not found.
34022
       */
34023
      public static _Fields findByName(String name) {
34024
        return byName.get(name);
34025
      }
34026
 
34027
      private final short _thriftId;
34028
      private final String _fieldName;
34029
 
34030
      _Fields(short thriftId, String fieldName) {
34031
        _thriftId = thriftId;
34032
        _fieldName = fieldName;
34033
      }
34034
 
34035
      public short getThriftFieldId() {
34036
        return _thriftId;
34037
      }
34038
 
34039
      public String getFieldName() {
34040
        return _fieldName;
34041
      }
34042
    }
34043
 
34044
    // isset id assignments
34045
 
34046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34047
    static {
34048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34049
      tmpMap.put(_Fields.VENDOR_IDS, new org.apache.thrift.meta_data.FieldMetaData("vendorIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34050
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34051
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
34052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_args.class, metaDataMap);
34054
    }
34055
 
34056
    public getMonitoredWarehouseForVendors_args() {
34057
    }
34058
 
34059
    public getMonitoredWarehouseForVendors_args(
34060
      List<Long> vendorIds)
34061
    {
34062
      this();
34063
      this.vendorIds = vendorIds;
34064
    }
34065
 
34066
    /**
34067
     * Performs a deep copy on <i>other</i>.
34068
     */
34069
    public getMonitoredWarehouseForVendors_args(getMonitoredWarehouseForVendors_args other) {
34070
      if (other.isSetVendorIds()) {
34071
        List<Long> __this__vendorIds = new ArrayList<Long>();
34072
        for (Long other_element : other.vendorIds) {
34073
          __this__vendorIds.add(other_element);
34074
        }
34075
        this.vendorIds = __this__vendorIds;
34076
      }
34077
    }
34078
 
34079
    public getMonitoredWarehouseForVendors_args deepCopy() {
34080
      return new getMonitoredWarehouseForVendors_args(this);
34081
    }
34082
 
34083
    @Override
34084
    public void clear() {
34085
      this.vendorIds = null;
34086
    }
34087
 
34088
    public int getVendorIdsSize() {
34089
      return (this.vendorIds == null) ? 0 : this.vendorIds.size();
34090
    }
34091
 
34092
    public java.util.Iterator<Long> getVendorIdsIterator() {
34093
      return (this.vendorIds == null) ? null : this.vendorIds.iterator();
34094
    }
34095
 
34096
    public void addToVendorIds(long elem) {
34097
      if (this.vendorIds == null) {
34098
        this.vendorIds = new ArrayList<Long>();
34099
      }
34100
      this.vendorIds.add(elem);
34101
    }
34102
 
34103
    public List<Long> getVendorIds() {
34104
      return this.vendorIds;
34105
    }
34106
 
34107
    public void setVendorIds(List<Long> vendorIds) {
34108
      this.vendorIds = vendorIds;
34109
    }
34110
 
34111
    public void unsetVendorIds() {
34112
      this.vendorIds = null;
34113
    }
34114
 
34115
    /** Returns true if field vendorIds is set (has been assigned a value) and false otherwise */
34116
    public boolean isSetVendorIds() {
34117
      return this.vendorIds != null;
34118
    }
34119
 
34120
    public void setVendorIdsIsSet(boolean value) {
34121
      if (!value) {
34122
        this.vendorIds = null;
34123
      }
34124
    }
34125
 
34126
    public void setFieldValue(_Fields field, Object value) {
34127
      switch (field) {
34128
      case VENDOR_IDS:
34129
        if (value == null) {
34130
          unsetVendorIds();
34131
        } else {
34132
          setVendorIds((List<Long>)value);
34133
        }
34134
        break;
34135
 
34136
      }
34137
    }
34138
 
34139
    public Object getFieldValue(_Fields field) {
34140
      switch (field) {
34141
      case VENDOR_IDS:
34142
        return getVendorIds();
34143
 
34144
      }
34145
      throw new IllegalStateException();
34146
    }
34147
 
34148
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34149
    public boolean isSet(_Fields field) {
34150
      if (field == null) {
34151
        throw new IllegalArgumentException();
34152
      }
34153
 
34154
      switch (field) {
34155
      case VENDOR_IDS:
34156
        return isSetVendorIds();
34157
      }
34158
      throw new IllegalStateException();
34159
    }
34160
 
34161
    @Override
34162
    public boolean equals(Object that) {
34163
      if (that == null)
34164
        return false;
34165
      if (that instanceof getMonitoredWarehouseForVendors_args)
34166
        return this.equals((getMonitoredWarehouseForVendors_args)that);
34167
      return false;
34168
    }
34169
 
34170
    public boolean equals(getMonitoredWarehouseForVendors_args that) {
34171
      if (that == null)
34172
        return false;
34173
 
34174
      boolean this_present_vendorIds = true && this.isSetVendorIds();
34175
      boolean that_present_vendorIds = true && that.isSetVendorIds();
34176
      if (this_present_vendorIds || that_present_vendorIds) {
34177
        if (!(this_present_vendorIds && that_present_vendorIds))
34178
          return false;
34179
        if (!this.vendorIds.equals(that.vendorIds))
34180
          return false;
34181
      }
34182
 
34183
      return true;
34184
    }
34185
 
34186
    @Override
34187
    public int hashCode() {
34188
      return 0;
34189
    }
34190
 
34191
    public int compareTo(getMonitoredWarehouseForVendors_args other) {
34192
      if (!getClass().equals(other.getClass())) {
34193
        return getClass().getName().compareTo(other.getClass().getName());
34194
      }
34195
 
34196
      int lastComparison = 0;
34197
      getMonitoredWarehouseForVendors_args typedOther = (getMonitoredWarehouseForVendors_args)other;
34198
 
34199
      lastComparison = Boolean.valueOf(isSetVendorIds()).compareTo(typedOther.isSetVendorIds());
34200
      if (lastComparison != 0) {
34201
        return lastComparison;
34202
      }
34203
      if (isSetVendorIds()) {
34204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorIds, typedOther.vendorIds);
34205
        if (lastComparison != 0) {
34206
          return lastComparison;
34207
        }
34208
      }
34209
      return 0;
34210
    }
34211
 
34212
    public _Fields fieldForId(int fieldId) {
34213
      return _Fields.findByThriftId(fieldId);
34214
    }
34215
 
34216
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34217
      org.apache.thrift.protocol.TField field;
34218
      iprot.readStructBegin();
34219
      while (true)
34220
      {
34221
        field = iprot.readFieldBegin();
34222
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34223
          break;
34224
        }
34225
        switch (field.id) {
34226
          case 1: // VENDOR_IDS
34227
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34228
              {
8182 amar.kumar 34229
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
34230
                this.vendorIds = new ArrayList<Long>(_list93.size);
34231
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
6531 vikram.rag 34232
                {
8182 amar.kumar 34233
                  long _elem95; // required
34234
                  _elem95 = iprot.readI64();
34235
                  this.vendorIds.add(_elem95);
6531 vikram.rag 34236
                }
34237
                iprot.readListEnd();
34238
              }
34239
            } else { 
34240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34241
            }
34242
            break;
34243
          default:
34244
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34245
        }
34246
        iprot.readFieldEnd();
34247
      }
34248
      iprot.readStructEnd();
34249
      validate();
34250
    }
34251
 
34252
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34253
      validate();
34254
 
34255
      oprot.writeStructBegin(STRUCT_DESC);
34256
      if (this.vendorIds != null) {
34257
        oprot.writeFieldBegin(VENDOR_IDS_FIELD_DESC);
34258
        {
34259
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendorIds.size()));
8182 amar.kumar 34260
          for (long _iter96 : this.vendorIds)
6531 vikram.rag 34261
          {
8182 amar.kumar 34262
            oprot.writeI64(_iter96);
6531 vikram.rag 34263
          }
34264
          oprot.writeListEnd();
34265
        }
34266
        oprot.writeFieldEnd();
34267
      }
34268
      oprot.writeFieldStop();
34269
      oprot.writeStructEnd();
34270
    }
34271
 
34272
    @Override
34273
    public String toString() {
34274
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_args(");
34275
      boolean first = true;
34276
 
34277
      sb.append("vendorIds:");
34278
      if (this.vendorIds == null) {
34279
        sb.append("null");
34280
      } else {
34281
        sb.append(this.vendorIds);
34282
      }
34283
      first = false;
34284
      sb.append(")");
34285
      return sb.toString();
34286
    }
34287
 
34288
    public void validate() throws org.apache.thrift.TException {
34289
      // check for required fields
34290
    }
34291
 
34292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34293
      try {
34294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34295
      } catch (org.apache.thrift.TException te) {
34296
        throw new java.io.IOException(te);
34297
      }
34298
    }
34299
 
34300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34301
      try {
34302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34303
      } catch (org.apache.thrift.TException te) {
34304
        throw new java.io.IOException(te);
34305
      }
34306
    }
34307
 
34308
  }
34309
 
34310
  public static class getMonitoredWarehouseForVendors_result implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_result, getMonitoredWarehouseForVendors_result._Fields>, java.io.Serializable, Cloneable   {
34311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_result");
34312
 
34313
    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);
34314
 
34315
    private List<Long> success; // required
34316
 
34317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34319
      SUCCESS((short)0, "success");
34320
 
34321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34322
 
34323
      static {
34324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34325
          byName.put(field.getFieldName(), field);
34326
        }
34327
      }
34328
 
34329
      /**
34330
       * Find the _Fields constant that matches fieldId, or null if its not found.
34331
       */
34332
      public static _Fields findByThriftId(int fieldId) {
34333
        switch(fieldId) {
34334
          case 0: // SUCCESS
34335
            return SUCCESS;
34336
          default:
34337
            return null;
34338
        }
34339
      }
34340
 
34341
      /**
34342
       * Find the _Fields constant that matches fieldId, throwing an exception
34343
       * if it is not found.
34344
       */
34345
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34346
        _Fields fields = findByThriftId(fieldId);
34347
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34348
        return fields;
34349
      }
34350
 
34351
      /**
34352
       * Find the _Fields constant that matches name, or null if its not found.
34353
       */
34354
      public static _Fields findByName(String name) {
34355
        return byName.get(name);
34356
      }
34357
 
34358
      private final short _thriftId;
34359
      private final String _fieldName;
34360
 
34361
      _Fields(short thriftId, String fieldName) {
34362
        _thriftId = thriftId;
34363
        _fieldName = fieldName;
34364
      }
34365
 
34366
      public short getThriftFieldId() {
34367
        return _thriftId;
34368
      }
34369
 
34370
      public String getFieldName() {
34371
        return _fieldName;
34372
      }
34373
    }
34374
 
34375
    // isset id assignments
34376
 
34377
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34378
    static {
34379
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34380
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34381
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34382
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
34383
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34384
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_result.class, metaDataMap);
34385
    }
34386
 
34387
    public getMonitoredWarehouseForVendors_result() {
34388
    }
34389
 
34390
    public getMonitoredWarehouseForVendors_result(
34391
      List<Long> success)
34392
    {
34393
      this();
34394
      this.success = success;
34395
    }
34396
 
34397
    /**
34398
     * Performs a deep copy on <i>other</i>.
34399
     */
34400
    public getMonitoredWarehouseForVendors_result(getMonitoredWarehouseForVendors_result other) {
34401
      if (other.isSetSuccess()) {
34402
        List<Long> __this__success = new ArrayList<Long>();
34403
        for (Long other_element : other.success) {
34404
          __this__success.add(other_element);
34405
        }
34406
        this.success = __this__success;
34407
      }
34408
    }
34409
 
34410
    public getMonitoredWarehouseForVendors_result deepCopy() {
34411
      return new getMonitoredWarehouseForVendors_result(this);
34412
    }
34413
 
34414
    @Override
34415
    public void clear() {
34416
      this.success = null;
34417
    }
34418
 
34419
    public int getSuccessSize() {
34420
      return (this.success == null) ? 0 : this.success.size();
34421
    }
34422
 
34423
    public java.util.Iterator<Long> getSuccessIterator() {
34424
      return (this.success == null) ? null : this.success.iterator();
34425
    }
34426
 
34427
    public void addToSuccess(long elem) {
34428
      if (this.success == null) {
34429
        this.success = new ArrayList<Long>();
34430
      }
34431
      this.success.add(elem);
34432
    }
34433
 
34434
    public List<Long> getSuccess() {
34435
      return this.success;
34436
    }
34437
 
34438
    public void setSuccess(List<Long> success) {
34439
      this.success = success;
34440
    }
34441
 
34442
    public void unsetSuccess() {
34443
      this.success = null;
34444
    }
34445
 
34446
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34447
    public boolean isSetSuccess() {
34448
      return this.success != null;
34449
    }
34450
 
34451
    public void setSuccessIsSet(boolean value) {
34452
      if (!value) {
34453
        this.success = null;
34454
      }
34455
    }
34456
 
34457
    public void setFieldValue(_Fields field, Object value) {
34458
      switch (field) {
34459
      case SUCCESS:
34460
        if (value == null) {
34461
          unsetSuccess();
34462
        } else {
34463
          setSuccess((List<Long>)value);
34464
        }
34465
        break;
34466
 
34467
      }
34468
    }
34469
 
34470
    public Object getFieldValue(_Fields field) {
34471
      switch (field) {
34472
      case SUCCESS:
34473
        return getSuccess();
34474
 
34475
      }
34476
      throw new IllegalStateException();
34477
    }
34478
 
34479
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34480
    public boolean isSet(_Fields field) {
34481
      if (field == null) {
34482
        throw new IllegalArgumentException();
34483
      }
34484
 
34485
      switch (field) {
34486
      case SUCCESS:
34487
        return isSetSuccess();
34488
      }
34489
      throw new IllegalStateException();
34490
    }
34491
 
34492
    @Override
34493
    public boolean equals(Object that) {
34494
      if (that == null)
34495
        return false;
34496
      if (that instanceof getMonitoredWarehouseForVendors_result)
34497
        return this.equals((getMonitoredWarehouseForVendors_result)that);
34498
      return false;
34499
    }
34500
 
34501
    public boolean equals(getMonitoredWarehouseForVendors_result that) {
34502
      if (that == null)
34503
        return false;
34504
 
34505
      boolean this_present_success = true && this.isSetSuccess();
34506
      boolean that_present_success = true && that.isSetSuccess();
34507
      if (this_present_success || that_present_success) {
34508
        if (!(this_present_success && that_present_success))
34509
          return false;
34510
        if (!this.success.equals(that.success))
34511
          return false;
34512
      }
34513
 
34514
      return true;
34515
    }
34516
 
34517
    @Override
34518
    public int hashCode() {
34519
      return 0;
34520
    }
34521
 
34522
    public int compareTo(getMonitoredWarehouseForVendors_result other) {
34523
      if (!getClass().equals(other.getClass())) {
34524
        return getClass().getName().compareTo(other.getClass().getName());
34525
      }
34526
 
34527
      int lastComparison = 0;
34528
      getMonitoredWarehouseForVendors_result typedOther = (getMonitoredWarehouseForVendors_result)other;
34529
 
34530
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34531
      if (lastComparison != 0) {
34532
        return lastComparison;
34533
      }
34534
      if (isSetSuccess()) {
34535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34536
        if (lastComparison != 0) {
34537
          return lastComparison;
34538
        }
34539
      }
34540
      return 0;
34541
    }
34542
 
34543
    public _Fields fieldForId(int fieldId) {
34544
      return _Fields.findByThriftId(fieldId);
34545
    }
34546
 
34547
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34548
      org.apache.thrift.protocol.TField field;
34549
      iprot.readStructBegin();
34550
      while (true)
34551
      {
34552
        field = iprot.readFieldBegin();
34553
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34554
          break;
34555
        }
34556
        switch (field.id) {
34557
          case 0: // SUCCESS
34558
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34559
              {
8182 amar.kumar 34560
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
34561
                this.success = new ArrayList<Long>(_list97.size);
34562
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
6531 vikram.rag 34563
                {
8182 amar.kumar 34564
                  long _elem99; // required
34565
                  _elem99 = iprot.readI64();
34566
                  this.success.add(_elem99);
6531 vikram.rag 34567
                }
34568
                iprot.readListEnd();
34569
              }
34570
            } else { 
34571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34572
            }
34573
            break;
34574
          default:
34575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34576
        }
34577
        iprot.readFieldEnd();
34578
      }
34579
      iprot.readStructEnd();
34580
      validate();
34581
    }
34582
 
34583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34584
      oprot.writeStructBegin(STRUCT_DESC);
34585
 
34586
      if (this.isSetSuccess()) {
34587
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34588
        {
34589
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 34590
          for (long _iter100 : this.success)
6531 vikram.rag 34591
          {
8182 amar.kumar 34592
            oprot.writeI64(_iter100);
6531 vikram.rag 34593
          }
34594
          oprot.writeListEnd();
34595
        }
34596
        oprot.writeFieldEnd();
34597
      }
34598
      oprot.writeFieldStop();
34599
      oprot.writeStructEnd();
34600
    }
34601
 
34602
    @Override
34603
    public String toString() {
34604
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_result(");
34605
      boolean first = true;
34606
 
34607
      sb.append("success:");
34608
      if (this.success == null) {
34609
        sb.append("null");
34610
      } else {
34611
        sb.append(this.success);
34612
      }
34613
      first = false;
34614
      sb.append(")");
34615
      return sb.toString();
34616
    }
34617
 
34618
    public void validate() throws org.apache.thrift.TException {
34619
      // check for required fields
34620
    }
34621
 
34622
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34623
      try {
34624
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34625
      } catch (org.apache.thrift.TException te) {
34626
        throw new java.io.IOException(te);
34627
      }
34628
    }
34629
 
34630
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34631
      try {
34632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34633
      } catch (org.apache.thrift.TException te) {
34634
        throw new java.io.IOException(te);
34635
      }
34636
    }
34637
 
34638
  }
34639
 
34640
  public static class getIgnoredWarehouseidsAndItemids_args implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_args, getIgnoredWarehouseidsAndItemids_args._Fields>, java.io.Serializable, Cloneable   {
34641
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_args");
34642
 
34643
 
34644
 
34645
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34646
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34647
;
34648
 
34649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34650
 
34651
      static {
34652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34653
          byName.put(field.getFieldName(), field);
34654
        }
34655
      }
34656
 
34657
      /**
34658
       * Find the _Fields constant that matches fieldId, or null if its not found.
34659
       */
34660
      public static _Fields findByThriftId(int fieldId) {
34661
        switch(fieldId) {
34662
          default:
34663
            return null;
34664
        }
34665
      }
34666
 
34667
      /**
34668
       * Find the _Fields constant that matches fieldId, throwing an exception
34669
       * if it is not found.
34670
       */
34671
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34672
        _Fields fields = findByThriftId(fieldId);
34673
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34674
        return fields;
34675
      }
34676
 
34677
      /**
34678
       * Find the _Fields constant that matches name, or null if its not found.
34679
       */
34680
      public static _Fields findByName(String name) {
34681
        return byName.get(name);
34682
      }
34683
 
34684
      private final short _thriftId;
34685
      private final String _fieldName;
34686
 
34687
      _Fields(short thriftId, String fieldName) {
34688
        _thriftId = thriftId;
34689
        _fieldName = fieldName;
34690
      }
34691
 
34692
      public short getThriftFieldId() {
34693
        return _thriftId;
34694
      }
34695
 
34696
      public String getFieldName() {
34697
        return _fieldName;
34698
      }
34699
    }
34700
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34701
    static {
34702
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34703
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34704
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_args.class, metaDataMap);
34705
    }
34706
 
34707
    public getIgnoredWarehouseidsAndItemids_args() {
34708
    }
34709
 
34710
    /**
34711
     * Performs a deep copy on <i>other</i>.
34712
     */
34713
    public getIgnoredWarehouseidsAndItemids_args(getIgnoredWarehouseidsAndItemids_args other) {
34714
    }
34715
 
34716
    public getIgnoredWarehouseidsAndItemids_args deepCopy() {
34717
      return new getIgnoredWarehouseidsAndItemids_args(this);
34718
    }
34719
 
34720
    @Override
34721
    public void clear() {
34722
    }
34723
 
34724
    public void setFieldValue(_Fields field, Object value) {
34725
      switch (field) {
34726
      }
34727
    }
34728
 
34729
    public Object getFieldValue(_Fields field) {
34730
      switch (field) {
34731
      }
34732
      throw new IllegalStateException();
34733
    }
34734
 
34735
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34736
    public boolean isSet(_Fields field) {
34737
      if (field == null) {
34738
        throw new IllegalArgumentException();
34739
      }
34740
 
34741
      switch (field) {
34742
      }
34743
      throw new IllegalStateException();
34744
    }
34745
 
34746
    @Override
34747
    public boolean equals(Object that) {
34748
      if (that == null)
34749
        return false;
34750
      if (that instanceof getIgnoredWarehouseidsAndItemids_args)
34751
        return this.equals((getIgnoredWarehouseidsAndItemids_args)that);
34752
      return false;
34753
    }
34754
 
34755
    public boolean equals(getIgnoredWarehouseidsAndItemids_args that) {
34756
      if (that == null)
34757
        return false;
34758
 
34759
      return true;
34760
    }
34761
 
34762
    @Override
34763
    public int hashCode() {
34764
      return 0;
34765
    }
34766
 
34767
    public int compareTo(getIgnoredWarehouseidsAndItemids_args other) {
34768
      if (!getClass().equals(other.getClass())) {
34769
        return getClass().getName().compareTo(other.getClass().getName());
34770
      }
34771
 
34772
      int lastComparison = 0;
34773
      getIgnoredWarehouseidsAndItemids_args typedOther = (getIgnoredWarehouseidsAndItemids_args)other;
34774
 
34775
      return 0;
34776
    }
34777
 
34778
    public _Fields fieldForId(int fieldId) {
34779
      return _Fields.findByThriftId(fieldId);
34780
    }
34781
 
34782
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34783
      org.apache.thrift.protocol.TField field;
34784
      iprot.readStructBegin();
34785
      while (true)
34786
      {
34787
        field = iprot.readFieldBegin();
34788
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34789
          break;
34790
        }
34791
        switch (field.id) {
34792
          default:
34793
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34794
        }
34795
        iprot.readFieldEnd();
34796
      }
34797
      iprot.readStructEnd();
34798
      validate();
34799
    }
34800
 
34801
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34802
      validate();
34803
 
34804
      oprot.writeStructBegin(STRUCT_DESC);
34805
      oprot.writeFieldStop();
34806
      oprot.writeStructEnd();
34807
    }
34808
 
34809
    @Override
34810
    public String toString() {
34811
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_args(");
34812
      boolean first = true;
34813
 
34814
      sb.append(")");
34815
      return sb.toString();
34816
    }
34817
 
34818
    public void validate() throws org.apache.thrift.TException {
34819
      // check for required fields
34820
    }
34821
 
34822
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34823
      try {
34824
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34825
      } catch (org.apache.thrift.TException te) {
34826
        throw new java.io.IOException(te);
34827
      }
34828
    }
34829
 
34830
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34831
      try {
34832
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34833
      } catch (org.apache.thrift.TException te) {
34834
        throw new java.io.IOException(te);
34835
      }
34836
    }
34837
 
34838
  }
34839
 
34840
  public static class getIgnoredWarehouseidsAndItemids_result implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_result, getIgnoredWarehouseidsAndItemids_result._Fields>, java.io.Serializable, Cloneable   {
34841
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_result");
34842
 
34843
    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);
34844
 
34845
    private List<IgnoredInventoryUpdateItems> success; // required
34846
 
34847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34849
      SUCCESS((short)0, "success");
34850
 
34851
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34852
 
34853
      static {
34854
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34855
          byName.put(field.getFieldName(), field);
34856
        }
34857
      }
34858
 
34859
      /**
34860
       * Find the _Fields constant that matches fieldId, or null if its not found.
34861
       */
34862
      public static _Fields findByThriftId(int fieldId) {
34863
        switch(fieldId) {
34864
          case 0: // SUCCESS
34865
            return SUCCESS;
34866
          default:
34867
            return null;
34868
        }
34869
      }
34870
 
34871
      /**
34872
       * Find the _Fields constant that matches fieldId, throwing an exception
34873
       * if it is not found.
34874
       */
34875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34876
        _Fields fields = findByThriftId(fieldId);
34877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34878
        return fields;
34879
      }
34880
 
34881
      /**
34882
       * Find the _Fields constant that matches name, or null if its not found.
34883
       */
34884
      public static _Fields findByName(String name) {
34885
        return byName.get(name);
34886
      }
34887
 
34888
      private final short _thriftId;
34889
      private final String _fieldName;
34890
 
34891
      _Fields(short thriftId, String fieldName) {
34892
        _thriftId = thriftId;
34893
        _fieldName = fieldName;
34894
      }
34895
 
34896
      public short getThriftFieldId() {
34897
        return _thriftId;
34898
      }
34899
 
34900
      public String getFieldName() {
34901
        return _fieldName;
34902
      }
34903
    }
34904
 
34905
    // isset id assignments
34906
 
34907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34908
    static {
34909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34910
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34911
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34912
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IgnoredInventoryUpdateItems.class))));
34913
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34914
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_result.class, metaDataMap);
34915
    }
34916
 
34917
    public getIgnoredWarehouseidsAndItemids_result() {
34918
    }
34919
 
34920
    public getIgnoredWarehouseidsAndItemids_result(
34921
      List<IgnoredInventoryUpdateItems> success)
34922
    {
34923
      this();
34924
      this.success = success;
34925
    }
34926
 
34927
    /**
34928
     * Performs a deep copy on <i>other</i>.
34929
     */
34930
    public getIgnoredWarehouseidsAndItemids_result(getIgnoredWarehouseidsAndItemids_result other) {
34931
      if (other.isSetSuccess()) {
34932
        List<IgnoredInventoryUpdateItems> __this__success = new ArrayList<IgnoredInventoryUpdateItems>();
34933
        for (IgnoredInventoryUpdateItems other_element : other.success) {
34934
          __this__success.add(new IgnoredInventoryUpdateItems(other_element));
34935
        }
34936
        this.success = __this__success;
34937
      }
34938
    }
34939
 
34940
    public getIgnoredWarehouseidsAndItemids_result deepCopy() {
34941
      return new getIgnoredWarehouseidsAndItemids_result(this);
34942
    }
34943
 
34944
    @Override
34945
    public void clear() {
34946
      this.success = null;
34947
    }
34948
 
34949
    public int getSuccessSize() {
34950
      return (this.success == null) ? 0 : this.success.size();
34951
    }
34952
 
34953
    public java.util.Iterator<IgnoredInventoryUpdateItems> getSuccessIterator() {
34954
      return (this.success == null) ? null : this.success.iterator();
34955
    }
34956
 
34957
    public void addToSuccess(IgnoredInventoryUpdateItems elem) {
34958
      if (this.success == null) {
34959
        this.success = new ArrayList<IgnoredInventoryUpdateItems>();
34960
      }
34961
      this.success.add(elem);
34962
    }
34963
 
34964
    public List<IgnoredInventoryUpdateItems> getSuccess() {
34965
      return this.success;
34966
    }
34967
 
34968
    public void setSuccess(List<IgnoredInventoryUpdateItems> success) {
34969
      this.success = success;
34970
    }
34971
 
34972
    public void unsetSuccess() {
34973
      this.success = null;
34974
    }
34975
 
34976
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34977
    public boolean isSetSuccess() {
34978
      return this.success != null;
34979
    }
34980
 
34981
    public void setSuccessIsSet(boolean value) {
34982
      if (!value) {
34983
        this.success = null;
34984
      }
34985
    }
34986
 
34987
    public void setFieldValue(_Fields field, Object value) {
34988
      switch (field) {
34989
      case SUCCESS:
34990
        if (value == null) {
34991
          unsetSuccess();
34992
        } else {
34993
          setSuccess((List<IgnoredInventoryUpdateItems>)value);
34994
        }
34995
        break;
34996
 
34997
      }
34998
    }
34999
 
35000
    public Object getFieldValue(_Fields field) {
35001
      switch (field) {
35002
      case SUCCESS:
35003
        return getSuccess();
35004
 
35005
      }
35006
      throw new IllegalStateException();
35007
    }
35008
 
35009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35010
    public boolean isSet(_Fields field) {
35011
      if (field == null) {
35012
        throw new IllegalArgumentException();
35013
      }
35014
 
35015
      switch (field) {
35016
      case SUCCESS:
35017
        return isSetSuccess();
35018
      }
35019
      throw new IllegalStateException();
35020
    }
35021
 
35022
    @Override
35023
    public boolean equals(Object that) {
35024
      if (that == null)
35025
        return false;
35026
      if (that instanceof getIgnoredWarehouseidsAndItemids_result)
35027
        return this.equals((getIgnoredWarehouseidsAndItemids_result)that);
35028
      return false;
35029
    }
35030
 
35031
    public boolean equals(getIgnoredWarehouseidsAndItemids_result that) {
35032
      if (that == null)
35033
        return false;
35034
 
35035
      boolean this_present_success = true && this.isSetSuccess();
35036
      boolean that_present_success = true && that.isSetSuccess();
35037
      if (this_present_success || that_present_success) {
35038
        if (!(this_present_success && that_present_success))
35039
          return false;
35040
        if (!this.success.equals(that.success))
35041
          return false;
35042
      }
35043
 
35044
      return true;
35045
    }
35046
 
35047
    @Override
35048
    public int hashCode() {
35049
      return 0;
35050
    }
35051
 
35052
    public int compareTo(getIgnoredWarehouseidsAndItemids_result other) {
35053
      if (!getClass().equals(other.getClass())) {
35054
        return getClass().getName().compareTo(other.getClass().getName());
35055
      }
35056
 
35057
      int lastComparison = 0;
35058
      getIgnoredWarehouseidsAndItemids_result typedOther = (getIgnoredWarehouseidsAndItemids_result)other;
35059
 
35060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35061
      if (lastComparison != 0) {
35062
        return lastComparison;
35063
      }
35064
      if (isSetSuccess()) {
35065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35066
        if (lastComparison != 0) {
35067
          return lastComparison;
35068
        }
35069
      }
35070
      return 0;
35071
    }
35072
 
35073
    public _Fields fieldForId(int fieldId) {
35074
      return _Fields.findByThriftId(fieldId);
35075
    }
35076
 
35077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35078
      org.apache.thrift.protocol.TField field;
35079
      iprot.readStructBegin();
35080
      while (true)
35081
      {
35082
        field = iprot.readFieldBegin();
35083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35084
          break;
35085
        }
35086
        switch (field.id) {
35087
          case 0: // SUCCESS
35088
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35089
              {
8182 amar.kumar 35090
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
35091
                this.success = new ArrayList<IgnoredInventoryUpdateItems>(_list101.size);
35092
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
6531 vikram.rag 35093
                {
8182 amar.kumar 35094
                  IgnoredInventoryUpdateItems _elem103; // required
35095
                  _elem103 = new IgnoredInventoryUpdateItems();
35096
                  _elem103.read(iprot);
35097
                  this.success.add(_elem103);
6531 vikram.rag 35098
                }
35099
                iprot.readListEnd();
35100
              }
35101
            } else { 
35102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35103
            }
35104
            break;
35105
          default:
35106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35107
        }
35108
        iprot.readFieldEnd();
35109
      }
35110
      iprot.readStructEnd();
35111
      validate();
35112
    }
35113
 
35114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35115
      oprot.writeStructBegin(STRUCT_DESC);
35116
 
35117
      if (this.isSetSuccess()) {
35118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35119
        {
35120
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 35121
          for (IgnoredInventoryUpdateItems _iter104 : this.success)
6531 vikram.rag 35122
          {
8182 amar.kumar 35123
            _iter104.write(oprot);
6531 vikram.rag 35124
          }
35125
          oprot.writeListEnd();
35126
        }
35127
        oprot.writeFieldEnd();
35128
      }
35129
      oprot.writeFieldStop();
35130
      oprot.writeStructEnd();
35131
    }
35132
 
35133
    @Override
35134
    public String toString() {
35135
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_result(");
35136
      boolean first = true;
35137
 
35138
      sb.append("success:");
35139
      if (this.success == null) {
35140
        sb.append("null");
35141
      } else {
35142
        sb.append(this.success);
35143
      }
35144
      first = false;
35145
      sb.append(")");
35146
      return sb.toString();
35147
    }
35148
 
35149
    public void validate() throws org.apache.thrift.TException {
35150
      // check for required fields
35151
    }
35152
 
35153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35154
      try {
35155
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35156
      } catch (org.apache.thrift.TException te) {
35157
        throw new java.io.IOException(te);
35158
      }
35159
    }
35160
 
35161
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35162
      try {
35163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35164
      } catch (org.apache.thrift.TException te) {
35165
        throw new java.io.IOException(te);
35166
      }
35167
    }
35168
 
35169
  }
35170
 
35171
  public static class insertItemtoIgnoreInventoryUpdatelist_args implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_args, insertItemtoIgnoreInventoryUpdatelist_args._Fields>, java.io.Serializable, Cloneable   {
35172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_args");
35173
 
35174
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
35175
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)2);
35176
 
35177
    private long item_id; // required
35178
    private long warehouse_id; // required
35179
 
35180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35182
      ITEM_ID((short)1, "item_id"),
35183
      WAREHOUSE_ID((short)2, "warehouse_id");
35184
 
35185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35186
 
35187
      static {
35188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35189
          byName.put(field.getFieldName(), field);
35190
        }
35191
      }
35192
 
35193
      /**
35194
       * Find the _Fields constant that matches fieldId, or null if its not found.
35195
       */
35196
      public static _Fields findByThriftId(int fieldId) {
35197
        switch(fieldId) {
35198
          case 1: // ITEM_ID
35199
            return ITEM_ID;
35200
          case 2: // WAREHOUSE_ID
35201
            return WAREHOUSE_ID;
35202
          default:
35203
            return null;
35204
        }
35205
      }
35206
 
35207
      /**
35208
       * Find the _Fields constant that matches fieldId, throwing an exception
35209
       * if it is not found.
35210
       */
35211
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35212
        _Fields fields = findByThriftId(fieldId);
35213
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35214
        return fields;
35215
      }
35216
 
35217
      /**
35218
       * Find the _Fields constant that matches name, or null if its not found.
35219
       */
35220
      public static _Fields findByName(String name) {
35221
        return byName.get(name);
35222
      }
35223
 
35224
      private final short _thriftId;
35225
      private final String _fieldName;
35226
 
35227
      _Fields(short thriftId, String fieldName) {
35228
        _thriftId = thriftId;
35229
        _fieldName = fieldName;
35230
      }
35231
 
35232
      public short getThriftFieldId() {
35233
        return _thriftId;
35234
      }
35235
 
35236
      public String getFieldName() {
35237
        return _fieldName;
35238
      }
35239
    }
35240
 
35241
    // isset id assignments
35242
    private static final int __ITEM_ID_ISSET_ID = 0;
35243
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
35244
    private BitSet __isset_bit_vector = new BitSet(2);
35245
 
35246
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35247
    static {
35248
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35249
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35250
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35251
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35252
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35253
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35254
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_args.class, metaDataMap);
35255
    }
35256
 
35257
    public insertItemtoIgnoreInventoryUpdatelist_args() {
35258
    }
35259
 
35260
    public insertItemtoIgnoreInventoryUpdatelist_args(
35261
      long item_id,
35262
      long warehouse_id)
35263
    {
35264
      this();
35265
      this.item_id = item_id;
35266
      setItem_idIsSet(true);
35267
      this.warehouse_id = warehouse_id;
35268
      setWarehouse_idIsSet(true);
35269
    }
35270
 
35271
    /**
35272
     * Performs a deep copy on <i>other</i>.
35273
     */
35274
    public insertItemtoIgnoreInventoryUpdatelist_args(insertItemtoIgnoreInventoryUpdatelist_args other) {
35275
      __isset_bit_vector.clear();
35276
      __isset_bit_vector.or(other.__isset_bit_vector);
35277
      this.item_id = other.item_id;
35278
      this.warehouse_id = other.warehouse_id;
35279
    }
35280
 
35281
    public insertItemtoIgnoreInventoryUpdatelist_args deepCopy() {
35282
      return new insertItemtoIgnoreInventoryUpdatelist_args(this);
35283
    }
35284
 
35285
    @Override
35286
    public void clear() {
35287
      setItem_idIsSet(false);
35288
      this.item_id = 0;
35289
      setWarehouse_idIsSet(false);
35290
      this.warehouse_id = 0;
35291
    }
35292
 
35293
    public long getItem_id() {
35294
      return this.item_id;
35295
    }
35296
 
35297
    public void setItem_id(long item_id) {
35298
      this.item_id = item_id;
35299
      setItem_idIsSet(true);
35300
    }
35301
 
35302
    public void unsetItem_id() {
35303
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
35304
    }
35305
 
35306
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
35307
    public boolean isSetItem_id() {
35308
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
35309
    }
35310
 
35311
    public void setItem_idIsSet(boolean value) {
35312
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
35313
    }
35314
 
35315
    public long getWarehouse_id() {
35316
      return this.warehouse_id;
35317
    }
35318
 
35319
    public void setWarehouse_id(long warehouse_id) {
35320
      this.warehouse_id = warehouse_id;
35321
      setWarehouse_idIsSet(true);
35322
    }
35323
 
35324
    public void unsetWarehouse_id() {
35325
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
35326
    }
35327
 
35328
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
35329
    public boolean isSetWarehouse_id() {
35330
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
35331
    }
35332
 
35333
    public void setWarehouse_idIsSet(boolean value) {
35334
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
35335
    }
35336
 
35337
    public void setFieldValue(_Fields field, Object value) {
35338
      switch (field) {
35339
      case ITEM_ID:
35340
        if (value == null) {
35341
          unsetItem_id();
35342
        } else {
35343
          setItem_id((Long)value);
35344
        }
35345
        break;
35346
 
35347
      case WAREHOUSE_ID:
35348
        if (value == null) {
35349
          unsetWarehouse_id();
35350
        } else {
35351
          setWarehouse_id((Long)value);
35352
        }
35353
        break;
35354
 
35355
      }
35356
    }
35357
 
35358
    public Object getFieldValue(_Fields field) {
35359
      switch (field) {
35360
      case ITEM_ID:
35361
        return Long.valueOf(getItem_id());
35362
 
35363
      case WAREHOUSE_ID:
35364
        return Long.valueOf(getWarehouse_id());
35365
 
35366
      }
35367
      throw new IllegalStateException();
35368
    }
35369
 
35370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35371
    public boolean isSet(_Fields field) {
35372
      if (field == null) {
35373
        throw new IllegalArgumentException();
35374
      }
35375
 
35376
      switch (field) {
35377
      case ITEM_ID:
35378
        return isSetItem_id();
35379
      case WAREHOUSE_ID:
35380
        return isSetWarehouse_id();
35381
      }
35382
      throw new IllegalStateException();
35383
    }
35384
 
35385
    @Override
35386
    public boolean equals(Object that) {
35387
      if (that == null)
35388
        return false;
35389
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_args)
35390
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_args)that);
35391
      return false;
35392
    }
35393
 
35394
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_args that) {
35395
      if (that == null)
35396
        return false;
35397
 
35398
      boolean this_present_item_id = true;
35399
      boolean that_present_item_id = true;
35400
      if (this_present_item_id || that_present_item_id) {
35401
        if (!(this_present_item_id && that_present_item_id))
35402
          return false;
35403
        if (this.item_id != that.item_id)
35404
          return false;
35405
      }
35406
 
35407
      boolean this_present_warehouse_id = true;
35408
      boolean that_present_warehouse_id = true;
35409
      if (this_present_warehouse_id || that_present_warehouse_id) {
35410
        if (!(this_present_warehouse_id && that_present_warehouse_id))
35411
          return false;
35412
        if (this.warehouse_id != that.warehouse_id)
35413
          return false;
35414
      }
35415
 
35416
      return true;
35417
    }
35418
 
35419
    @Override
35420
    public int hashCode() {
35421
      return 0;
35422
    }
35423
 
35424
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_args other) {
35425
      if (!getClass().equals(other.getClass())) {
35426
        return getClass().getName().compareTo(other.getClass().getName());
35427
      }
35428
 
35429
      int lastComparison = 0;
35430
      insertItemtoIgnoreInventoryUpdatelist_args typedOther = (insertItemtoIgnoreInventoryUpdatelist_args)other;
35431
 
35432
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
35433
      if (lastComparison != 0) {
35434
        return lastComparison;
35435
      }
35436
      if (isSetItem_id()) {
35437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
35438
        if (lastComparison != 0) {
35439
          return lastComparison;
35440
        }
35441
      }
35442
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
35443
      if (lastComparison != 0) {
35444
        return lastComparison;
35445
      }
35446
      if (isSetWarehouse_id()) {
35447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
35448
        if (lastComparison != 0) {
35449
          return lastComparison;
35450
        }
35451
      }
35452
      return 0;
35453
    }
35454
 
35455
    public _Fields fieldForId(int fieldId) {
35456
      return _Fields.findByThriftId(fieldId);
35457
    }
35458
 
35459
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35460
      org.apache.thrift.protocol.TField field;
35461
      iprot.readStructBegin();
35462
      while (true)
35463
      {
35464
        field = iprot.readFieldBegin();
35465
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35466
          break;
35467
        }
35468
        switch (field.id) {
35469
          case 1: // ITEM_ID
35470
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35471
              this.item_id = iprot.readI64();
35472
              setItem_idIsSet(true);
35473
            } else { 
35474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35475
            }
35476
            break;
35477
          case 2: // WAREHOUSE_ID
35478
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35479
              this.warehouse_id = iprot.readI64();
35480
              setWarehouse_idIsSet(true);
35481
            } else { 
35482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35483
            }
35484
            break;
35485
          default:
35486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35487
        }
35488
        iprot.readFieldEnd();
35489
      }
35490
      iprot.readStructEnd();
35491
      validate();
35492
    }
35493
 
35494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35495
      validate();
35496
 
35497
      oprot.writeStructBegin(STRUCT_DESC);
35498
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
35499
      oprot.writeI64(this.item_id);
35500
      oprot.writeFieldEnd();
35501
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
35502
      oprot.writeI64(this.warehouse_id);
35503
      oprot.writeFieldEnd();
35504
      oprot.writeFieldStop();
35505
      oprot.writeStructEnd();
35506
    }
35507
 
35508
    @Override
35509
    public String toString() {
35510
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_args(");
35511
      boolean first = true;
35512
 
35513
      sb.append("item_id:");
35514
      sb.append(this.item_id);
35515
      first = false;
35516
      if (!first) sb.append(", ");
35517
      sb.append("warehouse_id:");
35518
      sb.append(this.warehouse_id);
35519
      first = false;
35520
      sb.append(")");
35521
      return sb.toString();
35522
    }
35523
 
35524
    public void validate() throws org.apache.thrift.TException {
35525
      // check for required fields
35526
    }
35527
 
35528
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35529
      try {
35530
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35531
      } catch (org.apache.thrift.TException te) {
35532
        throw new java.io.IOException(te);
35533
      }
35534
    }
35535
 
35536
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35537
      try {
35538
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35539
        __isset_bit_vector = new BitSet(1);
35540
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35541
      } catch (org.apache.thrift.TException te) {
35542
        throw new java.io.IOException(te);
35543
      }
35544
    }
35545
 
35546
  }
35547
 
35548
  public static class insertItemtoIgnoreInventoryUpdatelist_result implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_result, insertItemtoIgnoreInventoryUpdatelist_result._Fields>, java.io.Serializable, Cloneable   {
35549
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_result");
35550
 
35551
    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);
35552
 
35553
    private boolean success; // required
35554
 
35555
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35556
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35557
      SUCCESS((short)0, "success");
35558
 
35559
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35560
 
35561
      static {
35562
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35563
          byName.put(field.getFieldName(), field);
35564
        }
35565
      }
35566
 
35567
      /**
35568
       * Find the _Fields constant that matches fieldId, or null if its not found.
35569
       */
35570
      public static _Fields findByThriftId(int fieldId) {
35571
        switch(fieldId) {
35572
          case 0: // SUCCESS
35573
            return SUCCESS;
35574
          default:
35575
            return null;
35576
        }
35577
      }
35578
 
35579
      /**
35580
       * Find the _Fields constant that matches fieldId, throwing an exception
35581
       * if it is not found.
35582
       */
35583
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35584
        _Fields fields = findByThriftId(fieldId);
35585
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35586
        return fields;
35587
      }
35588
 
35589
      /**
35590
       * Find the _Fields constant that matches name, or null if its not found.
35591
       */
35592
      public static _Fields findByName(String name) {
35593
        return byName.get(name);
35594
      }
35595
 
35596
      private final short _thriftId;
35597
      private final String _fieldName;
35598
 
35599
      _Fields(short thriftId, String fieldName) {
35600
        _thriftId = thriftId;
35601
        _fieldName = fieldName;
35602
      }
35603
 
35604
      public short getThriftFieldId() {
35605
        return _thriftId;
35606
      }
35607
 
35608
      public String getFieldName() {
35609
        return _fieldName;
35610
      }
35611
    }
35612
 
35613
    // isset id assignments
35614
    private static final int __SUCCESS_ISSET_ID = 0;
35615
    private BitSet __isset_bit_vector = new BitSet(1);
35616
 
35617
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35618
    static {
35619
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35620
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35621
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
35622
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35623
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_result.class, metaDataMap);
35624
    }
35625
 
35626
    public insertItemtoIgnoreInventoryUpdatelist_result() {
35627
    }
35628
 
35629
    public insertItemtoIgnoreInventoryUpdatelist_result(
35630
      boolean success)
35631
    {
35632
      this();
35633
      this.success = success;
35634
      setSuccessIsSet(true);
35635
    }
35636
 
35637
    /**
35638
     * Performs a deep copy on <i>other</i>.
35639
     */
35640
    public insertItemtoIgnoreInventoryUpdatelist_result(insertItemtoIgnoreInventoryUpdatelist_result other) {
35641
      __isset_bit_vector.clear();
35642
      __isset_bit_vector.or(other.__isset_bit_vector);
35643
      this.success = other.success;
35644
    }
35645
 
35646
    public insertItemtoIgnoreInventoryUpdatelist_result deepCopy() {
35647
      return new insertItemtoIgnoreInventoryUpdatelist_result(this);
35648
    }
35649
 
35650
    @Override
35651
    public void clear() {
35652
      setSuccessIsSet(false);
35653
      this.success = false;
35654
    }
35655
 
35656
    public boolean isSuccess() {
35657
      return this.success;
35658
    }
35659
 
35660
    public void setSuccess(boolean success) {
35661
      this.success = success;
35662
      setSuccessIsSet(true);
35663
    }
35664
 
35665
    public void unsetSuccess() {
35666
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
35667
    }
35668
 
35669
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35670
    public boolean isSetSuccess() {
35671
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
35672
    }
35673
 
35674
    public void setSuccessIsSet(boolean value) {
35675
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
35676
    }
35677
 
35678
    public void setFieldValue(_Fields field, Object value) {
35679
      switch (field) {
35680
      case SUCCESS:
35681
        if (value == null) {
35682
          unsetSuccess();
35683
        } else {
35684
          setSuccess((Boolean)value);
35685
        }
35686
        break;
35687
 
35688
      }
35689
    }
35690
 
35691
    public Object getFieldValue(_Fields field) {
35692
      switch (field) {
35693
      case SUCCESS:
35694
        return Boolean.valueOf(isSuccess());
35695
 
35696
      }
35697
      throw new IllegalStateException();
35698
    }
35699
 
35700
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35701
    public boolean isSet(_Fields field) {
35702
      if (field == null) {
35703
        throw new IllegalArgumentException();
35704
      }
35705
 
35706
      switch (field) {
35707
      case SUCCESS:
35708
        return isSetSuccess();
35709
      }
35710
      throw new IllegalStateException();
35711
    }
35712
 
35713
    @Override
35714
    public boolean equals(Object that) {
35715
      if (that == null)
35716
        return false;
35717
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_result)
35718
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_result)that);
35719
      return false;
35720
    }
35721
 
35722
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_result that) {
35723
      if (that == null)
35724
        return false;
35725
 
35726
      boolean this_present_success = true;
35727
      boolean that_present_success = true;
35728
      if (this_present_success || that_present_success) {
35729
        if (!(this_present_success && that_present_success))
35730
          return false;
35731
        if (this.success != that.success)
35732
          return false;
35733
      }
35734
 
35735
      return true;
35736
    }
35737
 
35738
    @Override
35739
    public int hashCode() {
35740
      return 0;
35741
    }
35742
 
35743
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_result other) {
35744
      if (!getClass().equals(other.getClass())) {
35745
        return getClass().getName().compareTo(other.getClass().getName());
35746
      }
35747
 
35748
      int lastComparison = 0;
35749
      insertItemtoIgnoreInventoryUpdatelist_result typedOther = (insertItemtoIgnoreInventoryUpdatelist_result)other;
35750
 
35751
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35752
      if (lastComparison != 0) {
35753
        return lastComparison;
35754
      }
35755
      if (isSetSuccess()) {
35756
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35757
        if (lastComparison != 0) {
35758
          return lastComparison;
35759
        }
35760
      }
35761
      return 0;
35762
    }
35763
 
35764
    public _Fields fieldForId(int fieldId) {
35765
      return _Fields.findByThriftId(fieldId);
35766
    }
35767
 
35768
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35769
      org.apache.thrift.protocol.TField field;
35770
      iprot.readStructBegin();
35771
      while (true)
35772
      {
35773
        field = iprot.readFieldBegin();
35774
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35775
          break;
35776
        }
35777
        switch (field.id) {
35778
          case 0: // SUCCESS
35779
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
35780
              this.success = iprot.readBool();
35781
              setSuccessIsSet(true);
35782
            } else { 
35783
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35784
            }
35785
            break;
35786
          default:
35787
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35788
        }
35789
        iprot.readFieldEnd();
35790
      }
35791
      iprot.readStructEnd();
35792
      validate();
35793
    }
35794
 
35795
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35796
      oprot.writeStructBegin(STRUCT_DESC);
35797
 
35798
      if (this.isSetSuccess()) {
35799
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35800
        oprot.writeBool(this.success);
35801
        oprot.writeFieldEnd();
35802
      }
35803
      oprot.writeFieldStop();
35804
      oprot.writeStructEnd();
35805
    }
35806
 
35807
    @Override
35808
    public String toString() {
35809
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_result(");
35810
      boolean first = true;
35811
 
35812
      sb.append("success:");
35813
      sb.append(this.success);
35814
      first = false;
35815
      sb.append(")");
35816
      return sb.toString();
35817
    }
35818
 
35819
    public void validate() throws org.apache.thrift.TException {
35820
      // check for required fields
35821
    }
35822
 
35823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35824
      try {
35825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35826
      } catch (org.apache.thrift.TException te) {
35827
        throw new java.io.IOException(te);
35828
      }
35829
    }
35830
 
35831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35832
      try {
35833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35834
      } catch (org.apache.thrift.TException te) {
35835
        throw new java.io.IOException(te);
35836
      }
35837
    }
35838
 
35839
  }
35840
 
35841
  public static class deleteItemFromIgnoredInventoryUpdateList_args implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_args, deleteItemFromIgnoredInventoryUpdateList_args._Fields>, java.io.Serializable, Cloneable   {
35842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_args");
35843
 
35844
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
35845
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)2);
35846
 
35847
    private long item_id; // required
35848
    private long warehouse_id; // required
35849
 
35850
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35851
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35852
      ITEM_ID((short)1, "item_id"),
35853
      WAREHOUSE_ID((short)2, "warehouse_id");
35854
 
35855
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35856
 
35857
      static {
35858
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35859
          byName.put(field.getFieldName(), field);
35860
        }
35861
      }
35862
 
35863
      /**
35864
       * Find the _Fields constant that matches fieldId, or null if its not found.
35865
       */
35866
      public static _Fields findByThriftId(int fieldId) {
35867
        switch(fieldId) {
35868
          case 1: // ITEM_ID
35869
            return ITEM_ID;
35870
          case 2: // WAREHOUSE_ID
35871
            return WAREHOUSE_ID;
35872
          default:
35873
            return null;
35874
        }
35875
      }
35876
 
35877
      /**
35878
       * Find the _Fields constant that matches fieldId, throwing an exception
35879
       * if it is not found.
35880
       */
35881
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35882
        _Fields fields = findByThriftId(fieldId);
35883
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35884
        return fields;
35885
      }
35886
 
35887
      /**
35888
       * Find the _Fields constant that matches name, or null if its not found.
35889
       */
35890
      public static _Fields findByName(String name) {
35891
        return byName.get(name);
35892
      }
35893
 
35894
      private final short _thriftId;
35895
      private final String _fieldName;
35896
 
35897
      _Fields(short thriftId, String fieldName) {
35898
        _thriftId = thriftId;
35899
        _fieldName = fieldName;
35900
      }
35901
 
35902
      public short getThriftFieldId() {
35903
        return _thriftId;
35904
      }
35905
 
35906
      public String getFieldName() {
35907
        return _fieldName;
35908
      }
35909
    }
35910
 
35911
    // isset id assignments
35912
    private static final int __ITEM_ID_ISSET_ID = 0;
35913
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
35914
    private BitSet __isset_bit_vector = new BitSet(2);
35915
 
35916
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35917
    static {
35918
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35919
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35921
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35922
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35923
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35924
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_args.class, metaDataMap);
35925
    }
35926
 
35927
    public deleteItemFromIgnoredInventoryUpdateList_args() {
35928
    }
35929
 
35930
    public deleteItemFromIgnoredInventoryUpdateList_args(
35931
      long item_id,
35932
      long warehouse_id)
35933
    {
35934
      this();
35935
      this.item_id = item_id;
35936
      setItem_idIsSet(true);
35937
      this.warehouse_id = warehouse_id;
35938
      setWarehouse_idIsSet(true);
35939
    }
35940
 
35941
    /**
35942
     * Performs a deep copy on <i>other</i>.
35943
     */
35944
    public deleteItemFromIgnoredInventoryUpdateList_args(deleteItemFromIgnoredInventoryUpdateList_args other) {
35945
      __isset_bit_vector.clear();
35946
      __isset_bit_vector.or(other.__isset_bit_vector);
35947
      this.item_id = other.item_id;
35948
      this.warehouse_id = other.warehouse_id;
35949
    }
35950
 
35951
    public deleteItemFromIgnoredInventoryUpdateList_args deepCopy() {
35952
      return new deleteItemFromIgnoredInventoryUpdateList_args(this);
35953
    }
35954
 
35955
    @Override
35956
    public void clear() {
35957
      setItem_idIsSet(false);
35958
      this.item_id = 0;
35959
      setWarehouse_idIsSet(false);
35960
      this.warehouse_id = 0;
35961
    }
35962
 
35963
    public long getItem_id() {
35964
      return this.item_id;
35965
    }
35966
 
35967
    public void setItem_id(long item_id) {
35968
      this.item_id = item_id;
35969
      setItem_idIsSet(true);
35970
    }
35971
 
35972
    public void unsetItem_id() {
35973
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
35974
    }
35975
 
35976
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
35977
    public boolean isSetItem_id() {
35978
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
35979
    }
35980
 
35981
    public void setItem_idIsSet(boolean value) {
35982
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
35983
    }
35984
 
35985
    public long getWarehouse_id() {
35986
      return this.warehouse_id;
35987
    }
35988
 
35989
    public void setWarehouse_id(long warehouse_id) {
35990
      this.warehouse_id = warehouse_id;
35991
      setWarehouse_idIsSet(true);
35992
    }
35993
 
35994
    public void unsetWarehouse_id() {
35995
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
35996
    }
35997
 
35998
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
35999
    public boolean isSetWarehouse_id() {
36000
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
36001
    }
36002
 
36003
    public void setWarehouse_idIsSet(boolean value) {
36004
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
36005
    }
36006
 
36007
    public void setFieldValue(_Fields field, Object value) {
36008
      switch (field) {
36009
      case ITEM_ID:
36010
        if (value == null) {
36011
          unsetItem_id();
36012
        } else {
36013
          setItem_id((Long)value);
36014
        }
36015
        break;
36016
 
36017
      case WAREHOUSE_ID:
36018
        if (value == null) {
36019
          unsetWarehouse_id();
36020
        } else {
36021
          setWarehouse_id((Long)value);
36022
        }
36023
        break;
36024
 
36025
      }
36026
    }
36027
 
36028
    public Object getFieldValue(_Fields field) {
36029
      switch (field) {
36030
      case ITEM_ID:
36031
        return Long.valueOf(getItem_id());
36032
 
36033
      case WAREHOUSE_ID:
36034
        return Long.valueOf(getWarehouse_id());
36035
 
36036
      }
36037
      throw new IllegalStateException();
36038
    }
36039
 
36040
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36041
    public boolean isSet(_Fields field) {
36042
      if (field == null) {
36043
        throw new IllegalArgumentException();
36044
      }
36045
 
36046
      switch (field) {
36047
      case ITEM_ID:
36048
        return isSetItem_id();
36049
      case WAREHOUSE_ID:
36050
        return isSetWarehouse_id();
36051
      }
36052
      throw new IllegalStateException();
36053
    }
36054
 
36055
    @Override
36056
    public boolean equals(Object that) {
36057
      if (that == null)
36058
        return false;
36059
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_args)
36060
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_args)that);
36061
      return false;
36062
    }
36063
 
36064
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_args that) {
36065
      if (that == null)
36066
        return false;
36067
 
36068
      boolean this_present_item_id = true;
36069
      boolean that_present_item_id = true;
36070
      if (this_present_item_id || that_present_item_id) {
36071
        if (!(this_present_item_id && that_present_item_id))
36072
          return false;
36073
        if (this.item_id != that.item_id)
36074
          return false;
36075
      }
36076
 
36077
      boolean this_present_warehouse_id = true;
36078
      boolean that_present_warehouse_id = true;
36079
      if (this_present_warehouse_id || that_present_warehouse_id) {
36080
        if (!(this_present_warehouse_id && that_present_warehouse_id))
36081
          return false;
36082
        if (this.warehouse_id != that.warehouse_id)
36083
          return false;
36084
      }
36085
 
36086
      return true;
36087
    }
36088
 
36089
    @Override
36090
    public int hashCode() {
36091
      return 0;
36092
    }
36093
 
36094
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_args other) {
36095
      if (!getClass().equals(other.getClass())) {
36096
        return getClass().getName().compareTo(other.getClass().getName());
36097
      }
36098
 
36099
      int lastComparison = 0;
36100
      deleteItemFromIgnoredInventoryUpdateList_args typedOther = (deleteItemFromIgnoredInventoryUpdateList_args)other;
36101
 
36102
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
36103
      if (lastComparison != 0) {
36104
        return lastComparison;
36105
      }
36106
      if (isSetItem_id()) {
36107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
36108
        if (lastComparison != 0) {
36109
          return lastComparison;
36110
        }
36111
      }
36112
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
36113
      if (lastComparison != 0) {
36114
        return lastComparison;
36115
      }
36116
      if (isSetWarehouse_id()) {
36117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
36118
        if (lastComparison != 0) {
36119
          return lastComparison;
36120
        }
36121
      }
36122
      return 0;
36123
    }
36124
 
36125
    public _Fields fieldForId(int fieldId) {
36126
      return _Fields.findByThriftId(fieldId);
36127
    }
36128
 
36129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36130
      org.apache.thrift.protocol.TField field;
36131
      iprot.readStructBegin();
36132
      while (true)
36133
      {
36134
        field = iprot.readFieldBegin();
36135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36136
          break;
36137
        }
36138
        switch (field.id) {
36139
          case 1: // ITEM_ID
36140
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36141
              this.item_id = iprot.readI64();
36142
              setItem_idIsSet(true);
36143
            } else { 
36144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36145
            }
36146
            break;
36147
          case 2: // WAREHOUSE_ID
36148
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36149
              this.warehouse_id = iprot.readI64();
36150
              setWarehouse_idIsSet(true);
36151
            } else { 
36152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36153
            }
36154
            break;
36155
          default:
36156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36157
        }
36158
        iprot.readFieldEnd();
36159
      }
36160
      iprot.readStructEnd();
36161
      validate();
36162
    }
36163
 
36164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36165
      validate();
36166
 
36167
      oprot.writeStructBegin(STRUCT_DESC);
36168
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
36169
      oprot.writeI64(this.item_id);
36170
      oprot.writeFieldEnd();
36171
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
36172
      oprot.writeI64(this.warehouse_id);
36173
      oprot.writeFieldEnd();
36174
      oprot.writeFieldStop();
36175
      oprot.writeStructEnd();
36176
    }
36177
 
36178
    @Override
36179
    public String toString() {
36180
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_args(");
36181
      boolean first = true;
36182
 
36183
      sb.append("item_id:");
36184
      sb.append(this.item_id);
36185
      first = false;
36186
      if (!first) sb.append(", ");
36187
      sb.append("warehouse_id:");
36188
      sb.append(this.warehouse_id);
36189
      first = false;
36190
      sb.append(")");
36191
      return sb.toString();
36192
    }
36193
 
36194
    public void validate() throws org.apache.thrift.TException {
36195
      // check for required fields
36196
    }
36197
 
36198
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36199
      try {
36200
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36201
      } catch (org.apache.thrift.TException te) {
36202
        throw new java.io.IOException(te);
36203
      }
36204
    }
36205
 
36206
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36207
      try {
36208
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36209
        __isset_bit_vector = new BitSet(1);
36210
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36211
      } catch (org.apache.thrift.TException te) {
36212
        throw new java.io.IOException(te);
36213
      }
36214
    }
36215
 
36216
  }
36217
 
36218
  public static class deleteItemFromIgnoredInventoryUpdateList_result implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_result, deleteItemFromIgnoredInventoryUpdateList_result._Fields>, java.io.Serializable, Cloneable   {
36219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_result");
36220
 
36221
    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);
36222
 
36223
    private boolean success; // required
36224
 
36225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36227
      SUCCESS((short)0, "success");
36228
 
36229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36230
 
36231
      static {
36232
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36233
          byName.put(field.getFieldName(), field);
36234
        }
36235
      }
36236
 
36237
      /**
36238
       * Find the _Fields constant that matches fieldId, or null if its not found.
36239
       */
36240
      public static _Fields findByThriftId(int fieldId) {
36241
        switch(fieldId) {
36242
          case 0: // SUCCESS
36243
            return SUCCESS;
36244
          default:
36245
            return null;
36246
        }
36247
      }
36248
 
36249
      /**
36250
       * Find the _Fields constant that matches fieldId, throwing an exception
36251
       * if it is not found.
36252
       */
36253
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36254
        _Fields fields = findByThriftId(fieldId);
36255
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36256
        return fields;
36257
      }
36258
 
36259
      /**
36260
       * Find the _Fields constant that matches name, or null if its not found.
36261
       */
36262
      public static _Fields findByName(String name) {
36263
        return byName.get(name);
36264
      }
36265
 
36266
      private final short _thriftId;
36267
      private final String _fieldName;
36268
 
36269
      _Fields(short thriftId, String fieldName) {
36270
        _thriftId = thriftId;
36271
        _fieldName = fieldName;
36272
      }
36273
 
36274
      public short getThriftFieldId() {
36275
        return _thriftId;
36276
      }
36277
 
36278
      public String getFieldName() {
36279
        return _fieldName;
36280
      }
36281
    }
36282
 
36283
    // isset id assignments
36284
    private static final int __SUCCESS_ISSET_ID = 0;
36285
    private BitSet __isset_bit_vector = new BitSet(1);
36286
 
36287
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36288
    static {
36289
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36290
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36291
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
36292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_result.class, metaDataMap);
36294
    }
36295
 
36296
    public deleteItemFromIgnoredInventoryUpdateList_result() {
36297
    }
36298
 
36299
    public deleteItemFromIgnoredInventoryUpdateList_result(
36300
      boolean success)
36301
    {
36302
      this();
36303
      this.success = success;
36304
      setSuccessIsSet(true);
36305
    }
36306
 
36307
    /**
36308
     * Performs a deep copy on <i>other</i>.
36309
     */
36310
    public deleteItemFromIgnoredInventoryUpdateList_result(deleteItemFromIgnoredInventoryUpdateList_result other) {
36311
      __isset_bit_vector.clear();
36312
      __isset_bit_vector.or(other.__isset_bit_vector);
36313
      this.success = other.success;
36314
    }
36315
 
36316
    public deleteItemFromIgnoredInventoryUpdateList_result deepCopy() {
36317
      return new deleteItemFromIgnoredInventoryUpdateList_result(this);
36318
    }
36319
 
36320
    @Override
36321
    public void clear() {
36322
      setSuccessIsSet(false);
36323
      this.success = false;
36324
    }
36325
 
36326
    public boolean isSuccess() {
36327
      return this.success;
36328
    }
36329
 
36330
    public void setSuccess(boolean success) {
36331
      this.success = success;
36332
      setSuccessIsSet(true);
36333
    }
36334
 
36335
    public void unsetSuccess() {
36336
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
36337
    }
36338
 
36339
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
36340
    public boolean isSetSuccess() {
36341
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
36342
    }
36343
 
36344
    public void setSuccessIsSet(boolean value) {
36345
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
36346
    }
36347
 
36348
    public void setFieldValue(_Fields field, Object value) {
36349
      switch (field) {
36350
      case SUCCESS:
36351
        if (value == null) {
36352
          unsetSuccess();
36353
        } else {
36354
          setSuccess((Boolean)value);
36355
        }
36356
        break;
36357
 
36358
      }
36359
    }
36360
 
36361
    public Object getFieldValue(_Fields field) {
36362
      switch (field) {
36363
      case SUCCESS:
36364
        return Boolean.valueOf(isSuccess());
36365
 
36366
      }
36367
      throw new IllegalStateException();
36368
    }
36369
 
36370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36371
    public boolean isSet(_Fields field) {
36372
      if (field == null) {
36373
        throw new IllegalArgumentException();
36374
      }
36375
 
36376
      switch (field) {
36377
      case SUCCESS:
36378
        return isSetSuccess();
36379
      }
36380
      throw new IllegalStateException();
36381
    }
36382
 
36383
    @Override
36384
    public boolean equals(Object that) {
36385
      if (that == null)
36386
        return false;
36387
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_result)
36388
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_result)that);
36389
      return false;
36390
    }
36391
 
36392
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_result that) {
36393
      if (that == null)
36394
        return false;
36395
 
36396
      boolean this_present_success = true;
36397
      boolean that_present_success = true;
36398
      if (this_present_success || that_present_success) {
36399
        if (!(this_present_success && that_present_success))
36400
          return false;
36401
        if (this.success != that.success)
36402
          return false;
36403
      }
36404
 
36405
      return true;
36406
    }
36407
 
36408
    @Override
36409
    public int hashCode() {
36410
      return 0;
36411
    }
36412
 
36413
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_result other) {
36414
      if (!getClass().equals(other.getClass())) {
36415
        return getClass().getName().compareTo(other.getClass().getName());
36416
      }
36417
 
36418
      int lastComparison = 0;
36419
      deleteItemFromIgnoredInventoryUpdateList_result typedOther = (deleteItemFromIgnoredInventoryUpdateList_result)other;
36420
 
36421
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
36422
      if (lastComparison != 0) {
36423
        return lastComparison;
36424
      }
36425
      if (isSetSuccess()) {
36426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36427
        if (lastComparison != 0) {
36428
          return lastComparison;
36429
        }
36430
      }
36431
      return 0;
36432
    }
36433
 
36434
    public _Fields fieldForId(int fieldId) {
36435
      return _Fields.findByThriftId(fieldId);
36436
    }
36437
 
36438
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36439
      org.apache.thrift.protocol.TField field;
36440
      iprot.readStructBegin();
36441
      while (true)
36442
      {
36443
        field = iprot.readFieldBegin();
36444
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36445
          break;
36446
        }
36447
        switch (field.id) {
36448
          case 0: // SUCCESS
36449
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
36450
              this.success = iprot.readBool();
36451
              setSuccessIsSet(true);
36452
            } else { 
36453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36454
            }
36455
            break;
36456
          default:
36457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36458
        }
36459
        iprot.readFieldEnd();
36460
      }
36461
      iprot.readStructEnd();
36462
      validate();
36463
    }
36464
 
36465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36466
      oprot.writeStructBegin(STRUCT_DESC);
36467
 
36468
      if (this.isSetSuccess()) {
36469
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36470
        oprot.writeBool(this.success);
36471
        oprot.writeFieldEnd();
36472
      }
36473
      oprot.writeFieldStop();
36474
      oprot.writeStructEnd();
36475
    }
36476
 
36477
    @Override
36478
    public String toString() {
36479
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_result(");
36480
      boolean first = true;
36481
 
36482
      sb.append("success:");
36483
      sb.append(this.success);
36484
      first = false;
36485
      sb.append(")");
36486
      return sb.toString();
36487
    }
36488
 
36489
    public void validate() throws org.apache.thrift.TException {
36490
      // check for required fields
36491
    }
36492
 
36493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36494
      try {
36495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36496
      } catch (org.apache.thrift.TException te) {
36497
        throw new java.io.IOException(te);
36498
      }
36499
    }
36500
 
36501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36502
      try {
36503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36504
      } catch (org.apache.thrift.TException te) {
36505
        throw new java.io.IOException(te);
36506
      }
36507
    }
36508
 
36509
  }
36510
 
36511
  public static class getAllIgnoredInventoryupdateItemsCount_args implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_args, getAllIgnoredInventoryupdateItemsCount_args._Fields>, java.io.Serializable, Cloneable   {
36512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_args");
36513
 
36514
 
36515
 
36516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36518
;
36519
 
36520
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36521
 
36522
      static {
36523
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36524
          byName.put(field.getFieldName(), field);
36525
        }
36526
      }
36527
 
36528
      /**
36529
       * Find the _Fields constant that matches fieldId, or null if its not found.
36530
       */
36531
      public static _Fields findByThriftId(int fieldId) {
36532
        switch(fieldId) {
36533
          default:
36534
            return null;
36535
        }
36536
      }
36537
 
36538
      /**
36539
       * Find the _Fields constant that matches fieldId, throwing an exception
36540
       * if it is not found.
36541
       */
36542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36543
        _Fields fields = findByThriftId(fieldId);
36544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36545
        return fields;
36546
      }
36547
 
36548
      /**
36549
       * Find the _Fields constant that matches name, or null if its not found.
36550
       */
36551
      public static _Fields findByName(String name) {
36552
        return byName.get(name);
36553
      }
36554
 
36555
      private final short _thriftId;
36556
      private final String _fieldName;
36557
 
36558
      _Fields(short thriftId, String fieldName) {
36559
        _thriftId = thriftId;
36560
        _fieldName = fieldName;
36561
      }
36562
 
36563
      public short getThriftFieldId() {
36564
        return _thriftId;
36565
      }
36566
 
36567
      public String getFieldName() {
36568
        return _fieldName;
36569
      }
36570
    }
36571
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36572
    static {
36573
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_args.class, metaDataMap);
36576
    }
36577
 
36578
    public getAllIgnoredInventoryupdateItemsCount_args() {
36579
    }
36580
 
36581
    /**
36582
     * Performs a deep copy on <i>other</i>.
36583
     */
36584
    public getAllIgnoredInventoryupdateItemsCount_args(getAllIgnoredInventoryupdateItemsCount_args other) {
36585
    }
36586
 
36587
    public getAllIgnoredInventoryupdateItemsCount_args deepCopy() {
36588
      return new getAllIgnoredInventoryupdateItemsCount_args(this);
36589
    }
36590
 
36591
    @Override
36592
    public void clear() {
36593
    }
36594
 
36595
    public void setFieldValue(_Fields field, Object value) {
36596
      switch (field) {
36597
      }
36598
    }
36599
 
36600
    public Object getFieldValue(_Fields field) {
36601
      switch (field) {
36602
      }
36603
      throw new IllegalStateException();
36604
    }
36605
 
36606
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36607
    public boolean isSet(_Fields field) {
36608
      if (field == null) {
36609
        throw new IllegalArgumentException();
36610
      }
36611
 
36612
      switch (field) {
36613
      }
36614
      throw new IllegalStateException();
36615
    }
36616
 
36617
    @Override
36618
    public boolean equals(Object that) {
36619
      if (that == null)
36620
        return false;
36621
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_args)
36622
        return this.equals((getAllIgnoredInventoryupdateItemsCount_args)that);
36623
      return false;
36624
    }
36625
 
36626
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_args that) {
36627
      if (that == null)
36628
        return false;
36629
 
36630
      return true;
36631
    }
36632
 
36633
    @Override
36634
    public int hashCode() {
36635
      return 0;
36636
    }
36637
 
36638
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_args other) {
36639
      if (!getClass().equals(other.getClass())) {
36640
        return getClass().getName().compareTo(other.getClass().getName());
36641
      }
36642
 
36643
      int lastComparison = 0;
36644
      getAllIgnoredInventoryupdateItemsCount_args typedOther = (getAllIgnoredInventoryupdateItemsCount_args)other;
36645
 
36646
      return 0;
36647
    }
36648
 
36649
    public _Fields fieldForId(int fieldId) {
36650
      return _Fields.findByThriftId(fieldId);
36651
    }
36652
 
36653
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36654
      org.apache.thrift.protocol.TField field;
36655
      iprot.readStructBegin();
36656
      while (true)
36657
      {
36658
        field = iprot.readFieldBegin();
36659
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36660
          break;
36661
        }
36662
        switch (field.id) {
36663
          default:
36664
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36665
        }
36666
        iprot.readFieldEnd();
36667
      }
36668
      iprot.readStructEnd();
36669
      validate();
36670
    }
36671
 
36672
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36673
      validate();
36674
 
36675
      oprot.writeStructBegin(STRUCT_DESC);
36676
      oprot.writeFieldStop();
36677
      oprot.writeStructEnd();
36678
    }
36679
 
36680
    @Override
36681
    public String toString() {
36682
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_args(");
36683
      boolean first = true;
36684
 
36685
      sb.append(")");
36686
      return sb.toString();
36687
    }
36688
 
36689
    public void validate() throws org.apache.thrift.TException {
36690
      // check for required fields
36691
    }
36692
 
36693
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36694
      try {
36695
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36696
      } catch (org.apache.thrift.TException te) {
36697
        throw new java.io.IOException(te);
36698
      }
36699
    }
36700
 
36701
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36702
      try {
36703
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36704
      } catch (org.apache.thrift.TException te) {
36705
        throw new java.io.IOException(te);
36706
      }
36707
    }
36708
 
36709
  }
36710
 
36711
  public static class getAllIgnoredInventoryupdateItemsCount_result implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_result, getAllIgnoredInventoryupdateItemsCount_result._Fields>, java.io.Serializable, Cloneable   {
36712
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_result");
36713
 
36714
    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);
36715
 
36716
    private int success; // required
36717
 
36718
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36719
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36720
      SUCCESS((short)0, "success");
36721
 
36722
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36723
 
36724
      static {
36725
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36726
          byName.put(field.getFieldName(), field);
36727
        }
36728
      }
36729
 
36730
      /**
36731
       * Find the _Fields constant that matches fieldId, or null if its not found.
36732
       */
36733
      public static _Fields findByThriftId(int fieldId) {
36734
        switch(fieldId) {
36735
          case 0: // SUCCESS
36736
            return SUCCESS;
36737
          default:
36738
            return null;
36739
        }
36740
      }
36741
 
36742
      /**
36743
       * Find the _Fields constant that matches fieldId, throwing an exception
36744
       * if it is not found.
36745
       */
36746
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36747
        _Fields fields = findByThriftId(fieldId);
36748
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36749
        return fields;
36750
      }
36751
 
36752
      /**
36753
       * Find the _Fields constant that matches name, or null if its not found.
36754
       */
36755
      public static _Fields findByName(String name) {
36756
        return byName.get(name);
36757
      }
36758
 
36759
      private final short _thriftId;
36760
      private final String _fieldName;
36761
 
36762
      _Fields(short thriftId, String fieldName) {
36763
        _thriftId = thriftId;
36764
        _fieldName = fieldName;
36765
      }
36766
 
36767
      public short getThriftFieldId() {
36768
        return _thriftId;
36769
      }
36770
 
36771
      public String getFieldName() {
36772
        return _fieldName;
36773
      }
36774
    }
36775
 
36776
    // isset id assignments
36777
    private static final int __SUCCESS_ISSET_ID = 0;
36778
    private BitSet __isset_bit_vector = new BitSet(1);
36779
 
36780
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36781
    static {
36782
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36783
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36784
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
36785
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36786
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_result.class, metaDataMap);
36787
    }
36788
 
36789
    public getAllIgnoredInventoryupdateItemsCount_result() {
36790
    }
36791
 
36792
    public getAllIgnoredInventoryupdateItemsCount_result(
36793
      int success)
36794
    {
36795
      this();
36796
      this.success = success;
36797
      setSuccessIsSet(true);
36798
    }
36799
 
36800
    /**
36801
     * Performs a deep copy on <i>other</i>.
36802
     */
36803
    public getAllIgnoredInventoryupdateItemsCount_result(getAllIgnoredInventoryupdateItemsCount_result other) {
36804
      __isset_bit_vector.clear();
36805
      __isset_bit_vector.or(other.__isset_bit_vector);
36806
      this.success = other.success;
36807
    }
36808
 
36809
    public getAllIgnoredInventoryupdateItemsCount_result deepCopy() {
36810
      return new getAllIgnoredInventoryupdateItemsCount_result(this);
36811
    }
36812
 
36813
    @Override
36814
    public void clear() {
36815
      setSuccessIsSet(false);
36816
      this.success = 0;
36817
    }
36818
 
36819
    public int getSuccess() {
36820
      return this.success;
36821
    }
36822
 
36823
    public void setSuccess(int success) {
36824
      this.success = success;
36825
      setSuccessIsSet(true);
36826
    }
36827
 
36828
    public void unsetSuccess() {
36829
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
36830
    }
36831
 
36832
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
36833
    public boolean isSetSuccess() {
36834
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
36835
    }
36836
 
36837
    public void setSuccessIsSet(boolean value) {
36838
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
36839
    }
36840
 
36841
    public void setFieldValue(_Fields field, Object value) {
36842
      switch (field) {
36843
      case SUCCESS:
36844
        if (value == null) {
36845
          unsetSuccess();
36846
        } else {
36847
          setSuccess((Integer)value);
36848
        }
36849
        break;
36850
 
36851
      }
36852
    }
36853
 
36854
    public Object getFieldValue(_Fields field) {
36855
      switch (field) {
36856
      case SUCCESS:
36857
        return Integer.valueOf(getSuccess());
36858
 
36859
      }
36860
      throw new IllegalStateException();
36861
    }
36862
 
36863
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36864
    public boolean isSet(_Fields field) {
36865
      if (field == null) {
36866
        throw new IllegalArgumentException();
36867
      }
36868
 
36869
      switch (field) {
36870
      case SUCCESS:
36871
        return isSetSuccess();
36872
      }
36873
      throw new IllegalStateException();
36874
    }
36875
 
36876
    @Override
36877
    public boolean equals(Object that) {
36878
      if (that == null)
36879
        return false;
36880
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_result)
36881
        return this.equals((getAllIgnoredInventoryupdateItemsCount_result)that);
36882
      return false;
36883
    }
36884
 
36885
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_result that) {
36886
      if (that == null)
36887
        return false;
36888
 
36889
      boolean this_present_success = true;
36890
      boolean that_present_success = true;
36891
      if (this_present_success || that_present_success) {
36892
        if (!(this_present_success && that_present_success))
36893
          return false;
36894
        if (this.success != that.success)
36895
          return false;
36896
      }
36897
 
36898
      return true;
36899
    }
36900
 
36901
    @Override
36902
    public int hashCode() {
36903
      return 0;
36904
    }
36905
 
36906
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_result other) {
36907
      if (!getClass().equals(other.getClass())) {
36908
        return getClass().getName().compareTo(other.getClass().getName());
36909
      }
36910
 
36911
      int lastComparison = 0;
36912
      getAllIgnoredInventoryupdateItemsCount_result typedOther = (getAllIgnoredInventoryupdateItemsCount_result)other;
36913
 
36914
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
36915
      if (lastComparison != 0) {
36916
        return lastComparison;
36917
      }
36918
      if (isSetSuccess()) {
36919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36920
        if (lastComparison != 0) {
36921
          return lastComparison;
36922
        }
36923
      }
36924
      return 0;
36925
    }
36926
 
36927
    public _Fields fieldForId(int fieldId) {
36928
      return _Fields.findByThriftId(fieldId);
36929
    }
36930
 
36931
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36932
      org.apache.thrift.protocol.TField field;
36933
      iprot.readStructBegin();
36934
      while (true)
36935
      {
36936
        field = iprot.readFieldBegin();
36937
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36938
          break;
36939
        }
36940
        switch (field.id) {
36941
          case 0: // SUCCESS
36942
            if (field.type == org.apache.thrift.protocol.TType.I32) {
36943
              this.success = iprot.readI32();
36944
              setSuccessIsSet(true);
36945
            } else { 
36946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36947
            }
36948
            break;
36949
          default:
36950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36951
        }
36952
        iprot.readFieldEnd();
36953
      }
36954
      iprot.readStructEnd();
36955
      validate();
36956
    }
36957
 
36958
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36959
      oprot.writeStructBegin(STRUCT_DESC);
36960
 
36961
      if (this.isSetSuccess()) {
36962
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36963
        oprot.writeI32(this.success);
36964
        oprot.writeFieldEnd();
36965
      }
36966
      oprot.writeFieldStop();
36967
      oprot.writeStructEnd();
36968
    }
36969
 
36970
    @Override
36971
    public String toString() {
36972
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_result(");
36973
      boolean first = true;
36974
 
36975
      sb.append("success:");
36976
      sb.append(this.success);
36977
      first = false;
36978
      sb.append(")");
36979
      return sb.toString();
36980
    }
36981
 
36982
    public void validate() throws org.apache.thrift.TException {
36983
      // check for required fields
36984
    }
36985
 
36986
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36987
      try {
36988
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36989
      } catch (org.apache.thrift.TException te) {
36990
        throw new java.io.IOException(te);
36991
      }
36992
    }
36993
 
36994
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36995
      try {
36996
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36997
      } catch (org.apache.thrift.TException te) {
36998
        throw new java.io.IOException(te);
36999
      }
37000
    }
37001
 
37002
  }
37003
 
37004
  public static class getIgnoredInventoryUpdateItemids_args implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_args, getIgnoredInventoryUpdateItemids_args._Fields>, java.io.Serializable, Cloneable   {
37005
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_args");
37006
 
37007
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)1);
37008
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)2);
37009
 
37010
    private int offset; // required
37011
    private int limit; // required
37012
 
37013
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37014
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37015
      OFFSET((short)1, "offset"),
37016
      LIMIT((short)2, "limit");
37017
 
37018
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37019
 
37020
      static {
37021
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37022
          byName.put(field.getFieldName(), field);
37023
        }
37024
      }
37025
 
37026
      /**
37027
       * Find the _Fields constant that matches fieldId, or null if its not found.
37028
       */
37029
      public static _Fields findByThriftId(int fieldId) {
37030
        switch(fieldId) {
37031
          case 1: // OFFSET
37032
            return OFFSET;
37033
          case 2: // LIMIT
37034
            return LIMIT;
37035
          default:
37036
            return null;
37037
        }
37038
      }
37039
 
37040
      /**
37041
       * Find the _Fields constant that matches fieldId, throwing an exception
37042
       * if it is not found.
37043
       */
37044
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37045
        _Fields fields = findByThriftId(fieldId);
37046
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37047
        return fields;
37048
      }
37049
 
37050
      /**
37051
       * Find the _Fields constant that matches name, or null if its not found.
37052
       */
37053
      public static _Fields findByName(String name) {
37054
        return byName.get(name);
37055
      }
37056
 
37057
      private final short _thriftId;
37058
      private final String _fieldName;
37059
 
37060
      _Fields(short thriftId, String fieldName) {
37061
        _thriftId = thriftId;
37062
        _fieldName = fieldName;
37063
      }
37064
 
37065
      public short getThriftFieldId() {
37066
        return _thriftId;
37067
      }
37068
 
37069
      public String getFieldName() {
37070
        return _fieldName;
37071
      }
37072
    }
37073
 
37074
    // isset id assignments
37075
    private static final int __OFFSET_ISSET_ID = 0;
37076
    private static final int __LIMIT_ISSET_ID = 1;
37077
    private BitSet __isset_bit_vector = new BitSet(2);
37078
 
37079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37080
    static {
37081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37082
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
37084
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
37086
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37087
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_args.class, metaDataMap);
37088
    }
37089
 
37090
    public getIgnoredInventoryUpdateItemids_args() {
37091
    }
37092
 
37093
    public getIgnoredInventoryUpdateItemids_args(
37094
      int offset,
37095
      int limit)
37096
    {
37097
      this();
37098
      this.offset = offset;
37099
      setOffsetIsSet(true);
37100
      this.limit = limit;
37101
      setLimitIsSet(true);
37102
    }
37103
 
37104
    /**
37105
     * Performs a deep copy on <i>other</i>.
37106
     */
37107
    public getIgnoredInventoryUpdateItemids_args(getIgnoredInventoryUpdateItemids_args other) {
37108
      __isset_bit_vector.clear();
37109
      __isset_bit_vector.or(other.__isset_bit_vector);
37110
      this.offset = other.offset;
37111
      this.limit = other.limit;
37112
    }
37113
 
37114
    public getIgnoredInventoryUpdateItemids_args deepCopy() {
37115
      return new getIgnoredInventoryUpdateItemids_args(this);
37116
    }
37117
 
37118
    @Override
37119
    public void clear() {
37120
      setOffsetIsSet(false);
37121
      this.offset = 0;
37122
      setLimitIsSet(false);
37123
      this.limit = 0;
37124
    }
37125
 
37126
    public int getOffset() {
37127
      return this.offset;
37128
    }
37129
 
37130
    public void setOffset(int offset) {
37131
      this.offset = offset;
37132
      setOffsetIsSet(true);
37133
    }
37134
 
37135
    public void unsetOffset() {
37136
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
37137
    }
37138
 
37139
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
37140
    public boolean isSetOffset() {
37141
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
37142
    }
37143
 
37144
    public void setOffsetIsSet(boolean value) {
37145
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
37146
    }
37147
 
37148
    public int getLimit() {
37149
      return this.limit;
37150
    }
37151
 
37152
    public void setLimit(int limit) {
37153
      this.limit = limit;
37154
      setLimitIsSet(true);
37155
    }
37156
 
37157
    public void unsetLimit() {
37158
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
37159
    }
37160
 
37161
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
37162
    public boolean isSetLimit() {
37163
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
37164
    }
37165
 
37166
    public void setLimitIsSet(boolean value) {
37167
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
37168
    }
37169
 
37170
    public void setFieldValue(_Fields field, Object value) {
37171
      switch (field) {
37172
      case OFFSET:
37173
        if (value == null) {
37174
          unsetOffset();
37175
        } else {
37176
          setOffset((Integer)value);
37177
        }
37178
        break;
37179
 
37180
      case LIMIT:
37181
        if (value == null) {
37182
          unsetLimit();
37183
        } else {
37184
          setLimit((Integer)value);
37185
        }
37186
        break;
37187
 
37188
      }
37189
    }
37190
 
37191
    public Object getFieldValue(_Fields field) {
37192
      switch (field) {
37193
      case OFFSET:
37194
        return Integer.valueOf(getOffset());
37195
 
37196
      case LIMIT:
37197
        return Integer.valueOf(getLimit());
37198
 
37199
      }
37200
      throw new IllegalStateException();
37201
    }
37202
 
37203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37204
    public boolean isSet(_Fields field) {
37205
      if (field == null) {
37206
        throw new IllegalArgumentException();
37207
      }
37208
 
37209
      switch (field) {
37210
      case OFFSET:
37211
        return isSetOffset();
37212
      case LIMIT:
37213
        return isSetLimit();
37214
      }
37215
      throw new IllegalStateException();
37216
    }
37217
 
37218
    @Override
37219
    public boolean equals(Object that) {
37220
      if (that == null)
37221
        return false;
37222
      if (that instanceof getIgnoredInventoryUpdateItemids_args)
37223
        return this.equals((getIgnoredInventoryUpdateItemids_args)that);
37224
      return false;
37225
    }
37226
 
37227
    public boolean equals(getIgnoredInventoryUpdateItemids_args that) {
37228
      if (that == null)
37229
        return false;
37230
 
37231
      boolean this_present_offset = true;
37232
      boolean that_present_offset = true;
37233
      if (this_present_offset || that_present_offset) {
37234
        if (!(this_present_offset && that_present_offset))
37235
          return false;
37236
        if (this.offset != that.offset)
37237
          return false;
37238
      }
37239
 
37240
      boolean this_present_limit = true;
37241
      boolean that_present_limit = true;
37242
      if (this_present_limit || that_present_limit) {
37243
        if (!(this_present_limit && that_present_limit))
37244
          return false;
37245
        if (this.limit != that.limit)
37246
          return false;
37247
      }
37248
 
37249
      return true;
37250
    }
37251
 
37252
    @Override
37253
    public int hashCode() {
37254
      return 0;
37255
    }
37256
 
37257
    public int compareTo(getIgnoredInventoryUpdateItemids_args other) {
37258
      if (!getClass().equals(other.getClass())) {
37259
        return getClass().getName().compareTo(other.getClass().getName());
37260
      }
37261
 
37262
      int lastComparison = 0;
37263
      getIgnoredInventoryUpdateItemids_args typedOther = (getIgnoredInventoryUpdateItemids_args)other;
37264
 
37265
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
37266
      if (lastComparison != 0) {
37267
        return lastComparison;
37268
      }
37269
      if (isSetOffset()) {
37270
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
37271
        if (lastComparison != 0) {
37272
          return lastComparison;
37273
        }
37274
      }
37275
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
37276
      if (lastComparison != 0) {
37277
        return lastComparison;
37278
      }
37279
      if (isSetLimit()) {
37280
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
37281
        if (lastComparison != 0) {
37282
          return lastComparison;
37283
        }
37284
      }
37285
      return 0;
37286
    }
37287
 
37288
    public _Fields fieldForId(int fieldId) {
37289
      return _Fields.findByThriftId(fieldId);
37290
    }
37291
 
37292
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37293
      org.apache.thrift.protocol.TField field;
37294
      iprot.readStructBegin();
37295
      while (true)
37296
      {
37297
        field = iprot.readFieldBegin();
37298
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37299
          break;
37300
        }
37301
        switch (field.id) {
37302
          case 1: // OFFSET
37303
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37304
              this.offset = iprot.readI32();
37305
              setOffsetIsSet(true);
37306
            } else { 
37307
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37308
            }
37309
            break;
37310
          case 2: // LIMIT
37311
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37312
              this.limit = iprot.readI32();
37313
              setLimitIsSet(true);
37314
            } else { 
37315
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37316
            }
37317
            break;
37318
          default:
37319
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37320
        }
37321
        iprot.readFieldEnd();
37322
      }
37323
      iprot.readStructEnd();
37324
      validate();
37325
    }
37326
 
37327
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37328
      validate();
37329
 
37330
      oprot.writeStructBegin(STRUCT_DESC);
37331
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
37332
      oprot.writeI32(this.offset);
37333
      oprot.writeFieldEnd();
37334
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
37335
      oprot.writeI32(this.limit);
37336
      oprot.writeFieldEnd();
37337
      oprot.writeFieldStop();
37338
      oprot.writeStructEnd();
37339
    }
37340
 
37341
    @Override
37342
    public String toString() {
37343
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_args(");
37344
      boolean first = true;
37345
 
37346
      sb.append("offset:");
37347
      sb.append(this.offset);
37348
      first = false;
37349
      if (!first) sb.append(", ");
37350
      sb.append("limit:");
37351
      sb.append(this.limit);
37352
      first = false;
37353
      sb.append(")");
37354
      return sb.toString();
37355
    }
37356
 
37357
    public void validate() throws org.apache.thrift.TException {
37358
      // check for required fields
37359
    }
37360
 
37361
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37362
      try {
37363
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37364
      } catch (org.apache.thrift.TException te) {
37365
        throw new java.io.IOException(te);
37366
      }
37367
    }
37368
 
37369
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37370
      try {
37371
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
37372
        __isset_bit_vector = new BitSet(1);
37373
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37374
      } catch (org.apache.thrift.TException te) {
37375
        throw new java.io.IOException(te);
37376
      }
37377
    }
37378
 
37379
  }
37380
 
37381
  public static class getIgnoredInventoryUpdateItemids_result implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_result, getIgnoredInventoryUpdateItemids_result._Fields>, java.io.Serializable, Cloneable   {
37382
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_result");
37383
 
37384
    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);
37385
 
37386
    private List<Long> success; // required
37387
 
37388
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37389
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37390
      SUCCESS((short)0, "success");
37391
 
37392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37393
 
37394
      static {
37395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37396
          byName.put(field.getFieldName(), field);
37397
        }
37398
      }
37399
 
37400
      /**
37401
       * Find the _Fields constant that matches fieldId, or null if its not found.
37402
       */
37403
      public static _Fields findByThriftId(int fieldId) {
37404
        switch(fieldId) {
37405
          case 0: // SUCCESS
37406
            return SUCCESS;
37407
          default:
37408
            return null;
37409
        }
37410
      }
37411
 
37412
      /**
37413
       * Find the _Fields constant that matches fieldId, throwing an exception
37414
       * if it is not found.
37415
       */
37416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37417
        _Fields fields = findByThriftId(fieldId);
37418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37419
        return fields;
37420
      }
37421
 
37422
      /**
37423
       * Find the _Fields constant that matches name, or null if its not found.
37424
       */
37425
      public static _Fields findByName(String name) {
37426
        return byName.get(name);
37427
      }
37428
 
37429
      private final short _thriftId;
37430
      private final String _fieldName;
37431
 
37432
      _Fields(short thriftId, String fieldName) {
37433
        _thriftId = thriftId;
37434
        _fieldName = fieldName;
37435
      }
37436
 
37437
      public short getThriftFieldId() {
37438
        return _thriftId;
37439
      }
37440
 
37441
      public String getFieldName() {
37442
        return _fieldName;
37443
      }
37444
    }
37445
 
37446
    // isset id assignments
37447
 
37448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37449
    static {
37450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37451
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37452
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37453
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
37454
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37455
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_result.class, metaDataMap);
37456
    }
37457
 
37458
    public getIgnoredInventoryUpdateItemids_result() {
37459
    }
37460
 
37461
    public getIgnoredInventoryUpdateItemids_result(
37462
      List<Long> success)
37463
    {
37464
      this();
37465
      this.success = success;
37466
    }
37467
 
37468
    /**
37469
     * Performs a deep copy on <i>other</i>.
37470
     */
37471
    public getIgnoredInventoryUpdateItemids_result(getIgnoredInventoryUpdateItemids_result other) {
37472
      if (other.isSetSuccess()) {
37473
        List<Long> __this__success = new ArrayList<Long>();
37474
        for (Long other_element : other.success) {
37475
          __this__success.add(other_element);
37476
        }
37477
        this.success = __this__success;
37478
      }
37479
    }
37480
 
37481
    public getIgnoredInventoryUpdateItemids_result deepCopy() {
37482
      return new getIgnoredInventoryUpdateItemids_result(this);
37483
    }
37484
 
37485
    @Override
37486
    public void clear() {
37487
      this.success = null;
37488
    }
37489
 
37490
    public int getSuccessSize() {
37491
      return (this.success == null) ? 0 : this.success.size();
37492
    }
37493
 
37494
    public java.util.Iterator<Long> getSuccessIterator() {
37495
      return (this.success == null) ? null : this.success.iterator();
37496
    }
37497
 
37498
    public void addToSuccess(long elem) {
37499
      if (this.success == null) {
37500
        this.success = new ArrayList<Long>();
37501
      }
37502
      this.success.add(elem);
37503
    }
37504
 
37505
    public List<Long> getSuccess() {
37506
      return this.success;
37507
    }
37508
 
37509
    public void setSuccess(List<Long> success) {
37510
      this.success = success;
37511
    }
37512
 
37513
    public void unsetSuccess() {
37514
      this.success = null;
37515
    }
37516
 
37517
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
37518
    public boolean isSetSuccess() {
37519
      return this.success != null;
37520
    }
37521
 
37522
    public void setSuccessIsSet(boolean value) {
37523
      if (!value) {
37524
        this.success = null;
37525
      }
37526
    }
37527
 
37528
    public void setFieldValue(_Fields field, Object value) {
37529
      switch (field) {
37530
      case SUCCESS:
37531
        if (value == null) {
37532
          unsetSuccess();
37533
        } else {
37534
          setSuccess((List<Long>)value);
37535
        }
37536
        break;
37537
 
37538
      }
37539
    }
37540
 
37541
    public Object getFieldValue(_Fields field) {
37542
      switch (field) {
37543
      case SUCCESS:
37544
        return getSuccess();
37545
 
37546
      }
37547
      throw new IllegalStateException();
37548
    }
37549
 
37550
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37551
    public boolean isSet(_Fields field) {
37552
      if (field == null) {
37553
        throw new IllegalArgumentException();
37554
      }
37555
 
37556
      switch (field) {
37557
      case SUCCESS:
37558
        return isSetSuccess();
37559
      }
37560
      throw new IllegalStateException();
37561
    }
37562
 
37563
    @Override
37564
    public boolean equals(Object that) {
37565
      if (that == null)
37566
        return false;
37567
      if (that instanceof getIgnoredInventoryUpdateItemids_result)
37568
        return this.equals((getIgnoredInventoryUpdateItemids_result)that);
37569
      return false;
37570
    }
37571
 
37572
    public boolean equals(getIgnoredInventoryUpdateItemids_result that) {
37573
      if (that == null)
37574
        return false;
37575
 
37576
      boolean this_present_success = true && this.isSetSuccess();
37577
      boolean that_present_success = true && that.isSetSuccess();
37578
      if (this_present_success || that_present_success) {
37579
        if (!(this_present_success && that_present_success))
37580
          return false;
37581
        if (!this.success.equals(that.success))
37582
          return false;
37583
      }
37584
 
37585
      return true;
37586
    }
37587
 
37588
    @Override
37589
    public int hashCode() {
37590
      return 0;
37591
    }
37592
 
37593
    public int compareTo(getIgnoredInventoryUpdateItemids_result other) {
37594
      if (!getClass().equals(other.getClass())) {
37595
        return getClass().getName().compareTo(other.getClass().getName());
37596
      }
37597
 
37598
      int lastComparison = 0;
37599
      getIgnoredInventoryUpdateItemids_result typedOther = (getIgnoredInventoryUpdateItemids_result)other;
37600
 
37601
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37602
      if (lastComparison != 0) {
37603
        return lastComparison;
37604
      }
37605
      if (isSetSuccess()) {
37606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37607
        if (lastComparison != 0) {
37608
          return lastComparison;
37609
        }
37610
      }
37611
      return 0;
37612
    }
37613
 
37614
    public _Fields fieldForId(int fieldId) {
37615
      return _Fields.findByThriftId(fieldId);
37616
    }
37617
 
37618
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37619
      org.apache.thrift.protocol.TField field;
37620
      iprot.readStructBegin();
37621
      while (true)
37622
      {
37623
        field = iprot.readFieldBegin();
37624
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37625
          break;
37626
        }
37627
        switch (field.id) {
37628
          case 0: // SUCCESS
37629
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37630
              {
8182 amar.kumar 37631
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
37632
                this.success = new ArrayList<Long>(_list105.size);
37633
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
6531 vikram.rag 37634
                {
8182 amar.kumar 37635
                  long _elem107; // required
37636
                  _elem107 = iprot.readI64();
37637
                  this.success.add(_elem107);
6531 vikram.rag 37638
                }
37639
                iprot.readListEnd();
37640
              }
37641
            } else { 
37642
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37643
            }
37644
            break;
37645
          default:
37646
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37647
        }
37648
        iprot.readFieldEnd();
37649
      }
37650
      iprot.readStructEnd();
37651
      validate();
37652
    }
37653
 
37654
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37655
      oprot.writeStructBegin(STRUCT_DESC);
37656
 
37657
      if (this.isSetSuccess()) {
37658
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37659
        {
37660
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 37661
          for (long _iter108 : this.success)
6531 vikram.rag 37662
          {
8182 amar.kumar 37663
            oprot.writeI64(_iter108);
6531 vikram.rag 37664
          }
37665
          oprot.writeListEnd();
37666
        }
37667
        oprot.writeFieldEnd();
37668
      }
37669
      oprot.writeFieldStop();
37670
      oprot.writeStructEnd();
37671
    }
37672
 
37673
    @Override
37674
    public String toString() {
37675
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_result(");
37676
      boolean first = true;
37677
 
37678
      sb.append("success:");
37679
      if (this.success == null) {
37680
        sb.append("null");
37681
      } else {
37682
        sb.append(this.success);
37683
      }
37684
      first = false;
37685
      sb.append(")");
37686
      return sb.toString();
37687
    }
37688
 
37689
    public void validate() throws org.apache.thrift.TException {
37690
      // check for required fields
37691
    }
37692
 
37693
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37694
      try {
37695
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37696
      } catch (org.apache.thrift.TException te) {
37697
        throw new java.io.IOException(te);
37698
      }
37699
    }
37700
 
37701
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37702
      try {
37703
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37704
      } catch (org.apache.thrift.TException te) {
37705
        throw new java.io.IOException(te);
37706
      }
37707
    }
37708
 
37709
  }
37710
 
6821 amar.kumar 37711
  public static class updateItemStockPurchaseParams_args implements org.apache.thrift.TBase<updateItemStockPurchaseParams_args, updateItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
37712
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_args");
37713
 
37714
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
37715
    private static final org.apache.thrift.protocol.TField NUM_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numOfDaysStock", org.apache.thrift.protocol.TType.I32, (short)2);
37716
    private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short)3);
37717
 
37718
    private long item_id; // required
37719
    private int numOfDaysStock; // required
37720
    private long minStockLevel; // required
37721
 
37722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37723
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37724
      ITEM_ID((short)1, "item_id"),
37725
      NUM_OF_DAYS_STOCK((short)2, "numOfDaysStock"),
37726
      MIN_STOCK_LEVEL((short)3, "minStockLevel");
37727
 
37728
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37729
 
37730
      static {
37731
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37732
          byName.put(field.getFieldName(), field);
37733
        }
37734
      }
37735
 
37736
      /**
37737
       * Find the _Fields constant that matches fieldId, or null if its not found.
37738
       */
37739
      public static _Fields findByThriftId(int fieldId) {
37740
        switch(fieldId) {
37741
          case 1: // ITEM_ID
37742
            return ITEM_ID;
37743
          case 2: // NUM_OF_DAYS_STOCK
37744
            return NUM_OF_DAYS_STOCK;
37745
          case 3: // MIN_STOCK_LEVEL
37746
            return MIN_STOCK_LEVEL;
37747
          default:
37748
            return null;
37749
        }
37750
      }
37751
 
37752
      /**
37753
       * Find the _Fields constant that matches fieldId, throwing an exception
37754
       * if it is not found.
37755
       */
37756
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37757
        _Fields fields = findByThriftId(fieldId);
37758
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37759
        return fields;
37760
      }
37761
 
37762
      /**
37763
       * Find the _Fields constant that matches name, or null if its not found.
37764
       */
37765
      public static _Fields findByName(String name) {
37766
        return byName.get(name);
37767
      }
37768
 
37769
      private final short _thriftId;
37770
      private final String _fieldName;
37771
 
37772
      _Fields(short thriftId, String fieldName) {
37773
        _thriftId = thriftId;
37774
        _fieldName = fieldName;
37775
      }
37776
 
37777
      public short getThriftFieldId() {
37778
        return _thriftId;
37779
      }
37780
 
37781
      public String getFieldName() {
37782
        return _fieldName;
37783
      }
37784
    }
37785
 
37786
    // isset id assignments
37787
    private static final int __ITEM_ID_ISSET_ID = 0;
37788
    private static final int __NUMOFDAYSSTOCK_ISSET_ID = 1;
37789
    private static final int __MINSTOCKLEVEL_ISSET_ID = 2;
37790
    private BitSet __isset_bit_vector = new BitSet(3);
37791
 
37792
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37793
    static {
37794
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37795
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37796
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37797
      tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37798
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
37799
      tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37800
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
37801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_args.class, metaDataMap);
37803
    }
37804
 
37805
    public updateItemStockPurchaseParams_args() {
37806
    }
37807
 
37808
    public updateItemStockPurchaseParams_args(
37809
      long item_id,
37810
      int numOfDaysStock,
37811
      long minStockLevel)
37812
    {
37813
      this();
37814
      this.item_id = item_id;
37815
      setItem_idIsSet(true);
37816
      this.numOfDaysStock = numOfDaysStock;
37817
      setNumOfDaysStockIsSet(true);
37818
      this.minStockLevel = minStockLevel;
37819
      setMinStockLevelIsSet(true);
37820
    }
37821
 
37822
    /**
37823
     * Performs a deep copy on <i>other</i>.
37824
     */
37825
    public updateItemStockPurchaseParams_args(updateItemStockPurchaseParams_args other) {
37826
      __isset_bit_vector.clear();
37827
      __isset_bit_vector.or(other.__isset_bit_vector);
37828
      this.item_id = other.item_id;
37829
      this.numOfDaysStock = other.numOfDaysStock;
37830
      this.minStockLevel = other.minStockLevel;
37831
    }
37832
 
37833
    public updateItemStockPurchaseParams_args deepCopy() {
37834
      return new updateItemStockPurchaseParams_args(this);
37835
    }
37836
 
37837
    @Override
37838
    public void clear() {
37839
      setItem_idIsSet(false);
37840
      this.item_id = 0;
37841
      setNumOfDaysStockIsSet(false);
37842
      this.numOfDaysStock = 0;
37843
      setMinStockLevelIsSet(false);
37844
      this.minStockLevel = 0;
37845
    }
37846
 
37847
    public long getItem_id() {
37848
      return this.item_id;
37849
    }
37850
 
37851
    public void setItem_id(long item_id) {
37852
      this.item_id = item_id;
37853
      setItem_idIsSet(true);
37854
    }
37855
 
37856
    public void unsetItem_id() {
37857
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
37858
    }
37859
 
37860
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
37861
    public boolean isSetItem_id() {
37862
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
37863
    }
37864
 
37865
    public void setItem_idIsSet(boolean value) {
37866
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
37867
    }
37868
 
37869
    public int getNumOfDaysStock() {
37870
      return this.numOfDaysStock;
37871
    }
37872
 
37873
    public void setNumOfDaysStock(int numOfDaysStock) {
37874
      this.numOfDaysStock = numOfDaysStock;
37875
      setNumOfDaysStockIsSet(true);
37876
    }
37877
 
37878
    public void unsetNumOfDaysStock() {
37879
      __isset_bit_vector.clear(__NUMOFDAYSSTOCK_ISSET_ID);
37880
    }
37881
 
37882
    /** Returns true if field numOfDaysStock is set (has been assigned a value) and false otherwise */
37883
    public boolean isSetNumOfDaysStock() {
37884
      return __isset_bit_vector.get(__NUMOFDAYSSTOCK_ISSET_ID);
37885
    }
37886
 
37887
    public void setNumOfDaysStockIsSet(boolean value) {
37888
      __isset_bit_vector.set(__NUMOFDAYSSTOCK_ISSET_ID, value);
37889
    }
37890
 
37891
    public long getMinStockLevel() {
37892
      return this.minStockLevel;
37893
    }
37894
 
37895
    public void setMinStockLevel(long minStockLevel) {
37896
      this.minStockLevel = minStockLevel;
37897
      setMinStockLevelIsSet(true);
37898
    }
37899
 
37900
    public void unsetMinStockLevel() {
37901
      __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
37902
    }
37903
 
37904
    /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
37905
    public boolean isSetMinStockLevel() {
37906
      return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
37907
    }
37908
 
37909
    public void setMinStockLevelIsSet(boolean value) {
37910
      __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
37911
    }
37912
 
37913
    public void setFieldValue(_Fields field, Object value) {
37914
      switch (field) {
37915
      case ITEM_ID:
37916
        if (value == null) {
37917
          unsetItem_id();
37918
        } else {
37919
          setItem_id((Long)value);
37920
        }
37921
        break;
37922
 
37923
      case NUM_OF_DAYS_STOCK:
37924
        if (value == null) {
37925
          unsetNumOfDaysStock();
37926
        } else {
37927
          setNumOfDaysStock((Integer)value);
37928
        }
37929
        break;
37930
 
37931
      case MIN_STOCK_LEVEL:
37932
        if (value == null) {
37933
          unsetMinStockLevel();
37934
        } else {
37935
          setMinStockLevel((Long)value);
37936
        }
37937
        break;
37938
 
37939
      }
37940
    }
37941
 
37942
    public Object getFieldValue(_Fields field) {
37943
      switch (field) {
37944
      case ITEM_ID:
37945
        return Long.valueOf(getItem_id());
37946
 
37947
      case NUM_OF_DAYS_STOCK:
37948
        return Integer.valueOf(getNumOfDaysStock());
37949
 
37950
      case MIN_STOCK_LEVEL:
37951
        return Long.valueOf(getMinStockLevel());
37952
 
37953
      }
37954
      throw new IllegalStateException();
37955
    }
37956
 
37957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37958
    public boolean isSet(_Fields field) {
37959
      if (field == null) {
37960
        throw new IllegalArgumentException();
37961
      }
37962
 
37963
      switch (field) {
37964
      case ITEM_ID:
37965
        return isSetItem_id();
37966
      case NUM_OF_DAYS_STOCK:
37967
        return isSetNumOfDaysStock();
37968
      case MIN_STOCK_LEVEL:
37969
        return isSetMinStockLevel();
37970
      }
37971
      throw new IllegalStateException();
37972
    }
37973
 
37974
    @Override
37975
    public boolean equals(Object that) {
37976
      if (that == null)
37977
        return false;
37978
      if (that instanceof updateItemStockPurchaseParams_args)
37979
        return this.equals((updateItemStockPurchaseParams_args)that);
37980
      return false;
37981
    }
37982
 
37983
    public boolean equals(updateItemStockPurchaseParams_args that) {
37984
      if (that == null)
37985
        return false;
37986
 
37987
      boolean this_present_item_id = true;
37988
      boolean that_present_item_id = true;
37989
      if (this_present_item_id || that_present_item_id) {
37990
        if (!(this_present_item_id && that_present_item_id))
37991
          return false;
37992
        if (this.item_id != that.item_id)
37993
          return false;
37994
      }
37995
 
37996
      boolean this_present_numOfDaysStock = true;
37997
      boolean that_present_numOfDaysStock = true;
37998
      if (this_present_numOfDaysStock || that_present_numOfDaysStock) {
37999
        if (!(this_present_numOfDaysStock && that_present_numOfDaysStock))
38000
          return false;
38001
        if (this.numOfDaysStock != that.numOfDaysStock)
38002
          return false;
38003
      }
38004
 
38005
      boolean this_present_minStockLevel = true;
38006
      boolean that_present_minStockLevel = true;
38007
      if (this_present_minStockLevel || that_present_minStockLevel) {
38008
        if (!(this_present_minStockLevel && that_present_minStockLevel))
38009
          return false;
38010
        if (this.minStockLevel != that.minStockLevel)
38011
          return false;
38012
      }
38013
 
38014
      return true;
38015
    }
38016
 
38017
    @Override
38018
    public int hashCode() {
38019
      return 0;
38020
    }
38021
 
38022
    public int compareTo(updateItemStockPurchaseParams_args other) {
38023
      if (!getClass().equals(other.getClass())) {
38024
        return getClass().getName().compareTo(other.getClass().getName());
38025
      }
38026
 
38027
      int lastComparison = 0;
38028
      updateItemStockPurchaseParams_args typedOther = (updateItemStockPurchaseParams_args)other;
38029
 
38030
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
38031
      if (lastComparison != 0) {
38032
        return lastComparison;
38033
      }
38034
      if (isSetItem_id()) {
38035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
38036
        if (lastComparison != 0) {
38037
          return lastComparison;
38038
        }
38039
      }
38040
      lastComparison = Boolean.valueOf(isSetNumOfDaysStock()).compareTo(typedOther.isSetNumOfDaysStock());
38041
      if (lastComparison != 0) {
38042
        return lastComparison;
38043
      }
38044
      if (isSetNumOfDaysStock()) {
38045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numOfDaysStock, typedOther.numOfDaysStock);
38046
        if (lastComparison != 0) {
38047
          return lastComparison;
38048
        }
38049
      }
38050
      lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
38051
      if (lastComparison != 0) {
38052
        return lastComparison;
38053
      }
38054
      if (isSetMinStockLevel()) {
38055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
38056
        if (lastComparison != 0) {
38057
          return lastComparison;
38058
        }
38059
      }
38060
      return 0;
38061
    }
38062
 
38063
    public _Fields fieldForId(int fieldId) {
38064
      return _Fields.findByThriftId(fieldId);
38065
    }
38066
 
38067
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38068
      org.apache.thrift.protocol.TField field;
38069
      iprot.readStructBegin();
38070
      while (true)
38071
      {
38072
        field = iprot.readFieldBegin();
38073
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38074
          break;
38075
        }
38076
        switch (field.id) {
38077
          case 1: // ITEM_ID
38078
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38079
              this.item_id = iprot.readI64();
38080
              setItem_idIsSet(true);
38081
            } else { 
38082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38083
            }
38084
            break;
38085
          case 2: // NUM_OF_DAYS_STOCK
38086
            if (field.type == org.apache.thrift.protocol.TType.I32) {
38087
              this.numOfDaysStock = iprot.readI32();
38088
              setNumOfDaysStockIsSet(true);
38089
            } else { 
38090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38091
            }
38092
            break;
38093
          case 3: // MIN_STOCK_LEVEL
38094
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38095
              this.minStockLevel = iprot.readI64();
38096
              setMinStockLevelIsSet(true);
38097
            } else { 
38098
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38099
            }
38100
            break;
38101
          default:
38102
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38103
        }
38104
        iprot.readFieldEnd();
38105
      }
38106
      iprot.readStructEnd();
38107
      validate();
38108
    }
38109
 
38110
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38111
      validate();
38112
 
38113
      oprot.writeStructBegin(STRUCT_DESC);
38114
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
38115
      oprot.writeI64(this.item_id);
38116
      oprot.writeFieldEnd();
38117
      oprot.writeFieldBegin(NUM_OF_DAYS_STOCK_FIELD_DESC);
38118
      oprot.writeI32(this.numOfDaysStock);
38119
      oprot.writeFieldEnd();
38120
      oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
38121
      oprot.writeI64(this.minStockLevel);
38122
      oprot.writeFieldEnd();
38123
      oprot.writeFieldStop();
38124
      oprot.writeStructEnd();
38125
    }
38126
 
38127
    @Override
38128
    public String toString() {
38129
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_args(");
38130
      boolean first = true;
38131
 
38132
      sb.append("item_id:");
38133
      sb.append(this.item_id);
38134
      first = false;
38135
      if (!first) sb.append(", ");
38136
      sb.append("numOfDaysStock:");
38137
      sb.append(this.numOfDaysStock);
38138
      first = false;
38139
      if (!first) sb.append(", ");
38140
      sb.append("minStockLevel:");
38141
      sb.append(this.minStockLevel);
38142
      first = false;
38143
      sb.append(")");
38144
      return sb.toString();
38145
    }
38146
 
38147
    public void validate() throws org.apache.thrift.TException {
38148
      // check for required fields
38149
    }
38150
 
38151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38152
      try {
38153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38154
      } catch (org.apache.thrift.TException te) {
38155
        throw new java.io.IOException(te);
38156
      }
38157
    }
38158
 
38159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38160
      try {
38161
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
38162
        __isset_bit_vector = new BitSet(1);
38163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38164
      } catch (org.apache.thrift.TException te) {
38165
        throw new java.io.IOException(te);
38166
      }
38167
    }
38168
 
38169
  }
38170
 
38171
  public static class updateItemStockPurchaseParams_result implements org.apache.thrift.TBase<updateItemStockPurchaseParams_result, updateItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
38172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_result");
38173
 
38174
 
38175
 
38176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38178
;
38179
 
38180
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38181
 
38182
      static {
38183
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38184
          byName.put(field.getFieldName(), field);
38185
        }
38186
      }
38187
 
38188
      /**
38189
       * Find the _Fields constant that matches fieldId, or null if its not found.
38190
       */
38191
      public static _Fields findByThriftId(int fieldId) {
38192
        switch(fieldId) {
38193
          default:
38194
            return null;
38195
        }
38196
      }
38197
 
38198
      /**
38199
       * Find the _Fields constant that matches fieldId, throwing an exception
38200
       * if it is not found.
38201
       */
38202
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38203
        _Fields fields = findByThriftId(fieldId);
38204
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38205
        return fields;
38206
      }
38207
 
38208
      /**
38209
       * Find the _Fields constant that matches name, or null if its not found.
38210
       */
38211
      public static _Fields findByName(String name) {
38212
        return byName.get(name);
38213
      }
38214
 
38215
      private final short _thriftId;
38216
      private final String _fieldName;
38217
 
38218
      _Fields(short thriftId, String fieldName) {
38219
        _thriftId = thriftId;
38220
        _fieldName = fieldName;
38221
      }
38222
 
38223
      public short getThriftFieldId() {
38224
        return _thriftId;
38225
      }
38226
 
38227
      public String getFieldName() {
38228
        return _fieldName;
38229
      }
38230
    }
38231
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38232
    static {
38233
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38234
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38235
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_result.class, metaDataMap);
38236
    }
38237
 
38238
    public updateItemStockPurchaseParams_result() {
38239
    }
38240
 
38241
    /**
38242
     * Performs a deep copy on <i>other</i>.
38243
     */
38244
    public updateItemStockPurchaseParams_result(updateItemStockPurchaseParams_result other) {
38245
    }
38246
 
38247
    public updateItemStockPurchaseParams_result deepCopy() {
38248
      return new updateItemStockPurchaseParams_result(this);
38249
    }
38250
 
38251
    @Override
38252
    public void clear() {
38253
    }
38254
 
38255
    public void setFieldValue(_Fields field, Object value) {
38256
      switch (field) {
38257
      }
38258
    }
38259
 
38260
    public Object getFieldValue(_Fields field) {
38261
      switch (field) {
38262
      }
38263
      throw new IllegalStateException();
38264
    }
38265
 
38266
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38267
    public boolean isSet(_Fields field) {
38268
      if (field == null) {
38269
        throw new IllegalArgumentException();
38270
      }
38271
 
38272
      switch (field) {
38273
      }
38274
      throw new IllegalStateException();
38275
    }
38276
 
38277
    @Override
38278
    public boolean equals(Object that) {
38279
      if (that == null)
38280
        return false;
38281
      if (that instanceof updateItemStockPurchaseParams_result)
38282
        return this.equals((updateItemStockPurchaseParams_result)that);
38283
      return false;
38284
    }
38285
 
38286
    public boolean equals(updateItemStockPurchaseParams_result that) {
38287
      if (that == null)
38288
        return false;
38289
 
38290
      return true;
38291
    }
38292
 
38293
    @Override
38294
    public int hashCode() {
38295
      return 0;
38296
    }
38297
 
38298
    public int compareTo(updateItemStockPurchaseParams_result other) {
38299
      if (!getClass().equals(other.getClass())) {
38300
        return getClass().getName().compareTo(other.getClass().getName());
38301
      }
38302
 
38303
      int lastComparison = 0;
38304
      updateItemStockPurchaseParams_result typedOther = (updateItemStockPurchaseParams_result)other;
38305
 
38306
      return 0;
38307
    }
38308
 
38309
    public _Fields fieldForId(int fieldId) {
38310
      return _Fields.findByThriftId(fieldId);
38311
    }
38312
 
38313
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38314
      org.apache.thrift.protocol.TField field;
38315
      iprot.readStructBegin();
38316
      while (true)
38317
      {
38318
        field = iprot.readFieldBegin();
38319
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38320
          break;
38321
        }
38322
        switch (field.id) {
38323
          default:
38324
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38325
        }
38326
        iprot.readFieldEnd();
38327
      }
38328
      iprot.readStructEnd();
38329
      validate();
38330
    }
38331
 
38332
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38333
      oprot.writeStructBegin(STRUCT_DESC);
38334
 
38335
      oprot.writeFieldStop();
38336
      oprot.writeStructEnd();
38337
    }
38338
 
38339
    @Override
38340
    public String toString() {
38341
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_result(");
38342
      boolean first = true;
38343
 
38344
      sb.append(")");
38345
      return sb.toString();
38346
    }
38347
 
38348
    public void validate() throws org.apache.thrift.TException {
38349
      // check for required fields
38350
    }
38351
 
38352
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38353
      try {
38354
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38355
      } catch (org.apache.thrift.TException te) {
38356
        throw new java.io.IOException(te);
38357
      }
38358
    }
38359
 
38360
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38361
      try {
38362
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38363
      } catch (org.apache.thrift.TException te) {
38364
        throw new java.io.IOException(te);
38365
      }
38366
    }
38367
 
38368
  }
38369
 
38370
  public static class getItemStockPurchaseParams_args implements org.apache.thrift.TBase<getItemStockPurchaseParams_args, getItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
38371
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_args");
38372
 
38373
    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);
38374
 
38375
    private long itemId; // required
38376
 
38377
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38378
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38379
      ITEM_ID((short)1, "itemId");
38380
 
38381
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38382
 
38383
      static {
38384
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38385
          byName.put(field.getFieldName(), field);
38386
        }
38387
      }
38388
 
38389
      /**
38390
       * Find the _Fields constant that matches fieldId, or null if its not found.
38391
       */
38392
      public static _Fields findByThriftId(int fieldId) {
38393
        switch(fieldId) {
38394
          case 1: // ITEM_ID
38395
            return ITEM_ID;
38396
          default:
38397
            return null;
38398
        }
38399
      }
38400
 
38401
      /**
38402
       * Find the _Fields constant that matches fieldId, throwing an exception
38403
       * if it is not found.
38404
       */
38405
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38406
        _Fields fields = findByThriftId(fieldId);
38407
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38408
        return fields;
38409
      }
38410
 
38411
      /**
38412
       * Find the _Fields constant that matches name, or null if its not found.
38413
       */
38414
      public static _Fields findByName(String name) {
38415
        return byName.get(name);
38416
      }
38417
 
38418
      private final short _thriftId;
38419
      private final String _fieldName;
38420
 
38421
      _Fields(short thriftId, String fieldName) {
38422
        _thriftId = thriftId;
38423
        _fieldName = fieldName;
38424
      }
38425
 
38426
      public short getThriftFieldId() {
38427
        return _thriftId;
38428
      }
38429
 
38430
      public String getFieldName() {
38431
        return _fieldName;
38432
      }
38433
    }
38434
 
38435
    // isset id assignments
38436
    private static final int __ITEMID_ISSET_ID = 0;
38437
    private BitSet __isset_bit_vector = new BitSet(1);
38438
 
38439
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38440
    static {
38441
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38442
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38443
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38444
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38445
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_args.class, metaDataMap);
38446
    }
38447
 
38448
    public getItemStockPurchaseParams_args() {
38449
    }
38450
 
38451
    public getItemStockPurchaseParams_args(
38452
      long itemId)
38453
    {
38454
      this();
38455
      this.itemId = itemId;
38456
      setItemIdIsSet(true);
38457
    }
38458
 
38459
    /**
38460
     * Performs a deep copy on <i>other</i>.
38461
     */
38462
    public getItemStockPurchaseParams_args(getItemStockPurchaseParams_args other) {
38463
      __isset_bit_vector.clear();
38464
      __isset_bit_vector.or(other.__isset_bit_vector);
38465
      this.itemId = other.itemId;
38466
    }
38467
 
38468
    public getItemStockPurchaseParams_args deepCopy() {
38469
      return new getItemStockPurchaseParams_args(this);
38470
    }
38471
 
38472
    @Override
38473
    public void clear() {
38474
      setItemIdIsSet(false);
38475
      this.itemId = 0;
38476
    }
38477
 
38478
    public long getItemId() {
38479
      return this.itemId;
38480
    }
38481
 
38482
    public void setItemId(long itemId) {
38483
      this.itemId = itemId;
38484
      setItemIdIsSet(true);
38485
    }
38486
 
38487
    public void unsetItemId() {
38488
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
38489
    }
38490
 
38491
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
38492
    public boolean isSetItemId() {
38493
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
38494
    }
38495
 
38496
    public void setItemIdIsSet(boolean value) {
38497
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
38498
    }
38499
 
38500
    public void setFieldValue(_Fields field, Object value) {
38501
      switch (field) {
38502
      case ITEM_ID:
38503
        if (value == null) {
38504
          unsetItemId();
38505
        } else {
38506
          setItemId((Long)value);
38507
        }
38508
        break;
38509
 
38510
      }
38511
    }
38512
 
38513
    public Object getFieldValue(_Fields field) {
38514
      switch (field) {
38515
      case ITEM_ID:
38516
        return Long.valueOf(getItemId());
38517
 
38518
      }
38519
      throw new IllegalStateException();
38520
    }
38521
 
38522
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38523
    public boolean isSet(_Fields field) {
38524
      if (field == null) {
38525
        throw new IllegalArgumentException();
38526
      }
38527
 
38528
      switch (field) {
38529
      case ITEM_ID:
38530
        return isSetItemId();
38531
      }
38532
      throw new IllegalStateException();
38533
    }
38534
 
38535
    @Override
38536
    public boolean equals(Object that) {
38537
      if (that == null)
38538
        return false;
38539
      if (that instanceof getItemStockPurchaseParams_args)
38540
        return this.equals((getItemStockPurchaseParams_args)that);
38541
      return false;
38542
    }
38543
 
38544
    public boolean equals(getItemStockPurchaseParams_args that) {
38545
      if (that == null)
38546
        return false;
38547
 
38548
      boolean this_present_itemId = true;
38549
      boolean that_present_itemId = true;
38550
      if (this_present_itemId || that_present_itemId) {
38551
        if (!(this_present_itemId && that_present_itemId))
38552
          return false;
38553
        if (this.itemId != that.itemId)
38554
          return false;
38555
      }
38556
 
38557
      return true;
38558
    }
38559
 
38560
    @Override
38561
    public int hashCode() {
38562
      return 0;
38563
    }
38564
 
38565
    public int compareTo(getItemStockPurchaseParams_args other) {
38566
      if (!getClass().equals(other.getClass())) {
38567
        return getClass().getName().compareTo(other.getClass().getName());
38568
      }
38569
 
38570
      int lastComparison = 0;
38571
      getItemStockPurchaseParams_args typedOther = (getItemStockPurchaseParams_args)other;
38572
 
38573
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
38574
      if (lastComparison != 0) {
38575
        return lastComparison;
38576
      }
38577
      if (isSetItemId()) {
38578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
38579
        if (lastComparison != 0) {
38580
          return lastComparison;
38581
        }
38582
      }
38583
      return 0;
38584
    }
38585
 
38586
    public _Fields fieldForId(int fieldId) {
38587
      return _Fields.findByThriftId(fieldId);
38588
    }
38589
 
38590
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38591
      org.apache.thrift.protocol.TField field;
38592
      iprot.readStructBegin();
38593
      while (true)
38594
      {
38595
        field = iprot.readFieldBegin();
38596
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38597
          break;
38598
        }
38599
        switch (field.id) {
38600
          case 1: // ITEM_ID
38601
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38602
              this.itemId = iprot.readI64();
38603
              setItemIdIsSet(true);
38604
            } else { 
38605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38606
            }
38607
            break;
38608
          default:
38609
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38610
        }
38611
        iprot.readFieldEnd();
38612
      }
38613
      iprot.readStructEnd();
38614
      validate();
38615
    }
38616
 
38617
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38618
      validate();
38619
 
38620
      oprot.writeStructBegin(STRUCT_DESC);
38621
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
38622
      oprot.writeI64(this.itemId);
38623
      oprot.writeFieldEnd();
38624
      oprot.writeFieldStop();
38625
      oprot.writeStructEnd();
38626
    }
38627
 
38628
    @Override
38629
    public String toString() {
38630
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_args(");
38631
      boolean first = true;
38632
 
38633
      sb.append("itemId:");
38634
      sb.append(this.itemId);
38635
      first = false;
38636
      sb.append(")");
38637
      return sb.toString();
38638
    }
38639
 
38640
    public void validate() throws org.apache.thrift.TException {
38641
      // check for required fields
38642
    }
38643
 
38644
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38645
      try {
38646
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38647
      } catch (org.apache.thrift.TException te) {
38648
        throw new java.io.IOException(te);
38649
      }
38650
    }
38651
 
38652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38653
      try {
38654
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
38655
        __isset_bit_vector = new BitSet(1);
38656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38657
      } catch (org.apache.thrift.TException te) {
38658
        throw new java.io.IOException(te);
38659
      }
38660
    }
38661
 
38662
  }
38663
 
38664
  public static class getItemStockPurchaseParams_result implements org.apache.thrift.TBase<getItemStockPurchaseParams_result, getItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
38665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_result");
38666
 
38667
    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);
38668
 
38669
    private ItemStockPurchaseParams success; // required
38670
 
38671
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38672
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38673
      SUCCESS((short)0, "success");
38674
 
38675
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38676
 
38677
      static {
38678
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38679
          byName.put(field.getFieldName(), field);
38680
        }
38681
      }
38682
 
38683
      /**
38684
       * Find the _Fields constant that matches fieldId, or null if its not found.
38685
       */
38686
      public static _Fields findByThriftId(int fieldId) {
38687
        switch(fieldId) {
38688
          case 0: // SUCCESS
38689
            return SUCCESS;
38690
          default:
38691
            return null;
38692
        }
38693
      }
38694
 
38695
      /**
38696
       * Find the _Fields constant that matches fieldId, throwing an exception
38697
       * if it is not found.
38698
       */
38699
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38700
        _Fields fields = findByThriftId(fieldId);
38701
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38702
        return fields;
38703
      }
38704
 
38705
      /**
38706
       * Find the _Fields constant that matches name, or null if its not found.
38707
       */
38708
      public static _Fields findByName(String name) {
38709
        return byName.get(name);
38710
      }
38711
 
38712
      private final short _thriftId;
38713
      private final String _fieldName;
38714
 
38715
      _Fields(short thriftId, String fieldName) {
38716
        _thriftId = thriftId;
38717
        _fieldName = fieldName;
38718
      }
38719
 
38720
      public short getThriftFieldId() {
38721
        return _thriftId;
38722
      }
38723
 
38724
      public String getFieldName() {
38725
        return _fieldName;
38726
      }
38727
    }
38728
 
38729
    // isset id assignments
38730
 
38731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38732
    static {
38733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38734
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38735
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class)));
38736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_result.class, metaDataMap);
38738
    }
38739
 
38740
    public getItemStockPurchaseParams_result() {
38741
    }
38742
 
38743
    public getItemStockPurchaseParams_result(
38744
      ItemStockPurchaseParams success)
38745
    {
38746
      this();
38747
      this.success = success;
38748
    }
38749
 
38750
    /**
38751
     * Performs a deep copy on <i>other</i>.
38752
     */
38753
    public getItemStockPurchaseParams_result(getItemStockPurchaseParams_result other) {
38754
      if (other.isSetSuccess()) {
38755
        this.success = new ItemStockPurchaseParams(other.success);
38756
      }
38757
    }
38758
 
38759
    public getItemStockPurchaseParams_result deepCopy() {
38760
      return new getItemStockPurchaseParams_result(this);
38761
    }
38762
 
38763
    @Override
38764
    public void clear() {
38765
      this.success = null;
38766
    }
38767
 
38768
    public ItemStockPurchaseParams getSuccess() {
38769
      return this.success;
38770
    }
38771
 
38772
    public void setSuccess(ItemStockPurchaseParams success) {
38773
      this.success = success;
38774
    }
38775
 
38776
    public void unsetSuccess() {
38777
      this.success = null;
38778
    }
38779
 
38780
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
38781
    public boolean isSetSuccess() {
38782
      return this.success != null;
38783
    }
38784
 
38785
    public void setSuccessIsSet(boolean value) {
38786
      if (!value) {
38787
        this.success = null;
38788
      }
38789
    }
38790
 
38791
    public void setFieldValue(_Fields field, Object value) {
38792
      switch (field) {
38793
      case SUCCESS:
38794
        if (value == null) {
38795
          unsetSuccess();
38796
        } else {
38797
          setSuccess((ItemStockPurchaseParams)value);
38798
        }
38799
        break;
38800
 
38801
      }
38802
    }
38803
 
38804
    public Object getFieldValue(_Fields field) {
38805
      switch (field) {
38806
      case SUCCESS:
38807
        return getSuccess();
38808
 
38809
      }
38810
      throw new IllegalStateException();
38811
    }
38812
 
38813
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38814
    public boolean isSet(_Fields field) {
38815
      if (field == null) {
38816
        throw new IllegalArgumentException();
38817
      }
38818
 
38819
      switch (field) {
38820
      case SUCCESS:
38821
        return isSetSuccess();
38822
      }
38823
      throw new IllegalStateException();
38824
    }
38825
 
38826
    @Override
38827
    public boolean equals(Object that) {
38828
      if (that == null)
38829
        return false;
38830
      if (that instanceof getItemStockPurchaseParams_result)
38831
        return this.equals((getItemStockPurchaseParams_result)that);
38832
      return false;
38833
    }
38834
 
38835
    public boolean equals(getItemStockPurchaseParams_result that) {
38836
      if (that == null)
38837
        return false;
38838
 
38839
      boolean this_present_success = true && this.isSetSuccess();
38840
      boolean that_present_success = true && that.isSetSuccess();
38841
      if (this_present_success || that_present_success) {
38842
        if (!(this_present_success && that_present_success))
38843
          return false;
38844
        if (!this.success.equals(that.success))
38845
          return false;
38846
      }
38847
 
38848
      return true;
38849
    }
38850
 
38851
    @Override
38852
    public int hashCode() {
38853
      return 0;
38854
    }
38855
 
38856
    public int compareTo(getItemStockPurchaseParams_result other) {
38857
      if (!getClass().equals(other.getClass())) {
38858
        return getClass().getName().compareTo(other.getClass().getName());
38859
      }
38860
 
38861
      int lastComparison = 0;
38862
      getItemStockPurchaseParams_result typedOther = (getItemStockPurchaseParams_result)other;
38863
 
38864
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
38865
      if (lastComparison != 0) {
38866
        return lastComparison;
38867
      }
38868
      if (isSetSuccess()) {
38869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38870
        if (lastComparison != 0) {
38871
          return lastComparison;
38872
        }
38873
      }
38874
      return 0;
38875
    }
38876
 
38877
    public _Fields fieldForId(int fieldId) {
38878
      return _Fields.findByThriftId(fieldId);
38879
    }
38880
 
38881
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38882
      org.apache.thrift.protocol.TField field;
38883
      iprot.readStructBegin();
38884
      while (true)
38885
      {
38886
        field = iprot.readFieldBegin();
38887
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38888
          break;
38889
        }
38890
        switch (field.id) {
38891
          case 0: // SUCCESS
38892
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
38893
              this.success = new ItemStockPurchaseParams();
38894
              this.success.read(iprot);
38895
            } else { 
38896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38897
            }
38898
            break;
38899
          default:
38900
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38901
        }
38902
        iprot.readFieldEnd();
38903
      }
38904
      iprot.readStructEnd();
38905
      validate();
38906
    }
38907
 
38908
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38909
      oprot.writeStructBegin(STRUCT_DESC);
38910
 
38911
      if (this.isSetSuccess()) {
38912
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38913
        this.success.write(oprot);
38914
        oprot.writeFieldEnd();
38915
      }
38916
      oprot.writeFieldStop();
38917
      oprot.writeStructEnd();
38918
    }
38919
 
38920
    @Override
38921
    public String toString() {
38922
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_result(");
38923
      boolean first = true;
38924
 
38925
      sb.append("success:");
38926
      if (this.success == null) {
38927
        sb.append("null");
38928
      } else {
38929
        sb.append(this.success);
38930
      }
38931
      first = false;
38932
      sb.append(")");
38933
      return sb.toString();
38934
    }
38935
 
38936
    public void validate() throws org.apache.thrift.TException {
38937
      // check for required fields
38938
    }
38939
 
38940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38941
      try {
38942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38943
      } catch (org.apache.thrift.TException te) {
38944
        throw new java.io.IOException(te);
38945
      }
38946
    }
38947
 
38948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38949
      try {
38950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38951
      } catch (org.apache.thrift.TException te) {
38952
        throw new java.io.IOException(te);
38953
      }
38954
    }
38955
 
38956
  }
38957
 
38958
  public static class addOosStatusForItem_args implements org.apache.thrift.TBase<addOosStatusForItem_args, addOosStatusForItem_args._Fields>, java.io.Serializable, Cloneable   {
38959
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_args");
38960
 
38961
    private static final org.apache.thrift.protocol.TField OOS_STATUS_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("oosStatusMap", org.apache.thrift.protocol.TType.MAP, (short)1);
38962
    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)2);
38963
 
38964
    private Map<Long,Boolean> oosStatusMap; // required
38965
    private long date; // required
38966
 
38967
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38968
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38969
      OOS_STATUS_MAP((short)1, "oosStatusMap"),
38970
      DATE((short)2, "date");
38971
 
38972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38973
 
38974
      static {
38975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38976
          byName.put(field.getFieldName(), field);
38977
        }
38978
      }
38979
 
38980
      /**
38981
       * Find the _Fields constant that matches fieldId, or null if its not found.
38982
       */
38983
      public static _Fields findByThriftId(int fieldId) {
38984
        switch(fieldId) {
38985
          case 1: // OOS_STATUS_MAP
38986
            return OOS_STATUS_MAP;
38987
          case 2: // DATE
38988
            return DATE;
38989
          default:
38990
            return null;
38991
        }
38992
      }
38993
 
38994
      /**
38995
       * Find the _Fields constant that matches fieldId, throwing an exception
38996
       * if it is not found.
38997
       */
38998
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38999
        _Fields fields = findByThriftId(fieldId);
39000
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39001
        return fields;
39002
      }
39003
 
39004
      /**
39005
       * Find the _Fields constant that matches name, or null if its not found.
39006
       */
39007
      public static _Fields findByName(String name) {
39008
        return byName.get(name);
39009
      }
39010
 
39011
      private final short _thriftId;
39012
      private final String _fieldName;
39013
 
39014
      _Fields(short thriftId, String fieldName) {
39015
        _thriftId = thriftId;
39016
        _fieldName = fieldName;
39017
      }
39018
 
39019
      public short getThriftFieldId() {
39020
        return _thriftId;
39021
      }
39022
 
39023
      public String getFieldName() {
39024
        return _fieldName;
39025
      }
39026
    }
39027
 
39028
    // isset id assignments
39029
    private static final int __DATE_ISSET_ID = 0;
39030
    private BitSet __isset_bit_vector = new BitSet(1);
39031
 
39032
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39033
    static {
39034
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39035
      tmpMap.put(_Fields.OOS_STATUS_MAP, new org.apache.thrift.meta_data.FieldMetaData("oosStatusMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39036
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
39037
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
39038
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
39039
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39040
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39041
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39042
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_args.class, metaDataMap);
39043
    }
39044
 
39045
    public addOosStatusForItem_args() {
39046
    }
39047
 
39048
    public addOosStatusForItem_args(
39049
      Map<Long,Boolean> oosStatusMap,
39050
      long date)
39051
    {
39052
      this();
39053
      this.oosStatusMap = oosStatusMap;
39054
      this.date = date;
39055
      setDateIsSet(true);
39056
    }
39057
 
39058
    /**
39059
     * Performs a deep copy on <i>other</i>.
39060
     */
39061
    public addOosStatusForItem_args(addOosStatusForItem_args other) {
39062
      __isset_bit_vector.clear();
39063
      __isset_bit_vector.or(other.__isset_bit_vector);
39064
      if (other.isSetOosStatusMap()) {
39065
        Map<Long,Boolean> __this__oosStatusMap = new HashMap<Long,Boolean>();
39066
        for (Map.Entry<Long, Boolean> other_element : other.oosStatusMap.entrySet()) {
39067
 
39068
          Long other_element_key = other_element.getKey();
39069
          Boolean other_element_value = other_element.getValue();
39070
 
39071
          Long __this__oosStatusMap_copy_key = other_element_key;
39072
 
39073
          Boolean __this__oosStatusMap_copy_value = other_element_value;
39074
 
39075
          __this__oosStatusMap.put(__this__oosStatusMap_copy_key, __this__oosStatusMap_copy_value);
39076
        }
39077
        this.oosStatusMap = __this__oosStatusMap;
39078
      }
39079
      this.date = other.date;
39080
    }
39081
 
39082
    public addOosStatusForItem_args deepCopy() {
39083
      return new addOosStatusForItem_args(this);
39084
    }
39085
 
39086
    @Override
39087
    public void clear() {
39088
      this.oosStatusMap = null;
39089
      setDateIsSet(false);
39090
      this.date = 0;
39091
    }
39092
 
39093
    public int getOosStatusMapSize() {
39094
      return (this.oosStatusMap == null) ? 0 : this.oosStatusMap.size();
39095
    }
39096
 
39097
    public void putToOosStatusMap(long key, boolean val) {
39098
      if (this.oosStatusMap == null) {
39099
        this.oosStatusMap = new HashMap<Long,Boolean>();
39100
      }
39101
      this.oosStatusMap.put(key, val);
39102
    }
39103
 
39104
    public Map<Long,Boolean> getOosStatusMap() {
39105
      return this.oosStatusMap;
39106
    }
39107
 
39108
    public void setOosStatusMap(Map<Long,Boolean> oosStatusMap) {
39109
      this.oosStatusMap = oosStatusMap;
39110
    }
39111
 
39112
    public void unsetOosStatusMap() {
39113
      this.oosStatusMap = null;
39114
    }
39115
 
39116
    /** Returns true if field oosStatusMap is set (has been assigned a value) and false otherwise */
39117
    public boolean isSetOosStatusMap() {
39118
      return this.oosStatusMap != null;
39119
    }
39120
 
39121
    public void setOosStatusMapIsSet(boolean value) {
39122
      if (!value) {
39123
        this.oosStatusMap = null;
39124
      }
39125
    }
39126
 
39127
    public long getDate() {
39128
      return this.date;
39129
    }
39130
 
39131
    public void setDate(long date) {
39132
      this.date = date;
39133
      setDateIsSet(true);
39134
    }
39135
 
39136
    public void unsetDate() {
39137
      __isset_bit_vector.clear(__DATE_ISSET_ID);
39138
    }
39139
 
39140
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
39141
    public boolean isSetDate() {
39142
      return __isset_bit_vector.get(__DATE_ISSET_ID);
39143
    }
39144
 
39145
    public void setDateIsSet(boolean value) {
39146
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
39147
    }
39148
 
39149
    public void setFieldValue(_Fields field, Object value) {
39150
      switch (field) {
39151
      case OOS_STATUS_MAP:
39152
        if (value == null) {
39153
          unsetOosStatusMap();
39154
        } else {
39155
          setOosStatusMap((Map<Long,Boolean>)value);
39156
        }
39157
        break;
39158
 
39159
      case DATE:
39160
        if (value == null) {
39161
          unsetDate();
39162
        } else {
39163
          setDate((Long)value);
39164
        }
39165
        break;
39166
 
39167
      }
39168
    }
39169
 
39170
    public Object getFieldValue(_Fields field) {
39171
      switch (field) {
39172
      case OOS_STATUS_MAP:
39173
        return getOosStatusMap();
39174
 
39175
      case DATE:
39176
        return Long.valueOf(getDate());
39177
 
39178
      }
39179
      throw new IllegalStateException();
39180
    }
39181
 
39182
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39183
    public boolean isSet(_Fields field) {
39184
      if (field == null) {
39185
        throw new IllegalArgumentException();
39186
      }
39187
 
39188
      switch (field) {
39189
      case OOS_STATUS_MAP:
39190
        return isSetOosStatusMap();
39191
      case DATE:
39192
        return isSetDate();
39193
      }
39194
      throw new IllegalStateException();
39195
    }
39196
 
39197
    @Override
39198
    public boolean equals(Object that) {
39199
      if (that == null)
39200
        return false;
39201
      if (that instanceof addOosStatusForItem_args)
39202
        return this.equals((addOosStatusForItem_args)that);
39203
      return false;
39204
    }
39205
 
39206
    public boolean equals(addOosStatusForItem_args that) {
39207
      if (that == null)
39208
        return false;
39209
 
39210
      boolean this_present_oosStatusMap = true && this.isSetOosStatusMap();
39211
      boolean that_present_oosStatusMap = true && that.isSetOosStatusMap();
39212
      if (this_present_oosStatusMap || that_present_oosStatusMap) {
39213
        if (!(this_present_oosStatusMap && that_present_oosStatusMap))
39214
          return false;
39215
        if (!this.oosStatusMap.equals(that.oosStatusMap))
39216
          return false;
39217
      }
39218
 
39219
      boolean this_present_date = true;
39220
      boolean that_present_date = true;
39221
      if (this_present_date || that_present_date) {
39222
        if (!(this_present_date && that_present_date))
39223
          return false;
39224
        if (this.date != that.date)
39225
          return false;
39226
      }
39227
 
39228
      return true;
39229
    }
39230
 
39231
    @Override
39232
    public int hashCode() {
39233
      return 0;
39234
    }
39235
 
39236
    public int compareTo(addOosStatusForItem_args other) {
39237
      if (!getClass().equals(other.getClass())) {
39238
        return getClass().getName().compareTo(other.getClass().getName());
39239
      }
39240
 
39241
      int lastComparison = 0;
39242
      addOosStatusForItem_args typedOther = (addOosStatusForItem_args)other;
39243
 
39244
      lastComparison = Boolean.valueOf(isSetOosStatusMap()).compareTo(typedOther.isSetOosStatusMap());
39245
      if (lastComparison != 0) {
39246
        return lastComparison;
39247
      }
39248
      if (isSetOosStatusMap()) {
39249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oosStatusMap, typedOther.oosStatusMap);
39250
        if (lastComparison != 0) {
39251
          return lastComparison;
39252
        }
39253
      }
39254
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
39255
      if (lastComparison != 0) {
39256
        return lastComparison;
39257
      }
39258
      if (isSetDate()) {
39259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
39260
        if (lastComparison != 0) {
39261
          return lastComparison;
39262
        }
39263
      }
39264
      return 0;
39265
    }
39266
 
39267
    public _Fields fieldForId(int fieldId) {
39268
      return _Fields.findByThriftId(fieldId);
39269
    }
39270
 
39271
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39272
      org.apache.thrift.protocol.TField field;
39273
      iprot.readStructBegin();
39274
      while (true)
39275
      {
39276
        field = iprot.readFieldBegin();
39277
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39278
          break;
39279
        }
39280
        switch (field.id) {
39281
          case 1: // OOS_STATUS_MAP
39282
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
39283
              {
8182 amar.kumar 39284
                org.apache.thrift.protocol.TMap _map109 = iprot.readMapBegin();
39285
                this.oosStatusMap = new HashMap<Long,Boolean>(2*_map109.size);
39286
                for (int _i110 = 0; _i110 < _map109.size; ++_i110)
6821 amar.kumar 39287
                {
8182 amar.kumar 39288
                  long _key111; // required
39289
                  boolean _val112; // required
39290
                  _key111 = iprot.readI64();
39291
                  _val112 = iprot.readBool();
39292
                  this.oosStatusMap.put(_key111, _val112);
6821 amar.kumar 39293
                }
39294
                iprot.readMapEnd();
39295
              }
39296
            } else { 
39297
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39298
            }
39299
            break;
39300
          case 2: // DATE
39301
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39302
              this.date = iprot.readI64();
39303
              setDateIsSet(true);
39304
            } else { 
39305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39306
            }
39307
            break;
39308
          default:
39309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39310
        }
39311
        iprot.readFieldEnd();
39312
      }
39313
      iprot.readStructEnd();
39314
      validate();
39315
    }
39316
 
39317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39318
      validate();
39319
 
39320
      oprot.writeStructBegin(STRUCT_DESC);
39321
      if (this.oosStatusMap != null) {
39322
        oprot.writeFieldBegin(OOS_STATUS_MAP_FIELD_DESC);
39323
        {
39324
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.oosStatusMap.size()));
8182 amar.kumar 39325
          for (Map.Entry<Long, Boolean> _iter113 : this.oosStatusMap.entrySet())
6821 amar.kumar 39326
          {
8182 amar.kumar 39327
            oprot.writeI64(_iter113.getKey());
39328
            oprot.writeBool(_iter113.getValue());
6821 amar.kumar 39329
          }
39330
          oprot.writeMapEnd();
39331
        }
39332
        oprot.writeFieldEnd();
39333
      }
39334
      oprot.writeFieldBegin(DATE_FIELD_DESC);
39335
      oprot.writeI64(this.date);
39336
      oprot.writeFieldEnd();
39337
      oprot.writeFieldStop();
39338
      oprot.writeStructEnd();
39339
    }
39340
 
39341
    @Override
39342
    public String toString() {
39343
      StringBuilder sb = new StringBuilder("addOosStatusForItem_args(");
39344
      boolean first = true;
39345
 
39346
      sb.append("oosStatusMap:");
39347
      if (this.oosStatusMap == null) {
39348
        sb.append("null");
39349
      } else {
39350
        sb.append(this.oosStatusMap);
39351
      }
39352
      first = false;
39353
      if (!first) sb.append(", ");
39354
      sb.append("date:");
39355
      sb.append(this.date);
39356
      first = false;
39357
      sb.append(")");
39358
      return sb.toString();
39359
    }
39360
 
39361
    public void validate() throws org.apache.thrift.TException {
39362
      // check for required fields
39363
    }
39364
 
39365
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39366
      try {
39367
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39368
      } catch (org.apache.thrift.TException te) {
39369
        throw new java.io.IOException(te);
39370
      }
39371
    }
39372
 
39373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39374
      try {
39375
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39376
        __isset_bit_vector = new BitSet(1);
39377
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39378
      } catch (org.apache.thrift.TException te) {
39379
        throw new java.io.IOException(te);
39380
      }
39381
    }
39382
 
39383
  }
39384
 
39385
  public static class addOosStatusForItem_result implements org.apache.thrift.TBase<addOosStatusForItem_result, addOosStatusForItem_result._Fields>, java.io.Serializable, Cloneable   {
39386
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_result");
39387
 
39388
 
39389
 
39390
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39391
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39392
;
39393
 
39394
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39395
 
39396
      static {
39397
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39398
          byName.put(field.getFieldName(), field);
39399
        }
39400
      }
39401
 
39402
      /**
39403
       * Find the _Fields constant that matches fieldId, or null if its not found.
39404
       */
39405
      public static _Fields findByThriftId(int fieldId) {
39406
        switch(fieldId) {
39407
          default:
39408
            return null;
39409
        }
39410
      }
39411
 
39412
      /**
39413
       * Find the _Fields constant that matches fieldId, throwing an exception
39414
       * if it is not found.
39415
       */
39416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39417
        _Fields fields = findByThriftId(fieldId);
39418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39419
        return fields;
39420
      }
39421
 
39422
      /**
39423
       * Find the _Fields constant that matches name, or null if its not found.
39424
       */
39425
      public static _Fields findByName(String name) {
39426
        return byName.get(name);
39427
      }
39428
 
39429
      private final short _thriftId;
39430
      private final String _fieldName;
39431
 
39432
      _Fields(short thriftId, String fieldName) {
39433
        _thriftId = thriftId;
39434
        _fieldName = fieldName;
39435
      }
39436
 
39437
      public short getThriftFieldId() {
39438
        return _thriftId;
39439
      }
39440
 
39441
      public String getFieldName() {
39442
        return _fieldName;
39443
      }
39444
    }
39445
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39446
    static {
39447
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39448
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39449
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_result.class, metaDataMap);
39450
    }
39451
 
39452
    public addOosStatusForItem_result() {
39453
    }
39454
 
39455
    /**
39456
     * Performs a deep copy on <i>other</i>.
39457
     */
39458
    public addOosStatusForItem_result(addOosStatusForItem_result other) {
39459
    }
39460
 
39461
    public addOosStatusForItem_result deepCopy() {
39462
      return new addOosStatusForItem_result(this);
39463
    }
39464
 
39465
    @Override
39466
    public void clear() {
39467
    }
39468
 
39469
    public void setFieldValue(_Fields field, Object value) {
39470
      switch (field) {
39471
      }
39472
    }
39473
 
39474
    public Object getFieldValue(_Fields field) {
39475
      switch (field) {
39476
      }
39477
      throw new IllegalStateException();
39478
    }
39479
 
39480
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39481
    public boolean isSet(_Fields field) {
39482
      if (field == null) {
39483
        throw new IllegalArgumentException();
39484
      }
39485
 
39486
      switch (field) {
39487
      }
39488
      throw new IllegalStateException();
39489
    }
39490
 
39491
    @Override
39492
    public boolean equals(Object that) {
39493
      if (that == null)
39494
        return false;
39495
      if (that instanceof addOosStatusForItem_result)
39496
        return this.equals((addOosStatusForItem_result)that);
39497
      return false;
39498
    }
39499
 
39500
    public boolean equals(addOosStatusForItem_result that) {
39501
      if (that == null)
39502
        return false;
39503
 
39504
      return true;
39505
    }
39506
 
39507
    @Override
39508
    public int hashCode() {
39509
      return 0;
39510
    }
39511
 
39512
    public int compareTo(addOosStatusForItem_result other) {
39513
      if (!getClass().equals(other.getClass())) {
39514
        return getClass().getName().compareTo(other.getClass().getName());
39515
      }
39516
 
39517
      int lastComparison = 0;
39518
      addOosStatusForItem_result typedOther = (addOosStatusForItem_result)other;
39519
 
39520
      return 0;
39521
    }
39522
 
39523
    public _Fields fieldForId(int fieldId) {
39524
      return _Fields.findByThriftId(fieldId);
39525
    }
39526
 
39527
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39528
      org.apache.thrift.protocol.TField field;
39529
      iprot.readStructBegin();
39530
      while (true)
39531
      {
39532
        field = iprot.readFieldBegin();
39533
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39534
          break;
39535
        }
39536
        switch (field.id) {
39537
          default:
39538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39539
        }
39540
        iprot.readFieldEnd();
39541
      }
39542
      iprot.readStructEnd();
39543
      validate();
39544
    }
39545
 
39546
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39547
      oprot.writeStructBegin(STRUCT_DESC);
39548
 
39549
      oprot.writeFieldStop();
39550
      oprot.writeStructEnd();
39551
    }
39552
 
39553
    @Override
39554
    public String toString() {
39555
      StringBuilder sb = new StringBuilder("addOosStatusForItem_result(");
39556
      boolean first = true;
39557
 
39558
      sb.append(")");
39559
      return sb.toString();
39560
    }
39561
 
39562
    public void validate() throws org.apache.thrift.TException {
39563
      // check for required fields
39564
    }
39565
 
39566
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39567
      try {
39568
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39569
      } catch (org.apache.thrift.TException te) {
39570
        throw new java.io.IOException(te);
39571
      }
39572
    }
39573
 
39574
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39575
      try {
39576
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39577
      } catch (org.apache.thrift.TException te) {
39578
        throw new java.io.IOException(te);
39579
      }
39580
    }
39581
 
39582
  }
39583
 
6832 amar.kumar 39584
  public static class getOosStatusesForXDaysForItem_args implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_args, getOosStatusesForXDaysForItem_args._Fields>, java.io.Serializable, Cloneable   {
39585
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_args");
39586
 
39587
    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);
9665 rajveer 39588
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I32, (short)2);
39589
    private static final org.apache.thrift.protocol.TField DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("days", org.apache.thrift.protocol.TType.I32, (short)3);
6832 amar.kumar 39590
 
39591
    private long itemId; // required
9665 rajveer 39592
    private int sourceId; // required
6832 amar.kumar 39593
    private int days; // required
39594
 
39595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39597
      ITEM_ID((short)1, "itemId"),
9665 rajveer 39598
      SOURCE_ID((short)2, "sourceId"),
39599
      DAYS((short)3, "days");
6832 amar.kumar 39600
 
39601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39602
 
39603
      static {
39604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39605
          byName.put(field.getFieldName(), field);
39606
        }
39607
      }
39608
 
39609
      /**
39610
       * Find the _Fields constant that matches fieldId, or null if its not found.
39611
       */
39612
      public static _Fields findByThriftId(int fieldId) {
39613
        switch(fieldId) {
39614
          case 1: // ITEM_ID
39615
            return ITEM_ID;
9665 rajveer 39616
          case 2: // SOURCE_ID
39617
            return SOURCE_ID;
39618
          case 3: // DAYS
6832 amar.kumar 39619
            return DAYS;
39620
          default:
39621
            return null;
39622
        }
39623
      }
39624
 
39625
      /**
39626
       * Find the _Fields constant that matches fieldId, throwing an exception
39627
       * if it is not found.
39628
       */
39629
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39630
        _Fields fields = findByThriftId(fieldId);
39631
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39632
        return fields;
39633
      }
39634
 
39635
      /**
39636
       * Find the _Fields constant that matches name, or null if its not found.
39637
       */
39638
      public static _Fields findByName(String name) {
39639
        return byName.get(name);
39640
      }
39641
 
39642
      private final short _thriftId;
39643
      private final String _fieldName;
39644
 
39645
      _Fields(short thriftId, String fieldName) {
39646
        _thriftId = thriftId;
39647
        _fieldName = fieldName;
39648
      }
39649
 
39650
      public short getThriftFieldId() {
39651
        return _thriftId;
39652
      }
39653
 
39654
      public String getFieldName() {
39655
        return _fieldName;
39656
      }
39657
    }
39658
 
39659
    // isset id assignments
39660
    private static final int __ITEMID_ISSET_ID = 0;
9665 rajveer 39661
    private static final int __SOURCEID_ISSET_ID = 1;
39662
    private static final int __DAYS_ISSET_ID = 2;
39663
    private BitSet __isset_bit_vector = new BitSet(3);
6832 amar.kumar 39664
 
39665
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39666
    static {
39667
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39668
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9665 rajveer 39670
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6832 amar.kumar 39672
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39673
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
39674
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39675
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_args.class, metaDataMap);
39676
    }
39677
 
39678
    public getOosStatusesForXDaysForItem_args() {
39679
    }
39680
 
39681
    public getOosStatusesForXDaysForItem_args(
39682
      long itemId,
9665 rajveer 39683
      int sourceId,
6832 amar.kumar 39684
      int days)
39685
    {
39686
      this();
39687
      this.itemId = itemId;
39688
      setItemIdIsSet(true);
9665 rajveer 39689
      this.sourceId = sourceId;
39690
      setSourceIdIsSet(true);
6832 amar.kumar 39691
      this.days = days;
39692
      setDaysIsSet(true);
39693
    }
39694
 
39695
    /**
39696
     * Performs a deep copy on <i>other</i>.
39697
     */
39698
    public getOosStatusesForXDaysForItem_args(getOosStatusesForXDaysForItem_args other) {
39699
      __isset_bit_vector.clear();
39700
      __isset_bit_vector.or(other.__isset_bit_vector);
39701
      this.itemId = other.itemId;
9665 rajveer 39702
      this.sourceId = other.sourceId;
6832 amar.kumar 39703
      this.days = other.days;
39704
    }
39705
 
39706
    public getOosStatusesForXDaysForItem_args deepCopy() {
39707
      return new getOosStatusesForXDaysForItem_args(this);
39708
    }
39709
 
39710
    @Override
39711
    public void clear() {
39712
      setItemIdIsSet(false);
39713
      this.itemId = 0;
9665 rajveer 39714
      setSourceIdIsSet(false);
39715
      this.sourceId = 0;
6832 amar.kumar 39716
      setDaysIsSet(false);
39717
      this.days = 0;
39718
    }
39719
 
39720
    public long getItemId() {
39721
      return this.itemId;
39722
    }
39723
 
39724
    public void setItemId(long itemId) {
39725
      this.itemId = itemId;
39726
      setItemIdIsSet(true);
39727
    }
39728
 
39729
    public void unsetItemId() {
39730
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
39731
    }
39732
 
39733
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
39734
    public boolean isSetItemId() {
39735
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
39736
    }
39737
 
39738
    public void setItemIdIsSet(boolean value) {
39739
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
39740
    }
39741
 
9665 rajveer 39742
    public int getSourceId() {
39743
      return this.sourceId;
39744
    }
39745
 
39746
    public void setSourceId(int sourceId) {
39747
      this.sourceId = sourceId;
39748
      setSourceIdIsSet(true);
39749
    }
39750
 
39751
    public void unsetSourceId() {
39752
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
39753
    }
39754
 
39755
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
39756
    public boolean isSetSourceId() {
39757
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
39758
    }
39759
 
39760
    public void setSourceIdIsSet(boolean value) {
39761
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
39762
    }
39763
 
6832 amar.kumar 39764
    public int getDays() {
39765
      return this.days;
39766
    }
39767
 
39768
    public void setDays(int days) {
39769
      this.days = days;
39770
      setDaysIsSet(true);
39771
    }
39772
 
39773
    public void unsetDays() {
39774
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
39775
    }
39776
 
39777
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
39778
    public boolean isSetDays() {
39779
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
39780
    }
39781
 
39782
    public void setDaysIsSet(boolean value) {
39783
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
39784
    }
39785
 
39786
    public void setFieldValue(_Fields field, Object value) {
39787
      switch (field) {
39788
      case ITEM_ID:
39789
        if (value == null) {
39790
          unsetItemId();
39791
        } else {
39792
          setItemId((Long)value);
39793
        }
39794
        break;
39795
 
9665 rajveer 39796
      case SOURCE_ID:
39797
        if (value == null) {
39798
          unsetSourceId();
39799
        } else {
39800
          setSourceId((Integer)value);
39801
        }
39802
        break;
39803
 
6832 amar.kumar 39804
      case DAYS:
39805
        if (value == null) {
39806
          unsetDays();
39807
        } else {
39808
          setDays((Integer)value);
39809
        }
39810
        break;
39811
 
39812
      }
39813
    }
39814
 
39815
    public Object getFieldValue(_Fields field) {
39816
      switch (field) {
39817
      case ITEM_ID:
39818
        return Long.valueOf(getItemId());
39819
 
9665 rajveer 39820
      case SOURCE_ID:
39821
        return Integer.valueOf(getSourceId());
39822
 
6832 amar.kumar 39823
      case DAYS:
39824
        return Integer.valueOf(getDays());
39825
 
39826
      }
39827
      throw new IllegalStateException();
39828
    }
39829
 
39830
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39831
    public boolean isSet(_Fields field) {
39832
      if (field == null) {
39833
        throw new IllegalArgumentException();
39834
      }
39835
 
39836
      switch (field) {
39837
      case ITEM_ID:
39838
        return isSetItemId();
9665 rajveer 39839
      case SOURCE_ID:
39840
        return isSetSourceId();
6832 amar.kumar 39841
      case DAYS:
39842
        return isSetDays();
39843
      }
39844
      throw new IllegalStateException();
39845
    }
39846
 
39847
    @Override
39848
    public boolean equals(Object that) {
39849
      if (that == null)
39850
        return false;
39851
      if (that instanceof getOosStatusesForXDaysForItem_args)
39852
        return this.equals((getOosStatusesForXDaysForItem_args)that);
39853
      return false;
39854
    }
39855
 
39856
    public boolean equals(getOosStatusesForXDaysForItem_args that) {
39857
      if (that == null)
39858
        return false;
39859
 
39860
      boolean this_present_itemId = true;
39861
      boolean that_present_itemId = true;
39862
      if (this_present_itemId || that_present_itemId) {
39863
        if (!(this_present_itemId && that_present_itemId))
39864
          return false;
39865
        if (this.itemId != that.itemId)
39866
          return false;
39867
      }
39868
 
9665 rajveer 39869
      boolean this_present_sourceId = true;
39870
      boolean that_present_sourceId = true;
39871
      if (this_present_sourceId || that_present_sourceId) {
39872
        if (!(this_present_sourceId && that_present_sourceId))
39873
          return false;
39874
        if (this.sourceId != that.sourceId)
39875
          return false;
39876
      }
39877
 
6832 amar.kumar 39878
      boolean this_present_days = true;
39879
      boolean that_present_days = true;
39880
      if (this_present_days || that_present_days) {
39881
        if (!(this_present_days && that_present_days))
39882
          return false;
39883
        if (this.days != that.days)
39884
          return false;
39885
      }
39886
 
39887
      return true;
39888
    }
39889
 
39890
    @Override
39891
    public int hashCode() {
39892
      return 0;
39893
    }
39894
 
39895
    public int compareTo(getOosStatusesForXDaysForItem_args other) {
39896
      if (!getClass().equals(other.getClass())) {
39897
        return getClass().getName().compareTo(other.getClass().getName());
39898
      }
39899
 
39900
      int lastComparison = 0;
39901
      getOosStatusesForXDaysForItem_args typedOther = (getOosStatusesForXDaysForItem_args)other;
39902
 
39903
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
39904
      if (lastComparison != 0) {
39905
        return lastComparison;
39906
      }
39907
      if (isSetItemId()) {
39908
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
39909
        if (lastComparison != 0) {
39910
          return lastComparison;
39911
        }
39912
      }
9665 rajveer 39913
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
39914
      if (lastComparison != 0) {
39915
        return lastComparison;
39916
      }
39917
      if (isSetSourceId()) {
39918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
39919
        if (lastComparison != 0) {
39920
          return lastComparison;
39921
        }
39922
      }
6832 amar.kumar 39923
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
39924
      if (lastComparison != 0) {
39925
        return lastComparison;
39926
      }
39927
      if (isSetDays()) {
39928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
39929
        if (lastComparison != 0) {
39930
          return lastComparison;
39931
        }
39932
      }
39933
      return 0;
39934
    }
39935
 
39936
    public _Fields fieldForId(int fieldId) {
39937
      return _Fields.findByThriftId(fieldId);
39938
    }
39939
 
39940
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39941
      org.apache.thrift.protocol.TField field;
39942
      iprot.readStructBegin();
39943
      while (true)
39944
      {
39945
        field = iprot.readFieldBegin();
39946
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39947
          break;
39948
        }
39949
        switch (field.id) {
39950
          case 1: // ITEM_ID
39951
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39952
              this.itemId = iprot.readI64();
39953
              setItemIdIsSet(true);
39954
            } else { 
39955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39956
            }
39957
            break;
9665 rajveer 39958
          case 2: // SOURCE_ID
6832 amar.kumar 39959
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9665 rajveer 39960
              this.sourceId = iprot.readI32();
39961
              setSourceIdIsSet(true);
39962
            } else { 
39963
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39964
            }
39965
            break;
39966
          case 3: // DAYS
39967
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6832 amar.kumar 39968
              this.days = iprot.readI32();
39969
              setDaysIsSet(true);
39970
            } else { 
39971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39972
            }
39973
            break;
39974
          default:
39975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39976
        }
39977
        iprot.readFieldEnd();
39978
      }
39979
      iprot.readStructEnd();
39980
      validate();
39981
    }
39982
 
39983
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39984
      validate();
39985
 
39986
      oprot.writeStructBegin(STRUCT_DESC);
39987
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
39988
      oprot.writeI64(this.itemId);
39989
      oprot.writeFieldEnd();
9665 rajveer 39990
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
39991
      oprot.writeI32(this.sourceId);
39992
      oprot.writeFieldEnd();
6832 amar.kumar 39993
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
39994
      oprot.writeI32(this.days);
39995
      oprot.writeFieldEnd();
39996
      oprot.writeFieldStop();
39997
      oprot.writeStructEnd();
39998
    }
39999
 
40000
    @Override
40001
    public String toString() {
40002
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_args(");
40003
      boolean first = true;
40004
 
40005
      sb.append("itemId:");
40006
      sb.append(this.itemId);
40007
      first = false;
40008
      if (!first) sb.append(", ");
9665 rajveer 40009
      sb.append("sourceId:");
40010
      sb.append(this.sourceId);
40011
      first = false;
40012
      if (!first) sb.append(", ");
6832 amar.kumar 40013
      sb.append("days:");
40014
      sb.append(this.days);
40015
      first = false;
40016
      sb.append(")");
40017
      return sb.toString();
40018
    }
40019
 
40020
    public void validate() throws org.apache.thrift.TException {
40021
      // check for required fields
40022
    }
40023
 
40024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40025
      try {
40026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40027
      } catch (org.apache.thrift.TException te) {
40028
        throw new java.io.IOException(te);
40029
      }
40030
    }
40031
 
40032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40033
      try {
40034
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40035
        __isset_bit_vector = new BitSet(1);
40036
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40037
      } catch (org.apache.thrift.TException te) {
40038
        throw new java.io.IOException(te);
40039
      }
40040
    }
40041
 
40042
  }
40043
 
40044
  public static class getOosStatusesForXDaysForItem_result implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_result, getOosStatusesForXDaysForItem_result._Fields>, java.io.Serializable, Cloneable   {
40045
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_result");
40046
 
40047
    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);
40048
 
40049
    private List<OOSStatus> success; // required
40050
 
40051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40053
      SUCCESS((short)0, "success");
40054
 
40055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40056
 
40057
      static {
40058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40059
          byName.put(field.getFieldName(), field);
40060
        }
40061
      }
40062
 
40063
      /**
40064
       * Find the _Fields constant that matches fieldId, or null if its not found.
40065
       */
40066
      public static _Fields findByThriftId(int fieldId) {
40067
        switch(fieldId) {
40068
          case 0: // SUCCESS
40069
            return SUCCESS;
40070
          default:
40071
            return null;
40072
        }
40073
      }
40074
 
40075
      /**
40076
       * Find the _Fields constant that matches fieldId, throwing an exception
40077
       * if it is not found.
40078
       */
40079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40080
        _Fields fields = findByThriftId(fieldId);
40081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40082
        return fields;
40083
      }
40084
 
40085
      /**
40086
       * Find the _Fields constant that matches name, or null if its not found.
40087
       */
40088
      public static _Fields findByName(String name) {
40089
        return byName.get(name);
40090
      }
40091
 
40092
      private final short _thriftId;
40093
      private final String _fieldName;
40094
 
40095
      _Fields(short thriftId, String fieldName) {
40096
        _thriftId = thriftId;
40097
        _fieldName = fieldName;
40098
      }
40099
 
40100
      public short getThriftFieldId() {
40101
        return _thriftId;
40102
      }
40103
 
40104
      public String getFieldName() {
40105
        return _fieldName;
40106
      }
40107
    }
40108
 
40109
    // isset id assignments
40110
 
40111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40112
    static {
40113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40114
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40115
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40116
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OOSStatus.class))));
40117
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40118
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_result.class, metaDataMap);
40119
    }
40120
 
40121
    public getOosStatusesForXDaysForItem_result() {
40122
    }
40123
 
40124
    public getOosStatusesForXDaysForItem_result(
40125
      List<OOSStatus> success)
40126
    {
40127
      this();
40128
      this.success = success;
40129
    }
40130
 
40131
    /**
40132
     * Performs a deep copy on <i>other</i>.
40133
     */
40134
    public getOosStatusesForXDaysForItem_result(getOosStatusesForXDaysForItem_result other) {
40135
      if (other.isSetSuccess()) {
40136
        List<OOSStatus> __this__success = new ArrayList<OOSStatus>();
40137
        for (OOSStatus other_element : other.success) {
40138
          __this__success.add(new OOSStatus(other_element));
40139
        }
40140
        this.success = __this__success;
40141
      }
40142
    }
40143
 
40144
    public getOosStatusesForXDaysForItem_result deepCopy() {
40145
      return new getOosStatusesForXDaysForItem_result(this);
40146
    }
40147
 
40148
    @Override
40149
    public void clear() {
40150
      this.success = null;
40151
    }
40152
 
40153
    public int getSuccessSize() {
40154
      return (this.success == null) ? 0 : this.success.size();
40155
    }
40156
 
40157
    public java.util.Iterator<OOSStatus> getSuccessIterator() {
40158
      return (this.success == null) ? null : this.success.iterator();
40159
    }
40160
 
40161
    public void addToSuccess(OOSStatus elem) {
40162
      if (this.success == null) {
40163
        this.success = new ArrayList<OOSStatus>();
40164
      }
40165
      this.success.add(elem);
40166
    }
40167
 
40168
    public List<OOSStatus> getSuccess() {
40169
      return this.success;
40170
    }
40171
 
40172
    public void setSuccess(List<OOSStatus> success) {
40173
      this.success = success;
40174
    }
40175
 
40176
    public void unsetSuccess() {
40177
      this.success = null;
40178
    }
40179
 
40180
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
40181
    public boolean isSetSuccess() {
40182
      return this.success != null;
40183
    }
40184
 
40185
    public void setSuccessIsSet(boolean value) {
40186
      if (!value) {
40187
        this.success = null;
40188
      }
40189
    }
40190
 
40191
    public void setFieldValue(_Fields field, Object value) {
40192
      switch (field) {
40193
      case SUCCESS:
40194
        if (value == null) {
40195
          unsetSuccess();
40196
        } else {
40197
          setSuccess((List<OOSStatus>)value);
40198
        }
40199
        break;
40200
 
40201
      }
40202
    }
40203
 
40204
    public Object getFieldValue(_Fields field) {
40205
      switch (field) {
40206
      case SUCCESS:
40207
        return getSuccess();
40208
 
40209
      }
40210
      throw new IllegalStateException();
40211
    }
40212
 
40213
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40214
    public boolean isSet(_Fields field) {
40215
      if (field == null) {
40216
        throw new IllegalArgumentException();
40217
      }
40218
 
40219
      switch (field) {
40220
      case SUCCESS:
40221
        return isSetSuccess();
40222
      }
40223
      throw new IllegalStateException();
40224
    }
40225
 
40226
    @Override
40227
    public boolean equals(Object that) {
40228
      if (that == null)
40229
        return false;
40230
      if (that instanceof getOosStatusesForXDaysForItem_result)
40231
        return this.equals((getOosStatusesForXDaysForItem_result)that);
40232
      return false;
40233
    }
40234
 
40235
    public boolean equals(getOosStatusesForXDaysForItem_result that) {
40236
      if (that == null)
40237
        return false;
40238
 
40239
      boolean this_present_success = true && this.isSetSuccess();
40240
      boolean that_present_success = true && that.isSetSuccess();
40241
      if (this_present_success || that_present_success) {
40242
        if (!(this_present_success && that_present_success))
40243
          return false;
40244
        if (!this.success.equals(that.success))
40245
          return false;
40246
      }
40247
 
40248
      return true;
40249
    }
40250
 
40251
    @Override
40252
    public int hashCode() {
40253
      return 0;
40254
    }
40255
 
40256
    public int compareTo(getOosStatusesForXDaysForItem_result other) {
40257
      if (!getClass().equals(other.getClass())) {
40258
        return getClass().getName().compareTo(other.getClass().getName());
40259
      }
40260
 
40261
      int lastComparison = 0;
40262
      getOosStatusesForXDaysForItem_result typedOther = (getOosStatusesForXDaysForItem_result)other;
40263
 
40264
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
40265
      if (lastComparison != 0) {
40266
        return lastComparison;
40267
      }
40268
      if (isSetSuccess()) {
40269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40270
        if (lastComparison != 0) {
40271
          return lastComparison;
40272
        }
40273
      }
40274
      return 0;
40275
    }
40276
 
40277
    public _Fields fieldForId(int fieldId) {
40278
      return _Fields.findByThriftId(fieldId);
40279
    }
40280
 
40281
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40282
      org.apache.thrift.protocol.TField field;
40283
      iprot.readStructBegin();
40284
      while (true)
40285
      {
40286
        field = iprot.readFieldBegin();
40287
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40288
          break;
40289
        }
40290
        switch (field.id) {
40291
          case 0: // SUCCESS
40292
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
40293
              {
8182 amar.kumar 40294
                org.apache.thrift.protocol.TList _list114 = iprot.readListBegin();
40295
                this.success = new ArrayList<OOSStatus>(_list114.size);
40296
                for (int _i115 = 0; _i115 < _list114.size; ++_i115)
6832 amar.kumar 40297
                {
8182 amar.kumar 40298
                  OOSStatus _elem116; // required
40299
                  _elem116 = new OOSStatus();
40300
                  _elem116.read(iprot);
40301
                  this.success.add(_elem116);
6832 amar.kumar 40302
                }
40303
                iprot.readListEnd();
40304
              }
40305
            } else { 
40306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40307
            }
40308
            break;
40309
          default:
40310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40311
        }
40312
        iprot.readFieldEnd();
40313
      }
40314
      iprot.readStructEnd();
40315
      validate();
40316
    }
40317
 
40318
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40319
      oprot.writeStructBegin(STRUCT_DESC);
40320
 
40321
      if (this.isSetSuccess()) {
40322
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40323
        {
40324
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 40325
          for (OOSStatus _iter117 : this.success)
6832 amar.kumar 40326
          {
8182 amar.kumar 40327
            _iter117.write(oprot);
6832 amar.kumar 40328
          }
40329
          oprot.writeListEnd();
40330
        }
40331
        oprot.writeFieldEnd();
40332
      }
40333
      oprot.writeFieldStop();
40334
      oprot.writeStructEnd();
40335
    }
40336
 
40337
    @Override
40338
    public String toString() {
40339
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_result(");
40340
      boolean first = true;
40341
 
40342
      sb.append("success:");
40343
      if (this.success == null) {
40344
        sb.append("null");
40345
      } else {
40346
        sb.append(this.success);
40347
      }
40348
      first = false;
40349
      sb.append(")");
40350
      return sb.toString();
40351
    }
40352
 
40353
    public void validate() throws org.apache.thrift.TException {
40354
      // check for required fields
40355
    }
40356
 
40357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40358
      try {
40359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40360
      } catch (org.apache.thrift.TException te) {
40361
        throw new java.io.IOException(te);
40362
      }
40363
    }
40364
 
40365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40366
      try {
40367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40368
      } catch (org.apache.thrift.TException te) {
40369
        throw new java.io.IOException(te);
40370
      }
40371
    }
40372
 
40373
  }
40374
 
10126 amar.kumar 40375
  public static class getOosStatusesForXDays_args implements org.apache.thrift.TBase<getOosStatusesForXDays_args, getOosStatusesForXDays_args._Fields>, java.io.Serializable, Cloneable   {
40376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDays_args");
40377
 
40378
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I32, (short)1);
40379
    private static final org.apache.thrift.protocol.TField DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("days", org.apache.thrift.protocol.TType.I32, (short)2);
40380
 
40381
    private int sourceId; // required
40382
    private int days; // required
40383
 
40384
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40385
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40386
      SOURCE_ID((short)1, "sourceId"),
40387
      DAYS((short)2, "days");
40388
 
40389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40390
 
40391
      static {
40392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40393
          byName.put(field.getFieldName(), field);
40394
        }
40395
      }
40396
 
40397
      /**
40398
       * Find the _Fields constant that matches fieldId, or null if its not found.
40399
       */
40400
      public static _Fields findByThriftId(int fieldId) {
40401
        switch(fieldId) {
40402
          case 1: // SOURCE_ID
40403
            return SOURCE_ID;
40404
          case 2: // DAYS
40405
            return DAYS;
40406
          default:
40407
            return null;
40408
        }
40409
      }
40410
 
40411
      /**
40412
       * Find the _Fields constant that matches fieldId, throwing an exception
40413
       * if it is not found.
40414
       */
40415
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40416
        _Fields fields = findByThriftId(fieldId);
40417
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40418
        return fields;
40419
      }
40420
 
40421
      /**
40422
       * Find the _Fields constant that matches name, or null if its not found.
40423
       */
40424
      public static _Fields findByName(String name) {
40425
        return byName.get(name);
40426
      }
40427
 
40428
      private final short _thriftId;
40429
      private final String _fieldName;
40430
 
40431
      _Fields(short thriftId, String fieldName) {
40432
        _thriftId = thriftId;
40433
        _fieldName = fieldName;
40434
      }
40435
 
40436
      public short getThriftFieldId() {
40437
        return _thriftId;
40438
      }
40439
 
40440
      public String getFieldName() {
40441
        return _fieldName;
40442
      }
40443
    }
40444
 
40445
    // isset id assignments
40446
    private static final int __SOURCEID_ISSET_ID = 0;
40447
    private static final int __DAYS_ISSET_ID = 1;
40448
    private BitSet __isset_bit_vector = new BitSet(2);
40449
 
40450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40451
    static {
40452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40453
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
40455
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
40457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDays_args.class, metaDataMap);
40459
    }
40460
 
40461
    public getOosStatusesForXDays_args() {
40462
    }
40463
 
40464
    public getOosStatusesForXDays_args(
40465
      int sourceId,
40466
      int days)
40467
    {
40468
      this();
40469
      this.sourceId = sourceId;
40470
      setSourceIdIsSet(true);
40471
      this.days = days;
40472
      setDaysIsSet(true);
40473
    }
40474
 
40475
    /**
40476
     * Performs a deep copy on <i>other</i>.
40477
     */
40478
    public getOosStatusesForXDays_args(getOosStatusesForXDays_args other) {
40479
      __isset_bit_vector.clear();
40480
      __isset_bit_vector.or(other.__isset_bit_vector);
40481
      this.sourceId = other.sourceId;
40482
      this.days = other.days;
40483
    }
40484
 
40485
    public getOosStatusesForXDays_args deepCopy() {
40486
      return new getOosStatusesForXDays_args(this);
40487
    }
40488
 
40489
    @Override
40490
    public void clear() {
40491
      setSourceIdIsSet(false);
40492
      this.sourceId = 0;
40493
      setDaysIsSet(false);
40494
      this.days = 0;
40495
    }
40496
 
40497
    public int getSourceId() {
40498
      return this.sourceId;
40499
    }
40500
 
40501
    public void setSourceId(int sourceId) {
40502
      this.sourceId = sourceId;
40503
      setSourceIdIsSet(true);
40504
    }
40505
 
40506
    public void unsetSourceId() {
40507
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
40508
    }
40509
 
40510
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
40511
    public boolean isSetSourceId() {
40512
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
40513
    }
40514
 
40515
    public void setSourceIdIsSet(boolean value) {
40516
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
40517
    }
40518
 
40519
    public int getDays() {
40520
      return this.days;
40521
    }
40522
 
40523
    public void setDays(int days) {
40524
      this.days = days;
40525
      setDaysIsSet(true);
40526
    }
40527
 
40528
    public void unsetDays() {
40529
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
40530
    }
40531
 
40532
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
40533
    public boolean isSetDays() {
40534
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
40535
    }
40536
 
40537
    public void setDaysIsSet(boolean value) {
40538
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
40539
    }
40540
 
40541
    public void setFieldValue(_Fields field, Object value) {
40542
      switch (field) {
40543
      case SOURCE_ID:
40544
        if (value == null) {
40545
          unsetSourceId();
40546
        } else {
40547
          setSourceId((Integer)value);
40548
        }
40549
        break;
40550
 
40551
      case DAYS:
40552
        if (value == null) {
40553
          unsetDays();
40554
        } else {
40555
          setDays((Integer)value);
40556
        }
40557
        break;
40558
 
40559
      }
40560
    }
40561
 
40562
    public Object getFieldValue(_Fields field) {
40563
      switch (field) {
40564
      case SOURCE_ID:
40565
        return Integer.valueOf(getSourceId());
40566
 
40567
      case DAYS:
40568
        return Integer.valueOf(getDays());
40569
 
40570
      }
40571
      throw new IllegalStateException();
40572
    }
40573
 
40574
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40575
    public boolean isSet(_Fields field) {
40576
      if (field == null) {
40577
        throw new IllegalArgumentException();
40578
      }
40579
 
40580
      switch (field) {
40581
      case SOURCE_ID:
40582
        return isSetSourceId();
40583
      case DAYS:
40584
        return isSetDays();
40585
      }
40586
      throw new IllegalStateException();
40587
    }
40588
 
40589
    @Override
40590
    public boolean equals(Object that) {
40591
      if (that == null)
40592
        return false;
40593
      if (that instanceof getOosStatusesForXDays_args)
40594
        return this.equals((getOosStatusesForXDays_args)that);
40595
      return false;
40596
    }
40597
 
40598
    public boolean equals(getOosStatusesForXDays_args that) {
40599
      if (that == null)
40600
        return false;
40601
 
40602
      boolean this_present_sourceId = true;
40603
      boolean that_present_sourceId = true;
40604
      if (this_present_sourceId || that_present_sourceId) {
40605
        if (!(this_present_sourceId && that_present_sourceId))
40606
          return false;
40607
        if (this.sourceId != that.sourceId)
40608
          return false;
40609
      }
40610
 
40611
      boolean this_present_days = true;
40612
      boolean that_present_days = true;
40613
      if (this_present_days || that_present_days) {
40614
        if (!(this_present_days && that_present_days))
40615
          return false;
40616
        if (this.days != that.days)
40617
          return false;
40618
      }
40619
 
40620
      return true;
40621
    }
40622
 
40623
    @Override
40624
    public int hashCode() {
40625
      return 0;
40626
    }
40627
 
40628
    public int compareTo(getOosStatusesForXDays_args other) {
40629
      if (!getClass().equals(other.getClass())) {
40630
        return getClass().getName().compareTo(other.getClass().getName());
40631
      }
40632
 
40633
      int lastComparison = 0;
40634
      getOosStatusesForXDays_args typedOther = (getOosStatusesForXDays_args)other;
40635
 
40636
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
40637
      if (lastComparison != 0) {
40638
        return lastComparison;
40639
      }
40640
      if (isSetSourceId()) {
40641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
40642
        if (lastComparison != 0) {
40643
          return lastComparison;
40644
        }
40645
      }
40646
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
40647
      if (lastComparison != 0) {
40648
        return lastComparison;
40649
      }
40650
      if (isSetDays()) {
40651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
40652
        if (lastComparison != 0) {
40653
          return lastComparison;
40654
        }
40655
      }
40656
      return 0;
40657
    }
40658
 
40659
    public _Fields fieldForId(int fieldId) {
40660
      return _Fields.findByThriftId(fieldId);
40661
    }
40662
 
40663
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40664
      org.apache.thrift.protocol.TField field;
40665
      iprot.readStructBegin();
40666
      while (true)
40667
      {
40668
        field = iprot.readFieldBegin();
40669
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40670
          break;
40671
        }
40672
        switch (field.id) {
40673
          case 1: // SOURCE_ID
40674
            if (field.type == org.apache.thrift.protocol.TType.I32) {
40675
              this.sourceId = iprot.readI32();
40676
              setSourceIdIsSet(true);
40677
            } else { 
40678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40679
            }
40680
            break;
40681
          case 2: // DAYS
40682
            if (field.type == org.apache.thrift.protocol.TType.I32) {
40683
              this.days = iprot.readI32();
40684
              setDaysIsSet(true);
40685
            } else { 
40686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40687
            }
40688
            break;
40689
          default:
40690
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40691
        }
40692
        iprot.readFieldEnd();
40693
      }
40694
      iprot.readStructEnd();
40695
      validate();
40696
    }
40697
 
40698
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40699
      validate();
40700
 
40701
      oprot.writeStructBegin(STRUCT_DESC);
40702
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
40703
      oprot.writeI32(this.sourceId);
40704
      oprot.writeFieldEnd();
40705
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
40706
      oprot.writeI32(this.days);
40707
      oprot.writeFieldEnd();
40708
      oprot.writeFieldStop();
40709
      oprot.writeStructEnd();
40710
    }
40711
 
40712
    @Override
40713
    public String toString() {
40714
      StringBuilder sb = new StringBuilder("getOosStatusesForXDays_args(");
40715
      boolean first = true;
40716
 
40717
      sb.append("sourceId:");
40718
      sb.append(this.sourceId);
40719
      first = false;
40720
      if (!first) sb.append(", ");
40721
      sb.append("days:");
40722
      sb.append(this.days);
40723
      first = false;
40724
      sb.append(")");
40725
      return sb.toString();
40726
    }
40727
 
40728
    public void validate() throws org.apache.thrift.TException {
40729
      // check for required fields
40730
    }
40731
 
40732
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40733
      try {
40734
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40735
      } catch (org.apache.thrift.TException te) {
40736
        throw new java.io.IOException(te);
40737
      }
40738
    }
40739
 
40740
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40741
      try {
40742
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40743
        __isset_bit_vector = new BitSet(1);
40744
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40745
      } catch (org.apache.thrift.TException te) {
40746
        throw new java.io.IOException(te);
40747
      }
40748
    }
40749
 
40750
  }
40751
 
40752
  public static class getOosStatusesForXDays_result implements org.apache.thrift.TBase<getOosStatusesForXDays_result, getOosStatusesForXDays_result._Fields>, java.io.Serializable, Cloneable   {
40753
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDays_result");
40754
 
40755
    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);
40756
 
40757
    private List<OOSStatus> success; // required
40758
 
40759
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40760
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40761
      SUCCESS((short)0, "success");
40762
 
40763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40764
 
40765
      static {
40766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40767
          byName.put(field.getFieldName(), field);
40768
        }
40769
      }
40770
 
40771
      /**
40772
       * Find the _Fields constant that matches fieldId, or null if its not found.
40773
       */
40774
      public static _Fields findByThriftId(int fieldId) {
40775
        switch(fieldId) {
40776
          case 0: // SUCCESS
40777
            return SUCCESS;
40778
          default:
40779
            return null;
40780
        }
40781
      }
40782
 
40783
      /**
40784
       * Find the _Fields constant that matches fieldId, throwing an exception
40785
       * if it is not found.
40786
       */
40787
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40788
        _Fields fields = findByThriftId(fieldId);
40789
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40790
        return fields;
40791
      }
40792
 
40793
      /**
40794
       * Find the _Fields constant that matches name, or null if its not found.
40795
       */
40796
      public static _Fields findByName(String name) {
40797
        return byName.get(name);
40798
      }
40799
 
40800
      private final short _thriftId;
40801
      private final String _fieldName;
40802
 
40803
      _Fields(short thriftId, String fieldName) {
40804
        _thriftId = thriftId;
40805
        _fieldName = fieldName;
40806
      }
40807
 
40808
      public short getThriftFieldId() {
40809
        return _thriftId;
40810
      }
40811
 
40812
      public String getFieldName() {
40813
        return _fieldName;
40814
      }
40815
    }
40816
 
40817
    // isset id assignments
40818
 
40819
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40820
    static {
40821
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40822
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40823
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40824
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OOSStatus.class))));
40825
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40826
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDays_result.class, metaDataMap);
40827
    }
40828
 
40829
    public getOosStatusesForXDays_result() {
40830
    }
40831
 
40832
    public getOosStatusesForXDays_result(
40833
      List<OOSStatus> success)
40834
    {
40835
      this();
40836
      this.success = success;
40837
    }
40838
 
40839
    /**
40840
     * Performs a deep copy on <i>other</i>.
40841
     */
40842
    public getOosStatusesForXDays_result(getOosStatusesForXDays_result other) {
40843
      if (other.isSetSuccess()) {
40844
        List<OOSStatus> __this__success = new ArrayList<OOSStatus>();
40845
        for (OOSStatus other_element : other.success) {
40846
          __this__success.add(new OOSStatus(other_element));
40847
        }
40848
        this.success = __this__success;
40849
      }
40850
    }
40851
 
40852
    public getOosStatusesForXDays_result deepCopy() {
40853
      return new getOosStatusesForXDays_result(this);
40854
    }
40855
 
40856
    @Override
40857
    public void clear() {
40858
      this.success = null;
40859
    }
40860
 
40861
    public int getSuccessSize() {
40862
      return (this.success == null) ? 0 : this.success.size();
40863
    }
40864
 
40865
    public java.util.Iterator<OOSStatus> getSuccessIterator() {
40866
      return (this.success == null) ? null : this.success.iterator();
40867
    }
40868
 
40869
    public void addToSuccess(OOSStatus elem) {
40870
      if (this.success == null) {
40871
        this.success = new ArrayList<OOSStatus>();
40872
      }
40873
      this.success.add(elem);
40874
    }
40875
 
40876
    public List<OOSStatus> getSuccess() {
40877
      return this.success;
40878
    }
40879
 
40880
    public void setSuccess(List<OOSStatus> success) {
40881
      this.success = success;
40882
    }
40883
 
40884
    public void unsetSuccess() {
40885
      this.success = null;
40886
    }
40887
 
40888
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
40889
    public boolean isSetSuccess() {
40890
      return this.success != null;
40891
    }
40892
 
40893
    public void setSuccessIsSet(boolean value) {
40894
      if (!value) {
40895
        this.success = null;
40896
      }
40897
    }
40898
 
40899
    public void setFieldValue(_Fields field, Object value) {
40900
      switch (field) {
40901
      case SUCCESS:
40902
        if (value == null) {
40903
          unsetSuccess();
40904
        } else {
40905
          setSuccess((List<OOSStatus>)value);
40906
        }
40907
        break;
40908
 
40909
      }
40910
    }
40911
 
40912
    public Object getFieldValue(_Fields field) {
40913
      switch (field) {
40914
      case SUCCESS:
40915
        return getSuccess();
40916
 
40917
      }
40918
      throw new IllegalStateException();
40919
    }
40920
 
40921
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40922
    public boolean isSet(_Fields field) {
40923
      if (field == null) {
40924
        throw new IllegalArgumentException();
40925
      }
40926
 
40927
      switch (field) {
40928
      case SUCCESS:
40929
        return isSetSuccess();
40930
      }
40931
      throw new IllegalStateException();
40932
    }
40933
 
40934
    @Override
40935
    public boolean equals(Object that) {
40936
      if (that == null)
40937
        return false;
40938
      if (that instanceof getOosStatusesForXDays_result)
40939
        return this.equals((getOosStatusesForXDays_result)that);
40940
      return false;
40941
    }
40942
 
40943
    public boolean equals(getOosStatusesForXDays_result that) {
40944
      if (that == null)
40945
        return false;
40946
 
40947
      boolean this_present_success = true && this.isSetSuccess();
40948
      boolean that_present_success = true && that.isSetSuccess();
40949
      if (this_present_success || that_present_success) {
40950
        if (!(this_present_success && that_present_success))
40951
          return false;
40952
        if (!this.success.equals(that.success))
40953
          return false;
40954
      }
40955
 
40956
      return true;
40957
    }
40958
 
40959
    @Override
40960
    public int hashCode() {
40961
      return 0;
40962
    }
40963
 
40964
    public int compareTo(getOosStatusesForXDays_result other) {
40965
      if (!getClass().equals(other.getClass())) {
40966
        return getClass().getName().compareTo(other.getClass().getName());
40967
      }
40968
 
40969
      int lastComparison = 0;
40970
      getOosStatusesForXDays_result typedOther = (getOosStatusesForXDays_result)other;
40971
 
40972
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
40973
      if (lastComparison != 0) {
40974
        return lastComparison;
40975
      }
40976
      if (isSetSuccess()) {
40977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40978
        if (lastComparison != 0) {
40979
          return lastComparison;
40980
        }
40981
      }
40982
      return 0;
40983
    }
40984
 
40985
    public _Fields fieldForId(int fieldId) {
40986
      return _Fields.findByThriftId(fieldId);
40987
    }
40988
 
40989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40990
      org.apache.thrift.protocol.TField field;
40991
      iprot.readStructBegin();
40992
      while (true)
40993
      {
40994
        field = iprot.readFieldBegin();
40995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40996
          break;
40997
        }
40998
        switch (field.id) {
40999
          case 0: // SUCCESS
41000
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41001
              {
41002
                org.apache.thrift.protocol.TList _list118 = iprot.readListBegin();
41003
                this.success = new ArrayList<OOSStatus>(_list118.size);
41004
                for (int _i119 = 0; _i119 < _list118.size; ++_i119)
41005
                {
41006
                  OOSStatus _elem120; // required
41007
                  _elem120 = new OOSStatus();
41008
                  _elem120.read(iprot);
41009
                  this.success.add(_elem120);
41010
                }
41011
                iprot.readListEnd();
41012
              }
41013
            } else { 
41014
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41015
            }
41016
            break;
41017
          default:
41018
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41019
        }
41020
        iprot.readFieldEnd();
41021
      }
41022
      iprot.readStructEnd();
41023
      validate();
41024
    }
41025
 
41026
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41027
      oprot.writeStructBegin(STRUCT_DESC);
41028
 
41029
      if (this.isSetSuccess()) {
41030
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41031
        {
41032
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41033
          for (OOSStatus _iter121 : this.success)
41034
          {
41035
            _iter121.write(oprot);
41036
          }
41037
          oprot.writeListEnd();
41038
        }
41039
        oprot.writeFieldEnd();
41040
      }
41041
      oprot.writeFieldStop();
41042
      oprot.writeStructEnd();
41043
    }
41044
 
41045
    @Override
41046
    public String toString() {
41047
      StringBuilder sb = new StringBuilder("getOosStatusesForXDays_result(");
41048
      boolean first = true;
41049
 
41050
      sb.append("success:");
41051
      if (this.success == null) {
41052
        sb.append("null");
41053
      } else {
41054
        sb.append(this.success);
41055
      }
41056
      first = false;
41057
      sb.append(")");
41058
      return sb.toString();
41059
    }
41060
 
41061
    public void validate() throws org.apache.thrift.TException {
41062
      // check for required fields
41063
    }
41064
 
41065
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41066
      try {
41067
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41068
      } catch (org.apache.thrift.TException te) {
41069
        throw new java.io.IOException(te);
41070
      }
41071
    }
41072
 
41073
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41074
      try {
41075
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41076
      } catch (org.apache.thrift.TException te) {
41077
        throw new java.io.IOException(te);
41078
      }
41079
    }
41080
 
41081
  }
41082
 
41083
  public static class getAllVendorItemPricing_args implements org.apache.thrift.TBase<getAllVendorItemPricing_args, getAllVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
41084
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemPricing_args");
41085
 
41086
    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);
41087
    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);
41088
 
41089
    private long itemId; // required
41090
    private long vendorId; // required
41091
 
41092
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41093
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41094
      ITEM_ID((short)1, "itemId"),
41095
      VENDOR_ID((short)2, "vendorId");
41096
 
41097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41098
 
41099
      static {
41100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41101
          byName.put(field.getFieldName(), field);
41102
        }
41103
      }
41104
 
41105
      /**
41106
       * Find the _Fields constant that matches fieldId, or null if its not found.
41107
       */
41108
      public static _Fields findByThriftId(int fieldId) {
41109
        switch(fieldId) {
41110
          case 1: // ITEM_ID
41111
            return ITEM_ID;
41112
          case 2: // VENDOR_ID
41113
            return VENDOR_ID;
41114
          default:
41115
            return null;
41116
        }
41117
      }
41118
 
41119
      /**
41120
       * Find the _Fields constant that matches fieldId, throwing an exception
41121
       * if it is not found.
41122
       */
41123
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41124
        _Fields fields = findByThriftId(fieldId);
41125
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41126
        return fields;
41127
      }
41128
 
41129
      /**
41130
       * Find the _Fields constant that matches name, or null if its not found.
41131
       */
41132
      public static _Fields findByName(String name) {
41133
        return byName.get(name);
41134
      }
41135
 
41136
      private final short _thriftId;
41137
      private final String _fieldName;
41138
 
41139
      _Fields(short thriftId, String fieldName) {
41140
        _thriftId = thriftId;
41141
        _fieldName = fieldName;
41142
      }
41143
 
41144
      public short getThriftFieldId() {
41145
        return _thriftId;
41146
      }
41147
 
41148
      public String getFieldName() {
41149
        return _fieldName;
41150
      }
41151
    }
41152
 
41153
    // isset id assignments
41154
    private static final int __ITEMID_ISSET_ID = 0;
41155
    private static final int __VENDORID_ISSET_ID = 1;
41156
    private BitSet __isset_bit_vector = new BitSet(2);
41157
 
41158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41159
    static {
41160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41161
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41163
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemPricing_args.class, metaDataMap);
41167
    }
41168
 
41169
    public getAllVendorItemPricing_args() {
41170
    }
41171
 
41172
    public getAllVendorItemPricing_args(
41173
      long itemId,
41174
      long vendorId)
41175
    {
41176
      this();
41177
      this.itemId = itemId;
41178
      setItemIdIsSet(true);
41179
      this.vendorId = vendorId;
41180
      setVendorIdIsSet(true);
41181
    }
41182
 
41183
    /**
41184
     * Performs a deep copy on <i>other</i>.
41185
     */
41186
    public getAllVendorItemPricing_args(getAllVendorItemPricing_args other) {
41187
      __isset_bit_vector.clear();
41188
      __isset_bit_vector.or(other.__isset_bit_vector);
41189
      this.itemId = other.itemId;
41190
      this.vendorId = other.vendorId;
41191
    }
41192
 
41193
    public getAllVendorItemPricing_args deepCopy() {
41194
      return new getAllVendorItemPricing_args(this);
41195
    }
41196
 
41197
    @Override
41198
    public void clear() {
41199
      setItemIdIsSet(false);
41200
      this.itemId = 0;
41201
      setVendorIdIsSet(false);
41202
      this.vendorId = 0;
41203
    }
41204
 
41205
    public long getItemId() {
41206
      return this.itemId;
41207
    }
41208
 
41209
    public void setItemId(long itemId) {
41210
      this.itemId = itemId;
41211
      setItemIdIsSet(true);
41212
    }
41213
 
41214
    public void unsetItemId() {
41215
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41216
    }
41217
 
41218
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
41219
    public boolean isSetItemId() {
41220
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41221
    }
41222
 
41223
    public void setItemIdIsSet(boolean value) {
41224
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41225
    }
41226
 
41227
    public long getVendorId() {
41228
      return this.vendorId;
41229
    }
41230
 
41231
    public void setVendorId(long vendorId) {
41232
      this.vendorId = vendorId;
41233
      setVendorIdIsSet(true);
41234
    }
41235
 
41236
    public void unsetVendorId() {
41237
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
41238
    }
41239
 
41240
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
41241
    public boolean isSetVendorId() {
41242
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
41243
    }
41244
 
41245
    public void setVendorIdIsSet(boolean value) {
41246
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
41247
    }
41248
 
41249
    public void setFieldValue(_Fields field, Object value) {
41250
      switch (field) {
41251
      case ITEM_ID:
41252
        if (value == null) {
41253
          unsetItemId();
41254
        } else {
41255
          setItemId((Long)value);
41256
        }
41257
        break;
41258
 
41259
      case VENDOR_ID:
41260
        if (value == null) {
41261
          unsetVendorId();
41262
        } else {
41263
          setVendorId((Long)value);
41264
        }
41265
        break;
41266
 
41267
      }
41268
    }
41269
 
41270
    public Object getFieldValue(_Fields field) {
41271
      switch (field) {
41272
      case ITEM_ID:
41273
        return Long.valueOf(getItemId());
41274
 
41275
      case VENDOR_ID:
41276
        return Long.valueOf(getVendorId());
41277
 
41278
      }
41279
      throw new IllegalStateException();
41280
    }
41281
 
41282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41283
    public boolean isSet(_Fields field) {
41284
      if (field == null) {
41285
        throw new IllegalArgumentException();
41286
      }
41287
 
41288
      switch (field) {
41289
      case ITEM_ID:
41290
        return isSetItemId();
41291
      case VENDOR_ID:
41292
        return isSetVendorId();
41293
      }
41294
      throw new IllegalStateException();
41295
    }
41296
 
41297
    @Override
41298
    public boolean equals(Object that) {
41299
      if (that == null)
41300
        return false;
41301
      if (that instanceof getAllVendorItemPricing_args)
41302
        return this.equals((getAllVendorItemPricing_args)that);
41303
      return false;
41304
    }
41305
 
41306
    public boolean equals(getAllVendorItemPricing_args that) {
41307
      if (that == null)
41308
        return false;
41309
 
41310
      boolean this_present_itemId = true;
41311
      boolean that_present_itemId = true;
41312
      if (this_present_itemId || that_present_itemId) {
41313
        if (!(this_present_itemId && that_present_itemId))
41314
          return false;
41315
        if (this.itemId != that.itemId)
41316
          return false;
41317
      }
41318
 
41319
      boolean this_present_vendorId = true;
41320
      boolean that_present_vendorId = true;
41321
      if (this_present_vendorId || that_present_vendorId) {
41322
        if (!(this_present_vendorId && that_present_vendorId))
41323
          return false;
41324
        if (this.vendorId != that.vendorId)
41325
          return false;
41326
      }
41327
 
41328
      return true;
41329
    }
41330
 
41331
    @Override
41332
    public int hashCode() {
41333
      return 0;
41334
    }
41335
 
41336
    public int compareTo(getAllVendorItemPricing_args other) {
41337
      if (!getClass().equals(other.getClass())) {
41338
        return getClass().getName().compareTo(other.getClass().getName());
41339
      }
41340
 
41341
      int lastComparison = 0;
41342
      getAllVendorItemPricing_args typedOther = (getAllVendorItemPricing_args)other;
41343
 
41344
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
41345
      if (lastComparison != 0) {
41346
        return lastComparison;
41347
      }
41348
      if (isSetItemId()) {
41349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
41350
        if (lastComparison != 0) {
41351
          return lastComparison;
41352
        }
41353
      }
41354
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
41355
      if (lastComparison != 0) {
41356
        return lastComparison;
41357
      }
41358
      if (isSetVendorId()) {
41359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
41360
        if (lastComparison != 0) {
41361
          return lastComparison;
41362
        }
41363
      }
41364
      return 0;
41365
    }
41366
 
41367
    public _Fields fieldForId(int fieldId) {
41368
      return _Fields.findByThriftId(fieldId);
41369
    }
41370
 
41371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41372
      org.apache.thrift.protocol.TField field;
41373
      iprot.readStructBegin();
41374
      while (true)
41375
      {
41376
        field = iprot.readFieldBegin();
41377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41378
          break;
41379
        }
41380
        switch (field.id) {
41381
          case 1: // ITEM_ID
41382
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41383
              this.itemId = iprot.readI64();
41384
              setItemIdIsSet(true);
41385
            } else { 
41386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41387
            }
41388
            break;
41389
          case 2: // VENDOR_ID
41390
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41391
              this.vendorId = iprot.readI64();
41392
              setVendorIdIsSet(true);
41393
            } else { 
41394
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41395
            }
41396
            break;
41397
          default:
41398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41399
        }
41400
        iprot.readFieldEnd();
41401
      }
41402
      iprot.readStructEnd();
41403
      validate();
41404
    }
41405
 
41406
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41407
      validate();
41408
 
41409
      oprot.writeStructBegin(STRUCT_DESC);
41410
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
41411
      oprot.writeI64(this.itemId);
41412
      oprot.writeFieldEnd();
41413
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
41414
      oprot.writeI64(this.vendorId);
41415
      oprot.writeFieldEnd();
41416
      oprot.writeFieldStop();
41417
      oprot.writeStructEnd();
41418
    }
41419
 
41420
    @Override
41421
    public String toString() {
41422
      StringBuilder sb = new StringBuilder("getAllVendorItemPricing_args(");
41423
      boolean first = true;
41424
 
41425
      sb.append("itemId:");
41426
      sb.append(this.itemId);
41427
      first = false;
41428
      if (!first) sb.append(", ");
41429
      sb.append("vendorId:");
41430
      sb.append(this.vendorId);
41431
      first = false;
41432
      sb.append(")");
41433
      return sb.toString();
41434
    }
41435
 
41436
    public void validate() throws org.apache.thrift.TException {
41437
      // check for required fields
41438
    }
41439
 
41440
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41441
      try {
41442
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41443
      } catch (org.apache.thrift.TException te) {
41444
        throw new java.io.IOException(te);
41445
      }
41446
    }
41447
 
41448
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41449
      try {
41450
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
41451
        __isset_bit_vector = new BitSet(1);
41452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41453
      } catch (org.apache.thrift.TException te) {
41454
        throw new java.io.IOException(te);
41455
      }
41456
    }
41457
 
41458
  }
41459
 
41460
  public static class getAllVendorItemPricing_result implements org.apache.thrift.TBase<getAllVendorItemPricing_result, getAllVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
41461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemPricing_result");
41462
 
41463
    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);
41464
 
41465
    private List<VendorItemPricing> success; // required
41466
 
41467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41469
      SUCCESS((short)0, "success");
41470
 
41471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41472
 
41473
      static {
41474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41475
          byName.put(field.getFieldName(), field);
41476
        }
41477
      }
41478
 
41479
      /**
41480
       * Find the _Fields constant that matches fieldId, or null if its not found.
41481
       */
41482
      public static _Fields findByThriftId(int fieldId) {
41483
        switch(fieldId) {
41484
          case 0: // SUCCESS
41485
            return SUCCESS;
41486
          default:
41487
            return null;
41488
        }
41489
      }
41490
 
41491
      /**
41492
       * Find the _Fields constant that matches fieldId, throwing an exception
41493
       * if it is not found.
41494
       */
41495
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41496
        _Fields fields = findByThriftId(fieldId);
41497
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41498
        return fields;
41499
      }
41500
 
41501
      /**
41502
       * Find the _Fields constant that matches name, or null if its not found.
41503
       */
41504
      public static _Fields findByName(String name) {
41505
        return byName.get(name);
41506
      }
41507
 
41508
      private final short _thriftId;
41509
      private final String _fieldName;
41510
 
41511
      _Fields(short thriftId, String fieldName) {
41512
        _thriftId = thriftId;
41513
        _fieldName = fieldName;
41514
      }
41515
 
41516
      public short getThriftFieldId() {
41517
        return _thriftId;
41518
      }
41519
 
41520
      public String getFieldName() {
41521
        return _fieldName;
41522
      }
41523
    }
41524
 
41525
    // isset id assignments
41526
 
41527
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41528
    static {
41529
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41530
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41531
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
41532
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
41533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemPricing_result.class, metaDataMap);
41535
    }
41536
 
41537
    public getAllVendorItemPricing_result() {
41538
    }
41539
 
41540
    public getAllVendorItemPricing_result(
41541
      List<VendorItemPricing> success)
41542
    {
41543
      this();
41544
      this.success = success;
41545
    }
41546
 
41547
    /**
41548
     * Performs a deep copy on <i>other</i>.
41549
     */
41550
    public getAllVendorItemPricing_result(getAllVendorItemPricing_result other) {
41551
      if (other.isSetSuccess()) {
41552
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
41553
        for (VendorItemPricing other_element : other.success) {
41554
          __this__success.add(new VendorItemPricing(other_element));
41555
        }
41556
        this.success = __this__success;
41557
      }
41558
    }
41559
 
41560
    public getAllVendorItemPricing_result deepCopy() {
41561
      return new getAllVendorItemPricing_result(this);
41562
    }
41563
 
41564
    @Override
41565
    public void clear() {
41566
      this.success = null;
41567
    }
41568
 
41569
    public int getSuccessSize() {
41570
      return (this.success == null) ? 0 : this.success.size();
41571
    }
41572
 
41573
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
41574
      return (this.success == null) ? null : this.success.iterator();
41575
    }
41576
 
41577
    public void addToSuccess(VendorItemPricing elem) {
41578
      if (this.success == null) {
41579
        this.success = new ArrayList<VendorItemPricing>();
41580
      }
41581
      this.success.add(elem);
41582
    }
41583
 
41584
    public List<VendorItemPricing> getSuccess() {
41585
      return this.success;
41586
    }
41587
 
41588
    public void setSuccess(List<VendorItemPricing> success) {
41589
      this.success = success;
41590
    }
41591
 
41592
    public void unsetSuccess() {
41593
      this.success = null;
41594
    }
41595
 
41596
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
41597
    public boolean isSetSuccess() {
41598
      return this.success != null;
41599
    }
41600
 
41601
    public void setSuccessIsSet(boolean value) {
41602
      if (!value) {
41603
        this.success = null;
41604
      }
41605
    }
41606
 
41607
    public void setFieldValue(_Fields field, Object value) {
41608
      switch (field) {
41609
      case SUCCESS:
41610
        if (value == null) {
41611
          unsetSuccess();
41612
        } else {
41613
          setSuccess((List<VendorItemPricing>)value);
41614
        }
41615
        break;
41616
 
41617
      }
41618
    }
41619
 
41620
    public Object getFieldValue(_Fields field) {
41621
      switch (field) {
41622
      case SUCCESS:
41623
        return getSuccess();
41624
 
41625
      }
41626
      throw new IllegalStateException();
41627
    }
41628
 
41629
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41630
    public boolean isSet(_Fields field) {
41631
      if (field == null) {
41632
        throw new IllegalArgumentException();
41633
      }
41634
 
41635
      switch (field) {
41636
      case SUCCESS:
41637
        return isSetSuccess();
41638
      }
41639
      throw new IllegalStateException();
41640
    }
41641
 
41642
    @Override
41643
    public boolean equals(Object that) {
41644
      if (that == null)
41645
        return false;
41646
      if (that instanceof getAllVendorItemPricing_result)
41647
        return this.equals((getAllVendorItemPricing_result)that);
41648
      return false;
41649
    }
41650
 
41651
    public boolean equals(getAllVendorItemPricing_result that) {
41652
      if (that == null)
41653
        return false;
41654
 
41655
      boolean this_present_success = true && this.isSetSuccess();
41656
      boolean that_present_success = true && that.isSetSuccess();
41657
      if (this_present_success || that_present_success) {
41658
        if (!(this_present_success && that_present_success))
41659
          return false;
41660
        if (!this.success.equals(that.success))
41661
          return false;
41662
      }
41663
 
41664
      return true;
41665
    }
41666
 
41667
    @Override
41668
    public int hashCode() {
41669
      return 0;
41670
    }
41671
 
41672
    public int compareTo(getAllVendorItemPricing_result other) {
41673
      if (!getClass().equals(other.getClass())) {
41674
        return getClass().getName().compareTo(other.getClass().getName());
41675
      }
41676
 
41677
      int lastComparison = 0;
41678
      getAllVendorItemPricing_result typedOther = (getAllVendorItemPricing_result)other;
41679
 
41680
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
41681
      if (lastComparison != 0) {
41682
        return lastComparison;
41683
      }
41684
      if (isSetSuccess()) {
41685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41686
        if (lastComparison != 0) {
41687
          return lastComparison;
41688
        }
41689
      }
41690
      return 0;
41691
    }
41692
 
41693
    public _Fields fieldForId(int fieldId) {
41694
      return _Fields.findByThriftId(fieldId);
41695
    }
41696
 
41697
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41698
      org.apache.thrift.protocol.TField field;
41699
      iprot.readStructBegin();
41700
      while (true)
41701
      {
41702
        field = iprot.readFieldBegin();
41703
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41704
          break;
41705
        }
41706
        switch (field.id) {
41707
          case 0: // SUCCESS
41708
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41709
              {
41710
                org.apache.thrift.protocol.TList _list122 = iprot.readListBegin();
41711
                this.success = new ArrayList<VendorItemPricing>(_list122.size);
41712
                for (int _i123 = 0; _i123 < _list122.size; ++_i123)
41713
                {
41714
                  VendorItemPricing _elem124; // required
41715
                  _elem124 = new VendorItemPricing();
41716
                  _elem124.read(iprot);
41717
                  this.success.add(_elem124);
41718
                }
41719
                iprot.readListEnd();
41720
              }
41721
            } else { 
41722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41723
            }
41724
            break;
41725
          default:
41726
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41727
        }
41728
        iprot.readFieldEnd();
41729
      }
41730
      iprot.readStructEnd();
41731
      validate();
41732
    }
41733
 
41734
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41735
      oprot.writeStructBegin(STRUCT_DESC);
41736
 
41737
      if (this.isSetSuccess()) {
41738
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41739
        {
41740
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41741
          for (VendorItemPricing _iter125 : this.success)
41742
          {
41743
            _iter125.write(oprot);
41744
          }
41745
          oprot.writeListEnd();
41746
        }
41747
        oprot.writeFieldEnd();
41748
      }
41749
      oprot.writeFieldStop();
41750
      oprot.writeStructEnd();
41751
    }
41752
 
41753
    @Override
41754
    public String toString() {
41755
      StringBuilder sb = new StringBuilder("getAllVendorItemPricing_result(");
41756
      boolean first = true;
41757
 
41758
      sb.append("success:");
41759
      if (this.success == null) {
41760
        sb.append("null");
41761
      } else {
41762
        sb.append(this.success);
41763
      }
41764
      first = false;
41765
      sb.append(")");
41766
      return sb.toString();
41767
    }
41768
 
41769
    public void validate() throws org.apache.thrift.TException {
41770
      // check for required fields
41771
    }
41772
 
41773
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41774
      try {
41775
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41776
      } catch (org.apache.thrift.TException te) {
41777
        throw new java.io.IOException(te);
41778
      }
41779
    }
41780
 
41781
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41782
      try {
41783
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41784
      } catch (org.apache.thrift.TException te) {
41785
        throw new java.io.IOException(te);
41786
      }
41787
    }
41788
 
41789
  }
41790
 
6857 amar.kumar 41791
  public static class getNonZeroItemStockPurchaseParams_args implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_args, getNonZeroItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
41792
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_args");
41793
 
41794
 
41795
 
41796
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41797
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41798
;
41799
 
41800
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41801
 
41802
      static {
41803
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41804
          byName.put(field.getFieldName(), field);
41805
        }
41806
      }
41807
 
41808
      /**
41809
       * Find the _Fields constant that matches fieldId, or null if its not found.
41810
       */
41811
      public static _Fields findByThriftId(int fieldId) {
41812
        switch(fieldId) {
41813
          default:
41814
            return null;
41815
        }
41816
      }
41817
 
41818
      /**
41819
       * Find the _Fields constant that matches fieldId, throwing an exception
41820
       * if it is not found.
41821
       */
41822
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41823
        _Fields fields = findByThriftId(fieldId);
41824
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41825
        return fields;
41826
      }
41827
 
41828
      /**
41829
       * Find the _Fields constant that matches name, or null if its not found.
41830
       */
41831
      public static _Fields findByName(String name) {
41832
        return byName.get(name);
41833
      }
41834
 
41835
      private final short _thriftId;
41836
      private final String _fieldName;
41837
 
41838
      _Fields(short thriftId, String fieldName) {
41839
        _thriftId = thriftId;
41840
        _fieldName = fieldName;
41841
      }
41842
 
41843
      public short getThriftFieldId() {
41844
        return _thriftId;
41845
      }
41846
 
41847
      public String getFieldName() {
41848
        return _fieldName;
41849
      }
41850
    }
41851
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41852
    static {
41853
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41854
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41855
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_args.class, metaDataMap);
41856
    }
41857
 
41858
    public getNonZeroItemStockPurchaseParams_args() {
41859
    }
41860
 
41861
    /**
41862
     * Performs a deep copy on <i>other</i>.
41863
     */
41864
    public getNonZeroItemStockPurchaseParams_args(getNonZeroItemStockPurchaseParams_args other) {
41865
    }
41866
 
41867
    public getNonZeroItemStockPurchaseParams_args deepCopy() {
41868
      return new getNonZeroItemStockPurchaseParams_args(this);
41869
    }
41870
 
41871
    @Override
41872
    public void clear() {
41873
    }
41874
 
41875
    public void setFieldValue(_Fields field, Object value) {
41876
      switch (field) {
41877
      }
41878
    }
41879
 
41880
    public Object getFieldValue(_Fields field) {
41881
      switch (field) {
41882
      }
41883
      throw new IllegalStateException();
41884
    }
41885
 
41886
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41887
    public boolean isSet(_Fields field) {
41888
      if (field == null) {
41889
        throw new IllegalArgumentException();
41890
      }
41891
 
41892
      switch (field) {
41893
      }
41894
      throw new IllegalStateException();
41895
    }
41896
 
41897
    @Override
41898
    public boolean equals(Object that) {
41899
      if (that == null)
41900
        return false;
41901
      if (that instanceof getNonZeroItemStockPurchaseParams_args)
41902
        return this.equals((getNonZeroItemStockPurchaseParams_args)that);
41903
      return false;
41904
    }
41905
 
41906
    public boolean equals(getNonZeroItemStockPurchaseParams_args that) {
41907
      if (that == null)
41908
        return false;
41909
 
41910
      return true;
41911
    }
41912
 
41913
    @Override
41914
    public int hashCode() {
41915
      return 0;
41916
    }
41917
 
41918
    public int compareTo(getNonZeroItemStockPurchaseParams_args other) {
41919
      if (!getClass().equals(other.getClass())) {
41920
        return getClass().getName().compareTo(other.getClass().getName());
41921
      }
41922
 
41923
      int lastComparison = 0;
41924
      getNonZeroItemStockPurchaseParams_args typedOther = (getNonZeroItemStockPurchaseParams_args)other;
41925
 
41926
      return 0;
41927
    }
41928
 
41929
    public _Fields fieldForId(int fieldId) {
41930
      return _Fields.findByThriftId(fieldId);
41931
    }
41932
 
41933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41934
      org.apache.thrift.protocol.TField field;
41935
      iprot.readStructBegin();
41936
      while (true)
41937
      {
41938
        field = iprot.readFieldBegin();
41939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41940
          break;
41941
        }
41942
        switch (field.id) {
41943
          default:
41944
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41945
        }
41946
        iprot.readFieldEnd();
41947
      }
41948
      iprot.readStructEnd();
41949
      validate();
41950
    }
41951
 
41952
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41953
      validate();
41954
 
41955
      oprot.writeStructBegin(STRUCT_DESC);
41956
      oprot.writeFieldStop();
41957
      oprot.writeStructEnd();
41958
    }
41959
 
41960
    @Override
41961
    public String toString() {
41962
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_args(");
41963
      boolean first = true;
41964
 
41965
      sb.append(")");
41966
      return sb.toString();
41967
    }
41968
 
41969
    public void validate() throws org.apache.thrift.TException {
41970
      // check for required fields
41971
    }
41972
 
41973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41974
      try {
41975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41976
      } catch (org.apache.thrift.TException te) {
41977
        throw new java.io.IOException(te);
41978
      }
41979
    }
41980
 
41981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41982
      try {
41983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41984
      } catch (org.apache.thrift.TException te) {
41985
        throw new java.io.IOException(te);
41986
      }
41987
    }
41988
 
41989
  }
41990
 
41991
  public static class getNonZeroItemStockPurchaseParams_result implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_result, getNonZeroItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
41992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_result");
41993
 
41994
    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);
41995
 
41996
    private List<ItemStockPurchaseParams> success; // required
41997
 
41998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42000
      SUCCESS((short)0, "success");
42001
 
42002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42003
 
42004
      static {
42005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42006
          byName.put(field.getFieldName(), field);
42007
        }
42008
      }
42009
 
42010
      /**
42011
       * Find the _Fields constant that matches fieldId, or null if its not found.
42012
       */
42013
      public static _Fields findByThriftId(int fieldId) {
42014
        switch(fieldId) {
42015
          case 0: // SUCCESS
42016
            return SUCCESS;
42017
          default:
42018
            return null;
42019
        }
42020
      }
42021
 
42022
      /**
42023
       * Find the _Fields constant that matches fieldId, throwing an exception
42024
       * if it is not found.
42025
       */
42026
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42027
        _Fields fields = findByThriftId(fieldId);
42028
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42029
        return fields;
42030
      }
42031
 
42032
      /**
42033
       * Find the _Fields constant that matches name, or null if its not found.
42034
       */
42035
      public static _Fields findByName(String name) {
42036
        return byName.get(name);
42037
      }
42038
 
42039
      private final short _thriftId;
42040
      private final String _fieldName;
42041
 
42042
      _Fields(short thriftId, String fieldName) {
42043
        _thriftId = thriftId;
42044
        _fieldName = fieldName;
42045
      }
42046
 
42047
      public short getThriftFieldId() {
42048
        return _thriftId;
42049
      }
42050
 
42051
      public String getFieldName() {
42052
        return _fieldName;
42053
      }
42054
    }
42055
 
42056
    // isset id assignments
42057
 
42058
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42059
    static {
42060
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42061
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42062
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
42063
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class))));
42064
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42065
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_result.class, metaDataMap);
42066
    }
42067
 
42068
    public getNonZeroItemStockPurchaseParams_result() {
42069
    }
42070
 
42071
    public getNonZeroItemStockPurchaseParams_result(
42072
      List<ItemStockPurchaseParams> success)
42073
    {
42074
      this();
42075
      this.success = success;
42076
    }
42077
 
42078
    /**
42079
     * Performs a deep copy on <i>other</i>.
42080
     */
42081
    public getNonZeroItemStockPurchaseParams_result(getNonZeroItemStockPurchaseParams_result other) {
42082
      if (other.isSetSuccess()) {
42083
        List<ItemStockPurchaseParams> __this__success = new ArrayList<ItemStockPurchaseParams>();
42084
        for (ItemStockPurchaseParams other_element : other.success) {
42085
          __this__success.add(new ItemStockPurchaseParams(other_element));
42086
        }
42087
        this.success = __this__success;
42088
      }
42089
    }
42090
 
42091
    public getNonZeroItemStockPurchaseParams_result deepCopy() {
42092
      return new getNonZeroItemStockPurchaseParams_result(this);
42093
    }
42094
 
42095
    @Override
42096
    public void clear() {
42097
      this.success = null;
42098
    }
42099
 
42100
    public int getSuccessSize() {
42101
      return (this.success == null) ? 0 : this.success.size();
42102
    }
42103
 
42104
    public java.util.Iterator<ItemStockPurchaseParams> getSuccessIterator() {
42105
      return (this.success == null) ? null : this.success.iterator();
42106
    }
42107
 
42108
    public void addToSuccess(ItemStockPurchaseParams elem) {
42109
      if (this.success == null) {
42110
        this.success = new ArrayList<ItemStockPurchaseParams>();
42111
      }
42112
      this.success.add(elem);
42113
    }
42114
 
42115
    public List<ItemStockPurchaseParams> getSuccess() {
42116
      return this.success;
42117
    }
42118
 
42119
    public void setSuccess(List<ItemStockPurchaseParams> success) {
42120
      this.success = success;
42121
    }
42122
 
42123
    public void unsetSuccess() {
42124
      this.success = null;
42125
    }
42126
 
42127
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
42128
    public boolean isSetSuccess() {
42129
      return this.success != null;
42130
    }
42131
 
42132
    public void setSuccessIsSet(boolean value) {
42133
      if (!value) {
42134
        this.success = null;
42135
      }
42136
    }
42137
 
42138
    public void setFieldValue(_Fields field, Object value) {
42139
      switch (field) {
42140
      case SUCCESS:
42141
        if (value == null) {
42142
          unsetSuccess();
42143
        } else {
42144
          setSuccess((List<ItemStockPurchaseParams>)value);
42145
        }
42146
        break;
42147
 
42148
      }
42149
    }
42150
 
42151
    public Object getFieldValue(_Fields field) {
42152
      switch (field) {
42153
      case SUCCESS:
42154
        return getSuccess();
42155
 
42156
      }
42157
      throw new IllegalStateException();
42158
    }
42159
 
42160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42161
    public boolean isSet(_Fields field) {
42162
      if (field == null) {
42163
        throw new IllegalArgumentException();
42164
      }
42165
 
42166
      switch (field) {
42167
      case SUCCESS:
42168
        return isSetSuccess();
42169
      }
42170
      throw new IllegalStateException();
42171
    }
42172
 
42173
    @Override
42174
    public boolean equals(Object that) {
42175
      if (that == null)
42176
        return false;
42177
      if (that instanceof getNonZeroItemStockPurchaseParams_result)
42178
        return this.equals((getNonZeroItemStockPurchaseParams_result)that);
42179
      return false;
42180
    }
42181
 
42182
    public boolean equals(getNonZeroItemStockPurchaseParams_result that) {
42183
      if (that == null)
42184
        return false;
42185
 
42186
      boolean this_present_success = true && this.isSetSuccess();
42187
      boolean that_present_success = true && that.isSetSuccess();
42188
      if (this_present_success || that_present_success) {
42189
        if (!(this_present_success && that_present_success))
42190
          return false;
42191
        if (!this.success.equals(that.success))
42192
          return false;
42193
      }
42194
 
42195
      return true;
42196
    }
42197
 
42198
    @Override
42199
    public int hashCode() {
42200
      return 0;
42201
    }
42202
 
42203
    public int compareTo(getNonZeroItemStockPurchaseParams_result other) {
42204
      if (!getClass().equals(other.getClass())) {
42205
        return getClass().getName().compareTo(other.getClass().getName());
42206
      }
42207
 
42208
      int lastComparison = 0;
42209
      getNonZeroItemStockPurchaseParams_result typedOther = (getNonZeroItemStockPurchaseParams_result)other;
42210
 
42211
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42212
      if (lastComparison != 0) {
42213
        return lastComparison;
42214
      }
42215
      if (isSetSuccess()) {
42216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42217
        if (lastComparison != 0) {
42218
          return lastComparison;
42219
        }
42220
      }
42221
      return 0;
42222
    }
42223
 
42224
    public _Fields fieldForId(int fieldId) {
42225
      return _Fields.findByThriftId(fieldId);
42226
    }
42227
 
42228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42229
      org.apache.thrift.protocol.TField field;
42230
      iprot.readStructBegin();
42231
      while (true)
42232
      {
42233
        field = iprot.readFieldBegin();
42234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42235
          break;
42236
        }
42237
        switch (field.id) {
42238
          case 0: // SUCCESS
42239
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42240
              {
10126 amar.kumar 42241
                org.apache.thrift.protocol.TList _list126 = iprot.readListBegin();
42242
                this.success = new ArrayList<ItemStockPurchaseParams>(_list126.size);
42243
                for (int _i127 = 0; _i127 < _list126.size; ++_i127)
6857 amar.kumar 42244
                {
10126 amar.kumar 42245
                  ItemStockPurchaseParams _elem128; // required
42246
                  _elem128 = new ItemStockPurchaseParams();
42247
                  _elem128.read(iprot);
42248
                  this.success.add(_elem128);
6857 amar.kumar 42249
                }
42250
                iprot.readListEnd();
42251
              }
42252
            } else { 
42253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42254
            }
42255
            break;
42256
          default:
42257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42258
        }
42259
        iprot.readFieldEnd();
42260
      }
42261
      iprot.readStructEnd();
42262
      validate();
42263
    }
42264
 
42265
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42266
      oprot.writeStructBegin(STRUCT_DESC);
42267
 
42268
      if (this.isSetSuccess()) {
42269
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42270
        {
42271
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10126 amar.kumar 42272
          for (ItemStockPurchaseParams _iter129 : this.success)
6857 amar.kumar 42273
          {
10126 amar.kumar 42274
            _iter129.write(oprot);
6857 amar.kumar 42275
          }
42276
          oprot.writeListEnd();
42277
        }
42278
        oprot.writeFieldEnd();
42279
      }
42280
      oprot.writeFieldStop();
42281
      oprot.writeStructEnd();
42282
    }
42283
 
42284
    @Override
42285
    public String toString() {
42286
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_result(");
42287
      boolean first = true;
42288
 
42289
      sb.append("success:");
42290
      if (this.success == null) {
42291
        sb.append("null");
42292
      } else {
42293
        sb.append(this.success);
42294
      }
42295
      first = false;
42296
      sb.append(")");
42297
      return sb.toString();
42298
    }
42299
 
42300
    public void validate() throws org.apache.thrift.TException {
42301
      // check for required fields
42302
    }
42303
 
42304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42305
      try {
42306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42307
      } catch (org.apache.thrift.TException te) {
42308
        throw new java.io.IOException(te);
42309
      }
42310
    }
42311
 
42312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42313
      try {
42314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42315
      } catch (org.apache.thrift.TException te) {
42316
        throw new java.io.IOException(te);
42317
      }
42318
    }
42319
 
42320
  }
42321
 
7149 amar.kumar 42322
  public static class getBillableInventoryAndPendingOrders_args implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_args, getBillableInventoryAndPendingOrders_args._Fields>, java.io.Serializable, Cloneable   {
42323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_args");
42324
 
42325
 
42326
 
42327
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42328
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42329
;
42330
 
42331
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42332
 
42333
      static {
42334
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42335
          byName.put(field.getFieldName(), field);
42336
        }
42337
      }
42338
 
42339
      /**
42340
       * Find the _Fields constant that matches fieldId, or null if its not found.
42341
       */
42342
      public static _Fields findByThriftId(int fieldId) {
42343
        switch(fieldId) {
42344
          default:
42345
            return null;
42346
        }
42347
      }
42348
 
42349
      /**
42350
       * Find the _Fields constant that matches fieldId, throwing an exception
42351
       * if it is not found.
42352
       */
42353
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42354
        _Fields fields = findByThriftId(fieldId);
42355
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42356
        return fields;
42357
      }
42358
 
42359
      /**
42360
       * Find the _Fields constant that matches name, or null if its not found.
42361
       */
42362
      public static _Fields findByName(String name) {
42363
        return byName.get(name);
42364
      }
42365
 
42366
      private final short _thriftId;
42367
      private final String _fieldName;
42368
 
42369
      _Fields(short thriftId, String fieldName) {
42370
        _thriftId = thriftId;
42371
        _fieldName = fieldName;
42372
      }
42373
 
42374
      public short getThriftFieldId() {
42375
        return _thriftId;
42376
      }
42377
 
42378
      public String getFieldName() {
42379
        return _fieldName;
42380
      }
42381
    }
42382
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42383
    static {
42384
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42385
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42386
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_args.class, metaDataMap);
42387
    }
42388
 
42389
    public getBillableInventoryAndPendingOrders_args() {
42390
    }
42391
 
42392
    /**
42393
     * Performs a deep copy on <i>other</i>.
42394
     */
42395
    public getBillableInventoryAndPendingOrders_args(getBillableInventoryAndPendingOrders_args other) {
42396
    }
42397
 
42398
    public getBillableInventoryAndPendingOrders_args deepCopy() {
42399
      return new getBillableInventoryAndPendingOrders_args(this);
42400
    }
42401
 
42402
    @Override
42403
    public void clear() {
42404
    }
42405
 
42406
    public void setFieldValue(_Fields field, Object value) {
42407
      switch (field) {
42408
      }
42409
    }
42410
 
42411
    public Object getFieldValue(_Fields field) {
42412
      switch (field) {
42413
      }
42414
      throw new IllegalStateException();
42415
    }
42416
 
42417
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42418
    public boolean isSet(_Fields field) {
42419
      if (field == null) {
42420
        throw new IllegalArgumentException();
42421
      }
42422
 
42423
      switch (field) {
42424
      }
42425
      throw new IllegalStateException();
42426
    }
42427
 
42428
    @Override
42429
    public boolean equals(Object that) {
42430
      if (that == null)
42431
        return false;
42432
      if (that instanceof getBillableInventoryAndPendingOrders_args)
42433
        return this.equals((getBillableInventoryAndPendingOrders_args)that);
42434
      return false;
42435
    }
42436
 
42437
    public boolean equals(getBillableInventoryAndPendingOrders_args that) {
42438
      if (that == null)
42439
        return false;
42440
 
42441
      return true;
42442
    }
42443
 
42444
    @Override
42445
    public int hashCode() {
42446
      return 0;
42447
    }
42448
 
42449
    public int compareTo(getBillableInventoryAndPendingOrders_args other) {
42450
      if (!getClass().equals(other.getClass())) {
42451
        return getClass().getName().compareTo(other.getClass().getName());
42452
      }
42453
 
42454
      int lastComparison = 0;
42455
      getBillableInventoryAndPendingOrders_args typedOther = (getBillableInventoryAndPendingOrders_args)other;
42456
 
42457
      return 0;
42458
    }
42459
 
42460
    public _Fields fieldForId(int fieldId) {
42461
      return _Fields.findByThriftId(fieldId);
42462
    }
42463
 
42464
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42465
      org.apache.thrift.protocol.TField field;
42466
      iprot.readStructBegin();
42467
      while (true)
42468
      {
42469
        field = iprot.readFieldBegin();
42470
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42471
          break;
42472
        }
42473
        switch (field.id) {
42474
          default:
42475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42476
        }
42477
        iprot.readFieldEnd();
42478
      }
42479
      iprot.readStructEnd();
42480
      validate();
42481
    }
42482
 
42483
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42484
      validate();
42485
 
42486
      oprot.writeStructBegin(STRUCT_DESC);
42487
      oprot.writeFieldStop();
42488
      oprot.writeStructEnd();
42489
    }
42490
 
42491
    @Override
42492
    public String toString() {
42493
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_args(");
42494
      boolean first = true;
42495
 
42496
      sb.append(")");
42497
      return sb.toString();
42498
    }
42499
 
42500
    public void validate() throws org.apache.thrift.TException {
42501
      // check for required fields
42502
    }
42503
 
42504
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42505
      try {
42506
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42507
      } catch (org.apache.thrift.TException te) {
42508
        throw new java.io.IOException(te);
42509
      }
42510
    }
42511
 
42512
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42513
      try {
42514
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42515
      } catch (org.apache.thrift.TException te) {
42516
        throw new java.io.IOException(te);
42517
      }
42518
    }
42519
 
42520
  }
42521
 
42522
  public static class getBillableInventoryAndPendingOrders_result implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_result, getBillableInventoryAndPendingOrders_result._Fields>, java.io.Serializable, Cloneable   {
42523
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_result");
42524
 
42525
    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);
42526
 
42527
    private List<AvailableAndReservedStock> success; // required
42528
 
42529
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42530
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42531
      SUCCESS((short)0, "success");
42532
 
42533
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42534
 
42535
      static {
42536
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42537
          byName.put(field.getFieldName(), field);
42538
        }
42539
      }
42540
 
42541
      /**
42542
       * Find the _Fields constant that matches fieldId, or null if its not found.
42543
       */
42544
      public static _Fields findByThriftId(int fieldId) {
42545
        switch(fieldId) {
42546
          case 0: // SUCCESS
42547
            return SUCCESS;
42548
          default:
42549
            return null;
42550
        }
42551
      }
42552
 
42553
      /**
42554
       * Find the _Fields constant that matches fieldId, throwing an exception
42555
       * if it is not found.
42556
       */
42557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42558
        _Fields fields = findByThriftId(fieldId);
42559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42560
        return fields;
42561
      }
42562
 
42563
      /**
42564
       * Find the _Fields constant that matches name, or null if its not found.
42565
       */
42566
      public static _Fields findByName(String name) {
42567
        return byName.get(name);
42568
      }
42569
 
42570
      private final short _thriftId;
42571
      private final String _fieldName;
42572
 
42573
      _Fields(short thriftId, String fieldName) {
42574
        _thriftId = thriftId;
42575
        _fieldName = fieldName;
42576
      }
42577
 
42578
      public short getThriftFieldId() {
42579
        return _thriftId;
42580
      }
42581
 
42582
      public String getFieldName() {
42583
        return _fieldName;
42584
      }
42585
    }
42586
 
42587
    // isset id assignments
42588
 
42589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42590
    static {
42591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42592
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42593
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
42594
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
42595
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42596
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_result.class, metaDataMap);
42597
    }
42598
 
42599
    public getBillableInventoryAndPendingOrders_result() {
42600
    }
42601
 
42602
    public getBillableInventoryAndPendingOrders_result(
42603
      List<AvailableAndReservedStock> success)
42604
    {
42605
      this();
42606
      this.success = success;
42607
    }
42608
 
42609
    /**
42610
     * Performs a deep copy on <i>other</i>.
42611
     */
42612
    public getBillableInventoryAndPendingOrders_result(getBillableInventoryAndPendingOrders_result other) {
42613
      if (other.isSetSuccess()) {
42614
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
42615
        for (AvailableAndReservedStock other_element : other.success) {
42616
          __this__success.add(new AvailableAndReservedStock(other_element));
42617
        }
42618
        this.success = __this__success;
42619
      }
42620
    }
42621
 
42622
    public getBillableInventoryAndPendingOrders_result deepCopy() {
42623
      return new getBillableInventoryAndPendingOrders_result(this);
42624
    }
42625
 
42626
    @Override
42627
    public void clear() {
42628
      this.success = null;
42629
    }
42630
 
42631
    public int getSuccessSize() {
42632
      return (this.success == null) ? 0 : this.success.size();
42633
    }
42634
 
42635
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
42636
      return (this.success == null) ? null : this.success.iterator();
42637
    }
42638
 
42639
    public void addToSuccess(AvailableAndReservedStock elem) {
42640
      if (this.success == null) {
42641
        this.success = new ArrayList<AvailableAndReservedStock>();
42642
      }
42643
      this.success.add(elem);
42644
    }
42645
 
42646
    public List<AvailableAndReservedStock> getSuccess() {
42647
      return this.success;
42648
    }
42649
 
42650
    public void setSuccess(List<AvailableAndReservedStock> success) {
42651
      this.success = success;
42652
    }
42653
 
42654
    public void unsetSuccess() {
42655
      this.success = null;
42656
    }
42657
 
42658
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
42659
    public boolean isSetSuccess() {
42660
      return this.success != null;
42661
    }
42662
 
42663
    public void setSuccessIsSet(boolean value) {
42664
      if (!value) {
42665
        this.success = null;
42666
      }
42667
    }
42668
 
42669
    public void setFieldValue(_Fields field, Object value) {
42670
      switch (field) {
42671
      case SUCCESS:
42672
        if (value == null) {
42673
          unsetSuccess();
42674
        } else {
42675
          setSuccess((List<AvailableAndReservedStock>)value);
42676
        }
42677
        break;
42678
 
42679
      }
42680
    }
42681
 
42682
    public Object getFieldValue(_Fields field) {
42683
      switch (field) {
42684
      case SUCCESS:
42685
        return getSuccess();
42686
 
42687
      }
42688
      throw new IllegalStateException();
42689
    }
42690
 
42691
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42692
    public boolean isSet(_Fields field) {
42693
      if (field == null) {
42694
        throw new IllegalArgumentException();
42695
      }
42696
 
42697
      switch (field) {
42698
      case SUCCESS:
42699
        return isSetSuccess();
42700
      }
42701
      throw new IllegalStateException();
42702
    }
42703
 
42704
    @Override
42705
    public boolean equals(Object that) {
42706
      if (that == null)
42707
        return false;
42708
      if (that instanceof getBillableInventoryAndPendingOrders_result)
42709
        return this.equals((getBillableInventoryAndPendingOrders_result)that);
42710
      return false;
42711
    }
42712
 
42713
    public boolean equals(getBillableInventoryAndPendingOrders_result that) {
42714
      if (that == null)
42715
        return false;
42716
 
42717
      boolean this_present_success = true && this.isSetSuccess();
42718
      boolean that_present_success = true && that.isSetSuccess();
42719
      if (this_present_success || that_present_success) {
42720
        if (!(this_present_success && that_present_success))
42721
          return false;
42722
        if (!this.success.equals(that.success))
42723
          return false;
42724
      }
42725
 
42726
      return true;
42727
    }
42728
 
42729
    @Override
42730
    public int hashCode() {
42731
      return 0;
42732
    }
42733
 
42734
    public int compareTo(getBillableInventoryAndPendingOrders_result other) {
42735
      if (!getClass().equals(other.getClass())) {
42736
        return getClass().getName().compareTo(other.getClass().getName());
42737
      }
42738
 
42739
      int lastComparison = 0;
42740
      getBillableInventoryAndPendingOrders_result typedOther = (getBillableInventoryAndPendingOrders_result)other;
42741
 
42742
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42743
      if (lastComparison != 0) {
42744
        return lastComparison;
42745
      }
42746
      if (isSetSuccess()) {
42747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42748
        if (lastComparison != 0) {
42749
          return lastComparison;
42750
        }
42751
      }
42752
      return 0;
42753
    }
42754
 
42755
    public _Fields fieldForId(int fieldId) {
42756
      return _Fields.findByThriftId(fieldId);
42757
    }
42758
 
42759
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42760
      org.apache.thrift.protocol.TField field;
42761
      iprot.readStructBegin();
42762
      while (true)
42763
      {
42764
        field = iprot.readFieldBegin();
42765
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42766
          break;
42767
        }
42768
        switch (field.id) {
42769
          case 0: // SUCCESS
42770
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42771
              {
10126 amar.kumar 42772
                org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
42773
                this.success = new ArrayList<AvailableAndReservedStock>(_list130.size);
42774
                for (int _i131 = 0; _i131 < _list130.size; ++_i131)
7149 amar.kumar 42775
                {
10126 amar.kumar 42776
                  AvailableAndReservedStock _elem132; // required
42777
                  _elem132 = new AvailableAndReservedStock();
42778
                  _elem132.read(iprot);
42779
                  this.success.add(_elem132);
7149 amar.kumar 42780
                }
42781
                iprot.readListEnd();
42782
              }
42783
            } else { 
42784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42785
            }
42786
            break;
42787
          default:
42788
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42789
        }
42790
        iprot.readFieldEnd();
42791
      }
42792
      iprot.readStructEnd();
42793
      validate();
42794
    }
42795
 
42796
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42797
      oprot.writeStructBegin(STRUCT_DESC);
42798
 
42799
      if (this.isSetSuccess()) {
42800
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42801
        {
42802
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10126 amar.kumar 42803
          for (AvailableAndReservedStock _iter133 : this.success)
7149 amar.kumar 42804
          {
10126 amar.kumar 42805
            _iter133.write(oprot);
7149 amar.kumar 42806
          }
42807
          oprot.writeListEnd();
42808
        }
42809
        oprot.writeFieldEnd();
42810
      }
42811
      oprot.writeFieldStop();
42812
      oprot.writeStructEnd();
42813
    }
42814
 
42815
    @Override
42816
    public String toString() {
42817
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_result(");
42818
      boolean first = true;
42819
 
42820
      sb.append("success:");
42821
      if (this.success == null) {
42822
        sb.append("null");
42823
      } else {
42824
        sb.append(this.success);
42825
      }
42826
      first = false;
42827
      sb.append(")");
42828
      return sb.toString();
42829
    }
42830
 
42831
    public void validate() throws org.apache.thrift.TException {
42832
      // check for required fields
42833
    }
42834
 
42835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42836
      try {
42837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42838
      } catch (org.apache.thrift.TException te) {
42839
        throw new java.io.IOException(te);
42840
      }
42841
    }
42842
 
42843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42844
      try {
42845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42846
      } catch (org.apache.thrift.TException te) {
42847
        throw new java.io.IOException(te);
42848
      }
42849
    }
42850
 
42851
  }
42852
 
7281 kshitij.so 42853
  public static class getWarehouseName_args implements org.apache.thrift.TBase<getWarehouseName_args, getWarehouseName_args._Fields>, java.io.Serializable, Cloneable   {
42854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_args");
42855
 
42856
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
42857
 
42858
    private long warehouse_id; // required
42859
 
42860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42862
      WAREHOUSE_ID((short)1, "warehouse_id");
42863
 
42864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42865
 
42866
      static {
42867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42868
          byName.put(field.getFieldName(), field);
42869
        }
42870
      }
42871
 
42872
      /**
42873
       * Find the _Fields constant that matches fieldId, or null if its not found.
42874
       */
42875
      public static _Fields findByThriftId(int fieldId) {
42876
        switch(fieldId) {
42877
          case 1: // WAREHOUSE_ID
42878
            return WAREHOUSE_ID;
42879
          default:
42880
            return null;
42881
        }
42882
      }
42883
 
42884
      /**
42885
       * Find the _Fields constant that matches fieldId, throwing an exception
42886
       * if it is not found.
42887
       */
42888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42889
        _Fields fields = findByThriftId(fieldId);
42890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42891
        return fields;
42892
      }
42893
 
42894
      /**
42895
       * Find the _Fields constant that matches name, or null if its not found.
42896
       */
42897
      public static _Fields findByName(String name) {
42898
        return byName.get(name);
42899
      }
42900
 
42901
      private final short _thriftId;
42902
      private final String _fieldName;
42903
 
42904
      _Fields(short thriftId, String fieldName) {
42905
        _thriftId = thriftId;
42906
        _fieldName = fieldName;
42907
      }
42908
 
42909
      public short getThriftFieldId() {
42910
        return _thriftId;
42911
      }
42912
 
42913
      public String getFieldName() {
42914
        return _fieldName;
42915
      }
42916
    }
42917
 
42918
    // isset id assignments
42919
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
42920
    private BitSet __isset_bit_vector = new BitSet(1);
42921
 
42922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42923
    static {
42924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42925
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
42927
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42928
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_args.class, metaDataMap);
42929
    }
42930
 
42931
    public getWarehouseName_args() {
42932
    }
42933
 
42934
    public getWarehouseName_args(
42935
      long warehouse_id)
42936
    {
42937
      this();
42938
      this.warehouse_id = warehouse_id;
42939
      setWarehouse_idIsSet(true);
42940
    }
42941
 
42942
    /**
42943
     * Performs a deep copy on <i>other</i>.
42944
     */
42945
    public getWarehouseName_args(getWarehouseName_args other) {
42946
      __isset_bit_vector.clear();
42947
      __isset_bit_vector.or(other.__isset_bit_vector);
42948
      this.warehouse_id = other.warehouse_id;
42949
    }
42950
 
42951
    public getWarehouseName_args deepCopy() {
42952
      return new getWarehouseName_args(this);
42953
    }
42954
 
42955
    @Override
42956
    public void clear() {
42957
      setWarehouse_idIsSet(false);
42958
      this.warehouse_id = 0;
42959
    }
42960
 
42961
    public long getWarehouse_id() {
42962
      return this.warehouse_id;
42963
    }
42964
 
42965
    public void setWarehouse_id(long warehouse_id) {
42966
      this.warehouse_id = warehouse_id;
42967
      setWarehouse_idIsSet(true);
42968
    }
42969
 
42970
    public void unsetWarehouse_id() {
42971
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
42972
    }
42973
 
42974
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
42975
    public boolean isSetWarehouse_id() {
42976
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
42977
    }
42978
 
42979
    public void setWarehouse_idIsSet(boolean value) {
42980
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
42981
    }
42982
 
42983
    public void setFieldValue(_Fields field, Object value) {
42984
      switch (field) {
42985
      case WAREHOUSE_ID:
42986
        if (value == null) {
42987
          unsetWarehouse_id();
42988
        } else {
42989
          setWarehouse_id((Long)value);
42990
        }
42991
        break;
42992
 
42993
      }
42994
    }
42995
 
42996
    public Object getFieldValue(_Fields field) {
42997
      switch (field) {
42998
      case WAREHOUSE_ID:
42999
        return Long.valueOf(getWarehouse_id());
43000
 
43001
      }
43002
      throw new IllegalStateException();
43003
    }
43004
 
43005
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43006
    public boolean isSet(_Fields field) {
43007
      if (field == null) {
43008
        throw new IllegalArgumentException();
43009
      }
43010
 
43011
      switch (field) {
43012
      case WAREHOUSE_ID:
43013
        return isSetWarehouse_id();
43014
      }
43015
      throw new IllegalStateException();
43016
    }
43017
 
43018
    @Override
43019
    public boolean equals(Object that) {
43020
      if (that == null)
43021
        return false;
43022
      if (that instanceof getWarehouseName_args)
43023
        return this.equals((getWarehouseName_args)that);
43024
      return false;
43025
    }
43026
 
43027
    public boolean equals(getWarehouseName_args that) {
43028
      if (that == null)
43029
        return false;
43030
 
43031
      boolean this_present_warehouse_id = true;
43032
      boolean that_present_warehouse_id = true;
43033
      if (this_present_warehouse_id || that_present_warehouse_id) {
43034
        if (!(this_present_warehouse_id && that_present_warehouse_id))
43035
          return false;
43036
        if (this.warehouse_id != that.warehouse_id)
43037
          return false;
43038
      }
43039
 
43040
      return true;
43041
    }
43042
 
43043
    @Override
43044
    public int hashCode() {
43045
      return 0;
43046
    }
43047
 
43048
    public int compareTo(getWarehouseName_args other) {
43049
      if (!getClass().equals(other.getClass())) {
43050
        return getClass().getName().compareTo(other.getClass().getName());
43051
      }
43052
 
43053
      int lastComparison = 0;
43054
      getWarehouseName_args typedOther = (getWarehouseName_args)other;
43055
 
43056
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
43057
      if (lastComparison != 0) {
43058
        return lastComparison;
43059
      }
43060
      if (isSetWarehouse_id()) {
43061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
43062
        if (lastComparison != 0) {
43063
          return lastComparison;
43064
        }
43065
      }
43066
      return 0;
43067
    }
43068
 
43069
    public _Fields fieldForId(int fieldId) {
43070
      return _Fields.findByThriftId(fieldId);
43071
    }
43072
 
43073
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43074
      org.apache.thrift.protocol.TField field;
43075
      iprot.readStructBegin();
43076
      while (true)
43077
      {
43078
        field = iprot.readFieldBegin();
43079
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43080
          break;
43081
        }
43082
        switch (field.id) {
43083
          case 1: // WAREHOUSE_ID
43084
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43085
              this.warehouse_id = iprot.readI64();
43086
              setWarehouse_idIsSet(true);
43087
            } else { 
43088
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43089
            }
43090
            break;
43091
          default:
43092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43093
        }
43094
        iprot.readFieldEnd();
43095
      }
43096
      iprot.readStructEnd();
43097
      validate();
43098
    }
43099
 
43100
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43101
      validate();
43102
 
43103
      oprot.writeStructBegin(STRUCT_DESC);
43104
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
43105
      oprot.writeI64(this.warehouse_id);
43106
      oprot.writeFieldEnd();
43107
      oprot.writeFieldStop();
43108
      oprot.writeStructEnd();
43109
    }
43110
 
43111
    @Override
43112
    public String toString() {
43113
      StringBuilder sb = new StringBuilder("getWarehouseName_args(");
43114
      boolean first = true;
43115
 
43116
      sb.append("warehouse_id:");
43117
      sb.append(this.warehouse_id);
43118
      first = false;
43119
      sb.append(")");
43120
      return sb.toString();
43121
    }
43122
 
43123
    public void validate() throws org.apache.thrift.TException {
43124
      // check for required fields
43125
    }
43126
 
43127
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43128
      try {
43129
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43130
      } catch (org.apache.thrift.TException te) {
43131
        throw new java.io.IOException(te);
43132
      }
43133
    }
43134
 
43135
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43136
      try {
43137
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43138
        __isset_bit_vector = new BitSet(1);
43139
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43140
      } catch (org.apache.thrift.TException te) {
43141
        throw new java.io.IOException(te);
43142
      }
43143
    }
43144
 
43145
  }
43146
 
43147
  public static class getWarehouseName_result implements org.apache.thrift.TBase<getWarehouseName_result, getWarehouseName_result._Fields>, java.io.Serializable, Cloneable   {
43148
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_result");
43149
 
43150
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
43151
 
43152
    private String success; // required
43153
 
43154
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43155
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43156
      SUCCESS((short)0, "success");
43157
 
43158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43159
 
43160
      static {
43161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43162
          byName.put(field.getFieldName(), field);
43163
        }
43164
      }
43165
 
43166
      /**
43167
       * Find the _Fields constant that matches fieldId, or null if its not found.
43168
       */
43169
      public static _Fields findByThriftId(int fieldId) {
43170
        switch(fieldId) {
43171
          case 0: // SUCCESS
43172
            return SUCCESS;
43173
          default:
43174
            return null;
43175
        }
43176
      }
43177
 
43178
      /**
43179
       * Find the _Fields constant that matches fieldId, throwing an exception
43180
       * if it is not found.
43181
       */
43182
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43183
        _Fields fields = findByThriftId(fieldId);
43184
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43185
        return fields;
43186
      }
43187
 
43188
      /**
43189
       * Find the _Fields constant that matches name, or null if its not found.
43190
       */
43191
      public static _Fields findByName(String name) {
43192
        return byName.get(name);
43193
      }
43194
 
43195
      private final short _thriftId;
43196
      private final String _fieldName;
43197
 
43198
      _Fields(short thriftId, String fieldName) {
43199
        _thriftId = thriftId;
43200
        _fieldName = fieldName;
43201
      }
43202
 
43203
      public short getThriftFieldId() {
43204
        return _thriftId;
43205
      }
43206
 
43207
      public String getFieldName() {
43208
        return _fieldName;
43209
      }
43210
    }
43211
 
43212
    // isset id assignments
43213
 
43214
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43215
    static {
43216
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43217
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
43219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_result.class, metaDataMap);
43221
    }
43222
 
43223
    public getWarehouseName_result() {
43224
    }
43225
 
43226
    public getWarehouseName_result(
43227
      String success)
43228
    {
43229
      this();
43230
      this.success = success;
43231
    }
43232
 
43233
    /**
43234
     * Performs a deep copy on <i>other</i>.
43235
     */
43236
    public getWarehouseName_result(getWarehouseName_result other) {
43237
      if (other.isSetSuccess()) {
43238
        this.success = other.success;
43239
      }
43240
    }
43241
 
43242
    public getWarehouseName_result deepCopy() {
43243
      return new getWarehouseName_result(this);
43244
    }
43245
 
43246
    @Override
43247
    public void clear() {
43248
      this.success = null;
43249
    }
43250
 
43251
    public String getSuccess() {
43252
      return this.success;
43253
    }
43254
 
43255
    public void setSuccess(String success) {
43256
      this.success = success;
43257
    }
43258
 
43259
    public void unsetSuccess() {
43260
      this.success = null;
43261
    }
43262
 
43263
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
43264
    public boolean isSetSuccess() {
43265
      return this.success != null;
43266
    }
43267
 
43268
    public void setSuccessIsSet(boolean value) {
43269
      if (!value) {
43270
        this.success = null;
43271
      }
43272
    }
43273
 
43274
    public void setFieldValue(_Fields field, Object value) {
43275
      switch (field) {
43276
      case SUCCESS:
43277
        if (value == null) {
43278
          unsetSuccess();
43279
        } else {
43280
          setSuccess((String)value);
43281
        }
43282
        break;
43283
 
43284
      }
43285
    }
43286
 
43287
    public Object getFieldValue(_Fields field) {
43288
      switch (field) {
43289
      case SUCCESS:
43290
        return getSuccess();
43291
 
43292
      }
43293
      throw new IllegalStateException();
43294
    }
43295
 
43296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43297
    public boolean isSet(_Fields field) {
43298
      if (field == null) {
43299
        throw new IllegalArgumentException();
43300
      }
43301
 
43302
      switch (field) {
43303
      case SUCCESS:
43304
        return isSetSuccess();
43305
      }
43306
      throw new IllegalStateException();
43307
    }
43308
 
43309
    @Override
43310
    public boolean equals(Object that) {
43311
      if (that == null)
43312
        return false;
43313
      if (that instanceof getWarehouseName_result)
43314
        return this.equals((getWarehouseName_result)that);
43315
      return false;
43316
    }
43317
 
43318
    public boolean equals(getWarehouseName_result that) {
43319
      if (that == null)
43320
        return false;
43321
 
43322
      boolean this_present_success = true && this.isSetSuccess();
43323
      boolean that_present_success = true && that.isSetSuccess();
43324
      if (this_present_success || that_present_success) {
43325
        if (!(this_present_success && that_present_success))
43326
          return false;
43327
        if (!this.success.equals(that.success))
43328
          return false;
43329
      }
43330
 
43331
      return true;
43332
    }
43333
 
43334
    @Override
43335
    public int hashCode() {
43336
      return 0;
43337
    }
43338
 
43339
    public int compareTo(getWarehouseName_result other) {
43340
      if (!getClass().equals(other.getClass())) {
43341
        return getClass().getName().compareTo(other.getClass().getName());
43342
      }
43343
 
43344
      int lastComparison = 0;
43345
      getWarehouseName_result typedOther = (getWarehouseName_result)other;
43346
 
43347
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43348
      if (lastComparison != 0) {
43349
        return lastComparison;
43350
      }
43351
      if (isSetSuccess()) {
43352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43353
        if (lastComparison != 0) {
43354
          return lastComparison;
43355
        }
43356
      }
43357
      return 0;
43358
    }
43359
 
43360
    public _Fields fieldForId(int fieldId) {
43361
      return _Fields.findByThriftId(fieldId);
43362
    }
43363
 
43364
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43365
      org.apache.thrift.protocol.TField field;
43366
      iprot.readStructBegin();
43367
      while (true)
43368
      {
43369
        field = iprot.readFieldBegin();
43370
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43371
          break;
43372
        }
43373
        switch (field.id) {
43374
          case 0: // SUCCESS
43375
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
43376
              this.success = iprot.readString();
43377
            } else { 
43378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43379
            }
43380
            break;
43381
          default:
43382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43383
        }
43384
        iprot.readFieldEnd();
43385
      }
43386
      iprot.readStructEnd();
43387
      validate();
43388
    }
43389
 
43390
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43391
      oprot.writeStructBegin(STRUCT_DESC);
43392
 
43393
      if (this.isSetSuccess()) {
43394
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43395
        oprot.writeString(this.success);
43396
        oprot.writeFieldEnd();
43397
      }
43398
      oprot.writeFieldStop();
43399
      oprot.writeStructEnd();
43400
    }
43401
 
43402
    @Override
43403
    public String toString() {
43404
      StringBuilder sb = new StringBuilder("getWarehouseName_result(");
43405
      boolean first = true;
43406
 
43407
      sb.append("success:");
43408
      if (this.success == null) {
43409
        sb.append("null");
43410
      } else {
43411
        sb.append(this.success);
43412
      }
43413
      first = false;
43414
      sb.append(")");
43415
      return sb.toString();
43416
    }
43417
 
43418
    public void validate() throws org.apache.thrift.TException {
43419
      // check for required fields
43420
    }
43421
 
43422
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43423
      try {
43424
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43425
      } catch (org.apache.thrift.TException te) {
43426
        throw new java.io.IOException(te);
43427
      }
43428
    }
43429
 
43430
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43431
      try {
43432
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43433
      } catch (org.apache.thrift.TException te) {
43434
        throw new java.io.IOException(te);
43435
      }
43436
    }
43437
 
43438
  }
43439
 
43440
  public static class getAmazonInventoryForItem_args implements org.apache.thrift.TBase<getAmazonInventoryForItem_args, getAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
43441
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_args");
43442
 
43443
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
43444
 
43445
    private long item_id; // required
43446
 
43447
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43448
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43449
      ITEM_ID((short)1, "item_id");
43450
 
43451
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43452
 
43453
      static {
43454
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43455
          byName.put(field.getFieldName(), field);
43456
        }
43457
      }
43458
 
43459
      /**
43460
       * Find the _Fields constant that matches fieldId, or null if its not found.
43461
       */
43462
      public static _Fields findByThriftId(int fieldId) {
43463
        switch(fieldId) {
43464
          case 1: // ITEM_ID
43465
            return ITEM_ID;
43466
          default:
43467
            return null;
43468
        }
43469
      }
43470
 
43471
      /**
43472
       * Find the _Fields constant that matches fieldId, throwing an exception
43473
       * if it is not found.
43474
       */
43475
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43476
        _Fields fields = findByThriftId(fieldId);
43477
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43478
        return fields;
43479
      }
43480
 
43481
      /**
43482
       * Find the _Fields constant that matches name, or null if its not found.
43483
       */
43484
      public static _Fields findByName(String name) {
43485
        return byName.get(name);
43486
      }
43487
 
43488
      private final short _thriftId;
43489
      private final String _fieldName;
43490
 
43491
      _Fields(short thriftId, String fieldName) {
43492
        _thriftId = thriftId;
43493
        _fieldName = fieldName;
43494
      }
43495
 
43496
      public short getThriftFieldId() {
43497
        return _thriftId;
43498
      }
43499
 
43500
      public String getFieldName() {
43501
        return _fieldName;
43502
      }
43503
    }
43504
 
43505
    // isset id assignments
43506
    private static final int __ITEM_ID_ISSET_ID = 0;
43507
    private BitSet __isset_bit_vector = new BitSet(1);
43508
 
43509
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43510
    static {
43511
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43512
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43513
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43514
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43515
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_args.class, metaDataMap);
43516
    }
43517
 
43518
    public getAmazonInventoryForItem_args() {
43519
    }
43520
 
43521
    public getAmazonInventoryForItem_args(
43522
      long item_id)
43523
    {
43524
      this();
43525
      this.item_id = item_id;
43526
      setItem_idIsSet(true);
43527
    }
43528
 
43529
    /**
43530
     * Performs a deep copy on <i>other</i>.
43531
     */
43532
    public getAmazonInventoryForItem_args(getAmazonInventoryForItem_args other) {
43533
      __isset_bit_vector.clear();
43534
      __isset_bit_vector.or(other.__isset_bit_vector);
43535
      this.item_id = other.item_id;
43536
    }
43537
 
43538
    public getAmazonInventoryForItem_args deepCopy() {
43539
      return new getAmazonInventoryForItem_args(this);
43540
    }
43541
 
43542
    @Override
43543
    public void clear() {
43544
      setItem_idIsSet(false);
43545
      this.item_id = 0;
43546
    }
43547
 
43548
    public long getItem_id() {
43549
      return this.item_id;
43550
    }
43551
 
43552
    public void setItem_id(long item_id) {
43553
      this.item_id = item_id;
43554
      setItem_idIsSet(true);
43555
    }
43556
 
43557
    public void unsetItem_id() {
43558
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
43559
    }
43560
 
43561
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
43562
    public boolean isSetItem_id() {
43563
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
43564
    }
43565
 
43566
    public void setItem_idIsSet(boolean value) {
43567
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
43568
    }
43569
 
43570
    public void setFieldValue(_Fields field, Object value) {
43571
      switch (field) {
43572
      case ITEM_ID:
43573
        if (value == null) {
43574
          unsetItem_id();
43575
        } else {
43576
          setItem_id((Long)value);
43577
        }
43578
        break;
43579
 
43580
      }
43581
    }
43582
 
43583
    public Object getFieldValue(_Fields field) {
43584
      switch (field) {
43585
      case ITEM_ID:
43586
        return Long.valueOf(getItem_id());
43587
 
43588
      }
43589
      throw new IllegalStateException();
43590
    }
43591
 
43592
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43593
    public boolean isSet(_Fields field) {
43594
      if (field == null) {
43595
        throw new IllegalArgumentException();
43596
      }
43597
 
43598
      switch (field) {
43599
      case ITEM_ID:
43600
        return isSetItem_id();
43601
      }
43602
      throw new IllegalStateException();
43603
    }
43604
 
43605
    @Override
43606
    public boolean equals(Object that) {
43607
      if (that == null)
43608
        return false;
43609
      if (that instanceof getAmazonInventoryForItem_args)
43610
        return this.equals((getAmazonInventoryForItem_args)that);
43611
      return false;
43612
    }
43613
 
43614
    public boolean equals(getAmazonInventoryForItem_args that) {
43615
      if (that == null)
43616
        return false;
43617
 
43618
      boolean this_present_item_id = true;
43619
      boolean that_present_item_id = true;
43620
      if (this_present_item_id || that_present_item_id) {
43621
        if (!(this_present_item_id && that_present_item_id))
43622
          return false;
43623
        if (this.item_id != that.item_id)
43624
          return false;
43625
      }
43626
 
43627
      return true;
43628
    }
43629
 
43630
    @Override
43631
    public int hashCode() {
43632
      return 0;
43633
    }
43634
 
43635
    public int compareTo(getAmazonInventoryForItem_args other) {
43636
      if (!getClass().equals(other.getClass())) {
43637
        return getClass().getName().compareTo(other.getClass().getName());
43638
      }
43639
 
43640
      int lastComparison = 0;
43641
      getAmazonInventoryForItem_args typedOther = (getAmazonInventoryForItem_args)other;
43642
 
43643
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
43644
      if (lastComparison != 0) {
43645
        return lastComparison;
43646
      }
43647
      if (isSetItem_id()) {
43648
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
43649
        if (lastComparison != 0) {
43650
          return lastComparison;
43651
        }
43652
      }
43653
      return 0;
43654
    }
43655
 
43656
    public _Fields fieldForId(int fieldId) {
43657
      return _Fields.findByThriftId(fieldId);
43658
    }
43659
 
43660
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43661
      org.apache.thrift.protocol.TField field;
43662
      iprot.readStructBegin();
43663
      while (true)
43664
      {
43665
        field = iprot.readFieldBegin();
43666
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43667
          break;
43668
        }
43669
        switch (field.id) {
43670
          case 1: // ITEM_ID
43671
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43672
              this.item_id = iprot.readI64();
43673
              setItem_idIsSet(true);
43674
            } else { 
43675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43676
            }
43677
            break;
43678
          default:
43679
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43680
        }
43681
        iprot.readFieldEnd();
43682
      }
43683
      iprot.readStructEnd();
43684
      validate();
43685
    }
43686
 
43687
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43688
      validate();
43689
 
43690
      oprot.writeStructBegin(STRUCT_DESC);
43691
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
43692
      oprot.writeI64(this.item_id);
43693
      oprot.writeFieldEnd();
43694
      oprot.writeFieldStop();
43695
      oprot.writeStructEnd();
43696
    }
43697
 
43698
    @Override
43699
    public String toString() {
43700
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_args(");
43701
      boolean first = true;
43702
 
43703
      sb.append("item_id:");
43704
      sb.append(this.item_id);
43705
      first = false;
43706
      sb.append(")");
43707
      return sb.toString();
43708
    }
43709
 
43710
    public void validate() throws org.apache.thrift.TException {
43711
      // check for required fields
43712
    }
43713
 
43714
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43715
      try {
43716
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43717
      } catch (org.apache.thrift.TException te) {
43718
        throw new java.io.IOException(te);
43719
      }
43720
    }
43721
 
43722
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43723
      try {
43724
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43725
        __isset_bit_vector = new BitSet(1);
43726
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43727
      } catch (org.apache.thrift.TException te) {
43728
        throw new java.io.IOException(te);
43729
      }
43730
    }
43731
 
43732
  }
43733
 
43734
  public static class getAmazonInventoryForItem_result implements org.apache.thrift.TBase<getAmazonInventoryForItem_result, getAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
43735
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_result");
43736
 
43737
    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);
43738
 
43739
    private AmazonInventorySnapshot success; // required
43740
 
43741
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43742
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43743
      SUCCESS((short)0, "success");
43744
 
43745
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43746
 
43747
      static {
43748
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43749
          byName.put(field.getFieldName(), field);
43750
        }
43751
      }
43752
 
43753
      /**
43754
       * Find the _Fields constant that matches fieldId, or null if its not found.
43755
       */
43756
      public static _Fields findByThriftId(int fieldId) {
43757
        switch(fieldId) {
43758
          case 0: // SUCCESS
43759
            return SUCCESS;
43760
          default:
43761
            return null;
43762
        }
43763
      }
43764
 
43765
      /**
43766
       * Find the _Fields constant that matches fieldId, throwing an exception
43767
       * if it is not found.
43768
       */
43769
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43770
        _Fields fields = findByThriftId(fieldId);
43771
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43772
        return fields;
43773
      }
43774
 
43775
      /**
43776
       * Find the _Fields constant that matches name, or null if its not found.
43777
       */
43778
      public static _Fields findByName(String name) {
43779
        return byName.get(name);
43780
      }
43781
 
43782
      private final short _thriftId;
43783
      private final String _fieldName;
43784
 
43785
      _Fields(short thriftId, String fieldName) {
43786
        _thriftId = thriftId;
43787
        _fieldName = fieldName;
43788
      }
43789
 
43790
      public short getThriftFieldId() {
43791
        return _thriftId;
43792
      }
43793
 
43794
      public String getFieldName() {
43795
        return _fieldName;
43796
      }
43797
    }
43798
 
43799
    // isset id assignments
43800
 
43801
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43802
    static {
43803
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43804
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43805
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
43806
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43807
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_result.class, metaDataMap);
43808
    }
43809
 
43810
    public getAmazonInventoryForItem_result() {
43811
    }
43812
 
43813
    public getAmazonInventoryForItem_result(
43814
      AmazonInventorySnapshot success)
43815
    {
43816
      this();
43817
      this.success = success;
43818
    }
43819
 
43820
    /**
43821
     * Performs a deep copy on <i>other</i>.
43822
     */
43823
    public getAmazonInventoryForItem_result(getAmazonInventoryForItem_result other) {
43824
      if (other.isSetSuccess()) {
43825
        this.success = new AmazonInventorySnapshot(other.success);
43826
      }
43827
    }
43828
 
43829
    public getAmazonInventoryForItem_result deepCopy() {
43830
      return new getAmazonInventoryForItem_result(this);
43831
    }
43832
 
43833
    @Override
43834
    public void clear() {
43835
      this.success = null;
43836
    }
43837
 
43838
    public AmazonInventorySnapshot getSuccess() {
43839
      return this.success;
43840
    }
43841
 
43842
    public void setSuccess(AmazonInventorySnapshot success) {
43843
      this.success = success;
43844
    }
43845
 
43846
    public void unsetSuccess() {
43847
      this.success = null;
43848
    }
43849
 
43850
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
43851
    public boolean isSetSuccess() {
43852
      return this.success != null;
43853
    }
43854
 
43855
    public void setSuccessIsSet(boolean value) {
43856
      if (!value) {
43857
        this.success = null;
43858
      }
43859
    }
43860
 
43861
    public void setFieldValue(_Fields field, Object value) {
43862
      switch (field) {
43863
      case SUCCESS:
43864
        if (value == null) {
43865
          unsetSuccess();
43866
        } else {
43867
          setSuccess((AmazonInventorySnapshot)value);
43868
        }
43869
        break;
43870
 
43871
      }
43872
    }
43873
 
43874
    public Object getFieldValue(_Fields field) {
43875
      switch (field) {
43876
      case SUCCESS:
43877
        return getSuccess();
43878
 
43879
      }
43880
      throw new IllegalStateException();
43881
    }
43882
 
43883
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43884
    public boolean isSet(_Fields field) {
43885
      if (field == null) {
43886
        throw new IllegalArgumentException();
43887
      }
43888
 
43889
      switch (field) {
43890
      case SUCCESS:
43891
        return isSetSuccess();
43892
      }
43893
      throw new IllegalStateException();
43894
    }
43895
 
43896
    @Override
43897
    public boolean equals(Object that) {
43898
      if (that == null)
43899
        return false;
43900
      if (that instanceof getAmazonInventoryForItem_result)
43901
        return this.equals((getAmazonInventoryForItem_result)that);
43902
      return false;
43903
    }
43904
 
43905
    public boolean equals(getAmazonInventoryForItem_result that) {
43906
      if (that == null)
43907
        return false;
43908
 
43909
      boolean this_present_success = true && this.isSetSuccess();
43910
      boolean that_present_success = true && that.isSetSuccess();
43911
      if (this_present_success || that_present_success) {
43912
        if (!(this_present_success && that_present_success))
43913
          return false;
43914
        if (!this.success.equals(that.success))
43915
          return false;
43916
      }
43917
 
43918
      return true;
43919
    }
43920
 
43921
    @Override
43922
    public int hashCode() {
43923
      return 0;
43924
    }
43925
 
43926
    public int compareTo(getAmazonInventoryForItem_result other) {
43927
      if (!getClass().equals(other.getClass())) {
43928
        return getClass().getName().compareTo(other.getClass().getName());
43929
      }
43930
 
43931
      int lastComparison = 0;
43932
      getAmazonInventoryForItem_result typedOther = (getAmazonInventoryForItem_result)other;
43933
 
43934
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43935
      if (lastComparison != 0) {
43936
        return lastComparison;
43937
      }
43938
      if (isSetSuccess()) {
43939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43940
        if (lastComparison != 0) {
43941
          return lastComparison;
43942
        }
43943
      }
43944
      return 0;
43945
    }
43946
 
43947
    public _Fields fieldForId(int fieldId) {
43948
      return _Fields.findByThriftId(fieldId);
43949
    }
43950
 
43951
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43952
      org.apache.thrift.protocol.TField field;
43953
      iprot.readStructBegin();
43954
      while (true)
43955
      {
43956
        field = iprot.readFieldBegin();
43957
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43958
          break;
43959
        }
43960
        switch (field.id) {
43961
          case 0: // SUCCESS
43962
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
43963
              this.success = new AmazonInventorySnapshot();
43964
              this.success.read(iprot);
43965
            } else { 
43966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43967
            }
43968
            break;
43969
          default:
43970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43971
        }
43972
        iprot.readFieldEnd();
43973
      }
43974
      iprot.readStructEnd();
43975
      validate();
43976
    }
43977
 
43978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43979
      oprot.writeStructBegin(STRUCT_DESC);
43980
 
43981
      if (this.isSetSuccess()) {
43982
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43983
        this.success.write(oprot);
43984
        oprot.writeFieldEnd();
43985
      }
43986
      oprot.writeFieldStop();
43987
      oprot.writeStructEnd();
43988
    }
43989
 
43990
    @Override
43991
    public String toString() {
43992
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_result(");
43993
      boolean first = true;
43994
 
43995
      sb.append("success:");
43996
      if (this.success == null) {
43997
        sb.append("null");
43998
      } else {
43999
        sb.append(this.success);
44000
      }
44001
      first = false;
44002
      sb.append(")");
44003
      return sb.toString();
44004
    }
44005
 
44006
    public void validate() throws org.apache.thrift.TException {
44007
      // check for required fields
44008
    }
44009
 
44010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44011
      try {
44012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44013
      } catch (org.apache.thrift.TException te) {
44014
        throw new java.io.IOException(te);
44015
      }
44016
    }
44017
 
44018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44019
      try {
44020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44021
      } catch (org.apache.thrift.TException te) {
44022
        throw new java.io.IOException(te);
44023
      }
44024
    }
44025
 
44026
  }
44027
 
44028
  public static class getAllAmazonInventory_args implements org.apache.thrift.TBase<getAllAmazonInventory_args, getAllAmazonInventory_args._Fields>, java.io.Serializable, Cloneable   {
44029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_args");
44030
 
44031
 
44032
 
44033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44035
;
44036
 
44037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44038
 
44039
      static {
44040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44041
          byName.put(field.getFieldName(), field);
44042
        }
44043
      }
44044
 
44045
      /**
44046
       * Find the _Fields constant that matches fieldId, or null if its not found.
44047
       */
44048
      public static _Fields findByThriftId(int fieldId) {
44049
        switch(fieldId) {
44050
          default:
44051
            return null;
44052
        }
44053
      }
44054
 
44055
      /**
44056
       * Find the _Fields constant that matches fieldId, throwing an exception
44057
       * if it is not found.
44058
       */
44059
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44060
        _Fields fields = findByThriftId(fieldId);
44061
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44062
        return fields;
44063
      }
44064
 
44065
      /**
44066
       * Find the _Fields constant that matches name, or null if its not found.
44067
       */
44068
      public static _Fields findByName(String name) {
44069
        return byName.get(name);
44070
      }
44071
 
44072
      private final short _thriftId;
44073
      private final String _fieldName;
44074
 
44075
      _Fields(short thriftId, String fieldName) {
44076
        _thriftId = thriftId;
44077
        _fieldName = fieldName;
44078
      }
44079
 
44080
      public short getThriftFieldId() {
44081
        return _thriftId;
44082
      }
44083
 
44084
      public String getFieldName() {
44085
        return _fieldName;
44086
      }
44087
    }
44088
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44089
    static {
44090
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_args.class, metaDataMap);
44093
    }
44094
 
44095
    public getAllAmazonInventory_args() {
44096
    }
44097
 
44098
    /**
44099
     * Performs a deep copy on <i>other</i>.
44100
     */
44101
    public getAllAmazonInventory_args(getAllAmazonInventory_args other) {
44102
    }
44103
 
44104
    public getAllAmazonInventory_args deepCopy() {
44105
      return new getAllAmazonInventory_args(this);
44106
    }
44107
 
44108
    @Override
44109
    public void clear() {
44110
    }
44111
 
44112
    public void setFieldValue(_Fields field, Object value) {
44113
      switch (field) {
44114
      }
44115
    }
44116
 
44117
    public Object getFieldValue(_Fields field) {
44118
      switch (field) {
44119
      }
44120
      throw new IllegalStateException();
44121
    }
44122
 
44123
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44124
    public boolean isSet(_Fields field) {
44125
      if (field == null) {
44126
        throw new IllegalArgumentException();
44127
      }
44128
 
44129
      switch (field) {
44130
      }
44131
      throw new IllegalStateException();
44132
    }
44133
 
44134
    @Override
44135
    public boolean equals(Object that) {
44136
      if (that == null)
44137
        return false;
44138
      if (that instanceof getAllAmazonInventory_args)
44139
        return this.equals((getAllAmazonInventory_args)that);
44140
      return false;
44141
    }
44142
 
44143
    public boolean equals(getAllAmazonInventory_args that) {
44144
      if (that == null)
44145
        return false;
44146
 
44147
      return true;
44148
    }
44149
 
44150
    @Override
44151
    public int hashCode() {
44152
      return 0;
44153
    }
44154
 
44155
    public int compareTo(getAllAmazonInventory_args other) {
44156
      if (!getClass().equals(other.getClass())) {
44157
        return getClass().getName().compareTo(other.getClass().getName());
44158
      }
44159
 
44160
      int lastComparison = 0;
44161
      getAllAmazonInventory_args typedOther = (getAllAmazonInventory_args)other;
44162
 
44163
      return 0;
44164
    }
44165
 
44166
    public _Fields fieldForId(int fieldId) {
44167
      return _Fields.findByThriftId(fieldId);
44168
    }
44169
 
44170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44171
      org.apache.thrift.protocol.TField field;
44172
      iprot.readStructBegin();
44173
      while (true)
44174
      {
44175
        field = iprot.readFieldBegin();
44176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44177
          break;
44178
        }
44179
        switch (field.id) {
44180
          default:
44181
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44182
        }
44183
        iprot.readFieldEnd();
44184
      }
44185
      iprot.readStructEnd();
44186
      validate();
44187
    }
44188
 
44189
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44190
      validate();
44191
 
44192
      oprot.writeStructBegin(STRUCT_DESC);
44193
      oprot.writeFieldStop();
44194
      oprot.writeStructEnd();
44195
    }
44196
 
44197
    @Override
44198
    public String toString() {
44199
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_args(");
44200
      boolean first = true;
44201
 
44202
      sb.append(")");
44203
      return sb.toString();
44204
    }
44205
 
44206
    public void validate() throws org.apache.thrift.TException {
44207
      // check for required fields
44208
    }
44209
 
44210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44211
      try {
44212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44213
      } catch (org.apache.thrift.TException te) {
44214
        throw new java.io.IOException(te);
44215
      }
44216
    }
44217
 
44218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44219
      try {
44220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44221
      } catch (org.apache.thrift.TException te) {
44222
        throw new java.io.IOException(te);
44223
      }
44224
    }
44225
 
44226
  }
44227
 
44228
  public static class getAllAmazonInventory_result implements org.apache.thrift.TBase<getAllAmazonInventory_result, getAllAmazonInventory_result._Fields>, java.io.Serializable, Cloneable   {
44229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_result");
44230
 
44231
    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);
44232
 
44233
    private List<AmazonInventorySnapshot> success; // required
44234
 
44235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44237
      SUCCESS((short)0, "success");
44238
 
44239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44240
 
44241
      static {
44242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44243
          byName.put(field.getFieldName(), field);
44244
        }
44245
      }
44246
 
44247
      /**
44248
       * Find the _Fields constant that matches fieldId, or null if its not found.
44249
       */
44250
      public static _Fields findByThriftId(int fieldId) {
44251
        switch(fieldId) {
44252
          case 0: // SUCCESS
44253
            return SUCCESS;
44254
          default:
44255
            return null;
44256
        }
44257
      }
44258
 
44259
      /**
44260
       * Find the _Fields constant that matches fieldId, throwing an exception
44261
       * if it is not found.
44262
       */
44263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44264
        _Fields fields = findByThriftId(fieldId);
44265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44266
        return fields;
44267
      }
44268
 
44269
      /**
44270
       * Find the _Fields constant that matches name, or null if its not found.
44271
       */
44272
      public static _Fields findByName(String name) {
44273
        return byName.get(name);
44274
      }
44275
 
44276
      private final short _thriftId;
44277
      private final String _fieldName;
44278
 
44279
      _Fields(short thriftId, String fieldName) {
44280
        _thriftId = thriftId;
44281
        _fieldName = fieldName;
44282
      }
44283
 
44284
      public short getThriftFieldId() {
44285
        return _thriftId;
44286
      }
44287
 
44288
      public String getFieldName() {
44289
        return _fieldName;
44290
      }
44291
    }
44292
 
44293
    // isset id assignments
44294
 
44295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44296
    static {
44297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44298
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44299
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
44300
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class))));
44301
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44302
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_result.class, metaDataMap);
44303
    }
44304
 
44305
    public getAllAmazonInventory_result() {
44306
    }
44307
 
44308
    public getAllAmazonInventory_result(
44309
      List<AmazonInventorySnapshot> success)
44310
    {
44311
      this();
44312
      this.success = success;
44313
    }
44314
 
44315
    /**
44316
     * Performs a deep copy on <i>other</i>.
44317
     */
44318
    public getAllAmazonInventory_result(getAllAmazonInventory_result other) {
44319
      if (other.isSetSuccess()) {
44320
        List<AmazonInventorySnapshot> __this__success = new ArrayList<AmazonInventorySnapshot>();
44321
        for (AmazonInventorySnapshot other_element : other.success) {
44322
          __this__success.add(new AmazonInventorySnapshot(other_element));
44323
        }
44324
        this.success = __this__success;
44325
      }
44326
    }
44327
 
44328
    public getAllAmazonInventory_result deepCopy() {
44329
      return new getAllAmazonInventory_result(this);
44330
    }
44331
 
44332
    @Override
44333
    public void clear() {
44334
      this.success = null;
44335
    }
44336
 
44337
    public int getSuccessSize() {
44338
      return (this.success == null) ? 0 : this.success.size();
44339
    }
44340
 
44341
    public java.util.Iterator<AmazonInventorySnapshot> getSuccessIterator() {
44342
      return (this.success == null) ? null : this.success.iterator();
44343
    }
44344
 
44345
    public void addToSuccess(AmazonInventorySnapshot elem) {
44346
      if (this.success == null) {
44347
        this.success = new ArrayList<AmazonInventorySnapshot>();
44348
      }
44349
      this.success.add(elem);
44350
    }
44351
 
44352
    public List<AmazonInventorySnapshot> getSuccess() {
44353
      return this.success;
44354
    }
44355
 
44356
    public void setSuccess(List<AmazonInventorySnapshot> success) {
44357
      this.success = success;
44358
    }
44359
 
44360
    public void unsetSuccess() {
44361
      this.success = null;
44362
    }
44363
 
44364
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
44365
    public boolean isSetSuccess() {
44366
      return this.success != null;
44367
    }
44368
 
44369
    public void setSuccessIsSet(boolean value) {
44370
      if (!value) {
44371
        this.success = null;
44372
      }
44373
    }
44374
 
44375
    public void setFieldValue(_Fields field, Object value) {
44376
      switch (field) {
44377
      case SUCCESS:
44378
        if (value == null) {
44379
          unsetSuccess();
44380
        } else {
44381
          setSuccess((List<AmazonInventorySnapshot>)value);
44382
        }
44383
        break;
44384
 
44385
      }
44386
    }
44387
 
44388
    public Object getFieldValue(_Fields field) {
44389
      switch (field) {
44390
      case SUCCESS:
44391
        return getSuccess();
44392
 
44393
      }
44394
      throw new IllegalStateException();
44395
    }
44396
 
44397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44398
    public boolean isSet(_Fields field) {
44399
      if (field == null) {
44400
        throw new IllegalArgumentException();
44401
      }
44402
 
44403
      switch (field) {
44404
      case SUCCESS:
44405
        return isSetSuccess();
44406
      }
44407
      throw new IllegalStateException();
44408
    }
44409
 
44410
    @Override
44411
    public boolean equals(Object that) {
44412
      if (that == null)
44413
        return false;
44414
      if (that instanceof getAllAmazonInventory_result)
44415
        return this.equals((getAllAmazonInventory_result)that);
44416
      return false;
44417
    }
44418
 
44419
    public boolean equals(getAllAmazonInventory_result that) {
44420
      if (that == null)
44421
        return false;
44422
 
44423
      boolean this_present_success = true && this.isSetSuccess();
44424
      boolean that_present_success = true && that.isSetSuccess();
44425
      if (this_present_success || that_present_success) {
44426
        if (!(this_present_success && that_present_success))
44427
          return false;
44428
        if (!this.success.equals(that.success))
44429
          return false;
44430
      }
44431
 
44432
      return true;
44433
    }
44434
 
44435
    @Override
44436
    public int hashCode() {
44437
      return 0;
44438
    }
44439
 
44440
    public int compareTo(getAllAmazonInventory_result other) {
44441
      if (!getClass().equals(other.getClass())) {
44442
        return getClass().getName().compareTo(other.getClass().getName());
44443
      }
44444
 
44445
      int lastComparison = 0;
44446
      getAllAmazonInventory_result typedOther = (getAllAmazonInventory_result)other;
44447
 
44448
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
44449
      if (lastComparison != 0) {
44450
        return lastComparison;
44451
      }
44452
      if (isSetSuccess()) {
44453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
44454
        if (lastComparison != 0) {
44455
          return lastComparison;
44456
        }
44457
      }
44458
      return 0;
44459
    }
44460
 
44461
    public _Fields fieldForId(int fieldId) {
44462
      return _Fields.findByThriftId(fieldId);
44463
    }
44464
 
44465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44466
      org.apache.thrift.protocol.TField field;
44467
      iprot.readStructBegin();
44468
      while (true)
44469
      {
44470
        field = iprot.readFieldBegin();
44471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44472
          break;
44473
        }
44474
        switch (field.id) {
44475
          case 0: // SUCCESS
44476
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44477
              {
10126 amar.kumar 44478
                org.apache.thrift.protocol.TList _list134 = iprot.readListBegin();
44479
                this.success = new ArrayList<AmazonInventorySnapshot>(_list134.size);
44480
                for (int _i135 = 0; _i135 < _list134.size; ++_i135)
7281 kshitij.so 44481
                {
10126 amar.kumar 44482
                  AmazonInventorySnapshot _elem136; // required
44483
                  _elem136 = new AmazonInventorySnapshot();
44484
                  _elem136.read(iprot);
44485
                  this.success.add(_elem136);
7281 kshitij.so 44486
                }
44487
                iprot.readListEnd();
44488
              }
44489
            } else { 
44490
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44491
            }
44492
            break;
44493
          default:
44494
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44495
        }
44496
        iprot.readFieldEnd();
44497
      }
44498
      iprot.readStructEnd();
44499
      validate();
44500
    }
44501
 
44502
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44503
      oprot.writeStructBegin(STRUCT_DESC);
44504
 
44505
      if (this.isSetSuccess()) {
44506
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44507
        {
44508
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10126 amar.kumar 44509
          for (AmazonInventorySnapshot _iter137 : this.success)
7281 kshitij.so 44510
          {
10126 amar.kumar 44511
            _iter137.write(oprot);
7281 kshitij.so 44512
          }
44513
          oprot.writeListEnd();
44514
        }
44515
        oprot.writeFieldEnd();
44516
      }
44517
      oprot.writeFieldStop();
44518
      oprot.writeStructEnd();
44519
    }
44520
 
44521
    @Override
44522
    public String toString() {
44523
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_result(");
44524
      boolean first = true;
44525
 
44526
      sb.append("success:");
44527
      if (this.success == null) {
44528
        sb.append("null");
44529
      } else {
44530
        sb.append(this.success);
44531
      }
44532
      first = false;
44533
      sb.append(")");
44534
      return sb.toString();
44535
    }
44536
 
44537
    public void validate() throws org.apache.thrift.TException {
44538
      // check for required fields
44539
    }
44540
 
44541
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44542
      try {
44543
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44544
      } catch (org.apache.thrift.TException te) {
44545
        throw new java.io.IOException(te);
44546
      }
44547
    }
44548
 
44549
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44550
      try {
44551
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44552
      } catch (org.apache.thrift.TException te) {
44553
        throw new java.io.IOException(te);
44554
      }
44555
    }
44556
 
44557
  }
44558
 
44559
  public static class addOrUpdateAmazonInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_args, addOrUpdateAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
44560
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_args");
44561
 
44562
    private static final org.apache.thrift.protocol.TField AMAZON_INVENTORY_SNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonInventorySnapshot", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10450 vikram.rag 44563
    private static final org.apache.thrift.protocol.TField TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("time", org.apache.thrift.protocol.TType.I64, (short)2);
7281 kshitij.so 44564
 
44565
    private AmazonInventorySnapshot amazonInventorySnapshot; // required
10450 vikram.rag 44566
    private long time; // required
7281 kshitij.so 44567
 
44568
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44569
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10450 vikram.rag 44570
      AMAZON_INVENTORY_SNAPSHOT((short)1, "amazonInventorySnapshot"),
44571
      TIME((short)2, "time");
7281 kshitij.so 44572
 
44573
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44574
 
44575
      static {
44576
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44577
          byName.put(field.getFieldName(), field);
44578
        }
44579
      }
44580
 
44581
      /**
44582
       * Find the _Fields constant that matches fieldId, or null if its not found.
44583
       */
44584
      public static _Fields findByThriftId(int fieldId) {
44585
        switch(fieldId) {
44586
          case 1: // AMAZON_INVENTORY_SNAPSHOT
44587
            return AMAZON_INVENTORY_SNAPSHOT;
10450 vikram.rag 44588
          case 2: // TIME
44589
            return TIME;
7281 kshitij.so 44590
          default:
44591
            return null;
44592
        }
44593
      }
44594
 
44595
      /**
44596
       * Find the _Fields constant that matches fieldId, throwing an exception
44597
       * if it is not found.
44598
       */
44599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44600
        _Fields fields = findByThriftId(fieldId);
44601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44602
        return fields;
44603
      }
44604
 
44605
      /**
44606
       * Find the _Fields constant that matches name, or null if its not found.
44607
       */
44608
      public static _Fields findByName(String name) {
44609
        return byName.get(name);
44610
      }
44611
 
44612
      private final short _thriftId;
44613
      private final String _fieldName;
44614
 
44615
      _Fields(short thriftId, String fieldName) {
44616
        _thriftId = thriftId;
44617
        _fieldName = fieldName;
44618
      }
44619
 
44620
      public short getThriftFieldId() {
44621
        return _thriftId;
44622
      }
44623
 
44624
      public String getFieldName() {
44625
        return _fieldName;
44626
      }
44627
    }
44628
 
44629
    // isset id assignments
10450 vikram.rag 44630
    private static final int __TIME_ISSET_ID = 0;
44631
    private BitSet __isset_bit_vector = new BitSet(1);
7281 kshitij.so 44632
 
44633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44634
    static {
44635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44636
      tmpMap.put(_Fields.AMAZON_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44637
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
10450 vikram.rag 44638
      tmpMap.put(_Fields.TIME, new org.apache.thrift.meta_data.FieldMetaData("time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7281 kshitij.so 44640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_args.class, metaDataMap);
44642
    }
44643
 
44644
    public addOrUpdateAmazonInventoryForItem_args() {
44645
    }
44646
 
44647
    public addOrUpdateAmazonInventoryForItem_args(
10450 vikram.rag 44648
      AmazonInventorySnapshot amazonInventorySnapshot,
44649
      long time)
7281 kshitij.so 44650
    {
44651
      this();
44652
      this.amazonInventorySnapshot = amazonInventorySnapshot;
10450 vikram.rag 44653
      this.time = time;
44654
      setTimeIsSet(true);
7281 kshitij.so 44655
    }
44656
 
44657
    /**
44658
     * Performs a deep copy on <i>other</i>.
44659
     */
44660
    public addOrUpdateAmazonInventoryForItem_args(addOrUpdateAmazonInventoryForItem_args other) {
10450 vikram.rag 44661
      __isset_bit_vector.clear();
44662
      __isset_bit_vector.or(other.__isset_bit_vector);
7281 kshitij.so 44663
      if (other.isSetAmazonInventorySnapshot()) {
44664
        this.amazonInventorySnapshot = new AmazonInventorySnapshot(other.amazonInventorySnapshot);
44665
      }
10450 vikram.rag 44666
      this.time = other.time;
7281 kshitij.so 44667
    }
44668
 
44669
    public addOrUpdateAmazonInventoryForItem_args deepCopy() {
44670
      return new addOrUpdateAmazonInventoryForItem_args(this);
44671
    }
44672
 
44673
    @Override
44674
    public void clear() {
44675
      this.amazonInventorySnapshot = null;
10450 vikram.rag 44676
      setTimeIsSet(false);
44677
      this.time = 0;
7281 kshitij.so 44678
    }
44679
 
44680
    public AmazonInventorySnapshot getAmazonInventorySnapshot() {
44681
      return this.amazonInventorySnapshot;
44682
    }
44683
 
44684
    public void setAmazonInventorySnapshot(AmazonInventorySnapshot amazonInventorySnapshot) {
44685
      this.amazonInventorySnapshot = amazonInventorySnapshot;
44686
    }
44687
 
44688
    public void unsetAmazonInventorySnapshot() {
44689
      this.amazonInventorySnapshot = null;
44690
    }
44691
 
44692
    /** Returns true if field amazonInventorySnapshot is set (has been assigned a value) and false otherwise */
44693
    public boolean isSetAmazonInventorySnapshot() {
44694
      return this.amazonInventorySnapshot != null;
44695
    }
44696
 
44697
    public void setAmazonInventorySnapshotIsSet(boolean value) {
44698
      if (!value) {
44699
        this.amazonInventorySnapshot = null;
44700
      }
44701
    }
44702
 
10450 vikram.rag 44703
    public long getTime() {
44704
      return this.time;
44705
    }
44706
 
44707
    public void setTime(long time) {
44708
      this.time = time;
44709
      setTimeIsSet(true);
44710
    }
44711
 
44712
    public void unsetTime() {
44713
      __isset_bit_vector.clear(__TIME_ISSET_ID);
44714
    }
44715
 
44716
    /** Returns true if field time is set (has been assigned a value) and false otherwise */
44717
    public boolean isSetTime() {
44718
      return __isset_bit_vector.get(__TIME_ISSET_ID);
44719
    }
44720
 
44721
    public void setTimeIsSet(boolean value) {
44722
      __isset_bit_vector.set(__TIME_ISSET_ID, value);
44723
    }
44724
 
7281 kshitij.so 44725
    public void setFieldValue(_Fields field, Object value) {
44726
      switch (field) {
44727
      case AMAZON_INVENTORY_SNAPSHOT:
44728
        if (value == null) {
44729
          unsetAmazonInventorySnapshot();
44730
        } else {
44731
          setAmazonInventorySnapshot((AmazonInventorySnapshot)value);
44732
        }
44733
        break;
44734
 
10450 vikram.rag 44735
      case TIME:
44736
        if (value == null) {
44737
          unsetTime();
44738
        } else {
44739
          setTime((Long)value);
44740
        }
44741
        break;
44742
 
7281 kshitij.so 44743
      }
44744
    }
44745
 
44746
    public Object getFieldValue(_Fields field) {
44747
      switch (field) {
44748
      case AMAZON_INVENTORY_SNAPSHOT:
44749
        return getAmazonInventorySnapshot();
44750
 
10450 vikram.rag 44751
      case TIME:
44752
        return Long.valueOf(getTime());
44753
 
7281 kshitij.so 44754
      }
44755
      throw new IllegalStateException();
44756
    }
44757
 
44758
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44759
    public boolean isSet(_Fields field) {
44760
      if (field == null) {
44761
        throw new IllegalArgumentException();
44762
      }
44763
 
44764
      switch (field) {
44765
      case AMAZON_INVENTORY_SNAPSHOT:
44766
        return isSetAmazonInventorySnapshot();
10450 vikram.rag 44767
      case TIME:
44768
        return isSetTime();
7281 kshitij.so 44769
      }
44770
      throw new IllegalStateException();
44771
    }
44772
 
44773
    @Override
44774
    public boolean equals(Object that) {
44775
      if (that == null)
44776
        return false;
44777
      if (that instanceof addOrUpdateAmazonInventoryForItem_args)
44778
        return this.equals((addOrUpdateAmazonInventoryForItem_args)that);
44779
      return false;
44780
    }
44781
 
44782
    public boolean equals(addOrUpdateAmazonInventoryForItem_args that) {
44783
      if (that == null)
44784
        return false;
44785
 
44786
      boolean this_present_amazonInventorySnapshot = true && this.isSetAmazonInventorySnapshot();
44787
      boolean that_present_amazonInventorySnapshot = true && that.isSetAmazonInventorySnapshot();
44788
      if (this_present_amazonInventorySnapshot || that_present_amazonInventorySnapshot) {
44789
        if (!(this_present_amazonInventorySnapshot && that_present_amazonInventorySnapshot))
44790
          return false;
44791
        if (!this.amazonInventorySnapshot.equals(that.amazonInventorySnapshot))
44792
          return false;
44793
      }
44794
 
10450 vikram.rag 44795
      boolean this_present_time = true;
44796
      boolean that_present_time = true;
44797
      if (this_present_time || that_present_time) {
44798
        if (!(this_present_time && that_present_time))
44799
          return false;
44800
        if (this.time != that.time)
44801
          return false;
44802
      }
44803
 
7281 kshitij.so 44804
      return true;
44805
    }
44806
 
44807
    @Override
44808
    public int hashCode() {
44809
      return 0;
44810
    }
44811
 
44812
    public int compareTo(addOrUpdateAmazonInventoryForItem_args other) {
44813
      if (!getClass().equals(other.getClass())) {
44814
        return getClass().getName().compareTo(other.getClass().getName());
44815
      }
44816
 
44817
      int lastComparison = 0;
44818
      addOrUpdateAmazonInventoryForItem_args typedOther = (addOrUpdateAmazonInventoryForItem_args)other;
44819
 
44820
      lastComparison = Boolean.valueOf(isSetAmazonInventorySnapshot()).compareTo(typedOther.isSetAmazonInventorySnapshot());
44821
      if (lastComparison != 0) {
44822
        return lastComparison;
44823
      }
44824
      if (isSetAmazonInventorySnapshot()) {
44825
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonInventorySnapshot, typedOther.amazonInventorySnapshot);
44826
        if (lastComparison != 0) {
44827
          return lastComparison;
44828
        }
44829
      }
10450 vikram.rag 44830
      lastComparison = Boolean.valueOf(isSetTime()).compareTo(typedOther.isSetTime());
44831
      if (lastComparison != 0) {
44832
        return lastComparison;
44833
      }
44834
      if (isSetTime()) {
44835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time, typedOther.time);
44836
        if (lastComparison != 0) {
44837
          return lastComparison;
44838
        }
44839
      }
7281 kshitij.so 44840
      return 0;
44841
    }
44842
 
44843
    public _Fields fieldForId(int fieldId) {
44844
      return _Fields.findByThriftId(fieldId);
44845
    }
44846
 
44847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44848
      org.apache.thrift.protocol.TField field;
44849
      iprot.readStructBegin();
44850
      while (true)
44851
      {
44852
        field = iprot.readFieldBegin();
44853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44854
          break;
44855
        }
44856
        switch (field.id) {
44857
          case 1: // AMAZON_INVENTORY_SNAPSHOT
44858
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44859
              this.amazonInventorySnapshot = new AmazonInventorySnapshot();
44860
              this.amazonInventorySnapshot.read(iprot);
44861
            } else { 
44862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44863
            }
44864
            break;
10450 vikram.rag 44865
          case 2: // TIME
44866
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44867
              this.time = iprot.readI64();
44868
              setTimeIsSet(true);
44869
            } else { 
44870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44871
            }
44872
            break;
7281 kshitij.so 44873
          default:
44874
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44875
        }
44876
        iprot.readFieldEnd();
44877
      }
44878
      iprot.readStructEnd();
44879
      validate();
44880
    }
44881
 
44882
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44883
      validate();
44884
 
44885
      oprot.writeStructBegin(STRUCT_DESC);
44886
      if (this.amazonInventorySnapshot != null) {
44887
        oprot.writeFieldBegin(AMAZON_INVENTORY_SNAPSHOT_FIELD_DESC);
44888
        this.amazonInventorySnapshot.write(oprot);
44889
        oprot.writeFieldEnd();
44890
      }
10450 vikram.rag 44891
      oprot.writeFieldBegin(TIME_FIELD_DESC);
44892
      oprot.writeI64(this.time);
44893
      oprot.writeFieldEnd();
7281 kshitij.so 44894
      oprot.writeFieldStop();
44895
      oprot.writeStructEnd();
44896
    }
44897
 
44898
    @Override
44899
    public String toString() {
44900
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_args(");
44901
      boolean first = true;
44902
 
44903
      sb.append("amazonInventorySnapshot:");
44904
      if (this.amazonInventorySnapshot == null) {
44905
        sb.append("null");
44906
      } else {
44907
        sb.append(this.amazonInventorySnapshot);
44908
      }
44909
      first = false;
10450 vikram.rag 44910
      if (!first) sb.append(", ");
44911
      sb.append("time:");
44912
      sb.append(this.time);
44913
      first = false;
7281 kshitij.so 44914
      sb.append(")");
44915
      return sb.toString();
44916
    }
44917
 
44918
    public void validate() throws org.apache.thrift.TException {
44919
      // check for required fields
44920
    }
44921
 
44922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44923
      try {
44924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44925
      } catch (org.apache.thrift.TException te) {
44926
        throw new java.io.IOException(te);
44927
      }
44928
    }
44929
 
44930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44931
      try {
10450 vikram.rag 44932
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
44933
        __isset_bit_vector = new BitSet(1);
7281 kshitij.so 44934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44935
      } catch (org.apache.thrift.TException te) {
44936
        throw new java.io.IOException(te);
44937
      }
44938
    }
44939
 
44940
  }
44941
 
44942
  public static class addOrUpdateAmazonInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_result, addOrUpdateAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
44943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_result");
44944
 
44945
 
44946
 
44947
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44948
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44949
;
44950
 
44951
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44952
 
44953
      static {
44954
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44955
          byName.put(field.getFieldName(), field);
44956
        }
44957
      }
44958
 
44959
      /**
44960
       * Find the _Fields constant that matches fieldId, or null if its not found.
44961
       */
44962
      public static _Fields findByThriftId(int fieldId) {
44963
        switch(fieldId) {
44964
          default:
44965
            return null;
44966
        }
44967
      }
44968
 
44969
      /**
44970
       * Find the _Fields constant that matches fieldId, throwing an exception
44971
       * if it is not found.
44972
       */
44973
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44974
        _Fields fields = findByThriftId(fieldId);
44975
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44976
        return fields;
44977
      }
44978
 
44979
      /**
44980
       * Find the _Fields constant that matches name, or null if its not found.
44981
       */
44982
      public static _Fields findByName(String name) {
44983
        return byName.get(name);
44984
      }
44985
 
44986
      private final short _thriftId;
44987
      private final String _fieldName;
44988
 
44989
      _Fields(short thriftId, String fieldName) {
44990
        _thriftId = thriftId;
44991
        _fieldName = fieldName;
44992
      }
44993
 
44994
      public short getThriftFieldId() {
44995
        return _thriftId;
44996
      }
44997
 
44998
      public String getFieldName() {
44999
        return _fieldName;
45000
      }
45001
    }
45002
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45003
    static {
45004
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45005
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45006
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_result.class, metaDataMap);
45007
    }
45008
 
45009
    public addOrUpdateAmazonInventoryForItem_result() {
45010
    }
45011
 
45012
    /**
45013
     * Performs a deep copy on <i>other</i>.
45014
     */
45015
    public addOrUpdateAmazonInventoryForItem_result(addOrUpdateAmazonInventoryForItem_result other) {
45016
    }
45017
 
45018
    public addOrUpdateAmazonInventoryForItem_result deepCopy() {
45019
      return new addOrUpdateAmazonInventoryForItem_result(this);
45020
    }
45021
 
45022
    @Override
45023
    public void clear() {
45024
    }
45025
 
45026
    public void setFieldValue(_Fields field, Object value) {
45027
      switch (field) {
45028
      }
45029
    }
45030
 
45031
    public Object getFieldValue(_Fields field) {
45032
      switch (field) {
45033
      }
45034
      throw new IllegalStateException();
45035
    }
45036
 
45037
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45038
    public boolean isSet(_Fields field) {
45039
      if (field == null) {
45040
        throw new IllegalArgumentException();
45041
      }
45042
 
45043
      switch (field) {
45044
      }
45045
      throw new IllegalStateException();
45046
    }
45047
 
45048
    @Override
45049
    public boolean equals(Object that) {
45050
      if (that == null)
45051
        return false;
45052
      if (that instanceof addOrUpdateAmazonInventoryForItem_result)
45053
        return this.equals((addOrUpdateAmazonInventoryForItem_result)that);
45054
      return false;
45055
    }
45056
 
45057
    public boolean equals(addOrUpdateAmazonInventoryForItem_result that) {
45058
      if (that == null)
45059
        return false;
45060
 
45061
      return true;
45062
    }
45063
 
45064
    @Override
45065
    public int hashCode() {
45066
      return 0;
45067
    }
45068
 
45069
    public int compareTo(addOrUpdateAmazonInventoryForItem_result other) {
45070
      if (!getClass().equals(other.getClass())) {
45071
        return getClass().getName().compareTo(other.getClass().getName());
45072
      }
45073
 
45074
      int lastComparison = 0;
45075
      addOrUpdateAmazonInventoryForItem_result typedOther = (addOrUpdateAmazonInventoryForItem_result)other;
45076
 
45077
      return 0;
45078
    }
45079
 
45080
    public _Fields fieldForId(int fieldId) {
45081
      return _Fields.findByThriftId(fieldId);
45082
    }
45083
 
45084
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45085
      org.apache.thrift.protocol.TField field;
45086
      iprot.readStructBegin();
45087
      while (true)
45088
      {
45089
        field = iprot.readFieldBegin();
45090
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45091
          break;
45092
        }
45093
        switch (field.id) {
45094
          default:
45095
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45096
        }
45097
        iprot.readFieldEnd();
45098
      }
45099
      iprot.readStructEnd();
45100
      validate();
45101
    }
45102
 
45103
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45104
      oprot.writeStructBegin(STRUCT_DESC);
45105
 
45106
      oprot.writeFieldStop();
45107
      oprot.writeStructEnd();
45108
    }
45109
 
45110
    @Override
45111
    public String toString() {
45112
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_result(");
45113
      boolean first = true;
45114
 
45115
      sb.append(")");
45116
      return sb.toString();
45117
    }
45118
 
45119
    public void validate() throws org.apache.thrift.TException {
45120
      // check for required fields
45121
    }
45122
 
45123
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45124
      try {
45125
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45126
      } catch (org.apache.thrift.TException te) {
45127
        throw new java.io.IOException(te);
45128
      }
45129
    }
45130
 
45131
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45132
      try {
45133
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45134
      } catch (org.apache.thrift.TException te) {
45135
        throw new java.io.IOException(te);
45136
      }
45137
    }
45138
 
45139
  }
45140
 
7972 amar.kumar 45141
  public static class getLastNdaySaleForItem_args implements org.apache.thrift.TBase<getLastNdaySaleForItem_args, getLastNdaySaleForItem_args._Fields>, java.io.Serializable, Cloneable   {
45142
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastNdaySaleForItem_args");
45143
 
45144
    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);
45145
    private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDays", org.apache.thrift.protocol.TType.I64, (short)2);
45146
 
45147
    private long itemId; // required
45148
    private long numberOfDays; // required
45149
 
45150
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45151
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45152
      ITEM_ID((short)1, "itemId"),
45153
      NUMBER_OF_DAYS((short)2, "numberOfDays");
45154
 
45155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45156
 
45157
      static {
45158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45159
          byName.put(field.getFieldName(), field);
45160
        }
45161
      }
45162
 
45163
      /**
45164
       * Find the _Fields constant that matches fieldId, or null if its not found.
45165
       */
45166
      public static _Fields findByThriftId(int fieldId) {
45167
        switch(fieldId) {
45168
          case 1: // ITEM_ID
45169
            return ITEM_ID;
45170
          case 2: // NUMBER_OF_DAYS
45171
            return NUMBER_OF_DAYS;
45172
          default:
45173
            return null;
45174
        }
45175
      }
45176
 
45177
      /**
45178
       * Find the _Fields constant that matches fieldId, throwing an exception
45179
       * if it is not found.
45180
       */
45181
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45182
        _Fields fields = findByThriftId(fieldId);
45183
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45184
        return fields;
45185
      }
45186
 
45187
      /**
45188
       * Find the _Fields constant that matches name, or null if its not found.
45189
       */
45190
      public static _Fields findByName(String name) {
45191
        return byName.get(name);
45192
      }
45193
 
45194
      private final short _thriftId;
45195
      private final String _fieldName;
45196
 
45197
      _Fields(short thriftId, String fieldName) {
45198
        _thriftId = thriftId;
45199
        _fieldName = fieldName;
45200
      }
45201
 
45202
      public short getThriftFieldId() {
45203
        return _thriftId;
45204
      }
45205
 
45206
      public String getFieldName() {
45207
        return _fieldName;
45208
      }
45209
    }
45210
 
45211
    // isset id assignments
45212
    private static final int __ITEMID_ISSET_ID = 0;
45213
    private static final int __NUMBEROFDAYS_ISSET_ID = 1;
45214
    private BitSet __isset_bit_vector = new BitSet(2);
45215
 
45216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45217
    static {
45218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45219
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45221
      tmpMap.put(_Fields.NUMBER_OF_DAYS, new org.apache.thrift.meta_data.FieldMetaData("numberOfDays", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45222
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45223
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45224
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastNdaySaleForItem_args.class, metaDataMap);
45225
    }
45226
 
45227
    public getLastNdaySaleForItem_args() {
45228
    }
45229
 
45230
    public getLastNdaySaleForItem_args(
45231
      long itemId,
45232
      long numberOfDays)
45233
    {
45234
      this();
45235
      this.itemId = itemId;
45236
      setItemIdIsSet(true);
45237
      this.numberOfDays = numberOfDays;
45238
      setNumberOfDaysIsSet(true);
45239
    }
45240
 
45241
    /**
45242
     * Performs a deep copy on <i>other</i>.
45243
     */
45244
    public getLastNdaySaleForItem_args(getLastNdaySaleForItem_args other) {
45245
      __isset_bit_vector.clear();
45246
      __isset_bit_vector.or(other.__isset_bit_vector);
45247
      this.itemId = other.itemId;
45248
      this.numberOfDays = other.numberOfDays;
45249
    }
45250
 
45251
    public getLastNdaySaleForItem_args deepCopy() {
45252
      return new getLastNdaySaleForItem_args(this);
45253
    }
45254
 
45255
    @Override
45256
    public void clear() {
45257
      setItemIdIsSet(false);
45258
      this.itemId = 0;
45259
      setNumberOfDaysIsSet(false);
45260
      this.numberOfDays = 0;
45261
    }
45262
 
45263
    public long getItemId() {
45264
      return this.itemId;
45265
    }
45266
 
45267
    public void setItemId(long itemId) {
45268
      this.itemId = itemId;
45269
      setItemIdIsSet(true);
45270
    }
45271
 
45272
    public void unsetItemId() {
45273
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
45274
    }
45275
 
45276
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
45277
    public boolean isSetItemId() {
45278
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
45279
    }
45280
 
45281
    public void setItemIdIsSet(boolean value) {
45282
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
45283
    }
45284
 
45285
    public long getNumberOfDays() {
45286
      return this.numberOfDays;
45287
    }
45288
 
45289
    public void setNumberOfDays(long numberOfDays) {
45290
      this.numberOfDays = numberOfDays;
45291
      setNumberOfDaysIsSet(true);
45292
    }
45293
 
45294
    public void unsetNumberOfDays() {
45295
      __isset_bit_vector.clear(__NUMBEROFDAYS_ISSET_ID);
45296
    }
45297
 
45298
    /** Returns true if field numberOfDays is set (has been assigned a value) and false otherwise */
45299
    public boolean isSetNumberOfDays() {
45300
      return __isset_bit_vector.get(__NUMBEROFDAYS_ISSET_ID);
45301
    }
45302
 
45303
    public void setNumberOfDaysIsSet(boolean value) {
45304
      __isset_bit_vector.set(__NUMBEROFDAYS_ISSET_ID, value);
45305
    }
45306
 
45307
    public void setFieldValue(_Fields field, Object value) {
45308
      switch (field) {
45309
      case ITEM_ID:
45310
        if (value == null) {
45311
          unsetItemId();
45312
        } else {
45313
          setItemId((Long)value);
45314
        }
45315
        break;
45316
 
45317
      case NUMBER_OF_DAYS:
45318
        if (value == null) {
45319
          unsetNumberOfDays();
45320
        } else {
45321
          setNumberOfDays((Long)value);
45322
        }
45323
        break;
45324
 
45325
      }
45326
    }
45327
 
45328
    public Object getFieldValue(_Fields field) {
45329
      switch (field) {
45330
      case ITEM_ID:
45331
        return Long.valueOf(getItemId());
45332
 
45333
      case NUMBER_OF_DAYS:
45334
        return Long.valueOf(getNumberOfDays());
45335
 
45336
      }
45337
      throw new IllegalStateException();
45338
    }
45339
 
45340
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45341
    public boolean isSet(_Fields field) {
45342
      if (field == null) {
45343
        throw new IllegalArgumentException();
45344
      }
45345
 
45346
      switch (field) {
45347
      case ITEM_ID:
45348
        return isSetItemId();
45349
      case NUMBER_OF_DAYS:
45350
        return isSetNumberOfDays();
45351
      }
45352
      throw new IllegalStateException();
45353
    }
45354
 
45355
    @Override
45356
    public boolean equals(Object that) {
45357
      if (that == null)
45358
        return false;
45359
      if (that instanceof getLastNdaySaleForItem_args)
45360
        return this.equals((getLastNdaySaleForItem_args)that);
45361
      return false;
45362
    }
45363
 
45364
    public boolean equals(getLastNdaySaleForItem_args that) {
45365
      if (that == null)
45366
        return false;
45367
 
45368
      boolean this_present_itemId = true;
45369
      boolean that_present_itemId = true;
45370
      if (this_present_itemId || that_present_itemId) {
45371
        if (!(this_present_itemId && that_present_itemId))
45372
          return false;
45373
        if (this.itemId != that.itemId)
45374
          return false;
45375
      }
45376
 
45377
      boolean this_present_numberOfDays = true;
45378
      boolean that_present_numberOfDays = true;
45379
      if (this_present_numberOfDays || that_present_numberOfDays) {
45380
        if (!(this_present_numberOfDays && that_present_numberOfDays))
45381
          return false;
45382
        if (this.numberOfDays != that.numberOfDays)
45383
          return false;
45384
      }
45385
 
45386
      return true;
45387
    }
45388
 
45389
    @Override
45390
    public int hashCode() {
45391
      return 0;
45392
    }
45393
 
45394
    public int compareTo(getLastNdaySaleForItem_args other) {
45395
      if (!getClass().equals(other.getClass())) {
45396
        return getClass().getName().compareTo(other.getClass().getName());
45397
      }
45398
 
45399
      int lastComparison = 0;
45400
      getLastNdaySaleForItem_args typedOther = (getLastNdaySaleForItem_args)other;
45401
 
45402
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
45403
      if (lastComparison != 0) {
45404
        return lastComparison;
45405
      }
45406
      if (isSetItemId()) {
45407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
45408
        if (lastComparison != 0) {
45409
          return lastComparison;
45410
        }
45411
      }
45412
      lastComparison = Boolean.valueOf(isSetNumberOfDays()).compareTo(typedOther.isSetNumberOfDays());
45413
      if (lastComparison != 0) {
45414
        return lastComparison;
45415
      }
45416
      if (isSetNumberOfDays()) {
45417
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDays, typedOther.numberOfDays);
45418
        if (lastComparison != 0) {
45419
          return lastComparison;
45420
        }
45421
      }
45422
      return 0;
45423
    }
45424
 
45425
    public _Fields fieldForId(int fieldId) {
45426
      return _Fields.findByThriftId(fieldId);
45427
    }
45428
 
45429
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45430
      org.apache.thrift.protocol.TField field;
45431
      iprot.readStructBegin();
45432
      while (true)
45433
      {
45434
        field = iprot.readFieldBegin();
45435
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45436
          break;
45437
        }
45438
        switch (field.id) {
45439
          case 1: // ITEM_ID
45440
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45441
              this.itemId = iprot.readI64();
45442
              setItemIdIsSet(true);
45443
            } else { 
45444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45445
            }
45446
            break;
45447
          case 2: // NUMBER_OF_DAYS
45448
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45449
              this.numberOfDays = iprot.readI64();
45450
              setNumberOfDaysIsSet(true);
45451
            } else { 
45452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45453
            }
45454
            break;
45455
          default:
45456
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45457
        }
45458
        iprot.readFieldEnd();
45459
      }
45460
      iprot.readStructEnd();
45461
      validate();
45462
    }
45463
 
45464
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45465
      validate();
45466
 
45467
      oprot.writeStructBegin(STRUCT_DESC);
45468
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
45469
      oprot.writeI64(this.itemId);
45470
      oprot.writeFieldEnd();
45471
      oprot.writeFieldBegin(NUMBER_OF_DAYS_FIELD_DESC);
45472
      oprot.writeI64(this.numberOfDays);
45473
      oprot.writeFieldEnd();
45474
      oprot.writeFieldStop();
45475
      oprot.writeStructEnd();
45476
    }
45477
 
45478
    @Override
45479
    public String toString() {
45480
      StringBuilder sb = new StringBuilder("getLastNdaySaleForItem_args(");
45481
      boolean first = true;
45482
 
45483
      sb.append("itemId:");
45484
      sb.append(this.itemId);
45485
      first = false;
45486
      if (!first) sb.append(", ");
45487
      sb.append("numberOfDays:");
45488
      sb.append(this.numberOfDays);
45489
      first = false;
45490
      sb.append(")");
45491
      return sb.toString();
45492
    }
45493
 
45494
    public void validate() throws org.apache.thrift.TException {
45495
      // check for required fields
45496
    }
45497
 
45498
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45499
      try {
45500
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45501
      } catch (org.apache.thrift.TException te) {
45502
        throw new java.io.IOException(te);
45503
      }
45504
    }
45505
 
45506
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45507
      try {
45508
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45509
        __isset_bit_vector = new BitSet(1);
45510
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45511
      } catch (org.apache.thrift.TException te) {
45512
        throw new java.io.IOException(te);
45513
      }
45514
    }
45515
 
45516
  }
45517
 
45518
  public static class getLastNdaySaleForItem_result implements org.apache.thrift.TBase<getLastNdaySaleForItem_result, getLastNdaySaleForItem_result._Fields>, java.io.Serializable, Cloneable   {
45519
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastNdaySaleForItem_result");
45520
 
45521
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
45522
 
45523
    private String success; // required
45524
 
45525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45527
      SUCCESS((short)0, "success");
45528
 
45529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45530
 
45531
      static {
45532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45533
          byName.put(field.getFieldName(), field);
45534
        }
45535
      }
45536
 
45537
      /**
45538
       * Find the _Fields constant that matches fieldId, or null if its not found.
45539
       */
45540
      public static _Fields findByThriftId(int fieldId) {
45541
        switch(fieldId) {
45542
          case 0: // SUCCESS
45543
            return SUCCESS;
45544
          default:
45545
            return null;
45546
        }
45547
      }
45548
 
45549
      /**
45550
       * Find the _Fields constant that matches fieldId, throwing an exception
45551
       * if it is not found.
45552
       */
45553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45554
        _Fields fields = findByThriftId(fieldId);
45555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45556
        return fields;
45557
      }
45558
 
45559
      /**
45560
       * Find the _Fields constant that matches name, or null if its not found.
45561
       */
45562
      public static _Fields findByName(String name) {
45563
        return byName.get(name);
45564
      }
45565
 
45566
      private final short _thriftId;
45567
      private final String _fieldName;
45568
 
45569
      _Fields(short thriftId, String fieldName) {
45570
        _thriftId = thriftId;
45571
        _fieldName = fieldName;
45572
      }
45573
 
45574
      public short getThriftFieldId() {
45575
        return _thriftId;
45576
      }
45577
 
45578
      public String getFieldName() {
45579
        return _fieldName;
45580
      }
45581
    }
45582
 
45583
    // isset id assignments
45584
 
45585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45586
    static {
45587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45588
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
45590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastNdaySaleForItem_result.class, metaDataMap);
45592
    }
45593
 
45594
    public getLastNdaySaleForItem_result() {
45595
    }
45596
 
45597
    public getLastNdaySaleForItem_result(
45598
      String success)
45599
    {
45600
      this();
45601
      this.success = success;
45602
    }
45603
 
45604
    /**
45605
     * Performs a deep copy on <i>other</i>.
45606
     */
45607
    public getLastNdaySaleForItem_result(getLastNdaySaleForItem_result other) {
45608
      if (other.isSetSuccess()) {
45609
        this.success = other.success;
45610
      }
45611
    }
45612
 
45613
    public getLastNdaySaleForItem_result deepCopy() {
45614
      return new getLastNdaySaleForItem_result(this);
45615
    }
45616
 
45617
    @Override
45618
    public void clear() {
45619
      this.success = null;
45620
    }
45621
 
45622
    public String getSuccess() {
45623
      return this.success;
45624
    }
45625
 
45626
    public void setSuccess(String success) {
45627
      this.success = success;
45628
    }
45629
 
45630
    public void unsetSuccess() {
45631
      this.success = null;
45632
    }
45633
 
45634
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
45635
    public boolean isSetSuccess() {
45636
      return this.success != null;
45637
    }
45638
 
45639
    public void setSuccessIsSet(boolean value) {
45640
      if (!value) {
45641
        this.success = null;
45642
      }
45643
    }
45644
 
45645
    public void setFieldValue(_Fields field, Object value) {
45646
      switch (field) {
45647
      case SUCCESS:
45648
        if (value == null) {
45649
          unsetSuccess();
45650
        } else {
45651
          setSuccess((String)value);
45652
        }
45653
        break;
45654
 
45655
      }
45656
    }
45657
 
45658
    public Object getFieldValue(_Fields field) {
45659
      switch (field) {
45660
      case SUCCESS:
45661
        return getSuccess();
45662
 
45663
      }
45664
      throw new IllegalStateException();
45665
    }
45666
 
45667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45668
    public boolean isSet(_Fields field) {
45669
      if (field == null) {
45670
        throw new IllegalArgumentException();
45671
      }
45672
 
45673
      switch (field) {
45674
      case SUCCESS:
45675
        return isSetSuccess();
45676
      }
45677
      throw new IllegalStateException();
45678
    }
45679
 
45680
    @Override
45681
    public boolean equals(Object that) {
45682
      if (that == null)
45683
        return false;
45684
      if (that instanceof getLastNdaySaleForItem_result)
45685
        return this.equals((getLastNdaySaleForItem_result)that);
45686
      return false;
45687
    }
45688
 
45689
    public boolean equals(getLastNdaySaleForItem_result that) {
45690
      if (that == null)
45691
        return false;
45692
 
45693
      boolean this_present_success = true && this.isSetSuccess();
45694
      boolean that_present_success = true && that.isSetSuccess();
45695
      if (this_present_success || that_present_success) {
45696
        if (!(this_present_success && that_present_success))
45697
          return false;
45698
        if (!this.success.equals(that.success))
45699
          return false;
45700
      }
45701
 
45702
      return true;
45703
    }
45704
 
45705
    @Override
45706
    public int hashCode() {
45707
      return 0;
45708
    }
45709
 
45710
    public int compareTo(getLastNdaySaleForItem_result other) {
45711
      if (!getClass().equals(other.getClass())) {
45712
        return getClass().getName().compareTo(other.getClass().getName());
45713
      }
45714
 
45715
      int lastComparison = 0;
45716
      getLastNdaySaleForItem_result typedOther = (getLastNdaySaleForItem_result)other;
45717
 
45718
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
45719
      if (lastComparison != 0) {
45720
        return lastComparison;
45721
      }
45722
      if (isSetSuccess()) {
45723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
45724
        if (lastComparison != 0) {
45725
          return lastComparison;
45726
        }
45727
      }
45728
      return 0;
45729
    }
45730
 
45731
    public _Fields fieldForId(int fieldId) {
45732
      return _Fields.findByThriftId(fieldId);
45733
    }
45734
 
45735
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45736
      org.apache.thrift.protocol.TField field;
45737
      iprot.readStructBegin();
45738
      while (true)
45739
      {
45740
        field = iprot.readFieldBegin();
45741
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45742
          break;
45743
        }
45744
        switch (field.id) {
45745
          case 0: // SUCCESS
45746
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
45747
              this.success = iprot.readString();
45748
            } else { 
45749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45750
            }
45751
            break;
45752
          default:
45753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45754
        }
45755
        iprot.readFieldEnd();
45756
      }
45757
      iprot.readStructEnd();
45758
      validate();
45759
    }
45760
 
45761
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45762
      oprot.writeStructBegin(STRUCT_DESC);
45763
 
45764
      if (this.isSetSuccess()) {
45765
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
45766
        oprot.writeString(this.success);
45767
        oprot.writeFieldEnd();
45768
      }
45769
      oprot.writeFieldStop();
45770
      oprot.writeStructEnd();
45771
    }
45772
 
45773
    @Override
45774
    public String toString() {
45775
      StringBuilder sb = new StringBuilder("getLastNdaySaleForItem_result(");
45776
      boolean first = true;
45777
 
45778
      sb.append("success:");
45779
      if (this.success == null) {
45780
        sb.append("null");
45781
      } else {
45782
        sb.append(this.success);
45783
      }
45784
      first = false;
45785
      sb.append(")");
45786
      return sb.toString();
45787
    }
45788
 
45789
    public void validate() throws org.apache.thrift.TException {
45790
      // check for required fields
45791
    }
45792
 
45793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45794
      try {
45795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45796
      } catch (org.apache.thrift.TException te) {
45797
        throw new java.io.IOException(te);
45798
      }
45799
    }
45800
 
45801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45802
      try {
45803
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45804
      } catch (org.apache.thrift.TException te) {
45805
        throw new java.io.IOException(te);
45806
      }
45807
    }
45808
 
45809
  }
45810
 
8282 kshitij.so 45811
  public static class addOrUpdateAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAmazonFbaInventory_args, addOrUpdateAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable   {
45812
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaInventory_args");
45813
 
45814
    private static final org.apache.thrift.protocol.TField AMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonfbainventorysnapshot", org.apache.thrift.protocol.TType.STRUCT, (short)1);
45815
 
45816
    private AmazonFbaInventorySnapshot amazonfbainventorysnapshot; // required
45817
 
45818
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45819
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45820
      AMAZONFBAINVENTORYSNAPSHOT((short)1, "amazonfbainventorysnapshot");
45821
 
45822
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45823
 
45824
      static {
45825
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45826
          byName.put(field.getFieldName(), field);
45827
        }
45828
      }
45829
 
45830
      /**
45831
       * Find the _Fields constant that matches fieldId, or null if its not found.
45832
       */
45833
      public static _Fields findByThriftId(int fieldId) {
45834
        switch(fieldId) {
45835
          case 1: // AMAZONFBAINVENTORYSNAPSHOT
45836
            return AMAZONFBAINVENTORYSNAPSHOT;
45837
          default:
45838
            return null;
45839
        }
45840
      }
45841
 
45842
      /**
45843
       * Find the _Fields constant that matches fieldId, throwing an exception
45844
       * if it is not found.
45845
       */
45846
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45847
        _Fields fields = findByThriftId(fieldId);
45848
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45849
        return fields;
45850
      }
45851
 
45852
      /**
45853
       * Find the _Fields constant that matches name, or null if its not found.
45854
       */
45855
      public static _Fields findByName(String name) {
45856
        return byName.get(name);
45857
      }
45858
 
45859
      private final short _thriftId;
45860
      private final String _fieldName;
45861
 
45862
      _Fields(short thriftId, String fieldName) {
45863
        _thriftId = thriftId;
45864
        _fieldName = fieldName;
45865
      }
45866
 
45867
      public short getThriftFieldId() {
45868
        return _thriftId;
45869
      }
45870
 
45871
      public String getFieldName() {
45872
        return _fieldName;
45873
      }
45874
    }
45875
 
45876
    // isset id assignments
45877
 
45878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45879
    static {
45880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45881
      tmpMap.put(_Fields.AMAZONFBAINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonfbainventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45882
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class)));
45883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaInventory_args.class, metaDataMap);
45885
    }
45886
 
45887
    public addOrUpdateAmazonFbaInventory_args() {
45888
    }
45889
 
45890
    public addOrUpdateAmazonFbaInventory_args(
45891
      AmazonFbaInventorySnapshot amazonfbainventorysnapshot)
45892
    {
45893
      this();
45894
      this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
45895
    }
45896
 
45897
    /**
45898
     * Performs a deep copy on <i>other</i>.
45899
     */
45900
    public addOrUpdateAmazonFbaInventory_args(addOrUpdateAmazonFbaInventory_args other) {
45901
      if (other.isSetAmazonfbainventorysnapshot()) {
45902
        this.amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot(other.amazonfbainventorysnapshot);
45903
      }
45904
    }
45905
 
45906
    public addOrUpdateAmazonFbaInventory_args deepCopy() {
45907
      return new addOrUpdateAmazonFbaInventory_args(this);
45908
    }
45909
 
45910
    @Override
45911
    public void clear() {
45912
      this.amazonfbainventorysnapshot = null;
45913
    }
45914
 
45915
    public AmazonFbaInventorySnapshot getAmazonfbainventorysnapshot() {
45916
      return this.amazonfbainventorysnapshot;
45917
    }
45918
 
45919
    public void setAmazonfbainventorysnapshot(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) {
45920
      this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
45921
    }
45922
 
45923
    public void unsetAmazonfbainventorysnapshot() {
45924
      this.amazonfbainventorysnapshot = null;
45925
    }
45926
 
45927
    /** Returns true if field amazonfbainventorysnapshot is set (has been assigned a value) and false otherwise */
45928
    public boolean isSetAmazonfbainventorysnapshot() {
45929
      return this.amazonfbainventorysnapshot != null;
45930
    }
45931
 
45932
    public void setAmazonfbainventorysnapshotIsSet(boolean value) {
45933
      if (!value) {
45934
        this.amazonfbainventorysnapshot = null;
45935
      }
45936
    }
45937
 
45938
    public void setFieldValue(_Fields field, Object value) {
45939
      switch (field) {
45940
      case AMAZONFBAINVENTORYSNAPSHOT:
45941
        if (value == null) {
45942
          unsetAmazonfbainventorysnapshot();
45943
        } else {
45944
          setAmazonfbainventorysnapshot((AmazonFbaInventorySnapshot)value);
45945
        }
45946
        break;
45947
 
45948
      }
45949
    }
45950
 
45951
    public Object getFieldValue(_Fields field) {
45952
      switch (field) {
45953
      case AMAZONFBAINVENTORYSNAPSHOT:
45954
        return getAmazonfbainventorysnapshot();
45955
 
45956
      }
45957
      throw new IllegalStateException();
45958
    }
45959
 
45960
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45961
    public boolean isSet(_Fields field) {
45962
      if (field == null) {
45963
        throw new IllegalArgumentException();
45964
      }
45965
 
45966
      switch (field) {
45967
      case AMAZONFBAINVENTORYSNAPSHOT:
45968
        return isSetAmazonfbainventorysnapshot();
45969
      }
45970
      throw new IllegalStateException();
45971
    }
45972
 
45973
    @Override
45974
    public boolean equals(Object that) {
45975
      if (that == null)
45976
        return false;
45977
      if (that instanceof addOrUpdateAmazonFbaInventory_args)
45978
        return this.equals((addOrUpdateAmazonFbaInventory_args)that);
45979
      return false;
45980
    }
45981
 
45982
    public boolean equals(addOrUpdateAmazonFbaInventory_args that) {
45983
      if (that == null)
45984
        return false;
45985
 
45986
      boolean this_present_amazonfbainventorysnapshot = true && this.isSetAmazonfbainventorysnapshot();
45987
      boolean that_present_amazonfbainventorysnapshot = true && that.isSetAmazonfbainventorysnapshot();
45988
      if (this_present_amazonfbainventorysnapshot || that_present_amazonfbainventorysnapshot) {
45989
        if (!(this_present_amazonfbainventorysnapshot && that_present_amazonfbainventorysnapshot))
45990
          return false;
45991
        if (!this.amazonfbainventorysnapshot.equals(that.amazonfbainventorysnapshot))
45992
          return false;
45993
      }
45994
 
45995
      return true;
45996
    }
45997
 
45998
    @Override
45999
    public int hashCode() {
46000
      return 0;
46001
    }
46002
 
46003
    public int compareTo(addOrUpdateAmazonFbaInventory_args other) {
46004
      if (!getClass().equals(other.getClass())) {
46005
        return getClass().getName().compareTo(other.getClass().getName());
46006
      }
46007
 
46008
      int lastComparison = 0;
46009
      addOrUpdateAmazonFbaInventory_args typedOther = (addOrUpdateAmazonFbaInventory_args)other;
46010
 
46011
      lastComparison = Boolean.valueOf(isSetAmazonfbainventorysnapshot()).compareTo(typedOther.isSetAmazonfbainventorysnapshot());
46012
      if (lastComparison != 0) {
46013
        return lastComparison;
46014
      }
46015
      if (isSetAmazonfbainventorysnapshot()) {
46016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonfbainventorysnapshot, typedOther.amazonfbainventorysnapshot);
46017
        if (lastComparison != 0) {
46018
          return lastComparison;
46019
        }
46020
      }
46021
      return 0;
46022
    }
46023
 
46024
    public _Fields fieldForId(int fieldId) {
46025
      return _Fields.findByThriftId(fieldId);
46026
    }
46027
 
46028
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46029
      org.apache.thrift.protocol.TField field;
46030
      iprot.readStructBegin();
46031
      while (true)
46032
      {
46033
        field = iprot.readFieldBegin();
46034
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46035
          break;
46036
        }
46037
        switch (field.id) {
46038
          case 1: // AMAZONFBAINVENTORYSNAPSHOT
46039
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46040
              this.amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot();
46041
              this.amazonfbainventorysnapshot.read(iprot);
46042
            } else { 
46043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46044
            }
46045
            break;
46046
          default:
46047
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46048
        }
46049
        iprot.readFieldEnd();
46050
      }
46051
      iprot.readStructEnd();
46052
      validate();
46053
    }
46054
 
46055
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46056
      validate();
46057
 
46058
      oprot.writeStructBegin(STRUCT_DESC);
46059
      if (this.amazonfbainventorysnapshot != null) {
46060
        oprot.writeFieldBegin(AMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
46061
        this.amazonfbainventorysnapshot.write(oprot);
46062
        oprot.writeFieldEnd();
46063
      }
46064
      oprot.writeFieldStop();
46065
      oprot.writeStructEnd();
46066
    }
46067
 
46068
    @Override
46069
    public String toString() {
46070
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaInventory_args(");
46071
      boolean first = true;
46072
 
46073
      sb.append("amazonfbainventorysnapshot:");
46074
      if (this.amazonfbainventorysnapshot == null) {
46075
        sb.append("null");
46076
      } else {
46077
        sb.append(this.amazonfbainventorysnapshot);
46078
      }
46079
      first = false;
46080
      sb.append(")");
46081
      return sb.toString();
46082
    }
46083
 
46084
    public void validate() throws org.apache.thrift.TException {
46085
      // check for required fields
46086
    }
46087
 
46088
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46089
      try {
46090
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46091
      } catch (org.apache.thrift.TException te) {
46092
        throw new java.io.IOException(te);
46093
      }
46094
    }
46095
 
46096
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46097
      try {
46098
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46099
      } catch (org.apache.thrift.TException te) {
46100
        throw new java.io.IOException(te);
46101
      }
46102
    }
46103
 
46104
  }
46105
 
46106
  public static class addOrUpdateAmazonFbaInventory_result implements org.apache.thrift.TBase<addOrUpdateAmazonFbaInventory_result, addOrUpdateAmazonFbaInventory_result._Fields>, java.io.Serializable, Cloneable   {
46107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaInventory_result");
46108
 
46109
 
46110
 
46111
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46112
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46113
;
46114
 
46115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46116
 
46117
      static {
46118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46119
          byName.put(field.getFieldName(), field);
46120
        }
46121
      }
46122
 
46123
      /**
46124
       * Find the _Fields constant that matches fieldId, or null if its not found.
46125
       */
46126
      public static _Fields findByThriftId(int fieldId) {
46127
        switch(fieldId) {
46128
          default:
46129
            return null;
46130
        }
46131
      }
46132
 
46133
      /**
46134
       * Find the _Fields constant that matches fieldId, throwing an exception
46135
       * if it is not found.
46136
       */
46137
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46138
        _Fields fields = findByThriftId(fieldId);
46139
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46140
        return fields;
46141
      }
46142
 
46143
      /**
46144
       * Find the _Fields constant that matches name, or null if its not found.
46145
       */
46146
      public static _Fields findByName(String name) {
46147
        return byName.get(name);
46148
      }
46149
 
46150
      private final short _thriftId;
46151
      private final String _fieldName;
46152
 
46153
      _Fields(short thriftId, String fieldName) {
46154
        _thriftId = thriftId;
46155
        _fieldName = fieldName;
46156
      }
46157
 
46158
      public short getThriftFieldId() {
46159
        return _thriftId;
46160
      }
46161
 
46162
      public String getFieldName() {
46163
        return _fieldName;
46164
      }
46165
    }
46166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46167
    static {
46168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46169
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46170
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaInventory_result.class, metaDataMap);
46171
    }
46172
 
46173
    public addOrUpdateAmazonFbaInventory_result() {
46174
    }
46175
 
46176
    /**
46177
     * Performs a deep copy on <i>other</i>.
46178
     */
46179
    public addOrUpdateAmazonFbaInventory_result(addOrUpdateAmazonFbaInventory_result other) {
46180
    }
46181
 
46182
    public addOrUpdateAmazonFbaInventory_result deepCopy() {
46183
      return new addOrUpdateAmazonFbaInventory_result(this);
46184
    }
46185
 
46186
    @Override
46187
    public void clear() {
46188
    }
46189
 
46190
    public void setFieldValue(_Fields field, Object value) {
46191
      switch (field) {
46192
      }
46193
    }
46194
 
46195
    public Object getFieldValue(_Fields field) {
46196
      switch (field) {
46197
      }
46198
      throw new IllegalStateException();
46199
    }
46200
 
46201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46202
    public boolean isSet(_Fields field) {
46203
      if (field == null) {
46204
        throw new IllegalArgumentException();
46205
      }
46206
 
46207
      switch (field) {
46208
      }
46209
      throw new IllegalStateException();
46210
    }
46211
 
46212
    @Override
46213
    public boolean equals(Object that) {
46214
      if (that == null)
46215
        return false;
46216
      if (that instanceof addOrUpdateAmazonFbaInventory_result)
46217
        return this.equals((addOrUpdateAmazonFbaInventory_result)that);
46218
      return false;
46219
    }
46220
 
46221
    public boolean equals(addOrUpdateAmazonFbaInventory_result that) {
46222
      if (that == null)
46223
        return false;
46224
 
46225
      return true;
46226
    }
46227
 
46228
    @Override
46229
    public int hashCode() {
46230
      return 0;
46231
    }
46232
 
46233
    public int compareTo(addOrUpdateAmazonFbaInventory_result other) {
46234
      if (!getClass().equals(other.getClass())) {
46235
        return getClass().getName().compareTo(other.getClass().getName());
46236
      }
46237
 
46238
      int lastComparison = 0;
46239
      addOrUpdateAmazonFbaInventory_result typedOther = (addOrUpdateAmazonFbaInventory_result)other;
46240
 
46241
      return 0;
46242
    }
46243
 
46244
    public _Fields fieldForId(int fieldId) {
46245
      return _Fields.findByThriftId(fieldId);
46246
    }
46247
 
46248
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46249
      org.apache.thrift.protocol.TField field;
46250
      iprot.readStructBegin();
46251
      while (true)
46252
      {
46253
        field = iprot.readFieldBegin();
46254
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46255
          break;
46256
        }
46257
        switch (field.id) {
46258
          default:
46259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46260
        }
46261
        iprot.readFieldEnd();
46262
      }
46263
      iprot.readStructEnd();
46264
      validate();
46265
    }
46266
 
46267
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46268
      oprot.writeStructBegin(STRUCT_DESC);
46269
 
46270
      oprot.writeFieldStop();
46271
      oprot.writeStructEnd();
46272
    }
46273
 
46274
    @Override
46275
    public String toString() {
46276
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaInventory_result(");
46277
      boolean first = true;
46278
 
46279
      sb.append(")");
46280
      return sb.toString();
46281
    }
46282
 
46283
    public void validate() throws org.apache.thrift.TException {
46284
      // check for required fields
46285
    }
46286
 
46287
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46288
      try {
46289
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46290
      } catch (org.apache.thrift.TException te) {
46291
        throw new java.io.IOException(te);
46292
      }
46293
    }
46294
 
46295
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46296
      try {
46297
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46298
      } catch (org.apache.thrift.TException te) {
46299
        throw new java.io.IOException(te);
46300
      }
46301
    }
46302
 
46303
  }
46304
 
8182 amar.kumar 46305
  public static class addUpdateHoldInventory_args implements org.apache.thrift.TBase<addUpdateHoldInventory_args, addUpdateHoldInventory_args._Fields>, java.io.Serializable, Cloneable   {
46306
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_args");
46307
 
46308
    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);
46309
    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)2);
46310
    private static final org.apache.thrift.protocol.TField HOLD_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdQuantity", org.apache.thrift.protocol.TType.I64, (short)3);
46311
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)4);
46312
 
46313
    private long itemId; // required
46314
    private long warehouseId; // required
46315
    private long holdQuantity; // required
46316
    private long source; // required
46317
 
46318
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46319
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46320
      ITEM_ID((short)1, "itemId"),
46321
      WAREHOUSE_ID((short)2, "warehouseId"),
46322
      HOLD_QUANTITY((short)3, "holdQuantity"),
46323
      SOURCE((short)4, "source");
46324
 
46325
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46326
 
46327
      static {
46328
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46329
          byName.put(field.getFieldName(), field);
46330
        }
46331
      }
46332
 
46333
      /**
46334
       * Find the _Fields constant that matches fieldId, or null if its not found.
46335
       */
46336
      public static _Fields findByThriftId(int fieldId) {
46337
        switch(fieldId) {
46338
          case 1: // ITEM_ID
46339
            return ITEM_ID;
46340
          case 2: // WAREHOUSE_ID
46341
            return WAREHOUSE_ID;
46342
          case 3: // HOLD_QUANTITY
46343
            return HOLD_QUANTITY;
46344
          case 4: // SOURCE
46345
            return SOURCE;
46346
          default:
46347
            return null;
46348
        }
46349
      }
46350
 
46351
      /**
46352
       * Find the _Fields constant that matches fieldId, throwing an exception
46353
       * if it is not found.
46354
       */
46355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46356
        _Fields fields = findByThriftId(fieldId);
46357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46358
        return fields;
46359
      }
46360
 
46361
      /**
46362
       * Find the _Fields constant that matches name, or null if its not found.
46363
       */
46364
      public static _Fields findByName(String name) {
46365
        return byName.get(name);
46366
      }
46367
 
46368
      private final short _thriftId;
46369
      private final String _fieldName;
46370
 
46371
      _Fields(short thriftId, String fieldName) {
46372
        _thriftId = thriftId;
46373
        _fieldName = fieldName;
46374
      }
46375
 
46376
      public short getThriftFieldId() {
46377
        return _thriftId;
46378
      }
46379
 
46380
      public String getFieldName() {
46381
        return _fieldName;
46382
      }
46383
    }
46384
 
46385
    // isset id assignments
46386
    private static final int __ITEMID_ISSET_ID = 0;
46387
    private static final int __WAREHOUSEID_ISSET_ID = 1;
46388
    private static final int __HOLDQUANTITY_ISSET_ID = 2;
46389
    private static final int __SOURCE_ISSET_ID = 3;
46390
    private BitSet __isset_bit_vector = new BitSet(4);
46391
 
46392
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46393
    static {
46394
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46395
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46396
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46397
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46398
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46399
      tmpMap.put(_Fields.HOLD_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("holdQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46401
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46402
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46403
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46404
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateHoldInventory_args.class, metaDataMap);
46405
    }
46406
 
46407
    public addUpdateHoldInventory_args() {
46408
    }
46409
 
46410
    public addUpdateHoldInventory_args(
46411
      long itemId,
46412
      long warehouseId,
46413
      long holdQuantity,
46414
      long source)
46415
    {
46416
      this();
46417
      this.itemId = itemId;
46418
      setItemIdIsSet(true);
46419
      this.warehouseId = warehouseId;
46420
      setWarehouseIdIsSet(true);
46421
      this.holdQuantity = holdQuantity;
46422
      setHoldQuantityIsSet(true);
46423
      this.source = source;
46424
      setSourceIsSet(true);
46425
    }
46426
 
46427
    /**
46428
     * Performs a deep copy on <i>other</i>.
46429
     */
46430
    public addUpdateHoldInventory_args(addUpdateHoldInventory_args other) {
46431
      __isset_bit_vector.clear();
46432
      __isset_bit_vector.or(other.__isset_bit_vector);
46433
      this.itemId = other.itemId;
46434
      this.warehouseId = other.warehouseId;
46435
      this.holdQuantity = other.holdQuantity;
46436
      this.source = other.source;
46437
    }
46438
 
46439
    public addUpdateHoldInventory_args deepCopy() {
46440
      return new addUpdateHoldInventory_args(this);
46441
    }
46442
 
46443
    @Override
46444
    public void clear() {
46445
      setItemIdIsSet(false);
46446
      this.itemId = 0;
46447
      setWarehouseIdIsSet(false);
46448
      this.warehouseId = 0;
46449
      setHoldQuantityIsSet(false);
46450
      this.holdQuantity = 0;
46451
      setSourceIsSet(false);
46452
      this.source = 0;
46453
    }
46454
 
46455
    public long getItemId() {
46456
      return this.itemId;
46457
    }
46458
 
46459
    public void setItemId(long itemId) {
46460
      this.itemId = itemId;
46461
      setItemIdIsSet(true);
46462
    }
46463
 
46464
    public void unsetItemId() {
46465
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
46466
    }
46467
 
46468
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
46469
    public boolean isSetItemId() {
46470
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
46471
    }
46472
 
46473
    public void setItemIdIsSet(boolean value) {
46474
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
46475
    }
46476
 
46477
    public long getWarehouseId() {
46478
      return this.warehouseId;
46479
    }
46480
 
46481
    public void setWarehouseId(long warehouseId) {
46482
      this.warehouseId = warehouseId;
46483
      setWarehouseIdIsSet(true);
46484
    }
46485
 
46486
    public void unsetWarehouseId() {
46487
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
46488
    }
46489
 
46490
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
46491
    public boolean isSetWarehouseId() {
46492
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
46493
    }
46494
 
46495
    public void setWarehouseIdIsSet(boolean value) {
46496
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
46497
    }
46498
 
46499
    public long getHoldQuantity() {
46500
      return this.holdQuantity;
46501
    }
46502
 
46503
    public void setHoldQuantity(long holdQuantity) {
46504
      this.holdQuantity = holdQuantity;
46505
      setHoldQuantityIsSet(true);
46506
    }
46507
 
46508
    public void unsetHoldQuantity() {
46509
      __isset_bit_vector.clear(__HOLDQUANTITY_ISSET_ID);
46510
    }
46511
 
46512
    /** Returns true if field holdQuantity is set (has been assigned a value) and false otherwise */
46513
    public boolean isSetHoldQuantity() {
46514
      return __isset_bit_vector.get(__HOLDQUANTITY_ISSET_ID);
46515
    }
46516
 
46517
    public void setHoldQuantityIsSet(boolean value) {
46518
      __isset_bit_vector.set(__HOLDQUANTITY_ISSET_ID, value);
46519
    }
46520
 
46521
    public long getSource() {
46522
      return this.source;
46523
    }
46524
 
46525
    public void setSource(long source) {
46526
      this.source = source;
46527
      setSourceIsSet(true);
46528
    }
46529
 
46530
    public void unsetSource() {
46531
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
46532
    }
46533
 
46534
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
46535
    public boolean isSetSource() {
46536
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
46537
    }
46538
 
46539
    public void setSourceIsSet(boolean value) {
46540
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
46541
    }
46542
 
46543
    public void setFieldValue(_Fields field, Object value) {
46544
      switch (field) {
46545
      case ITEM_ID:
46546
        if (value == null) {
46547
          unsetItemId();
46548
        } else {
46549
          setItemId((Long)value);
46550
        }
46551
        break;
46552
 
46553
      case WAREHOUSE_ID:
46554
        if (value == null) {
46555
          unsetWarehouseId();
46556
        } else {
46557
          setWarehouseId((Long)value);
46558
        }
46559
        break;
46560
 
46561
      case HOLD_QUANTITY:
46562
        if (value == null) {
46563
          unsetHoldQuantity();
46564
        } else {
46565
          setHoldQuantity((Long)value);
46566
        }
46567
        break;
46568
 
46569
      case SOURCE:
46570
        if (value == null) {
46571
          unsetSource();
46572
        } else {
46573
          setSource((Long)value);
46574
        }
46575
        break;
46576
 
46577
      }
46578
    }
46579
 
46580
    public Object getFieldValue(_Fields field) {
46581
      switch (field) {
46582
      case ITEM_ID:
46583
        return Long.valueOf(getItemId());
46584
 
46585
      case WAREHOUSE_ID:
46586
        return Long.valueOf(getWarehouseId());
46587
 
46588
      case HOLD_QUANTITY:
46589
        return Long.valueOf(getHoldQuantity());
46590
 
46591
      case SOURCE:
46592
        return Long.valueOf(getSource());
46593
 
46594
      }
46595
      throw new IllegalStateException();
46596
    }
46597
 
46598
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46599
    public boolean isSet(_Fields field) {
46600
      if (field == null) {
46601
        throw new IllegalArgumentException();
46602
      }
46603
 
46604
      switch (field) {
46605
      case ITEM_ID:
46606
        return isSetItemId();
46607
      case WAREHOUSE_ID:
46608
        return isSetWarehouseId();
46609
      case HOLD_QUANTITY:
46610
        return isSetHoldQuantity();
46611
      case SOURCE:
46612
        return isSetSource();
46613
      }
46614
      throw new IllegalStateException();
46615
    }
46616
 
46617
    @Override
46618
    public boolean equals(Object that) {
46619
      if (that == null)
46620
        return false;
46621
      if (that instanceof addUpdateHoldInventory_args)
46622
        return this.equals((addUpdateHoldInventory_args)that);
46623
      return false;
46624
    }
46625
 
46626
    public boolean equals(addUpdateHoldInventory_args that) {
46627
      if (that == null)
46628
        return false;
46629
 
46630
      boolean this_present_itemId = true;
46631
      boolean that_present_itemId = true;
46632
      if (this_present_itemId || that_present_itemId) {
46633
        if (!(this_present_itemId && that_present_itemId))
46634
          return false;
46635
        if (this.itemId != that.itemId)
46636
          return false;
46637
      }
46638
 
46639
      boolean this_present_warehouseId = true;
46640
      boolean that_present_warehouseId = true;
46641
      if (this_present_warehouseId || that_present_warehouseId) {
46642
        if (!(this_present_warehouseId && that_present_warehouseId))
46643
          return false;
46644
        if (this.warehouseId != that.warehouseId)
46645
          return false;
46646
      }
46647
 
46648
      boolean this_present_holdQuantity = true;
46649
      boolean that_present_holdQuantity = true;
46650
      if (this_present_holdQuantity || that_present_holdQuantity) {
46651
        if (!(this_present_holdQuantity && that_present_holdQuantity))
46652
          return false;
46653
        if (this.holdQuantity != that.holdQuantity)
46654
          return false;
46655
      }
46656
 
46657
      boolean this_present_source = true;
46658
      boolean that_present_source = true;
46659
      if (this_present_source || that_present_source) {
46660
        if (!(this_present_source && that_present_source))
46661
          return false;
46662
        if (this.source != that.source)
46663
          return false;
46664
      }
46665
 
46666
      return true;
46667
    }
46668
 
46669
    @Override
46670
    public int hashCode() {
46671
      return 0;
46672
    }
46673
 
46674
    public int compareTo(addUpdateHoldInventory_args other) {
46675
      if (!getClass().equals(other.getClass())) {
46676
        return getClass().getName().compareTo(other.getClass().getName());
46677
      }
46678
 
46679
      int lastComparison = 0;
46680
      addUpdateHoldInventory_args typedOther = (addUpdateHoldInventory_args)other;
46681
 
46682
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
46683
      if (lastComparison != 0) {
46684
        return lastComparison;
46685
      }
46686
      if (isSetItemId()) {
46687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
46688
        if (lastComparison != 0) {
46689
          return lastComparison;
46690
        }
46691
      }
46692
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
46693
      if (lastComparison != 0) {
46694
        return lastComparison;
46695
      }
46696
      if (isSetWarehouseId()) {
46697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
46698
        if (lastComparison != 0) {
46699
          return lastComparison;
46700
        }
46701
      }
46702
      lastComparison = Boolean.valueOf(isSetHoldQuantity()).compareTo(typedOther.isSetHoldQuantity());
46703
      if (lastComparison != 0) {
46704
        return lastComparison;
46705
      }
46706
      if (isSetHoldQuantity()) {
46707
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdQuantity, typedOther.holdQuantity);
46708
        if (lastComparison != 0) {
46709
          return lastComparison;
46710
        }
46711
      }
46712
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
46713
      if (lastComparison != 0) {
46714
        return lastComparison;
46715
      }
46716
      if (isSetSource()) {
46717
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
46718
        if (lastComparison != 0) {
46719
          return lastComparison;
46720
        }
46721
      }
46722
      return 0;
46723
    }
46724
 
46725
    public _Fields fieldForId(int fieldId) {
46726
      return _Fields.findByThriftId(fieldId);
46727
    }
46728
 
46729
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46730
      org.apache.thrift.protocol.TField field;
46731
      iprot.readStructBegin();
46732
      while (true)
46733
      {
46734
        field = iprot.readFieldBegin();
46735
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46736
          break;
46737
        }
46738
        switch (field.id) {
46739
          case 1: // ITEM_ID
46740
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46741
              this.itemId = iprot.readI64();
46742
              setItemIdIsSet(true);
46743
            } else { 
46744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46745
            }
46746
            break;
46747
          case 2: // WAREHOUSE_ID
46748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46749
              this.warehouseId = iprot.readI64();
46750
              setWarehouseIdIsSet(true);
46751
            } else { 
46752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46753
            }
46754
            break;
46755
          case 3: // HOLD_QUANTITY
46756
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46757
              this.holdQuantity = iprot.readI64();
46758
              setHoldQuantityIsSet(true);
46759
            } else { 
46760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46761
            }
46762
            break;
46763
          case 4: // SOURCE
46764
            if (field.type == org.apache.thrift.protocol.TType.I64) {
46765
              this.source = iprot.readI64();
46766
              setSourceIsSet(true);
46767
            } else { 
46768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46769
            }
46770
            break;
46771
          default:
46772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46773
        }
46774
        iprot.readFieldEnd();
46775
      }
46776
      iprot.readStructEnd();
46777
      validate();
46778
    }
46779
 
46780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46781
      validate();
46782
 
46783
      oprot.writeStructBegin(STRUCT_DESC);
46784
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
46785
      oprot.writeI64(this.itemId);
46786
      oprot.writeFieldEnd();
46787
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
46788
      oprot.writeI64(this.warehouseId);
46789
      oprot.writeFieldEnd();
46790
      oprot.writeFieldBegin(HOLD_QUANTITY_FIELD_DESC);
46791
      oprot.writeI64(this.holdQuantity);
46792
      oprot.writeFieldEnd();
46793
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
46794
      oprot.writeI64(this.source);
46795
      oprot.writeFieldEnd();
46796
      oprot.writeFieldStop();
46797
      oprot.writeStructEnd();
46798
    }
46799
 
46800
    @Override
46801
    public String toString() {
46802
      StringBuilder sb = new StringBuilder("addUpdateHoldInventory_args(");
46803
      boolean first = true;
46804
 
46805
      sb.append("itemId:");
46806
      sb.append(this.itemId);
46807
      first = false;
46808
      if (!first) sb.append(", ");
46809
      sb.append("warehouseId:");
46810
      sb.append(this.warehouseId);
46811
      first = false;
46812
      if (!first) sb.append(", ");
46813
      sb.append("holdQuantity:");
46814
      sb.append(this.holdQuantity);
46815
      first = false;
46816
      if (!first) sb.append(", ");
46817
      sb.append("source:");
46818
      sb.append(this.source);
46819
      first = false;
46820
      sb.append(")");
46821
      return sb.toString();
46822
    }
46823
 
46824
    public void validate() throws org.apache.thrift.TException {
46825
      // check for required fields
46826
    }
46827
 
46828
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46829
      try {
46830
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46831
      } catch (org.apache.thrift.TException te) {
46832
        throw new java.io.IOException(te);
46833
      }
46834
    }
46835
 
46836
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46837
      try {
46838
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
46839
        __isset_bit_vector = new BitSet(1);
46840
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46841
      } catch (org.apache.thrift.TException te) {
46842
        throw new java.io.IOException(te);
46843
      }
46844
    }
46845
 
46846
  }
46847
 
46848
  public static class addUpdateHoldInventory_result implements org.apache.thrift.TBase<addUpdateHoldInventory_result, addUpdateHoldInventory_result._Fields>, java.io.Serializable, Cloneable   {
46849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_result");
46850
 
9762 amar.kumar 46851
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
8182 amar.kumar 46852
 
9762 amar.kumar 46853
    private InventoryServiceException cex; // required
8182 amar.kumar 46854
 
46855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9762 amar.kumar 46857
      CEX((short)1, "cex");
8182 amar.kumar 46858
 
46859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46860
 
46861
      static {
46862
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46863
          byName.put(field.getFieldName(), field);
46864
        }
46865
      }
46866
 
46867
      /**
46868
       * Find the _Fields constant that matches fieldId, or null if its not found.
46869
       */
46870
      public static _Fields findByThriftId(int fieldId) {
46871
        switch(fieldId) {
9762 amar.kumar 46872
          case 1: // CEX
46873
            return CEX;
8182 amar.kumar 46874
          default:
46875
            return null;
46876
        }
46877
      }
46878
 
46879
      /**
46880
       * Find the _Fields constant that matches fieldId, throwing an exception
46881
       * if it is not found.
46882
       */
46883
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46884
        _Fields fields = findByThriftId(fieldId);
46885
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46886
        return fields;
46887
      }
46888
 
46889
      /**
46890
       * Find the _Fields constant that matches name, or null if its not found.
46891
       */
46892
      public static _Fields findByName(String name) {
46893
        return byName.get(name);
46894
      }
46895
 
46896
      private final short _thriftId;
46897
      private final String _fieldName;
46898
 
46899
      _Fields(short thriftId, String fieldName) {
46900
        _thriftId = thriftId;
46901
        _fieldName = fieldName;
46902
      }
46903
 
46904
      public short getThriftFieldId() {
46905
        return _thriftId;
46906
      }
46907
 
46908
      public String getFieldName() {
46909
        return _fieldName;
46910
      }
46911
    }
9762 amar.kumar 46912
 
46913
    // isset id assignments
46914
 
8182 amar.kumar 46915
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46916
    static {
46917
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9762 amar.kumar 46918
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8182 amar.kumar 46920
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46921
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateHoldInventory_result.class, metaDataMap);
46922
    }
46923
 
46924
    public addUpdateHoldInventory_result() {
46925
    }
46926
 
9762 amar.kumar 46927
    public addUpdateHoldInventory_result(
46928
      InventoryServiceException cex)
46929
    {
46930
      this();
46931
      this.cex = cex;
46932
    }
46933
 
8182 amar.kumar 46934
    /**
46935
     * Performs a deep copy on <i>other</i>.
46936
     */
46937
    public addUpdateHoldInventory_result(addUpdateHoldInventory_result other) {
9762 amar.kumar 46938
      if (other.isSetCex()) {
46939
        this.cex = new InventoryServiceException(other.cex);
46940
      }
8182 amar.kumar 46941
    }
46942
 
46943
    public addUpdateHoldInventory_result deepCopy() {
46944
      return new addUpdateHoldInventory_result(this);
46945
    }
46946
 
46947
    @Override
46948
    public void clear() {
9762 amar.kumar 46949
      this.cex = null;
8182 amar.kumar 46950
    }
46951
 
9762 amar.kumar 46952
    public InventoryServiceException getCex() {
46953
      return this.cex;
46954
    }
46955
 
46956
    public void setCex(InventoryServiceException cex) {
46957
      this.cex = cex;
46958
    }
46959
 
46960
    public void unsetCex() {
46961
      this.cex = null;
46962
    }
46963
 
46964
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
46965
    public boolean isSetCex() {
46966
      return this.cex != null;
46967
    }
46968
 
46969
    public void setCexIsSet(boolean value) {
46970
      if (!value) {
46971
        this.cex = null;
46972
      }
46973
    }
46974
 
8182 amar.kumar 46975
    public void setFieldValue(_Fields field, Object value) {
46976
      switch (field) {
9762 amar.kumar 46977
      case CEX:
46978
        if (value == null) {
46979
          unsetCex();
46980
        } else {
46981
          setCex((InventoryServiceException)value);
46982
        }
46983
        break;
46984
 
8182 amar.kumar 46985
      }
46986
    }
46987
 
46988
    public Object getFieldValue(_Fields field) {
46989
      switch (field) {
9762 amar.kumar 46990
      case CEX:
46991
        return getCex();
46992
 
8182 amar.kumar 46993
      }
46994
      throw new IllegalStateException();
46995
    }
46996
 
46997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46998
    public boolean isSet(_Fields field) {
46999
      if (field == null) {
47000
        throw new IllegalArgumentException();
47001
      }
47002
 
47003
      switch (field) {
9762 amar.kumar 47004
      case CEX:
47005
        return isSetCex();
8182 amar.kumar 47006
      }
47007
      throw new IllegalStateException();
47008
    }
47009
 
47010
    @Override
47011
    public boolean equals(Object that) {
47012
      if (that == null)
47013
        return false;
47014
      if (that instanceof addUpdateHoldInventory_result)
47015
        return this.equals((addUpdateHoldInventory_result)that);
47016
      return false;
47017
    }
47018
 
47019
    public boolean equals(addUpdateHoldInventory_result that) {
47020
      if (that == null)
47021
        return false;
47022
 
9762 amar.kumar 47023
      boolean this_present_cex = true && this.isSetCex();
47024
      boolean that_present_cex = true && that.isSetCex();
47025
      if (this_present_cex || that_present_cex) {
47026
        if (!(this_present_cex && that_present_cex))
47027
          return false;
47028
        if (!this.cex.equals(that.cex))
47029
          return false;
47030
      }
47031
 
8182 amar.kumar 47032
      return true;
47033
    }
47034
 
47035
    @Override
47036
    public int hashCode() {
47037
      return 0;
47038
    }
47039
 
47040
    public int compareTo(addUpdateHoldInventory_result other) {
47041
      if (!getClass().equals(other.getClass())) {
47042
        return getClass().getName().compareTo(other.getClass().getName());
47043
      }
47044
 
47045
      int lastComparison = 0;
47046
      addUpdateHoldInventory_result typedOther = (addUpdateHoldInventory_result)other;
47047
 
9762 amar.kumar 47048
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
47049
      if (lastComparison != 0) {
47050
        return lastComparison;
47051
      }
47052
      if (isSetCex()) {
47053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
47054
        if (lastComparison != 0) {
47055
          return lastComparison;
47056
        }
47057
      }
8182 amar.kumar 47058
      return 0;
47059
    }
47060
 
47061
    public _Fields fieldForId(int fieldId) {
47062
      return _Fields.findByThriftId(fieldId);
47063
    }
47064
 
47065
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47066
      org.apache.thrift.protocol.TField field;
47067
      iprot.readStructBegin();
47068
      while (true)
47069
      {
47070
        field = iprot.readFieldBegin();
47071
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47072
          break;
47073
        }
47074
        switch (field.id) {
9762 amar.kumar 47075
          case 1: // CEX
47076
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
47077
              this.cex = new InventoryServiceException();
47078
              this.cex.read(iprot);
47079
            } else { 
47080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47081
            }
47082
            break;
8182 amar.kumar 47083
          default:
47084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47085
        }
47086
        iprot.readFieldEnd();
47087
      }
47088
      iprot.readStructEnd();
47089
      validate();
47090
    }
47091
 
47092
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47093
      oprot.writeStructBegin(STRUCT_DESC);
47094
 
9762 amar.kumar 47095
      if (this.isSetCex()) {
47096
        oprot.writeFieldBegin(CEX_FIELD_DESC);
47097
        this.cex.write(oprot);
47098
        oprot.writeFieldEnd();
47099
      }
8182 amar.kumar 47100
      oprot.writeFieldStop();
47101
      oprot.writeStructEnd();
47102
    }
47103
 
47104
    @Override
47105
    public String toString() {
47106
      StringBuilder sb = new StringBuilder("addUpdateHoldInventory_result(");
47107
      boolean first = true;
47108
 
9762 amar.kumar 47109
      sb.append("cex:");
47110
      if (this.cex == null) {
47111
        sb.append("null");
47112
      } else {
47113
        sb.append(this.cex);
47114
      }
47115
      first = false;
8182 amar.kumar 47116
      sb.append(")");
47117
      return sb.toString();
47118
    }
47119
 
47120
    public void validate() throws org.apache.thrift.TException {
47121
      // check for required fields
47122
    }
47123
 
47124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47125
      try {
47126
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47127
      } catch (org.apache.thrift.TException te) {
47128
        throw new java.io.IOException(te);
47129
      }
47130
    }
47131
 
47132
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47133
      try {
47134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47135
      } catch (org.apache.thrift.TException te) {
47136
        throw new java.io.IOException(te);
47137
      }
47138
    }
47139
 
47140
  }
47141
 
8282 kshitij.so 47142
  public static class getAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAmazonFbaItemInventory_args, getAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
47143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaItemInventory_args");
47144
 
47145
    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);
47146
 
47147
    private long itemId; // required
47148
 
47149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47151
      ITEM_ID((short)1, "itemId");
47152
 
47153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47154
 
47155
      static {
47156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47157
          byName.put(field.getFieldName(), field);
47158
        }
47159
      }
47160
 
47161
      /**
47162
       * Find the _Fields constant that matches fieldId, or null if its not found.
47163
       */
47164
      public static _Fields findByThriftId(int fieldId) {
47165
        switch(fieldId) {
47166
          case 1: // ITEM_ID
47167
            return ITEM_ID;
47168
          default:
47169
            return null;
47170
        }
47171
      }
47172
 
47173
      /**
47174
       * Find the _Fields constant that matches fieldId, throwing an exception
47175
       * if it is not found.
47176
       */
47177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47178
        _Fields fields = findByThriftId(fieldId);
47179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47180
        return fields;
47181
      }
47182
 
47183
      /**
47184
       * Find the _Fields constant that matches name, or null if its not found.
47185
       */
47186
      public static _Fields findByName(String name) {
47187
        return byName.get(name);
47188
      }
47189
 
47190
      private final short _thriftId;
47191
      private final String _fieldName;
47192
 
47193
      _Fields(short thriftId, String fieldName) {
47194
        _thriftId = thriftId;
47195
        _fieldName = fieldName;
47196
      }
47197
 
47198
      public short getThriftFieldId() {
47199
        return _thriftId;
47200
      }
47201
 
47202
      public String getFieldName() {
47203
        return _fieldName;
47204
      }
47205
    }
47206
 
47207
    // isset id assignments
47208
    private static final int __ITEMID_ISSET_ID = 0;
47209
    private BitSet __isset_bit_vector = new BitSet(1);
47210
 
47211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47212
    static {
47213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47214
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47216
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47217
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaItemInventory_args.class, metaDataMap);
47218
    }
47219
 
47220
    public getAmazonFbaItemInventory_args() {
47221
    }
47222
 
47223
    public getAmazonFbaItemInventory_args(
47224
      long itemId)
47225
    {
47226
      this();
47227
      this.itemId = itemId;
47228
      setItemIdIsSet(true);
47229
    }
47230
 
47231
    /**
47232
     * Performs a deep copy on <i>other</i>.
47233
     */
47234
    public getAmazonFbaItemInventory_args(getAmazonFbaItemInventory_args other) {
47235
      __isset_bit_vector.clear();
47236
      __isset_bit_vector.or(other.__isset_bit_vector);
47237
      this.itemId = other.itemId;
47238
    }
47239
 
47240
    public getAmazonFbaItemInventory_args deepCopy() {
47241
      return new getAmazonFbaItemInventory_args(this);
47242
    }
47243
 
47244
    @Override
47245
    public void clear() {
47246
      setItemIdIsSet(false);
47247
      this.itemId = 0;
47248
    }
47249
 
47250
    public long getItemId() {
47251
      return this.itemId;
47252
    }
47253
 
47254
    public void setItemId(long itemId) {
47255
      this.itemId = itemId;
47256
      setItemIdIsSet(true);
47257
    }
47258
 
47259
    public void unsetItemId() {
47260
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
47261
    }
47262
 
47263
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
47264
    public boolean isSetItemId() {
47265
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
47266
    }
47267
 
47268
    public void setItemIdIsSet(boolean value) {
47269
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
47270
    }
47271
 
47272
    public void setFieldValue(_Fields field, Object value) {
47273
      switch (field) {
47274
      case ITEM_ID:
47275
        if (value == null) {
47276
          unsetItemId();
47277
        } else {
47278
          setItemId((Long)value);
47279
        }
47280
        break;
47281
 
47282
      }
47283
    }
47284
 
47285
    public Object getFieldValue(_Fields field) {
47286
      switch (field) {
47287
      case ITEM_ID:
47288
        return Long.valueOf(getItemId());
47289
 
47290
      }
47291
      throw new IllegalStateException();
47292
    }
47293
 
47294
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47295
    public boolean isSet(_Fields field) {
47296
      if (field == null) {
47297
        throw new IllegalArgumentException();
47298
      }
47299
 
47300
      switch (field) {
47301
      case ITEM_ID:
47302
        return isSetItemId();
47303
      }
47304
      throw new IllegalStateException();
47305
    }
47306
 
47307
    @Override
47308
    public boolean equals(Object that) {
47309
      if (that == null)
47310
        return false;
47311
      if (that instanceof getAmazonFbaItemInventory_args)
47312
        return this.equals((getAmazonFbaItemInventory_args)that);
47313
      return false;
47314
    }
47315
 
47316
    public boolean equals(getAmazonFbaItemInventory_args that) {
47317
      if (that == null)
47318
        return false;
47319
 
47320
      boolean this_present_itemId = true;
47321
      boolean that_present_itemId = true;
47322
      if (this_present_itemId || that_present_itemId) {
47323
        if (!(this_present_itemId && that_present_itemId))
47324
          return false;
47325
        if (this.itemId != that.itemId)
47326
          return false;
47327
      }
47328
 
47329
      return true;
47330
    }
47331
 
47332
    @Override
47333
    public int hashCode() {
47334
      return 0;
47335
    }
47336
 
47337
    public int compareTo(getAmazonFbaItemInventory_args other) {
47338
      if (!getClass().equals(other.getClass())) {
47339
        return getClass().getName().compareTo(other.getClass().getName());
47340
      }
47341
 
47342
      int lastComparison = 0;
47343
      getAmazonFbaItemInventory_args typedOther = (getAmazonFbaItemInventory_args)other;
47344
 
47345
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
47346
      if (lastComparison != 0) {
47347
        return lastComparison;
47348
      }
47349
      if (isSetItemId()) {
47350
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
47351
        if (lastComparison != 0) {
47352
          return lastComparison;
47353
        }
47354
      }
47355
      return 0;
47356
    }
47357
 
47358
    public _Fields fieldForId(int fieldId) {
47359
      return _Fields.findByThriftId(fieldId);
47360
    }
47361
 
47362
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47363
      org.apache.thrift.protocol.TField field;
47364
      iprot.readStructBegin();
47365
      while (true)
47366
      {
47367
        field = iprot.readFieldBegin();
47368
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47369
          break;
47370
        }
47371
        switch (field.id) {
47372
          case 1: // ITEM_ID
47373
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47374
              this.itemId = iprot.readI64();
47375
              setItemIdIsSet(true);
47376
            } else { 
47377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47378
            }
47379
            break;
47380
          default:
47381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47382
        }
47383
        iprot.readFieldEnd();
47384
      }
47385
      iprot.readStructEnd();
47386
      validate();
47387
    }
47388
 
47389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47390
      validate();
47391
 
47392
      oprot.writeStructBegin(STRUCT_DESC);
47393
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
47394
      oprot.writeI64(this.itemId);
47395
      oprot.writeFieldEnd();
47396
      oprot.writeFieldStop();
47397
      oprot.writeStructEnd();
47398
    }
47399
 
47400
    @Override
47401
    public String toString() {
47402
      StringBuilder sb = new StringBuilder("getAmazonFbaItemInventory_args(");
47403
      boolean first = true;
47404
 
47405
      sb.append("itemId:");
47406
      sb.append(this.itemId);
47407
      first = false;
47408
      sb.append(")");
47409
      return sb.toString();
47410
    }
47411
 
47412
    public void validate() throws org.apache.thrift.TException {
47413
      // check for required fields
47414
    }
47415
 
47416
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47417
      try {
47418
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47419
      } catch (org.apache.thrift.TException te) {
47420
        throw new java.io.IOException(te);
47421
      }
47422
    }
47423
 
47424
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47425
      try {
47426
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
47427
        __isset_bit_vector = new BitSet(1);
47428
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47429
      } catch (org.apache.thrift.TException te) {
47430
        throw new java.io.IOException(te);
47431
      }
47432
    }
47433
 
47434
  }
47435
 
47436
  public static class getAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAmazonFbaItemInventory_result, getAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
47437
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaItemInventory_result");
47438
 
11173 vikram.rag 47439
    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);
8282 kshitij.so 47440
 
11173 vikram.rag 47441
    private List<AmazonFbaInventorySnapshot> success; // required
8282 kshitij.so 47442
 
47443
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47444
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47445
      SUCCESS((short)0, "success");
47446
 
47447
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47448
 
47449
      static {
47450
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47451
          byName.put(field.getFieldName(), field);
47452
        }
47453
      }
47454
 
47455
      /**
47456
       * Find the _Fields constant that matches fieldId, or null if its not found.
47457
       */
47458
      public static _Fields findByThriftId(int fieldId) {
47459
        switch(fieldId) {
47460
          case 0: // SUCCESS
47461
            return SUCCESS;
47462
          default:
47463
            return null;
47464
        }
47465
      }
47466
 
47467
      /**
47468
       * Find the _Fields constant that matches fieldId, throwing an exception
47469
       * if it is not found.
47470
       */
47471
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47472
        _Fields fields = findByThriftId(fieldId);
47473
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47474
        return fields;
47475
      }
47476
 
47477
      /**
47478
       * Find the _Fields constant that matches name, or null if its not found.
47479
       */
47480
      public static _Fields findByName(String name) {
47481
        return byName.get(name);
47482
      }
47483
 
47484
      private final short _thriftId;
47485
      private final String _fieldName;
47486
 
47487
      _Fields(short thriftId, String fieldName) {
47488
        _thriftId = thriftId;
47489
        _fieldName = fieldName;
47490
      }
47491
 
47492
      public short getThriftFieldId() {
47493
        return _thriftId;
47494
      }
47495
 
47496
      public String getFieldName() {
47497
        return _fieldName;
47498
      }
47499
    }
47500
 
47501
    // isset id assignments
47502
 
47503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47504
    static {
47505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47506
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11173 vikram.rag 47507
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
47508
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
8282 kshitij.so 47509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaItemInventory_result.class, metaDataMap);
47511
    }
47512
 
47513
    public getAmazonFbaItemInventory_result() {
47514
    }
47515
 
47516
    public getAmazonFbaItemInventory_result(
11173 vikram.rag 47517
      List<AmazonFbaInventorySnapshot> success)
8282 kshitij.so 47518
    {
47519
      this();
47520
      this.success = success;
47521
    }
47522
 
47523
    /**
47524
     * Performs a deep copy on <i>other</i>.
47525
     */
47526
    public getAmazonFbaItemInventory_result(getAmazonFbaItemInventory_result other) {
11173 vikram.rag 47527
      if (other.isSetSuccess()) {
47528
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
47529
        for (AmazonFbaInventorySnapshot other_element : other.success) {
47530
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
47531
        }
47532
        this.success = __this__success;
47533
      }
8282 kshitij.so 47534
    }
47535
 
47536
    public getAmazonFbaItemInventory_result deepCopy() {
47537
      return new getAmazonFbaItemInventory_result(this);
47538
    }
47539
 
47540
    @Override
47541
    public void clear() {
11173 vikram.rag 47542
      this.success = null;
8282 kshitij.so 47543
    }
47544
 
11173 vikram.rag 47545
    public int getSuccessSize() {
47546
      return (this.success == null) ? 0 : this.success.size();
47547
    }
47548
 
47549
    public java.util.Iterator<AmazonFbaInventorySnapshot> getSuccessIterator() {
47550
      return (this.success == null) ? null : this.success.iterator();
47551
    }
47552
 
47553
    public void addToSuccess(AmazonFbaInventorySnapshot elem) {
47554
      if (this.success == null) {
47555
        this.success = new ArrayList<AmazonFbaInventorySnapshot>();
47556
      }
47557
      this.success.add(elem);
47558
    }
47559
 
47560
    public List<AmazonFbaInventorySnapshot> getSuccess() {
8282 kshitij.so 47561
      return this.success;
47562
    }
47563
 
11173 vikram.rag 47564
    public void setSuccess(List<AmazonFbaInventorySnapshot> success) {
8282 kshitij.so 47565
      this.success = success;
47566
    }
47567
 
47568
    public void unsetSuccess() {
11173 vikram.rag 47569
      this.success = null;
8282 kshitij.so 47570
    }
47571
 
47572
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
47573
    public boolean isSetSuccess() {
11173 vikram.rag 47574
      return this.success != null;
8282 kshitij.so 47575
    }
47576
 
47577
    public void setSuccessIsSet(boolean value) {
11173 vikram.rag 47578
      if (!value) {
47579
        this.success = null;
47580
      }
8282 kshitij.so 47581
    }
47582
 
47583
    public void setFieldValue(_Fields field, Object value) {
47584
      switch (field) {
47585
      case SUCCESS:
47586
        if (value == null) {
47587
          unsetSuccess();
47588
        } else {
11173 vikram.rag 47589
          setSuccess((List<AmazonFbaInventorySnapshot>)value);
8282 kshitij.so 47590
        }
47591
        break;
47592
 
47593
      }
47594
    }
47595
 
47596
    public Object getFieldValue(_Fields field) {
47597
      switch (field) {
47598
      case SUCCESS:
11173 vikram.rag 47599
        return getSuccess();
8282 kshitij.so 47600
 
47601
      }
47602
      throw new IllegalStateException();
47603
    }
47604
 
47605
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47606
    public boolean isSet(_Fields field) {
47607
      if (field == null) {
47608
        throw new IllegalArgumentException();
47609
      }
47610
 
47611
      switch (field) {
47612
      case SUCCESS:
47613
        return isSetSuccess();
47614
      }
47615
      throw new IllegalStateException();
47616
    }
47617
 
47618
    @Override
47619
    public boolean equals(Object that) {
47620
      if (that == null)
47621
        return false;
47622
      if (that instanceof getAmazonFbaItemInventory_result)
47623
        return this.equals((getAmazonFbaItemInventory_result)that);
47624
      return false;
47625
    }
47626
 
47627
    public boolean equals(getAmazonFbaItemInventory_result that) {
47628
      if (that == null)
47629
        return false;
47630
 
11173 vikram.rag 47631
      boolean this_present_success = true && this.isSetSuccess();
47632
      boolean that_present_success = true && that.isSetSuccess();
8282 kshitij.so 47633
      if (this_present_success || that_present_success) {
47634
        if (!(this_present_success && that_present_success))
47635
          return false;
11173 vikram.rag 47636
        if (!this.success.equals(that.success))
8282 kshitij.so 47637
          return false;
47638
      }
47639
 
47640
      return true;
47641
    }
47642
 
47643
    @Override
47644
    public int hashCode() {
47645
      return 0;
47646
    }
47647
 
47648
    public int compareTo(getAmazonFbaItemInventory_result other) {
47649
      if (!getClass().equals(other.getClass())) {
47650
        return getClass().getName().compareTo(other.getClass().getName());
47651
      }
47652
 
47653
      int lastComparison = 0;
47654
      getAmazonFbaItemInventory_result typedOther = (getAmazonFbaItemInventory_result)other;
47655
 
47656
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
47657
      if (lastComparison != 0) {
47658
        return lastComparison;
47659
      }
47660
      if (isSetSuccess()) {
47661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
47662
        if (lastComparison != 0) {
47663
          return lastComparison;
47664
        }
47665
      }
47666
      return 0;
47667
    }
47668
 
47669
    public _Fields fieldForId(int fieldId) {
47670
      return _Fields.findByThriftId(fieldId);
47671
    }
47672
 
47673
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47674
      org.apache.thrift.protocol.TField field;
47675
      iprot.readStructBegin();
47676
      while (true)
47677
      {
47678
        field = iprot.readFieldBegin();
47679
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47680
          break;
47681
        }
47682
        switch (field.id) {
47683
          case 0: // SUCCESS
11173 vikram.rag 47684
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
47685
              {
47686
                org.apache.thrift.protocol.TList _list138 = iprot.readListBegin();
47687
                this.success = new ArrayList<AmazonFbaInventorySnapshot>(_list138.size);
47688
                for (int _i139 = 0; _i139 < _list138.size; ++_i139)
47689
                {
47690
                  AmazonFbaInventorySnapshot _elem140; // required
47691
                  _elem140 = new AmazonFbaInventorySnapshot();
47692
                  _elem140.read(iprot);
47693
                  this.success.add(_elem140);
47694
                }
47695
                iprot.readListEnd();
47696
              }
8282 kshitij.so 47697
            } else { 
47698
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47699
            }
47700
            break;
47701
          default:
47702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47703
        }
47704
        iprot.readFieldEnd();
47705
      }
47706
      iprot.readStructEnd();
47707
      validate();
47708
    }
47709
 
47710
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47711
      oprot.writeStructBegin(STRUCT_DESC);
47712
 
47713
      if (this.isSetSuccess()) {
47714
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11173 vikram.rag 47715
        {
47716
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
47717
          for (AmazonFbaInventorySnapshot _iter141 : this.success)
47718
          {
47719
            _iter141.write(oprot);
47720
          }
47721
          oprot.writeListEnd();
47722
        }
8282 kshitij.so 47723
        oprot.writeFieldEnd();
47724
      }
47725
      oprot.writeFieldStop();
47726
      oprot.writeStructEnd();
47727
    }
47728
 
47729
    @Override
47730
    public String toString() {
47731
      StringBuilder sb = new StringBuilder("getAmazonFbaItemInventory_result(");
47732
      boolean first = true;
47733
 
47734
      sb.append("success:");
11173 vikram.rag 47735
      if (this.success == null) {
47736
        sb.append("null");
47737
      } else {
47738
        sb.append(this.success);
47739
      }
8282 kshitij.so 47740
      first = false;
47741
      sb.append(")");
47742
      return sb.toString();
47743
    }
47744
 
47745
    public void validate() throws org.apache.thrift.TException {
47746
      // check for required fields
47747
    }
47748
 
47749
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47750
      try {
47751
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47752
      } catch (org.apache.thrift.TException te) {
47753
        throw new java.io.IOException(te);
47754
      }
47755
    }
47756
 
47757
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47758
      try {
47759
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47760
      } catch (org.apache.thrift.TException te) {
47761
        throw new java.io.IOException(te);
47762
      }
47763
    }
47764
 
47765
  }
47766
 
8363 vikram.rag 47767
  public static class getAllAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAllAmazonFbaItemInventory_args, getAllAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
47768
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonFbaItemInventory_args");
8282 kshitij.so 47769
 
47770
 
47771
 
47772
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47773
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47774
;
47775
 
47776
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47777
 
47778
      static {
47779
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47780
          byName.put(field.getFieldName(), field);
47781
        }
47782
      }
47783
 
47784
      /**
47785
       * Find the _Fields constant that matches fieldId, or null if its not found.
47786
       */
47787
      public static _Fields findByThriftId(int fieldId) {
47788
        switch(fieldId) {
47789
          default:
47790
            return null;
47791
        }
47792
      }
47793
 
47794
      /**
47795
       * Find the _Fields constant that matches fieldId, throwing an exception
47796
       * if it is not found.
47797
       */
47798
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47799
        _Fields fields = findByThriftId(fieldId);
47800
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47801
        return fields;
47802
      }
47803
 
47804
      /**
47805
       * Find the _Fields constant that matches name, or null if its not found.
47806
       */
47807
      public static _Fields findByName(String name) {
47808
        return byName.get(name);
47809
      }
47810
 
47811
      private final short _thriftId;
47812
      private final String _fieldName;
47813
 
47814
      _Fields(short thriftId, String fieldName) {
47815
        _thriftId = thriftId;
47816
        _fieldName = fieldName;
47817
      }
47818
 
47819
      public short getThriftFieldId() {
47820
        return _thriftId;
47821
      }
47822
 
47823
      public String getFieldName() {
47824
        return _fieldName;
47825
      }
47826
    }
47827
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47828
    static {
47829
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47830
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8363 vikram.rag 47831
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonFbaItemInventory_args.class, metaDataMap);
8282 kshitij.so 47832
    }
47833
 
8363 vikram.rag 47834
    public getAllAmazonFbaItemInventory_args() {
8282 kshitij.so 47835
    }
47836
 
47837
    /**
47838
     * Performs a deep copy on <i>other</i>.
47839
     */
8363 vikram.rag 47840
    public getAllAmazonFbaItemInventory_args(getAllAmazonFbaItemInventory_args other) {
8282 kshitij.so 47841
    }
47842
 
8363 vikram.rag 47843
    public getAllAmazonFbaItemInventory_args deepCopy() {
47844
      return new getAllAmazonFbaItemInventory_args(this);
8282 kshitij.so 47845
    }
47846
 
47847
    @Override
47848
    public void clear() {
47849
    }
47850
 
47851
    public void setFieldValue(_Fields field, Object value) {
47852
      switch (field) {
47853
      }
47854
    }
47855
 
47856
    public Object getFieldValue(_Fields field) {
47857
      switch (field) {
47858
      }
47859
      throw new IllegalStateException();
47860
    }
47861
 
47862
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47863
    public boolean isSet(_Fields field) {
47864
      if (field == null) {
47865
        throw new IllegalArgumentException();
47866
      }
47867
 
47868
      switch (field) {
47869
      }
47870
      throw new IllegalStateException();
47871
    }
47872
 
47873
    @Override
47874
    public boolean equals(Object that) {
47875
      if (that == null)
47876
        return false;
8363 vikram.rag 47877
      if (that instanceof getAllAmazonFbaItemInventory_args)
47878
        return this.equals((getAllAmazonFbaItemInventory_args)that);
8282 kshitij.so 47879
      return false;
47880
    }
47881
 
8363 vikram.rag 47882
    public boolean equals(getAllAmazonFbaItemInventory_args that) {
8282 kshitij.so 47883
      if (that == null)
47884
        return false;
47885
 
47886
      return true;
47887
    }
47888
 
47889
    @Override
47890
    public int hashCode() {
47891
      return 0;
47892
    }
47893
 
8363 vikram.rag 47894
    public int compareTo(getAllAmazonFbaItemInventory_args other) {
8282 kshitij.so 47895
      if (!getClass().equals(other.getClass())) {
47896
        return getClass().getName().compareTo(other.getClass().getName());
47897
      }
47898
 
47899
      int lastComparison = 0;
8363 vikram.rag 47900
      getAllAmazonFbaItemInventory_args typedOther = (getAllAmazonFbaItemInventory_args)other;
8282 kshitij.so 47901
 
47902
      return 0;
47903
    }
47904
 
47905
    public _Fields fieldForId(int fieldId) {
47906
      return _Fields.findByThriftId(fieldId);
47907
    }
47908
 
47909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47910
      org.apache.thrift.protocol.TField field;
47911
      iprot.readStructBegin();
47912
      while (true)
47913
      {
47914
        field = iprot.readFieldBegin();
47915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47916
          break;
47917
        }
47918
        switch (field.id) {
47919
          default:
47920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47921
        }
47922
        iprot.readFieldEnd();
47923
      }
47924
      iprot.readStructEnd();
47925
      validate();
47926
    }
47927
 
47928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47929
      validate();
47930
 
47931
      oprot.writeStructBegin(STRUCT_DESC);
47932
      oprot.writeFieldStop();
47933
      oprot.writeStructEnd();
47934
    }
47935
 
47936
    @Override
47937
    public String toString() {
8363 vikram.rag 47938
      StringBuilder sb = new StringBuilder("getAllAmazonFbaItemInventory_args(");
8282 kshitij.so 47939
      boolean first = true;
47940
 
47941
      sb.append(")");
47942
      return sb.toString();
47943
    }
47944
 
47945
    public void validate() throws org.apache.thrift.TException {
47946
      // check for required fields
47947
    }
47948
 
47949
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47950
      try {
47951
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47952
      } catch (org.apache.thrift.TException te) {
47953
        throw new java.io.IOException(te);
47954
      }
47955
    }
47956
 
47957
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47958
      try {
47959
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47960
      } catch (org.apache.thrift.TException te) {
47961
        throw new java.io.IOException(te);
47962
      }
47963
    }
47964
 
47965
  }
47966
 
8363 vikram.rag 47967
  public static class getAllAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAllAmazonFbaItemInventory_result, getAllAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
47968
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonFbaItemInventory_result");
8282 kshitij.so 47969
 
47970
    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);
47971
 
47972
    private List<AmazonFbaInventorySnapshot> success; // required
47973
 
47974
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47975
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47976
      SUCCESS((short)0, "success");
47977
 
47978
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47979
 
47980
      static {
47981
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47982
          byName.put(field.getFieldName(), field);
47983
        }
47984
      }
47985
 
47986
      /**
47987
       * Find the _Fields constant that matches fieldId, or null if its not found.
47988
       */
47989
      public static _Fields findByThriftId(int fieldId) {
47990
        switch(fieldId) {
47991
          case 0: // SUCCESS
47992
            return SUCCESS;
47993
          default:
47994
            return null;
47995
        }
47996
      }
47997
 
47998
      /**
47999
       * Find the _Fields constant that matches fieldId, throwing an exception
48000
       * if it is not found.
48001
       */
48002
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48003
        _Fields fields = findByThriftId(fieldId);
48004
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48005
        return fields;
48006
      }
48007
 
48008
      /**
48009
       * Find the _Fields constant that matches name, or null if its not found.
48010
       */
48011
      public static _Fields findByName(String name) {
48012
        return byName.get(name);
48013
      }
48014
 
48015
      private final short _thriftId;
48016
      private final String _fieldName;
48017
 
48018
      _Fields(short thriftId, String fieldName) {
48019
        _thriftId = thriftId;
48020
        _fieldName = fieldName;
48021
      }
48022
 
48023
      public short getThriftFieldId() {
48024
        return _thriftId;
48025
      }
48026
 
48027
      public String getFieldName() {
48028
        return _fieldName;
48029
      }
48030
    }
48031
 
48032
    // isset id assignments
48033
 
48034
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48035
    static {
48036
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48037
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48038
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
48039
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
48040
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8363 vikram.rag 48041
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonFbaItemInventory_result.class, metaDataMap);
8282 kshitij.so 48042
    }
48043
 
8363 vikram.rag 48044
    public getAllAmazonFbaItemInventory_result() {
8282 kshitij.so 48045
    }
48046
 
8363 vikram.rag 48047
    public getAllAmazonFbaItemInventory_result(
8282 kshitij.so 48048
      List<AmazonFbaInventorySnapshot> success)
48049
    {
48050
      this();
48051
      this.success = success;
48052
    }
48053
 
48054
    /**
48055
     * Performs a deep copy on <i>other</i>.
48056
     */
8363 vikram.rag 48057
    public getAllAmazonFbaItemInventory_result(getAllAmazonFbaItemInventory_result other) {
8282 kshitij.so 48058
      if (other.isSetSuccess()) {
48059
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
48060
        for (AmazonFbaInventorySnapshot other_element : other.success) {
48061
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
48062
        }
48063
        this.success = __this__success;
48064
      }
48065
    }
48066
 
8363 vikram.rag 48067
    public getAllAmazonFbaItemInventory_result deepCopy() {
48068
      return new getAllAmazonFbaItemInventory_result(this);
8282 kshitij.so 48069
    }
48070
 
48071
    @Override
48072
    public void clear() {
48073
      this.success = null;
48074
    }
48075
 
48076
    public int getSuccessSize() {
48077
      return (this.success == null) ? 0 : this.success.size();
48078
    }
48079
 
48080
    public java.util.Iterator<AmazonFbaInventorySnapshot> getSuccessIterator() {
48081
      return (this.success == null) ? null : this.success.iterator();
48082
    }
48083
 
48084
    public void addToSuccess(AmazonFbaInventorySnapshot elem) {
48085
      if (this.success == null) {
48086
        this.success = new ArrayList<AmazonFbaInventorySnapshot>();
48087
      }
48088
      this.success.add(elem);
48089
    }
48090
 
48091
    public List<AmazonFbaInventorySnapshot> getSuccess() {
48092
      return this.success;
48093
    }
48094
 
48095
    public void setSuccess(List<AmazonFbaInventorySnapshot> success) {
48096
      this.success = success;
48097
    }
48098
 
48099
    public void unsetSuccess() {
48100
      this.success = null;
48101
    }
48102
 
48103
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48104
    public boolean isSetSuccess() {
48105
      return this.success != null;
48106
    }
48107
 
48108
    public void setSuccessIsSet(boolean value) {
48109
      if (!value) {
48110
        this.success = null;
48111
      }
48112
    }
48113
 
48114
    public void setFieldValue(_Fields field, Object value) {
48115
      switch (field) {
48116
      case SUCCESS:
48117
        if (value == null) {
48118
          unsetSuccess();
48119
        } else {
48120
          setSuccess((List<AmazonFbaInventorySnapshot>)value);
48121
        }
48122
        break;
48123
 
48124
      }
48125
    }
48126
 
48127
    public Object getFieldValue(_Fields field) {
48128
      switch (field) {
48129
      case SUCCESS:
48130
        return getSuccess();
48131
 
48132
      }
48133
      throw new IllegalStateException();
48134
    }
48135
 
48136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48137
    public boolean isSet(_Fields field) {
48138
      if (field == null) {
48139
        throw new IllegalArgumentException();
48140
      }
48141
 
48142
      switch (field) {
48143
      case SUCCESS:
48144
        return isSetSuccess();
48145
      }
48146
      throw new IllegalStateException();
48147
    }
48148
 
48149
    @Override
48150
    public boolean equals(Object that) {
48151
      if (that == null)
48152
        return false;
8363 vikram.rag 48153
      if (that instanceof getAllAmazonFbaItemInventory_result)
48154
        return this.equals((getAllAmazonFbaItemInventory_result)that);
8282 kshitij.so 48155
      return false;
48156
    }
48157
 
8363 vikram.rag 48158
    public boolean equals(getAllAmazonFbaItemInventory_result that) {
8282 kshitij.so 48159
      if (that == null)
48160
        return false;
48161
 
48162
      boolean this_present_success = true && this.isSetSuccess();
48163
      boolean that_present_success = true && that.isSetSuccess();
48164
      if (this_present_success || that_present_success) {
48165
        if (!(this_present_success && that_present_success))
48166
          return false;
48167
        if (!this.success.equals(that.success))
48168
          return false;
48169
      }
48170
 
48171
      return true;
48172
    }
48173
 
48174
    @Override
48175
    public int hashCode() {
48176
      return 0;
48177
    }
48178
 
8363 vikram.rag 48179
    public int compareTo(getAllAmazonFbaItemInventory_result other) {
8282 kshitij.so 48180
      if (!getClass().equals(other.getClass())) {
48181
        return getClass().getName().compareTo(other.getClass().getName());
48182
      }
48183
 
48184
      int lastComparison = 0;
8363 vikram.rag 48185
      getAllAmazonFbaItemInventory_result typedOther = (getAllAmazonFbaItemInventory_result)other;
8282 kshitij.so 48186
 
48187
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48188
      if (lastComparison != 0) {
48189
        return lastComparison;
48190
      }
48191
      if (isSetSuccess()) {
48192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48193
        if (lastComparison != 0) {
48194
          return lastComparison;
48195
        }
48196
      }
48197
      return 0;
48198
    }
48199
 
48200
    public _Fields fieldForId(int fieldId) {
48201
      return _Fields.findByThriftId(fieldId);
48202
    }
48203
 
48204
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48205
      org.apache.thrift.protocol.TField field;
48206
      iprot.readStructBegin();
48207
      while (true)
48208
      {
48209
        field = iprot.readFieldBegin();
48210
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48211
          break;
48212
        }
48213
        switch (field.id) {
48214
          case 0: // SUCCESS
48215
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48216
              {
11173 vikram.rag 48217
                org.apache.thrift.protocol.TList _list142 = iprot.readListBegin();
48218
                this.success = new ArrayList<AmazonFbaInventorySnapshot>(_list142.size);
48219
                for (int _i143 = 0; _i143 < _list142.size; ++_i143)
8282 kshitij.so 48220
                {
11173 vikram.rag 48221
                  AmazonFbaInventorySnapshot _elem144; // required
48222
                  _elem144 = new AmazonFbaInventorySnapshot();
48223
                  _elem144.read(iprot);
48224
                  this.success.add(_elem144);
8282 kshitij.so 48225
                }
48226
                iprot.readListEnd();
48227
              }
48228
            } else { 
48229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48230
            }
48231
            break;
48232
          default:
48233
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48234
        }
48235
        iprot.readFieldEnd();
48236
      }
48237
      iprot.readStructEnd();
48238
      validate();
48239
    }
48240
 
48241
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48242
      oprot.writeStructBegin(STRUCT_DESC);
48243
 
48244
      if (this.isSetSuccess()) {
48245
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48246
        {
48247
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 48248
          for (AmazonFbaInventorySnapshot _iter145 : this.success)
8282 kshitij.so 48249
          {
11173 vikram.rag 48250
            _iter145.write(oprot);
8282 kshitij.so 48251
          }
48252
          oprot.writeListEnd();
48253
        }
48254
        oprot.writeFieldEnd();
48255
      }
48256
      oprot.writeFieldStop();
48257
      oprot.writeStructEnd();
48258
    }
48259
 
48260
    @Override
48261
    public String toString() {
8363 vikram.rag 48262
      StringBuilder sb = new StringBuilder("getAllAmazonFbaItemInventory_result(");
8282 kshitij.so 48263
      boolean first = true;
48264
 
48265
      sb.append("success:");
48266
      if (this.success == null) {
48267
        sb.append("null");
48268
      } else {
48269
        sb.append(this.success);
48270
      }
48271
      first = false;
48272
      sb.append(")");
48273
      return sb.toString();
48274
    }
48275
 
48276
    public void validate() throws org.apache.thrift.TException {
48277
      // check for required fields
48278
    }
48279
 
48280
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48281
      try {
48282
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48283
      } catch (org.apache.thrift.TException te) {
48284
        throw new java.io.IOException(te);
48285
      }
48286
    }
48287
 
48288
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48289
      try {
48290
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48291
      } catch (org.apache.thrift.TException te) {
48292
        throw new java.io.IOException(te);
48293
      }
48294
    }
48295
 
48296
  }
48297
 
8363 vikram.rag 48298
  public static class getOursGoodWarehouseIdsForLocation_args implements org.apache.thrift.TBase<getOursGoodWarehouseIdsForLocation_args, getOursGoodWarehouseIdsForLocation_args._Fields>, java.io.Serializable, Cloneable   {
48299
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOursGoodWarehouseIdsForLocation_args");
48300
 
48301
    private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("state_id", org.apache.thrift.protocol.TType.I64, (short)1);
48302
 
48303
    private long state_id; // required
48304
 
48305
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48306
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48307
      STATE_ID((short)1, "state_id");
48308
 
48309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48310
 
48311
      static {
48312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48313
          byName.put(field.getFieldName(), field);
48314
        }
48315
      }
48316
 
48317
      /**
48318
       * Find the _Fields constant that matches fieldId, or null if its not found.
48319
       */
48320
      public static _Fields findByThriftId(int fieldId) {
48321
        switch(fieldId) {
48322
          case 1: // STATE_ID
48323
            return STATE_ID;
48324
          default:
48325
            return null;
48326
        }
48327
      }
48328
 
48329
      /**
48330
       * Find the _Fields constant that matches fieldId, throwing an exception
48331
       * if it is not found.
48332
       */
48333
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48334
        _Fields fields = findByThriftId(fieldId);
48335
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48336
        return fields;
48337
      }
48338
 
48339
      /**
48340
       * Find the _Fields constant that matches name, or null if its not found.
48341
       */
48342
      public static _Fields findByName(String name) {
48343
        return byName.get(name);
48344
      }
48345
 
48346
      private final short _thriftId;
48347
      private final String _fieldName;
48348
 
48349
      _Fields(short thriftId, String fieldName) {
48350
        _thriftId = thriftId;
48351
        _fieldName = fieldName;
48352
      }
48353
 
48354
      public short getThriftFieldId() {
48355
        return _thriftId;
48356
      }
48357
 
48358
      public String getFieldName() {
48359
        return _fieldName;
48360
      }
48361
    }
48362
 
48363
    // isset id assignments
48364
    private static final int __STATE_ID_ISSET_ID = 0;
48365
    private BitSet __isset_bit_vector = new BitSet(1);
48366
 
48367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48368
    static {
48369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48370
      tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("state_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48371
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48372
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48373
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOursGoodWarehouseIdsForLocation_args.class, metaDataMap);
48374
    }
48375
 
48376
    public getOursGoodWarehouseIdsForLocation_args() {
48377
    }
48378
 
48379
    public getOursGoodWarehouseIdsForLocation_args(
48380
      long state_id)
48381
    {
48382
      this();
48383
      this.state_id = state_id;
48384
      setState_idIsSet(true);
48385
    }
48386
 
48387
    /**
48388
     * Performs a deep copy on <i>other</i>.
48389
     */
48390
    public getOursGoodWarehouseIdsForLocation_args(getOursGoodWarehouseIdsForLocation_args other) {
48391
      __isset_bit_vector.clear();
48392
      __isset_bit_vector.or(other.__isset_bit_vector);
48393
      this.state_id = other.state_id;
48394
    }
48395
 
48396
    public getOursGoodWarehouseIdsForLocation_args deepCopy() {
48397
      return new getOursGoodWarehouseIdsForLocation_args(this);
48398
    }
48399
 
48400
    @Override
48401
    public void clear() {
48402
      setState_idIsSet(false);
48403
      this.state_id = 0;
48404
    }
48405
 
48406
    public long getState_id() {
48407
      return this.state_id;
48408
    }
48409
 
48410
    public void setState_id(long state_id) {
48411
      this.state_id = state_id;
48412
      setState_idIsSet(true);
48413
    }
48414
 
48415
    public void unsetState_id() {
48416
      __isset_bit_vector.clear(__STATE_ID_ISSET_ID);
48417
    }
48418
 
48419
    /** Returns true if field state_id is set (has been assigned a value) and false otherwise */
48420
    public boolean isSetState_id() {
48421
      return __isset_bit_vector.get(__STATE_ID_ISSET_ID);
48422
    }
48423
 
48424
    public void setState_idIsSet(boolean value) {
48425
      __isset_bit_vector.set(__STATE_ID_ISSET_ID, value);
48426
    }
48427
 
48428
    public void setFieldValue(_Fields field, Object value) {
48429
      switch (field) {
48430
      case STATE_ID:
48431
        if (value == null) {
48432
          unsetState_id();
48433
        } else {
48434
          setState_id((Long)value);
48435
        }
48436
        break;
48437
 
48438
      }
48439
    }
48440
 
48441
    public Object getFieldValue(_Fields field) {
48442
      switch (field) {
48443
      case STATE_ID:
48444
        return Long.valueOf(getState_id());
48445
 
48446
      }
48447
      throw new IllegalStateException();
48448
    }
48449
 
48450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48451
    public boolean isSet(_Fields field) {
48452
      if (field == null) {
48453
        throw new IllegalArgumentException();
48454
      }
48455
 
48456
      switch (field) {
48457
      case STATE_ID:
48458
        return isSetState_id();
48459
      }
48460
      throw new IllegalStateException();
48461
    }
48462
 
48463
    @Override
48464
    public boolean equals(Object that) {
48465
      if (that == null)
48466
        return false;
48467
      if (that instanceof getOursGoodWarehouseIdsForLocation_args)
48468
        return this.equals((getOursGoodWarehouseIdsForLocation_args)that);
48469
      return false;
48470
    }
48471
 
48472
    public boolean equals(getOursGoodWarehouseIdsForLocation_args that) {
48473
      if (that == null)
48474
        return false;
48475
 
48476
      boolean this_present_state_id = true;
48477
      boolean that_present_state_id = true;
48478
      if (this_present_state_id || that_present_state_id) {
48479
        if (!(this_present_state_id && that_present_state_id))
48480
          return false;
48481
        if (this.state_id != that.state_id)
48482
          return false;
48483
      }
48484
 
48485
      return true;
48486
    }
48487
 
48488
    @Override
48489
    public int hashCode() {
48490
      return 0;
48491
    }
48492
 
48493
    public int compareTo(getOursGoodWarehouseIdsForLocation_args other) {
48494
      if (!getClass().equals(other.getClass())) {
48495
        return getClass().getName().compareTo(other.getClass().getName());
48496
      }
48497
 
48498
      int lastComparison = 0;
48499
      getOursGoodWarehouseIdsForLocation_args typedOther = (getOursGoodWarehouseIdsForLocation_args)other;
48500
 
48501
      lastComparison = Boolean.valueOf(isSetState_id()).compareTo(typedOther.isSetState_id());
48502
      if (lastComparison != 0) {
48503
        return lastComparison;
48504
      }
48505
      if (isSetState_id()) {
48506
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state_id, typedOther.state_id);
48507
        if (lastComparison != 0) {
48508
          return lastComparison;
48509
        }
48510
      }
48511
      return 0;
48512
    }
48513
 
48514
    public _Fields fieldForId(int fieldId) {
48515
      return _Fields.findByThriftId(fieldId);
48516
    }
48517
 
48518
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48519
      org.apache.thrift.protocol.TField field;
48520
      iprot.readStructBegin();
48521
      while (true)
48522
      {
48523
        field = iprot.readFieldBegin();
48524
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48525
          break;
48526
        }
48527
        switch (field.id) {
48528
          case 1: // STATE_ID
48529
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48530
              this.state_id = iprot.readI64();
48531
              setState_idIsSet(true);
48532
            } else { 
48533
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48534
            }
48535
            break;
48536
          default:
48537
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48538
        }
48539
        iprot.readFieldEnd();
48540
      }
48541
      iprot.readStructEnd();
48542
      validate();
48543
    }
48544
 
48545
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48546
      validate();
48547
 
48548
      oprot.writeStructBegin(STRUCT_DESC);
48549
      oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
48550
      oprot.writeI64(this.state_id);
48551
      oprot.writeFieldEnd();
48552
      oprot.writeFieldStop();
48553
      oprot.writeStructEnd();
48554
    }
48555
 
48556
    @Override
48557
    public String toString() {
48558
      StringBuilder sb = new StringBuilder("getOursGoodWarehouseIdsForLocation_args(");
48559
      boolean first = true;
48560
 
48561
      sb.append("state_id:");
48562
      sb.append(this.state_id);
48563
      first = false;
48564
      sb.append(")");
48565
      return sb.toString();
48566
    }
48567
 
48568
    public void validate() throws org.apache.thrift.TException {
48569
      // check for required fields
48570
    }
48571
 
48572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48573
      try {
48574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48575
      } catch (org.apache.thrift.TException te) {
48576
        throw new java.io.IOException(te);
48577
      }
48578
    }
48579
 
48580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48581
      try {
48582
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
48583
        __isset_bit_vector = new BitSet(1);
48584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48585
      } catch (org.apache.thrift.TException te) {
48586
        throw new java.io.IOException(te);
48587
      }
48588
    }
48589
 
48590
  }
48591
 
48592
  public static class getOursGoodWarehouseIdsForLocation_result implements org.apache.thrift.TBase<getOursGoodWarehouseIdsForLocation_result, getOursGoodWarehouseIdsForLocation_result._Fields>, java.io.Serializable, Cloneable   {
48593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOursGoodWarehouseIdsForLocation_result");
48594
 
48595
    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);
48596
 
48597
    private List<Long> success; // required
48598
 
48599
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48600
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48601
      SUCCESS((short)0, "success");
48602
 
48603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48604
 
48605
      static {
48606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48607
          byName.put(field.getFieldName(), field);
48608
        }
48609
      }
48610
 
48611
      /**
48612
       * Find the _Fields constant that matches fieldId, or null if its not found.
48613
       */
48614
      public static _Fields findByThriftId(int fieldId) {
48615
        switch(fieldId) {
48616
          case 0: // SUCCESS
48617
            return SUCCESS;
48618
          default:
48619
            return null;
48620
        }
48621
      }
48622
 
48623
      /**
48624
       * Find the _Fields constant that matches fieldId, throwing an exception
48625
       * if it is not found.
48626
       */
48627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48628
        _Fields fields = findByThriftId(fieldId);
48629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48630
        return fields;
48631
      }
48632
 
48633
      /**
48634
       * Find the _Fields constant that matches name, or null if its not found.
48635
       */
48636
      public static _Fields findByName(String name) {
48637
        return byName.get(name);
48638
      }
48639
 
48640
      private final short _thriftId;
48641
      private final String _fieldName;
48642
 
48643
      _Fields(short thriftId, String fieldName) {
48644
        _thriftId = thriftId;
48645
        _fieldName = fieldName;
48646
      }
48647
 
48648
      public short getThriftFieldId() {
48649
        return _thriftId;
48650
      }
48651
 
48652
      public String getFieldName() {
48653
        return _fieldName;
48654
      }
48655
    }
48656
 
48657
    // isset id assignments
48658
 
48659
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48660
    static {
48661
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48662
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48663
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
48664
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
48665
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48666
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOursGoodWarehouseIdsForLocation_result.class, metaDataMap);
48667
    }
48668
 
48669
    public getOursGoodWarehouseIdsForLocation_result() {
48670
    }
48671
 
48672
    public getOursGoodWarehouseIdsForLocation_result(
48673
      List<Long> success)
48674
    {
48675
      this();
48676
      this.success = success;
48677
    }
48678
 
48679
    /**
48680
     * Performs a deep copy on <i>other</i>.
48681
     */
48682
    public getOursGoodWarehouseIdsForLocation_result(getOursGoodWarehouseIdsForLocation_result other) {
48683
      if (other.isSetSuccess()) {
48684
        List<Long> __this__success = new ArrayList<Long>();
48685
        for (Long other_element : other.success) {
48686
          __this__success.add(other_element);
48687
        }
48688
        this.success = __this__success;
48689
      }
48690
    }
48691
 
48692
    public getOursGoodWarehouseIdsForLocation_result deepCopy() {
48693
      return new getOursGoodWarehouseIdsForLocation_result(this);
48694
    }
48695
 
48696
    @Override
48697
    public void clear() {
48698
      this.success = null;
48699
    }
48700
 
48701
    public int getSuccessSize() {
48702
      return (this.success == null) ? 0 : this.success.size();
48703
    }
48704
 
48705
    public java.util.Iterator<Long> getSuccessIterator() {
48706
      return (this.success == null) ? null : this.success.iterator();
48707
    }
48708
 
48709
    public void addToSuccess(long elem) {
48710
      if (this.success == null) {
48711
        this.success = new ArrayList<Long>();
48712
      }
48713
      this.success.add(elem);
48714
    }
48715
 
48716
    public List<Long> getSuccess() {
48717
      return this.success;
48718
    }
48719
 
48720
    public void setSuccess(List<Long> success) {
48721
      this.success = success;
48722
    }
48723
 
48724
    public void unsetSuccess() {
48725
      this.success = null;
48726
    }
48727
 
48728
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48729
    public boolean isSetSuccess() {
48730
      return this.success != null;
48731
    }
48732
 
48733
    public void setSuccessIsSet(boolean value) {
48734
      if (!value) {
48735
        this.success = null;
48736
      }
48737
    }
48738
 
48739
    public void setFieldValue(_Fields field, Object value) {
48740
      switch (field) {
48741
      case SUCCESS:
48742
        if (value == null) {
48743
          unsetSuccess();
48744
        } else {
48745
          setSuccess((List<Long>)value);
48746
        }
48747
        break;
48748
 
48749
      }
48750
    }
48751
 
48752
    public Object getFieldValue(_Fields field) {
48753
      switch (field) {
48754
      case SUCCESS:
48755
        return getSuccess();
48756
 
48757
      }
48758
      throw new IllegalStateException();
48759
    }
48760
 
48761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48762
    public boolean isSet(_Fields field) {
48763
      if (field == null) {
48764
        throw new IllegalArgumentException();
48765
      }
48766
 
48767
      switch (field) {
48768
      case SUCCESS:
48769
        return isSetSuccess();
48770
      }
48771
      throw new IllegalStateException();
48772
    }
48773
 
48774
    @Override
48775
    public boolean equals(Object that) {
48776
      if (that == null)
48777
        return false;
48778
      if (that instanceof getOursGoodWarehouseIdsForLocation_result)
48779
        return this.equals((getOursGoodWarehouseIdsForLocation_result)that);
48780
      return false;
48781
    }
48782
 
48783
    public boolean equals(getOursGoodWarehouseIdsForLocation_result that) {
48784
      if (that == null)
48785
        return false;
48786
 
48787
      boolean this_present_success = true && this.isSetSuccess();
48788
      boolean that_present_success = true && that.isSetSuccess();
48789
      if (this_present_success || that_present_success) {
48790
        if (!(this_present_success && that_present_success))
48791
          return false;
48792
        if (!this.success.equals(that.success))
48793
          return false;
48794
      }
48795
 
48796
      return true;
48797
    }
48798
 
48799
    @Override
48800
    public int hashCode() {
48801
      return 0;
48802
    }
48803
 
48804
    public int compareTo(getOursGoodWarehouseIdsForLocation_result other) {
48805
      if (!getClass().equals(other.getClass())) {
48806
        return getClass().getName().compareTo(other.getClass().getName());
48807
      }
48808
 
48809
      int lastComparison = 0;
48810
      getOursGoodWarehouseIdsForLocation_result typedOther = (getOursGoodWarehouseIdsForLocation_result)other;
48811
 
48812
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48813
      if (lastComparison != 0) {
48814
        return lastComparison;
48815
      }
48816
      if (isSetSuccess()) {
48817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48818
        if (lastComparison != 0) {
48819
          return lastComparison;
48820
        }
48821
      }
48822
      return 0;
48823
    }
48824
 
48825
    public _Fields fieldForId(int fieldId) {
48826
      return _Fields.findByThriftId(fieldId);
48827
    }
48828
 
48829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48830
      org.apache.thrift.protocol.TField field;
48831
      iprot.readStructBegin();
48832
      while (true)
48833
      {
48834
        field = iprot.readFieldBegin();
48835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48836
          break;
48837
        }
48838
        switch (field.id) {
48839
          case 0: // SUCCESS
48840
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48841
              {
11173 vikram.rag 48842
                org.apache.thrift.protocol.TList _list146 = iprot.readListBegin();
48843
                this.success = new ArrayList<Long>(_list146.size);
48844
                for (int _i147 = 0; _i147 < _list146.size; ++_i147)
8363 vikram.rag 48845
                {
11173 vikram.rag 48846
                  long _elem148; // required
48847
                  _elem148 = iprot.readI64();
48848
                  this.success.add(_elem148);
8363 vikram.rag 48849
                }
48850
                iprot.readListEnd();
48851
              }
48852
            } else { 
48853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48854
            }
48855
            break;
48856
          default:
48857
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48858
        }
48859
        iprot.readFieldEnd();
48860
      }
48861
      iprot.readStructEnd();
48862
      validate();
48863
    }
48864
 
48865
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48866
      oprot.writeStructBegin(STRUCT_DESC);
48867
 
48868
      if (this.isSetSuccess()) {
48869
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48870
        {
48871
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
11173 vikram.rag 48872
          for (long _iter149 : this.success)
8363 vikram.rag 48873
          {
11173 vikram.rag 48874
            oprot.writeI64(_iter149);
8363 vikram.rag 48875
          }
48876
          oprot.writeListEnd();
48877
        }
48878
        oprot.writeFieldEnd();
48879
      }
48880
      oprot.writeFieldStop();
48881
      oprot.writeStructEnd();
48882
    }
48883
 
48884
    @Override
48885
    public String toString() {
48886
      StringBuilder sb = new StringBuilder("getOursGoodWarehouseIdsForLocation_result(");
48887
      boolean first = true;
48888
 
48889
      sb.append("success:");
48890
      if (this.success == null) {
48891
        sb.append("null");
48892
      } else {
48893
        sb.append(this.success);
48894
      }
48895
      first = false;
48896
      sb.append(")");
48897
      return sb.toString();
48898
    }
48899
 
48900
    public void validate() throws org.apache.thrift.TException {
48901
      // check for required fields
48902
    }
48903
 
48904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48905
      try {
48906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48907
      } catch (org.apache.thrift.TException te) {
48908
        throw new java.io.IOException(te);
48909
      }
48910
    }
48911
 
48912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48913
      try {
48914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48915
      } catch (org.apache.thrift.TException te) {
48916
        throw new java.io.IOException(te);
48917
      }
48918
    }
48919
 
48920
  }
48921
 
8958 vikram.rag 48922
  public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args implements org.apache.thrift.TBase<getHoldInventoryDetailForItemForWarehouseIdExceptSource_args, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args._Fields>, java.io.Serializable, Cloneable   {
48923
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetailForItemForWarehouseIdExceptSource_args");
48924
 
48925
    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);
48926
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)2);
48927
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)3);
48928
 
48929
    private long id; // required
48930
    private long warehouse_id; // required
48931
    private long source; // required
48932
 
48933
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48934
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48935
      ID((short)1, "id"),
48936
      WAREHOUSE_ID((short)2, "warehouse_id"),
48937
      SOURCE((short)3, "source");
48938
 
48939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48940
 
48941
      static {
48942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48943
          byName.put(field.getFieldName(), field);
48944
        }
48945
      }
48946
 
48947
      /**
48948
       * Find the _Fields constant that matches fieldId, or null if its not found.
48949
       */
48950
      public static _Fields findByThriftId(int fieldId) {
48951
        switch(fieldId) {
48952
          case 1: // ID
48953
            return ID;
48954
          case 2: // WAREHOUSE_ID
48955
            return WAREHOUSE_ID;
48956
          case 3: // SOURCE
48957
            return SOURCE;
48958
          default:
48959
            return null;
48960
        }
48961
      }
48962
 
48963
      /**
48964
       * Find the _Fields constant that matches fieldId, throwing an exception
48965
       * if it is not found.
48966
       */
48967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48968
        _Fields fields = findByThriftId(fieldId);
48969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48970
        return fields;
48971
      }
48972
 
48973
      /**
48974
       * Find the _Fields constant that matches name, or null if its not found.
48975
       */
48976
      public static _Fields findByName(String name) {
48977
        return byName.get(name);
48978
      }
48979
 
48980
      private final short _thriftId;
48981
      private final String _fieldName;
48982
 
48983
      _Fields(short thriftId, String fieldName) {
48984
        _thriftId = thriftId;
48985
        _fieldName = fieldName;
48986
      }
48987
 
48988
      public short getThriftFieldId() {
48989
        return _thriftId;
48990
      }
48991
 
48992
      public String getFieldName() {
48993
        return _fieldName;
48994
      }
48995
    }
48996
 
48997
    // isset id assignments
48998
    private static final int __ID_ISSET_ID = 0;
48999
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
49000
    private static final int __SOURCE_ISSET_ID = 2;
49001
    private BitSet __isset_bit_vector = new BitSet(3);
49002
 
49003
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49004
    static {
49005
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49006
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49008
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49010
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args.class, metaDataMap);
49014
    }
49015
 
49016
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args() {
49017
    }
49018
 
49019
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(
49020
      long id,
49021
      long warehouse_id,
49022
      long source)
49023
    {
49024
      this();
49025
      this.id = id;
49026
      setIdIsSet(true);
49027
      this.warehouse_id = warehouse_id;
49028
      setWarehouse_idIsSet(true);
49029
      this.source = source;
49030
      setSourceIsSet(true);
49031
    }
49032
 
49033
    /**
49034
     * Performs a deep copy on <i>other</i>.
49035
     */
49036
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args other) {
49037
      __isset_bit_vector.clear();
49038
      __isset_bit_vector.or(other.__isset_bit_vector);
49039
      this.id = other.id;
49040
      this.warehouse_id = other.warehouse_id;
49041
      this.source = other.source;
49042
    }
49043
 
49044
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args deepCopy() {
49045
      return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(this);
49046
    }
49047
 
49048
    @Override
49049
    public void clear() {
49050
      setIdIsSet(false);
49051
      this.id = 0;
49052
      setWarehouse_idIsSet(false);
49053
      this.warehouse_id = 0;
49054
      setSourceIsSet(false);
49055
      this.source = 0;
49056
    }
49057
 
49058
    public long getId() {
49059
      return this.id;
49060
    }
49061
 
49062
    public void setId(long id) {
49063
      this.id = id;
49064
      setIdIsSet(true);
49065
    }
49066
 
49067
    public void unsetId() {
49068
      __isset_bit_vector.clear(__ID_ISSET_ID);
49069
    }
49070
 
49071
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
49072
    public boolean isSetId() {
49073
      return __isset_bit_vector.get(__ID_ISSET_ID);
49074
    }
49075
 
49076
    public void setIdIsSet(boolean value) {
49077
      __isset_bit_vector.set(__ID_ISSET_ID, value);
49078
    }
49079
 
49080
    public long getWarehouse_id() {
49081
      return this.warehouse_id;
49082
    }
49083
 
49084
    public void setWarehouse_id(long warehouse_id) {
49085
      this.warehouse_id = warehouse_id;
49086
      setWarehouse_idIsSet(true);
49087
    }
49088
 
49089
    public void unsetWarehouse_id() {
49090
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
49091
    }
49092
 
49093
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
49094
    public boolean isSetWarehouse_id() {
49095
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
49096
    }
49097
 
49098
    public void setWarehouse_idIsSet(boolean value) {
49099
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
49100
    }
49101
 
49102
    public long getSource() {
49103
      return this.source;
49104
    }
49105
 
49106
    public void setSource(long source) {
49107
      this.source = source;
49108
      setSourceIsSet(true);
49109
    }
49110
 
49111
    public void unsetSource() {
49112
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
49113
    }
49114
 
49115
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
49116
    public boolean isSetSource() {
49117
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
49118
    }
49119
 
49120
    public void setSourceIsSet(boolean value) {
49121
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
49122
    }
49123
 
49124
    public void setFieldValue(_Fields field, Object value) {
49125
      switch (field) {
49126
      case ID:
49127
        if (value == null) {
49128
          unsetId();
49129
        } else {
49130
          setId((Long)value);
49131
        }
49132
        break;
49133
 
49134
      case WAREHOUSE_ID:
49135
        if (value == null) {
49136
          unsetWarehouse_id();
49137
        } else {
49138
          setWarehouse_id((Long)value);
49139
        }
49140
        break;
49141
 
49142
      case SOURCE:
49143
        if (value == null) {
49144
          unsetSource();
49145
        } else {
49146
          setSource((Long)value);
49147
        }
49148
        break;
49149
 
49150
      }
49151
    }
49152
 
49153
    public Object getFieldValue(_Fields field) {
49154
      switch (field) {
49155
      case ID:
49156
        return Long.valueOf(getId());
49157
 
49158
      case WAREHOUSE_ID:
49159
        return Long.valueOf(getWarehouse_id());
49160
 
49161
      case SOURCE:
49162
        return Long.valueOf(getSource());
49163
 
49164
      }
49165
      throw new IllegalStateException();
49166
    }
49167
 
49168
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49169
    public boolean isSet(_Fields field) {
49170
      if (field == null) {
49171
        throw new IllegalArgumentException();
49172
      }
49173
 
49174
      switch (field) {
49175
      case ID:
49176
        return isSetId();
49177
      case WAREHOUSE_ID:
49178
        return isSetWarehouse_id();
49179
      case SOURCE:
49180
        return isSetSource();
49181
      }
49182
      throw new IllegalStateException();
49183
    }
49184
 
49185
    @Override
49186
    public boolean equals(Object that) {
49187
      if (that == null)
49188
        return false;
49189
      if (that instanceof getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)
49190
        return this.equals((getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)that);
49191
      return false;
49192
    }
49193
 
49194
    public boolean equals(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args that) {
49195
      if (that == null)
49196
        return false;
49197
 
49198
      boolean this_present_id = true;
49199
      boolean that_present_id = true;
49200
      if (this_present_id || that_present_id) {
49201
        if (!(this_present_id && that_present_id))
49202
          return false;
49203
        if (this.id != that.id)
49204
          return false;
49205
      }
49206
 
49207
      boolean this_present_warehouse_id = true;
49208
      boolean that_present_warehouse_id = true;
49209
      if (this_present_warehouse_id || that_present_warehouse_id) {
49210
        if (!(this_present_warehouse_id && that_present_warehouse_id))
49211
          return false;
49212
        if (this.warehouse_id != that.warehouse_id)
49213
          return false;
49214
      }
49215
 
49216
      boolean this_present_source = true;
49217
      boolean that_present_source = true;
49218
      if (this_present_source || that_present_source) {
49219
        if (!(this_present_source && that_present_source))
49220
          return false;
49221
        if (this.source != that.source)
49222
          return false;
49223
      }
49224
 
49225
      return true;
49226
    }
49227
 
49228
    @Override
49229
    public int hashCode() {
49230
      return 0;
49231
    }
49232
 
49233
    public int compareTo(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args other) {
49234
      if (!getClass().equals(other.getClass())) {
49235
        return getClass().getName().compareTo(other.getClass().getName());
49236
      }
49237
 
49238
      int lastComparison = 0;
49239
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_args typedOther = (getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)other;
49240
 
49241
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
49242
      if (lastComparison != 0) {
49243
        return lastComparison;
49244
      }
49245
      if (isSetId()) {
49246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
49247
        if (lastComparison != 0) {
49248
          return lastComparison;
49249
        }
49250
      }
49251
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
49252
      if (lastComparison != 0) {
49253
        return lastComparison;
49254
      }
49255
      if (isSetWarehouse_id()) {
49256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
49257
        if (lastComparison != 0) {
49258
          return lastComparison;
49259
        }
49260
      }
49261
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
49262
      if (lastComparison != 0) {
49263
        return lastComparison;
49264
      }
49265
      if (isSetSource()) {
49266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
49267
        if (lastComparison != 0) {
49268
          return lastComparison;
49269
        }
49270
      }
49271
      return 0;
49272
    }
49273
 
49274
    public _Fields fieldForId(int fieldId) {
49275
      return _Fields.findByThriftId(fieldId);
49276
    }
49277
 
49278
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49279
      org.apache.thrift.protocol.TField field;
49280
      iprot.readStructBegin();
49281
      while (true)
49282
      {
49283
        field = iprot.readFieldBegin();
49284
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49285
          break;
49286
        }
49287
        switch (field.id) {
49288
          case 1: // ID
49289
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49290
              this.id = iprot.readI64();
49291
              setIdIsSet(true);
49292
            } else { 
49293
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49294
            }
49295
            break;
49296
          case 2: // WAREHOUSE_ID
49297
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49298
              this.warehouse_id = iprot.readI64();
49299
              setWarehouse_idIsSet(true);
49300
            } else { 
49301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49302
            }
49303
            break;
49304
          case 3: // SOURCE
49305
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49306
              this.source = iprot.readI64();
49307
              setSourceIsSet(true);
49308
            } else { 
49309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49310
            }
49311
            break;
49312
          default:
49313
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49314
        }
49315
        iprot.readFieldEnd();
49316
      }
49317
      iprot.readStructEnd();
49318
      validate();
49319
    }
49320
 
49321
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49322
      validate();
49323
 
49324
      oprot.writeStructBegin(STRUCT_DESC);
49325
      oprot.writeFieldBegin(ID_FIELD_DESC);
49326
      oprot.writeI64(this.id);
49327
      oprot.writeFieldEnd();
49328
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
49329
      oprot.writeI64(this.warehouse_id);
49330
      oprot.writeFieldEnd();
49331
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
49332
      oprot.writeI64(this.source);
49333
      oprot.writeFieldEnd();
49334
      oprot.writeFieldStop();
49335
      oprot.writeStructEnd();
49336
    }
49337
 
49338
    @Override
49339
    public String toString() {
49340
      StringBuilder sb = new StringBuilder("getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(");
49341
      boolean first = true;
49342
 
49343
      sb.append("id:");
49344
      sb.append(this.id);
49345
      first = false;
49346
      if (!first) sb.append(", ");
49347
      sb.append("warehouse_id:");
49348
      sb.append(this.warehouse_id);
49349
      first = false;
49350
      if (!first) sb.append(", ");
49351
      sb.append("source:");
49352
      sb.append(this.source);
49353
      first = false;
49354
      sb.append(")");
49355
      return sb.toString();
49356
    }
49357
 
49358
    public void validate() throws org.apache.thrift.TException {
49359
      // check for required fields
49360
    }
49361
 
49362
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49363
      try {
49364
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49365
      } catch (org.apache.thrift.TException te) {
49366
        throw new java.io.IOException(te);
49367
      }
49368
    }
49369
 
49370
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49371
      try {
49372
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
49373
        __isset_bit_vector = new BitSet(1);
49374
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49375
      } catch (org.apache.thrift.TException te) {
49376
        throw new java.io.IOException(te);
49377
      }
49378
    }
49379
 
49380
  }
49381
 
49382
  public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result implements org.apache.thrift.TBase<getHoldInventoryDetailForItemForWarehouseIdExceptSource_result, getHoldInventoryDetailForItemForWarehouseIdExceptSource_result._Fields>, java.io.Serializable, Cloneable   {
49383
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetailForItemForWarehouseIdExceptSource_result");
49384
 
49385
    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);
49386
 
49387
    private long success; // required
49388
 
49389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49390
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49391
      SUCCESS((short)0, "success");
49392
 
49393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49394
 
49395
      static {
49396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49397
          byName.put(field.getFieldName(), field);
49398
        }
49399
      }
49400
 
49401
      /**
49402
       * Find the _Fields constant that matches fieldId, or null if its not found.
49403
       */
49404
      public static _Fields findByThriftId(int fieldId) {
49405
        switch(fieldId) {
49406
          case 0: // SUCCESS
49407
            return SUCCESS;
49408
          default:
49409
            return null;
49410
        }
49411
      }
49412
 
49413
      /**
49414
       * Find the _Fields constant that matches fieldId, throwing an exception
49415
       * if it is not found.
49416
       */
49417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49418
        _Fields fields = findByThriftId(fieldId);
49419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49420
        return fields;
49421
      }
49422
 
49423
      /**
49424
       * Find the _Fields constant that matches name, or null if its not found.
49425
       */
49426
      public static _Fields findByName(String name) {
49427
        return byName.get(name);
49428
      }
49429
 
49430
      private final short _thriftId;
49431
      private final String _fieldName;
49432
 
49433
      _Fields(short thriftId, String fieldName) {
49434
        _thriftId = thriftId;
49435
        _fieldName = fieldName;
49436
      }
49437
 
49438
      public short getThriftFieldId() {
49439
        return _thriftId;
49440
      }
49441
 
49442
      public String getFieldName() {
49443
        return _fieldName;
49444
      }
49445
    }
49446
 
49447
    // isset id assignments
49448
    private static final int __SUCCESS_ISSET_ID = 0;
49449
    private BitSet __isset_bit_vector = new BitSet(1);
49450
 
49451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49452
    static {
49453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49454
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result.class, metaDataMap);
49458
    }
49459
 
49460
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result() {
49461
    }
49462
 
49463
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(
49464
      long success)
49465
    {
49466
      this();
49467
      this.success = success;
49468
      setSuccessIsSet(true);
49469
    }
49470
 
49471
    /**
49472
     * Performs a deep copy on <i>other</i>.
49473
     */
49474
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result other) {
49475
      __isset_bit_vector.clear();
49476
      __isset_bit_vector.or(other.__isset_bit_vector);
49477
      this.success = other.success;
49478
    }
49479
 
49480
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result deepCopy() {
49481
      return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(this);
49482
    }
49483
 
49484
    @Override
49485
    public void clear() {
49486
      setSuccessIsSet(false);
49487
      this.success = 0;
49488
    }
49489
 
49490
    public long getSuccess() {
49491
      return this.success;
49492
    }
49493
 
49494
    public void setSuccess(long success) {
49495
      this.success = success;
49496
      setSuccessIsSet(true);
49497
    }
49498
 
49499
    public void unsetSuccess() {
49500
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
49501
    }
49502
 
49503
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
49504
    public boolean isSetSuccess() {
49505
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
49506
    }
49507
 
49508
    public void setSuccessIsSet(boolean value) {
49509
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
49510
    }
49511
 
49512
    public void setFieldValue(_Fields field, Object value) {
49513
      switch (field) {
49514
      case SUCCESS:
49515
        if (value == null) {
49516
          unsetSuccess();
49517
        } else {
49518
          setSuccess((Long)value);
49519
        }
49520
        break;
49521
 
49522
      }
49523
    }
49524
 
49525
    public Object getFieldValue(_Fields field) {
49526
      switch (field) {
49527
      case SUCCESS:
49528
        return Long.valueOf(getSuccess());
49529
 
49530
      }
49531
      throw new IllegalStateException();
49532
    }
49533
 
49534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49535
    public boolean isSet(_Fields field) {
49536
      if (field == null) {
49537
        throw new IllegalArgumentException();
49538
      }
49539
 
49540
      switch (field) {
49541
      case SUCCESS:
49542
        return isSetSuccess();
49543
      }
49544
      throw new IllegalStateException();
49545
    }
49546
 
49547
    @Override
49548
    public boolean equals(Object that) {
49549
      if (that == null)
49550
        return false;
49551
      if (that instanceof getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)
49552
        return this.equals((getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)that);
49553
      return false;
49554
    }
49555
 
49556
    public boolean equals(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result that) {
49557
      if (that == null)
49558
        return false;
49559
 
49560
      boolean this_present_success = true;
49561
      boolean that_present_success = true;
49562
      if (this_present_success || that_present_success) {
49563
        if (!(this_present_success && that_present_success))
49564
          return false;
49565
        if (this.success != that.success)
49566
          return false;
49567
      }
49568
 
49569
      return true;
49570
    }
49571
 
49572
    @Override
49573
    public int hashCode() {
49574
      return 0;
49575
    }
49576
 
49577
    public int compareTo(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result other) {
49578
      if (!getClass().equals(other.getClass())) {
49579
        return getClass().getName().compareTo(other.getClass().getName());
49580
      }
49581
 
49582
      int lastComparison = 0;
49583
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_result typedOther = (getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)other;
49584
 
49585
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49586
      if (lastComparison != 0) {
49587
        return lastComparison;
49588
      }
49589
      if (isSetSuccess()) {
49590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49591
        if (lastComparison != 0) {
49592
          return lastComparison;
49593
        }
49594
      }
49595
      return 0;
49596
    }
49597
 
49598
    public _Fields fieldForId(int fieldId) {
49599
      return _Fields.findByThriftId(fieldId);
49600
    }
49601
 
49602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49603
      org.apache.thrift.protocol.TField field;
49604
      iprot.readStructBegin();
49605
      while (true)
49606
      {
49607
        field = iprot.readFieldBegin();
49608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49609
          break;
49610
        }
49611
        switch (field.id) {
49612
          case 0: // SUCCESS
49613
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49614
              this.success = iprot.readI64();
49615
              setSuccessIsSet(true);
49616
            } else { 
49617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49618
            }
49619
            break;
49620
          default:
49621
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49622
        }
49623
        iprot.readFieldEnd();
49624
      }
49625
      iprot.readStructEnd();
49626
      validate();
49627
    }
49628
 
49629
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49630
      oprot.writeStructBegin(STRUCT_DESC);
49631
 
49632
      if (this.isSetSuccess()) {
49633
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49634
        oprot.writeI64(this.success);
49635
        oprot.writeFieldEnd();
49636
      }
49637
      oprot.writeFieldStop();
49638
      oprot.writeStructEnd();
49639
    }
49640
 
49641
    @Override
49642
    public String toString() {
49643
      StringBuilder sb = new StringBuilder("getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(");
49644
      boolean first = true;
49645
 
49646
      sb.append("success:");
49647
      sb.append(this.success);
49648
      first = false;
49649
      sb.append(")");
49650
      return sb.toString();
49651
    }
49652
 
49653
    public void validate() throws org.apache.thrift.TException {
49654
      // check for required fields
49655
    }
49656
 
49657
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49658
      try {
49659
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49660
      } catch (org.apache.thrift.TException te) {
49661
        throw new java.io.IOException(te);
49662
      }
49663
    }
49664
 
49665
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49666
      try {
49667
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49668
      } catch (org.apache.thrift.TException te) {
49669
        throw new java.io.IOException(te);
49670
      }
49671
    }
49672
 
49673
  }
49674
 
9404 vikram.rag 49675
  public static class getSnapdealInventoryForItem_args implements org.apache.thrift.TBase<getSnapdealInventoryForItem_args, getSnapdealInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
49676
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventoryForItem_args");
49677
 
49678
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
49679
 
49680
    private long item_id; // required
49681
 
49682
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49683
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49684
      ITEM_ID((short)1, "item_id");
49685
 
49686
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49687
 
49688
      static {
49689
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49690
          byName.put(field.getFieldName(), field);
49691
        }
49692
      }
49693
 
49694
      /**
49695
       * Find the _Fields constant that matches fieldId, or null if its not found.
49696
       */
49697
      public static _Fields findByThriftId(int fieldId) {
49698
        switch(fieldId) {
49699
          case 1: // ITEM_ID
49700
            return ITEM_ID;
49701
          default:
49702
            return null;
49703
        }
49704
      }
49705
 
49706
      /**
49707
       * Find the _Fields constant that matches fieldId, throwing an exception
49708
       * if it is not found.
49709
       */
49710
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49711
        _Fields fields = findByThriftId(fieldId);
49712
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49713
        return fields;
49714
      }
49715
 
49716
      /**
49717
       * Find the _Fields constant that matches name, or null if its not found.
49718
       */
49719
      public static _Fields findByName(String name) {
49720
        return byName.get(name);
49721
      }
49722
 
49723
      private final short _thriftId;
49724
      private final String _fieldName;
49725
 
49726
      _Fields(short thriftId, String fieldName) {
49727
        _thriftId = thriftId;
49728
        _fieldName = fieldName;
49729
      }
49730
 
49731
      public short getThriftFieldId() {
49732
        return _thriftId;
49733
      }
49734
 
49735
      public String getFieldName() {
49736
        return _fieldName;
49737
      }
49738
    }
49739
 
49740
    // isset id assignments
49741
    private static final int __ITEM_ID_ISSET_ID = 0;
49742
    private BitSet __isset_bit_vector = new BitSet(1);
49743
 
49744
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49745
    static {
49746
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49747
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49749
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49750
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventoryForItem_args.class, metaDataMap);
49751
    }
49752
 
49753
    public getSnapdealInventoryForItem_args() {
49754
    }
49755
 
49756
    public getSnapdealInventoryForItem_args(
49757
      long item_id)
49758
    {
49759
      this();
49760
      this.item_id = item_id;
49761
      setItem_idIsSet(true);
49762
    }
49763
 
49764
    /**
49765
     * Performs a deep copy on <i>other</i>.
49766
     */
49767
    public getSnapdealInventoryForItem_args(getSnapdealInventoryForItem_args other) {
49768
      __isset_bit_vector.clear();
49769
      __isset_bit_vector.or(other.__isset_bit_vector);
49770
      this.item_id = other.item_id;
49771
    }
49772
 
49773
    public getSnapdealInventoryForItem_args deepCopy() {
49774
      return new getSnapdealInventoryForItem_args(this);
49775
    }
49776
 
49777
    @Override
49778
    public void clear() {
49779
      setItem_idIsSet(false);
49780
      this.item_id = 0;
49781
    }
49782
 
49783
    public long getItem_id() {
49784
      return this.item_id;
49785
    }
49786
 
49787
    public void setItem_id(long item_id) {
49788
      this.item_id = item_id;
49789
      setItem_idIsSet(true);
49790
    }
49791
 
49792
    public void unsetItem_id() {
49793
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
49794
    }
49795
 
49796
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
49797
    public boolean isSetItem_id() {
49798
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
49799
    }
49800
 
49801
    public void setItem_idIsSet(boolean value) {
49802
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
49803
    }
49804
 
49805
    public void setFieldValue(_Fields field, Object value) {
49806
      switch (field) {
49807
      case ITEM_ID:
49808
        if (value == null) {
49809
          unsetItem_id();
49810
        } else {
49811
          setItem_id((Long)value);
49812
        }
49813
        break;
49814
 
49815
      }
49816
    }
49817
 
49818
    public Object getFieldValue(_Fields field) {
49819
      switch (field) {
49820
      case ITEM_ID:
49821
        return Long.valueOf(getItem_id());
49822
 
49823
      }
49824
      throw new IllegalStateException();
49825
    }
49826
 
49827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49828
    public boolean isSet(_Fields field) {
49829
      if (field == null) {
49830
        throw new IllegalArgumentException();
49831
      }
49832
 
49833
      switch (field) {
49834
      case ITEM_ID:
49835
        return isSetItem_id();
49836
      }
49837
      throw new IllegalStateException();
49838
    }
49839
 
49840
    @Override
49841
    public boolean equals(Object that) {
49842
      if (that == null)
49843
        return false;
49844
      if (that instanceof getSnapdealInventoryForItem_args)
49845
        return this.equals((getSnapdealInventoryForItem_args)that);
49846
      return false;
49847
    }
49848
 
49849
    public boolean equals(getSnapdealInventoryForItem_args that) {
49850
      if (that == null)
49851
        return false;
49852
 
49853
      boolean this_present_item_id = true;
49854
      boolean that_present_item_id = true;
49855
      if (this_present_item_id || that_present_item_id) {
49856
        if (!(this_present_item_id && that_present_item_id))
49857
          return false;
49858
        if (this.item_id != that.item_id)
49859
          return false;
49860
      }
49861
 
49862
      return true;
49863
    }
49864
 
49865
    @Override
49866
    public int hashCode() {
49867
      return 0;
49868
    }
49869
 
49870
    public int compareTo(getSnapdealInventoryForItem_args other) {
49871
      if (!getClass().equals(other.getClass())) {
49872
        return getClass().getName().compareTo(other.getClass().getName());
49873
      }
49874
 
49875
      int lastComparison = 0;
49876
      getSnapdealInventoryForItem_args typedOther = (getSnapdealInventoryForItem_args)other;
49877
 
49878
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
49879
      if (lastComparison != 0) {
49880
        return lastComparison;
49881
      }
49882
      if (isSetItem_id()) {
49883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
49884
        if (lastComparison != 0) {
49885
          return lastComparison;
49886
        }
49887
      }
49888
      return 0;
49889
    }
49890
 
49891
    public _Fields fieldForId(int fieldId) {
49892
      return _Fields.findByThriftId(fieldId);
49893
    }
49894
 
49895
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49896
      org.apache.thrift.protocol.TField field;
49897
      iprot.readStructBegin();
49898
      while (true)
49899
      {
49900
        field = iprot.readFieldBegin();
49901
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49902
          break;
49903
        }
49904
        switch (field.id) {
49905
          case 1: // ITEM_ID
49906
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49907
              this.item_id = iprot.readI64();
49908
              setItem_idIsSet(true);
49909
            } else { 
49910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49911
            }
49912
            break;
49913
          default:
49914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49915
        }
49916
        iprot.readFieldEnd();
49917
      }
49918
      iprot.readStructEnd();
49919
      validate();
49920
    }
49921
 
49922
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49923
      validate();
49924
 
49925
      oprot.writeStructBegin(STRUCT_DESC);
49926
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
49927
      oprot.writeI64(this.item_id);
49928
      oprot.writeFieldEnd();
49929
      oprot.writeFieldStop();
49930
      oprot.writeStructEnd();
49931
    }
49932
 
49933
    @Override
49934
    public String toString() {
49935
      StringBuilder sb = new StringBuilder("getSnapdealInventoryForItem_args(");
49936
      boolean first = true;
49937
 
49938
      sb.append("item_id:");
49939
      sb.append(this.item_id);
49940
      first = false;
49941
      sb.append(")");
49942
      return sb.toString();
49943
    }
49944
 
49945
    public void validate() throws org.apache.thrift.TException {
49946
      // check for required fields
49947
    }
49948
 
49949
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49950
      try {
49951
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49952
      } catch (org.apache.thrift.TException te) {
49953
        throw new java.io.IOException(te);
49954
      }
49955
    }
49956
 
49957
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49958
      try {
49959
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
49960
        __isset_bit_vector = new BitSet(1);
49961
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49962
      } catch (org.apache.thrift.TException te) {
49963
        throw new java.io.IOException(te);
49964
      }
49965
    }
49966
 
49967
  }
49968
 
49969
  public static class getSnapdealInventoryForItem_result implements org.apache.thrift.TBase<getSnapdealInventoryForItem_result, getSnapdealInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
49970
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventoryForItem_result");
49971
 
49972
    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);
49973
 
49974
    private SnapdealInventoryItem success; // required
49975
 
49976
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49977
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49978
      SUCCESS((short)0, "success");
49979
 
49980
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49981
 
49982
      static {
49983
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49984
          byName.put(field.getFieldName(), field);
49985
        }
49986
      }
49987
 
49988
      /**
49989
       * Find the _Fields constant that matches fieldId, or null if its not found.
49990
       */
49991
      public static _Fields findByThriftId(int fieldId) {
49992
        switch(fieldId) {
49993
          case 0: // SUCCESS
49994
            return SUCCESS;
49995
          default:
49996
            return null;
49997
        }
49998
      }
49999
 
50000
      /**
50001
       * Find the _Fields constant that matches fieldId, throwing an exception
50002
       * if it is not found.
50003
       */
50004
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50005
        _Fields fields = findByThriftId(fieldId);
50006
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50007
        return fields;
50008
      }
50009
 
50010
      /**
50011
       * Find the _Fields constant that matches name, or null if its not found.
50012
       */
50013
      public static _Fields findByName(String name) {
50014
        return byName.get(name);
50015
      }
50016
 
50017
      private final short _thriftId;
50018
      private final String _fieldName;
50019
 
50020
      _Fields(short thriftId, String fieldName) {
50021
        _thriftId = thriftId;
50022
        _fieldName = fieldName;
50023
      }
50024
 
50025
      public short getThriftFieldId() {
50026
        return _thriftId;
50027
      }
50028
 
50029
      public String getFieldName() {
50030
        return _fieldName;
50031
      }
50032
    }
50033
 
50034
    // isset id assignments
50035
 
50036
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50037
    static {
50038
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50039
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50040
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class)));
50041
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50042
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventoryForItem_result.class, metaDataMap);
50043
    }
50044
 
50045
    public getSnapdealInventoryForItem_result() {
50046
    }
50047
 
50048
    public getSnapdealInventoryForItem_result(
50049
      SnapdealInventoryItem success)
50050
    {
50051
      this();
50052
      this.success = success;
50053
    }
50054
 
50055
    /**
50056
     * Performs a deep copy on <i>other</i>.
50057
     */
50058
    public getSnapdealInventoryForItem_result(getSnapdealInventoryForItem_result other) {
50059
      if (other.isSetSuccess()) {
50060
        this.success = new SnapdealInventoryItem(other.success);
50061
      }
50062
    }
50063
 
50064
    public getSnapdealInventoryForItem_result deepCopy() {
50065
      return new getSnapdealInventoryForItem_result(this);
50066
    }
50067
 
50068
    @Override
50069
    public void clear() {
50070
      this.success = null;
50071
    }
50072
 
50073
    public SnapdealInventoryItem getSuccess() {
50074
      return this.success;
50075
    }
50076
 
50077
    public void setSuccess(SnapdealInventoryItem success) {
50078
      this.success = success;
50079
    }
50080
 
50081
    public void unsetSuccess() {
50082
      this.success = null;
50083
    }
50084
 
50085
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
50086
    public boolean isSetSuccess() {
50087
      return this.success != null;
50088
    }
50089
 
50090
    public void setSuccessIsSet(boolean value) {
50091
      if (!value) {
50092
        this.success = null;
50093
      }
50094
    }
50095
 
50096
    public void setFieldValue(_Fields field, Object value) {
50097
      switch (field) {
50098
      case SUCCESS:
50099
        if (value == null) {
50100
          unsetSuccess();
50101
        } else {
50102
          setSuccess((SnapdealInventoryItem)value);
50103
        }
50104
        break;
50105
 
50106
      }
50107
    }
50108
 
50109
    public Object getFieldValue(_Fields field) {
50110
      switch (field) {
50111
      case SUCCESS:
50112
        return getSuccess();
50113
 
50114
      }
50115
      throw new IllegalStateException();
50116
    }
50117
 
50118
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50119
    public boolean isSet(_Fields field) {
50120
      if (field == null) {
50121
        throw new IllegalArgumentException();
50122
      }
50123
 
50124
      switch (field) {
50125
      case SUCCESS:
50126
        return isSetSuccess();
50127
      }
50128
      throw new IllegalStateException();
50129
    }
50130
 
50131
    @Override
50132
    public boolean equals(Object that) {
50133
      if (that == null)
50134
        return false;
50135
      if (that instanceof getSnapdealInventoryForItem_result)
50136
        return this.equals((getSnapdealInventoryForItem_result)that);
50137
      return false;
50138
    }
50139
 
50140
    public boolean equals(getSnapdealInventoryForItem_result that) {
50141
      if (that == null)
50142
        return false;
50143
 
50144
      boolean this_present_success = true && this.isSetSuccess();
50145
      boolean that_present_success = true && that.isSetSuccess();
50146
      if (this_present_success || that_present_success) {
50147
        if (!(this_present_success && that_present_success))
50148
          return false;
50149
        if (!this.success.equals(that.success))
50150
          return false;
50151
      }
50152
 
50153
      return true;
50154
    }
50155
 
50156
    @Override
50157
    public int hashCode() {
50158
      return 0;
50159
    }
50160
 
50161
    public int compareTo(getSnapdealInventoryForItem_result other) {
50162
      if (!getClass().equals(other.getClass())) {
50163
        return getClass().getName().compareTo(other.getClass().getName());
50164
      }
50165
 
50166
      int lastComparison = 0;
50167
      getSnapdealInventoryForItem_result typedOther = (getSnapdealInventoryForItem_result)other;
50168
 
50169
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
50170
      if (lastComparison != 0) {
50171
        return lastComparison;
50172
      }
50173
      if (isSetSuccess()) {
50174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50175
        if (lastComparison != 0) {
50176
          return lastComparison;
50177
        }
50178
      }
50179
      return 0;
50180
    }
50181
 
50182
    public _Fields fieldForId(int fieldId) {
50183
      return _Fields.findByThriftId(fieldId);
50184
    }
50185
 
50186
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50187
      org.apache.thrift.protocol.TField field;
50188
      iprot.readStructBegin();
50189
      while (true)
50190
      {
50191
        field = iprot.readFieldBegin();
50192
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50193
          break;
50194
        }
50195
        switch (field.id) {
50196
          case 0: // SUCCESS
50197
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50198
              this.success = new SnapdealInventoryItem();
50199
              this.success.read(iprot);
50200
            } else { 
50201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50202
            }
50203
            break;
50204
          default:
50205
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50206
        }
50207
        iprot.readFieldEnd();
50208
      }
50209
      iprot.readStructEnd();
50210
      validate();
50211
    }
50212
 
50213
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50214
      oprot.writeStructBegin(STRUCT_DESC);
50215
 
50216
      if (this.isSetSuccess()) {
50217
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50218
        this.success.write(oprot);
50219
        oprot.writeFieldEnd();
50220
      }
50221
      oprot.writeFieldStop();
50222
      oprot.writeStructEnd();
50223
    }
50224
 
50225
    @Override
50226
    public String toString() {
50227
      StringBuilder sb = new StringBuilder("getSnapdealInventoryForItem_result(");
50228
      boolean first = true;
50229
 
50230
      sb.append("success:");
50231
      if (this.success == null) {
50232
        sb.append("null");
50233
      } else {
50234
        sb.append(this.success);
50235
      }
50236
      first = false;
50237
      sb.append(")");
50238
      return sb.toString();
50239
    }
50240
 
50241
    public void validate() throws org.apache.thrift.TException {
50242
      // check for required fields
50243
    }
50244
 
50245
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50246
      try {
50247
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50248
      } catch (org.apache.thrift.TException te) {
50249
        throw new java.io.IOException(te);
50250
      }
50251
    }
50252
 
50253
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50254
      try {
50255
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50256
      } catch (org.apache.thrift.TException te) {
50257
        throw new java.io.IOException(te);
50258
      }
50259
    }
50260
 
50261
  }
50262
 
50263
  public static class addOrUpdateSnapdealInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateSnapdealInventoryForItem_args, addOrUpdateSnapdealInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
50264
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealInventoryForItem_args");
50265
 
50266
    private static final org.apache.thrift.protocol.TField SNAPDEALINVENTORYITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealinventoryitem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
50267
 
50268
    private SnapdealInventoryItem snapdealinventoryitem; // required
50269
 
50270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50271
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50272
      SNAPDEALINVENTORYITEM((short)1, "snapdealinventoryitem");
50273
 
50274
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50275
 
50276
      static {
50277
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50278
          byName.put(field.getFieldName(), field);
50279
        }
50280
      }
50281
 
50282
      /**
50283
       * Find the _Fields constant that matches fieldId, or null if its not found.
50284
       */
50285
      public static _Fields findByThriftId(int fieldId) {
50286
        switch(fieldId) {
50287
          case 1: // SNAPDEALINVENTORYITEM
50288
            return SNAPDEALINVENTORYITEM;
50289
          default:
50290
            return null;
50291
        }
50292
      }
50293
 
50294
      /**
50295
       * Find the _Fields constant that matches fieldId, throwing an exception
50296
       * if it is not found.
50297
       */
50298
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50299
        _Fields fields = findByThriftId(fieldId);
50300
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50301
        return fields;
50302
      }
50303
 
50304
      /**
50305
       * Find the _Fields constant that matches name, or null if its not found.
50306
       */
50307
      public static _Fields findByName(String name) {
50308
        return byName.get(name);
50309
      }
50310
 
50311
      private final short _thriftId;
50312
      private final String _fieldName;
50313
 
50314
      _Fields(short thriftId, String fieldName) {
50315
        _thriftId = thriftId;
50316
        _fieldName = fieldName;
50317
      }
50318
 
50319
      public short getThriftFieldId() {
50320
        return _thriftId;
50321
      }
50322
 
50323
      public String getFieldName() {
50324
        return _fieldName;
50325
      }
50326
    }
50327
 
50328
    // isset id assignments
50329
 
50330
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50331
    static {
50332
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50333
      tmpMap.put(_Fields.SNAPDEALINVENTORYITEM, new org.apache.thrift.meta_data.FieldMetaData("snapdealinventoryitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50334
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class)));
50335
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50336
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealInventoryForItem_args.class, metaDataMap);
50337
    }
50338
 
50339
    public addOrUpdateSnapdealInventoryForItem_args() {
50340
    }
50341
 
50342
    public addOrUpdateSnapdealInventoryForItem_args(
50343
      SnapdealInventoryItem snapdealinventoryitem)
50344
    {
50345
      this();
50346
      this.snapdealinventoryitem = snapdealinventoryitem;
50347
    }
50348
 
50349
    /**
50350
     * Performs a deep copy on <i>other</i>.
50351
     */
50352
    public addOrUpdateSnapdealInventoryForItem_args(addOrUpdateSnapdealInventoryForItem_args other) {
50353
      if (other.isSetSnapdealinventoryitem()) {
50354
        this.snapdealinventoryitem = new SnapdealInventoryItem(other.snapdealinventoryitem);
50355
      }
50356
    }
50357
 
50358
    public addOrUpdateSnapdealInventoryForItem_args deepCopy() {
50359
      return new addOrUpdateSnapdealInventoryForItem_args(this);
50360
    }
50361
 
50362
    @Override
50363
    public void clear() {
50364
      this.snapdealinventoryitem = null;
50365
    }
50366
 
50367
    public SnapdealInventoryItem getSnapdealinventoryitem() {
50368
      return this.snapdealinventoryitem;
50369
    }
50370
 
50371
    public void setSnapdealinventoryitem(SnapdealInventoryItem snapdealinventoryitem) {
50372
      this.snapdealinventoryitem = snapdealinventoryitem;
50373
    }
50374
 
50375
    public void unsetSnapdealinventoryitem() {
50376
      this.snapdealinventoryitem = null;
50377
    }
50378
 
50379
    /** Returns true if field snapdealinventoryitem is set (has been assigned a value) and false otherwise */
50380
    public boolean isSetSnapdealinventoryitem() {
50381
      return this.snapdealinventoryitem != null;
50382
    }
50383
 
50384
    public void setSnapdealinventoryitemIsSet(boolean value) {
50385
      if (!value) {
50386
        this.snapdealinventoryitem = null;
50387
      }
50388
    }
50389
 
50390
    public void setFieldValue(_Fields field, Object value) {
50391
      switch (field) {
50392
      case SNAPDEALINVENTORYITEM:
50393
        if (value == null) {
50394
          unsetSnapdealinventoryitem();
50395
        } else {
50396
          setSnapdealinventoryitem((SnapdealInventoryItem)value);
50397
        }
50398
        break;
50399
 
50400
      }
50401
    }
50402
 
50403
    public Object getFieldValue(_Fields field) {
50404
      switch (field) {
50405
      case SNAPDEALINVENTORYITEM:
50406
        return getSnapdealinventoryitem();
50407
 
50408
      }
50409
      throw new IllegalStateException();
50410
    }
50411
 
50412
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50413
    public boolean isSet(_Fields field) {
50414
      if (field == null) {
50415
        throw new IllegalArgumentException();
50416
      }
50417
 
50418
      switch (field) {
50419
      case SNAPDEALINVENTORYITEM:
50420
        return isSetSnapdealinventoryitem();
50421
      }
50422
      throw new IllegalStateException();
50423
    }
50424
 
50425
    @Override
50426
    public boolean equals(Object that) {
50427
      if (that == null)
50428
        return false;
50429
      if (that instanceof addOrUpdateSnapdealInventoryForItem_args)
50430
        return this.equals((addOrUpdateSnapdealInventoryForItem_args)that);
50431
      return false;
50432
    }
50433
 
50434
    public boolean equals(addOrUpdateSnapdealInventoryForItem_args that) {
50435
      if (that == null)
50436
        return false;
50437
 
50438
      boolean this_present_snapdealinventoryitem = true && this.isSetSnapdealinventoryitem();
50439
      boolean that_present_snapdealinventoryitem = true && that.isSetSnapdealinventoryitem();
50440
      if (this_present_snapdealinventoryitem || that_present_snapdealinventoryitem) {
50441
        if (!(this_present_snapdealinventoryitem && that_present_snapdealinventoryitem))
50442
          return false;
50443
        if (!this.snapdealinventoryitem.equals(that.snapdealinventoryitem))
50444
          return false;
50445
      }
50446
 
50447
      return true;
50448
    }
50449
 
50450
    @Override
50451
    public int hashCode() {
50452
      return 0;
50453
    }
50454
 
50455
    public int compareTo(addOrUpdateSnapdealInventoryForItem_args other) {
50456
      if (!getClass().equals(other.getClass())) {
50457
        return getClass().getName().compareTo(other.getClass().getName());
50458
      }
50459
 
50460
      int lastComparison = 0;
50461
      addOrUpdateSnapdealInventoryForItem_args typedOther = (addOrUpdateSnapdealInventoryForItem_args)other;
50462
 
50463
      lastComparison = Boolean.valueOf(isSetSnapdealinventoryitem()).compareTo(typedOther.isSetSnapdealinventoryitem());
50464
      if (lastComparison != 0) {
50465
        return lastComparison;
50466
      }
50467
      if (isSetSnapdealinventoryitem()) {
50468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealinventoryitem, typedOther.snapdealinventoryitem);
50469
        if (lastComparison != 0) {
50470
          return lastComparison;
50471
        }
50472
      }
50473
      return 0;
50474
    }
50475
 
50476
    public _Fields fieldForId(int fieldId) {
50477
      return _Fields.findByThriftId(fieldId);
50478
    }
50479
 
50480
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50481
      org.apache.thrift.protocol.TField field;
50482
      iprot.readStructBegin();
50483
      while (true)
50484
      {
50485
        field = iprot.readFieldBegin();
50486
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50487
          break;
50488
        }
50489
        switch (field.id) {
50490
          case 1: // SNAPDEALINVENTORYITEM
50491
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50492
              this.snapdealinventoryitem = new SnapdealInventoryItem();
50493
              this.snapdealinventoryitem.read(iprot);
50494
            } else { 
50495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50496
            }
50497
            break;
50498
          default:
50499
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50500
        }
50501
        iprot.readFieldEnd();
50502
      }
50503
      iprot.readStructEnd();
50504
      validate();
50505
    }
50506
 
50507
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50508
      validate();
50509
 
50510
      oprot.writeStructBegin(STRUCT_DESC);
50511
      if (this.snapdealinventoryitem != null) {
50512
        oprot.writeFieldBegin(SNAPDEALINVENTORYITEM_FIELD_DESC);
50513
        this.snapdealinventoryitem.write(oprot);
50514
        oprot.writeFieldEnd();
50515
      }
50516
      oprot.writeFieldStop();
50517
      oprot.writeStructEnd();
50518
    }
50519
 
50520
    @Override
50521
    public String toString() {
50522
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealInventoryForItem_args(");
50523
      boolean first = true;
50524
 
50525
      sb.append("snapdealinventoryitem:");
50526
      if (this.snapdealinventoryitem == null) {
50527
        sb.append("null");
50528
      } else {
50529
        sb.append(this.snapdealinventoryitem);
50530
      }
50531
      first = false;
50532
      sb.append(")");
50533
      return sb.toString();
50534
    }
50535
 
50536
    public void validate() throws org.apache.thrift.TException {
50537
      // check for required fields
50538
    }
50539
 
50540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50541
      try {
50542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50543
      } catch (org.apache.thrift.TException te) {
50544
        throw new java.io.IOException(te);
50545
      }
50546
    }
50547
 
50548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50549
      try {
50550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50551
      } catch (org.apache.thrift.TException te) {
50552
        throw new java.io.IOException(te);
50553
      }
50554
    }
50555
 
50556
  }
50557
 
50558
  public static class addOrUpdateSnapdealInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateSnapdealInventoryForItem_result, addOrUpdateSnapdealInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
50559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealInventoryForItem_result");
50560
 
50561
 
50562
 
50563
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50564
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50565
;
50566
 
50567
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50568
 
50569
      static {
50570
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50571
          byName.put(field.getFieldName(), field);
50572
        }
50573
      }
50574
 
50575
      /**
50576
       * Find the _Fields constant that matches fieldId, or null if its not found.
50577
       */
50578
      public static _Fields findByThriftId(int fieldId) {
50579
        switch(fieldId) {
50580
          default:
50581
            return null;
50582
        }
50583
      }
50584
 
50585
      /**
50586
       * Find the _Fields constant that matches fieldId, throwing an exception
50587
       * if it is not found.
50588
       */
50589
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50590
        _Fields fields = findByThriftId(fieldId);
50591
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50592
        return fields;
50593
      }
50594
 
50595
      /**
50596
       * Find the _Fields constant that matches name, or null if its not found.
50597
       */
50598
      public static _Fields findByName(String name) {
50599
        return byName.get(name);
50600
      }
50601
 
50602
      private final short _thriftId;
50603
      private final String _fieldName;
50604
 
50605
      _Fields(short thriftId, String fieldName) {
50606
        _thriftId = thriftId;
50607
        _fieldName = fieldName;
50608
      }
50609
 
50610
      public short getThriftFieldId() {
50611
        return _thriftId;
50612
      }
50613
 
50614
      public String getFieldName() {
50615
        return _fieldName;
50616
      }
50617
    }
50618
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50619
    static {
50620
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50621
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50622
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealInventoryForItem_result.class, metaDataMap);
50623
    }
50624
 
50625
    public addOrUpdateSnapdealInventoryForItem_result() {
50626
    }
50627
 
50628
    /**
50629
     * Performs a deep copy on <i>other</i>.
50630
     */
50631
    public addOrUpdateSnapdealInventoryForItem_result(addOrUpdateSnapdealInventoryForItem_result other) {
50632
    }
50633
 
50634
    public addOrUpdateSnapdealInventoryForItem_result deepCopy() {
50635
      return new addOrUpdateSnapdealInventoryForItem_result(this);
50636
    }
50637
 
50638
    @Override
50639
    public void clear() {
50640
    }
50641
 
50642
    public void setFieldValue(_Fields field, Object value) {
50643
      switch (field) {
50644
      }
50645
    }
50646
 
50647
    public Object getFieldValue(_Fields field) {
50648
      switch (field) {
50649
      }
50650
      throw new IllegalStateException();
50651
    }
50652
 
50653
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50654
    public boolean isSet(_Fields field) {
50655
      if (field == null) {
50656
        throw new IllegalArgumentException();
50657
      }
50658
 
50659
      switch (field) {
50660
      }
50661
      throw new IllegalStateException();
50662
    }
50663
 
50664
    @Override
50665
    public boolean equals(Object that) {
50666
      if (that == null)
50667
        return false;
50668
      if (that instanceof addOrUpdateSnapdealInventoryForItem_result)
50669
        return this.equals((addOrUpdateSnapdealInventoryForItem_result)that);
50670
      return false;
50671
    }
50672
 
50673
    public boolean equals(addOrUpdateSnapdealInventoryForItem_result that) {
50674
      if (that == null)
50675
        return false;
50676
 
50677
      return true;
50678
    }
50679
 
50680
    @Override
50681
    public int hashCode() {
50682
      return 0;
50683
    }
50684
 
50685
    public int compareTo(addOrUpdateSnapdealInventoryForItem_result other) {
50686
      if (!getClass().equals(other.getClass())) {
50687
        return getClass().getName().compareTo(other.getClass().getName());
50688
      }
50689
 
50690
      int lastComparison = 0;
50691
      addOrUpdateSnapdealInventoryForItem_result typedOther = (addOrUpdateSnapdealInventoryForItem_result)other;
50692
 
50693
      return 0;
50694
    }
50695
 
50696
    public _Fields fieldForId(int fieldId) {
50697
      return _Fields.findByThriftId(fieldId);
50698
    }
50699
 
50700
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50701
      org.apache.thrift.protocol.TField field;
50702
      iprot.readStructBegin();
50703
      while (true)
50704
      {
50705
        field = iprot.readFieldBegin();
50706
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50707
          break;
50708
        }
50709
        switch (field.id) {
50710
          default:
50711
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50712
        }
50713
        iprot.readFieldEnd();
50714
      }
50715
      iprot.readStructEnd();
50716
      validate();
50717
    }
50718
 
50719
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50720
      oprot.writeStructBegin(STRUCT_DESC);
50721
 
50722
      oprot.writeFieldStop();
50723
      oprot.writeStructEnd();
50724
    }
50725
 
50726
    @Override
50727
    public String toString() {
50728
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealInventoryForItem_result(");
50729
      boolean first = true;
50730
 
50731
      sb.append(")");
50732
      return sb.toString();
50733
    }
50734
 
50735
    public void validate() throws org.apache.thrift.TException {
50736
      // check for required fields
50737
    }
50738
 
50739
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50740
      try {
50741
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50742
      } catch (org.apache.thrift.TException te) {
50743
        throw new java.io.IOException(te);
50744
      }
50745
    }
50746
 
50747
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50748
      try {
50749
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50750
      } catch (org.apache.thrift.TException te) {
50751
        throw new java.io.IOException(te);
50752
      }
50753
    }
50754
 
50755
  }
50756
 
50757
  public static class getNlcForWarehouse_args implements org.apache.thrift.TBase<getNlcForWarehouse_args, getNlcForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
50758
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNlcForWarehouse_args");
50759
 
50760
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
50761
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
50762
 
50763
    private long warehouse_id; // required
50764
    private long item_id; // required
50765
 
50766
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50767
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50768
      WAREHOUSE_ID((short)1, "warehouse_id"),
50769
      ITEM_ID((short)2, "item_id");
50770
 
50771
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50772
 
50773
      static {
50774
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50775
          byName.put(field.getFieldName(), field);
50776
        }
50777
      }
50778
 
50779
      /**
50780
       * Find the _Fields constant that matches fieldId, or null if its not found.
50781
       */
50782
      public static _Fields findByThriftId(int fieldId) {
50783
        switch(fieldId) {
50784
          case 1: // WAREHOUSE_ID
50785
            return WAREHOUSE_ID;
50786
          case 2: // ITEM_ID
50787
            return ITEM_ID;
50788
          default:
50789
            return null;
50790
        }
50791
      }
50792
 
50793
      /**
50794
       * Find the _Fields constant that matches fieldId, throwing an exception
50795
       * if it is not found.
50796
       */
50797
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50798
        _Fields fields = findByThriftId(fieldId);
50799
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50800
        return fields;
50801
      }
50802
 
50803
      /**
50804
       * Find the _Fields constant that matches name, or null if its not found.
50805
       */
50806
      public static _Fields findByName(String name) {
50807
        return byName.get(name);
50808
      }
50809
 
50810
      private final short _thriftId;
50811
      private final String _fieldName;
50812
 
50813
      _Fields(short thriftId, String fieldName) {
50814
        _thriftId = thriftId;
50815
        _fieldName = fieldName;
50816
      }
50817
 
50818
      public short getThriftFieldId() {
50819
        return _thriftId;
50820
      }
50821
 
50822
      public String getFieldName() {
50823
        return _fieldName;
50824
      }
50825
    }
50826
 
50827
    // isset id assignments
50828
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
50829
    private static final int __ITEM_ID_ISSET_ID = 1;
50830
    private BitSet __isset_bit_vector = new BitSet(2);
50831
 
50832
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50833
    static {
50834
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50835
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50836
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50837
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50839
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50840
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNlcForWarehouse_args.class, metaDataMap);
50841
    }
50842
 
50843
    public getNlcForWarehouse_args() {
50844
    }
50845
 
50846
    public getNlcForWarehouse_args(
50847
      long warehouse_id,
50848
      long item_id)
50849
    {
50850
      this();
50851
      this.warehouse_id = warehouse_id;
50852
      setWarehouse_idIsSet(true);
50853
      this.item_id = item_id;
50854
      setItem_idIsSet(true);
50855
    }
50856
 
50857
    /**
50858
     * Performs a deep copy on <i>other</i>.
50859
     */
50860
    public getNlcForWarehouse_args(getNlcForWarehouse_args other) {
50861
      __isset_bit_vector.clear();
50862
      __isset_bit_vector.or(other.__isset_bit_vector);
50863
      this.warehouse_id = other.warehouse_id;
50864
      this.item_id = other.item_id;
50865
    }
50866
 
50867
    public getNlcForWarehouse_args deepCopy() {
50868
      return new getNlcForWarehouse_args(this);
50869
    }
50870
 
50871
    @Override
50872
    public void clear() {
50873
      setWarehouse_idIsSet(false);
50874
      this.warehouse_id = 0;
50875
      setItem_idIsSet(false);
50876
      this.item_id = 0;
50877
    }
50878
 
50879
    public long getWarehouse_id() {
50880
      return this.warehouse_id;
50881
    }
50882
 
50883
    public void setWarehouse_id(long warehouse_id) {
50884
      this.warehouse_id = warehouse_id;
50885
      setWarehouse_idIsSet(true);
50886
    }
50887
 
50888
    public void unsetWarehouse_id() {
50889
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
50890
    }
50891
 
50892
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
50893
    public boolean isSetWarehouse_id() {
50894
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
50895
    }
50896
 
50897
    public void setWarehouse_idIsSet(boolean value) {
50898
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
50899
    }
50900
 
50901
    public long getItem_id() {
50902
      return this.item_id;
50903
    }
50904
 
50905
    public void setItem_id(long item_id) {
50906
      this.item_id = item_id;
50907
      setItem_idIsSet(true);
50908
    }
50909
 
50910
    public void unsetItem_id() {
50911
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
50912
    }
50913
 
50914
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
50915
    public boolean isSetItem_id() {
50916
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
50917
    }
50918
 
50919
    public void setItem_idIsSet(boolean value) {
50920
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
50921
    }
50922
 
50923
    public void setFieldValue(_Fields field, Object value) {
50924
      switch (field) {
50925
      case WAREHOUSE_ID:
50926
        if (value == null) {
50927
          unsetWarehouse_id();
50928
        } else {
50929
          setWarehouse_id((Long)value);
50930
        }
50931
        break;
50932
 
50933
      case ITEM_ID:
50934
        if (value == null) {
50935
          unsetItem_id();
50936
        } else {
50937
          setItem_id((Long)value);
50938
        }
50939
        break;
50940
 
50941
      }
50942
    }
50943
 
50944
    public Object getFieldValue(_Fields field) {
50945
      switch (field) {
50946
      case WAREHOUSE_ID:
50947
        return Long.valueOf(getWarehouse_id());
50948
 
50949
      case ITEM_ID:
50950
        return Long.valueOf(getItem_id());
50951
 
50952
      }
50953
      throw new IllegalStateException();
50954
    }
50955
 
50956
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50957
    public boolean isSet(_Fields field) {
50958
      if (field == null) {
50959
        throw new IllegalArgumentException();
50960
      }
50961
 
50962
      switch (field) {
50963
      case WAREHOUSE_ID:
50964
        return isSetWarehouse_id();
50965
      case ITEM_ID:
50966
        return isSetItem_id();
50967
      }
50968
      throw new IllegalStateException();
50969
    }
50970
 
50971
    @Override
50972
    public boolean equals(Object that) {
50973
      if (that == null)
50974
        return false;
50975
      if (that instanceof getNlcForWarehouse_args)
50976
        return this.equals((getNlcForWarehouse_args)that);
50977
      return false;
50978
    }
50979
 
50980
    public boolean equals(getNlcForWarehouse_args that) {
50981
      if (that == null)
50982
        return false;
50983
 
50984
      boolean this_present_warehouse_id = true;
50985
      boolean that_present_warehouse_id = true;
50986
      if (this_present_warehouse_id || that_present_warehouse_id) {
50987
        if (!(this_present_warehouse_id && that_present_warehouse_id))
50988
          return false;
50989
        if (this.warehouse_id != that.warehouse_id)
50990
          return false;
50991
      }
50992
 
50993
      boolean this_present_item_id = true;
50994
      boolean that_present_item_id = true;
50995
      if (this_present_item_id || that_present_item_id) {
50996
        if (!(this_present_item_id && that_present_item_id))
50997
          return false;
50998
        if (this.item_id != that.item_id)
50999
          return false;
51000
      }
51001
 
51002
      return true;
51003
    }
51004
 
51005
    @Override
51006
    public int hashCode() {
51007
      return 0;
51008
    }
51009
 
51010
    public int compareTo(getNlcForWarehouse_args other) {
51011
      if (!getClass().equals(other.getClass())) {
51012
        return getClass().getName().compareTo(other.getClass().getName());
51013
      }
51014
 
51015
      int lastComparison = 0;
51016
      getNlcForWarehouse_args typedOther = (getNlcForWarehouse_args)other;
51017
 
51018
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
51019
      if (lastComparison != 0) {
51020
        return lastComparison;
51021
      }
51022
      if (isSetWarehouse_id()) {
51023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
51024
        if (lastComparison != 0) {
51025
          return lastComparison;
51026
        }
51027
      }
51028
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
51029
      if (lastComparison != 0) {
51030
        return lastComparison;
51031
      }
51032
      if (isSetItem_id()) {
51033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
51034
        if (lastComparison != 0) {
51035
          return lastComparison;
51036
        }
51037
      }
51038
      return 0;
51039
    }
51040
 
51041
    public _Fields fieldForId(int fieldId) {
51042
      return _Fields.findByThriftId(fieldId);
51043
    }
51044
 
51045
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51046
      org.apache.thrift.protocol.TField field;
51047
      iprot.readStructBegin();
51048
      while (true)
51049
      {
51050
        field = iprot.readFieldBegin();
51051
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51052
          break;
51053
        }
51054
        switch (field.id) {
51055
          case 1: // WAREHOUSE_ID
51056
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51057
              this.warehouse_id = iprot.readI64();
51058
              setWarehouse_idIsSet(true);
51059
            } else { 
51060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51061
            }
51062
            break;
51063
          case 2: // ITEM_ID
51064
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51065
              this.item_id = iprot.readI64();
51066
              setItem_idIsSet(true);
51067
            } else { 
51068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51069
            }
51070
            break;
51071
          default:
51072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51073
        }
51074
        iprot.readFieldEnd();
51075
      }
51076
      iprot.readStructEnd();
51077
      validate();
51078
    }
51079
 
51080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51081
      validate();
51082
 
51083
      oprot.writeStructBegin(STRUCT_DESC);
51084
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
51085
      oprot.writeI64(this.warehouse_id);
51086
      oprot.writeFieldEnd();
51087
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
51088
      oprot.writeI64(this.item_id);
51089
      oprot.writeFieldEnd();
51090
      oprot.writeFieldStop();
51091
      oprot.writeStructEnd();
51092
    }
51093
 
51094
    @Override
51095
    public String toString() {
51096
      StringBuilder sb = new StringBuilder("getNlcForWarehouse_args(");
51097
      boolean first = true;
51098
 
51099
      sb.append("warehouse_id:");
51100
      sb.append(this.warehouse_id);
51101
      first = false;
51102
      if (!first) sb.append(", ");
51103
      sb.append("item_id:");
51104
      sb.append(this.item_id);
51105
      first = false;
51106
      sb.append(")");
51107
      return sb.toString();
51108
    }
51109
 
51110
    public void validate() throws org.apache.thrift.TException {
51111
      // check for required fields
51112
    }
51113
 
51114
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51115
      try {
51116
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51117
      } catch (org.apache.thrift.TException te) {
51118
        throw new java.io.IOException(te);
51119
      }
51120
    }
51121
 
51122
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51123
      try {
51124
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
51125
        __isset_bit_vector = new BitSet(1);
51126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51127
      } catch (org.apache.thrift.TException te) {
51128
        throw new java.io.IOException(te);
51129
      }
51130
    }
51131
 
51132
  }
51133
 
51134
  public static class getNlcForWarehouse_result implements org.apache.thrift.TBase<getNlcForWarehouse_result, getNlcForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
51135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNlcForWarehouse_result");
51136
 
51137
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.DOUBLE, (short)0);
51138
 
51139
    private double success; // required
51140
 
51141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51143
      SUCCESS((short)0, "success");
51144
 
51145
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51146
 
51147
      static {
51148
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51149
          byName.put(field.getFieldName(), field);
51150
        }
51151
      }
51152
 
51153
      /**
51154
       * Find the _Fields constant that matches fieldId, or null if its not found.
51155
       */
51156
      public static _Fields findByThriftId(int fieldId) {
51157
        switch(fieldId) {
51158
          case 0: // SUCCESS
51159
            return SUCCESS;
51160
          default:
51161
            return null;
51162
        }
51163
      }
51164
 
51165
      /**
51166
       * Find the _Fields constant that matches fieldId, throwing an exception
51167
       * if it is not found.
51168
       */
51169
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51170
        _Fields fields = findByThriftId(fieldId);
51171
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51172
        return fields;
51173
      }
51174
 
51175
      /**
51176
       * Find the _Fields constant that matches name, or null if its not found.
51177
       */
51178
      public static _Fields findByName(String name) {
51179
        return byName.get(name);
51180
      }
51181
 
51182
      private final short _thriftId;
51183
      private final String _fieldName;
51184
 
51185
      _Fields(short thriftId, String fieldName) {
51186
        _thriftId = thriftId;
51187
        _fieldName = fieldName;
51188
      }
51189
 
51190
      public short getThriftFieldId() {
51191
        return _thriftId;
51192
      }
51193
 
51194
      public String getFieldName() {
51195
        return _fieldName;
51196
      }
51197
    }
51198
 
51199
    // isset id assignments
51200
    private static final int __SUCCESS_ISSET_ID = 0;
51201
    private BitSet __isset_bit_vector = new BitSet(1);
51202
 
51203
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51204
    static {
51205
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51206
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51207
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
51208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNlcForWarehouse_result.class, metaDataMap);
51210
    }
51211
 
51212
    public getNlcForWarehouse_result() {
51213
    }
51214
 
51215
    public getNlcForWarehouse_result(
51216
      double success)
51217
    {
51218
      this();
51219
      this.success = success;
51220
      setSuccessIsSet(true);
51221
    }
51222
 
51223
    /**
51224
     * Performs a deep copy on <i>other</i>.
51225
     */
51226
    public getNlcForWarehouse_result(getNlcForWarehouse_result other) {
51227
      __isset_bit_vector.clear();
51228
      __isset_bit_vector.or(other.__isset_bit_vector);
51229
      this.success = other.success;
51230
    }
51231
 
51232
    public getNlcForWarehouse_result deepCopy() {
51233
      return new getNlcForWarehouse_result(this);
51234
    }
51235
 
51236
    @Override
51237
    public void clear() {
51238
      setSuccessIsSet(false);
51239
      this.success = 0.0;
51240
    }
51241
 
51242
    public double getSuccess() {
51243
      return this.success;
51244
    }
51245
 
51246
    public void setSuccess(double success) {
51247
      this.success = success;
51248
      setSuccessIsSet(true);
51249
    }
51250
 
51251
    public void unsetSuccess() {
51252
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
51253
    }
51254
 
51255
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
51256
    public boolean isSetSuccess() {
51257
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
51258
    }
51259
 
51260
    public void setSuccessIsSet(boolean value) {
51261
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
51262
    }
51263
 
51264
    public void setFieldValue(_Fields field, Object value) {
51265
      switch (field) {
51266
      case SUCCESS:
51267
        if (value == null) {
51268
          unsetSuccess();
51269
        } else {
51270
          setSuccess((Double)value);
51271
        }
51272
        break;
51273
 
51274
      }
51275
    }
51276
 
51277
    public Object getFieldValue(_Fields field) {
51278
      switch (field) {
51279
      case SUCCESS:
51280
        return Double.valueOf(getSuccess());
51281
 
51282
      }
51283
      throw new IllegalStateException();
51284
    }
51285
 
51286
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51287
    public boolean isSet(_Fields field) {
51288
      if (field == null) {
51289
        throw new IllegalArgumentException();
51290
      }
51291
 
51292
      switch (field) {
51293
      case SUCCESS:
51294
        return isSetSuccess();
51295
      }
51296
      throw new IllegalStateException();
51297
    }
51298
 
51299
    @Override
51300
    public boolean equals(Object that) {
51301
      if (that == null)
51302
        return false;
51303
      if (that instanceof getNlcForWarehouse_result)
51304
        return this.equals((getNlcForWarehouse_result)that);
51305
      return false;
51306
    }
51307
 
51308
    public boolean equals(getNlcForWarehouse_result that) {
51309
      if (that == null)
51310
        return false;
51311
 
51312
      boolean this_present_success = true;
51313
      boolean that_present_success = true;
51314
      if (this_present_success || that_present_success) {
51315
        if (!(this_present_success && that_present_success))
51316
          return false;
51317
        if (this.success != that.success)
51318
          return false;
51319
      }
51320
 
51321
      return true;
51322
    }
51323
 
51324
    @Override
51325
    public int hashCode() {
51326
      return 0;
51327
    }
51328
 
51329
    public int compareTo(getNlcForWarehouse_result other) {
51330
      if (!getClass().equals(other.getClass())) {
51331
        return getClass().getName().compareTo(other.getClass().getName());
51332
      }
51333
 
51334
      int lastComparison = 0;
51335
      getNlcForWarehouse_result typedOther = (getNlcForWarehouse_result)other;
51336
 
51337
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
51338
      if (lastComparison != 0) {
51339
        return lastComparison;
51340
      }
51341
      if (isSetSuccess()) {
51342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51343
        if (lastComparison != 0) {
51344
          return lastComparison;
51345
        }
51346
      }
51347
      return 0;
51348
    }
51349
 
51350
    public _Fields fieldForId(int fieldId) {
51351
      return _Fields.findByThriftId(fieldId);
51352
    }
51353
 
51354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51355
      org.apache.thrift.protocol.TField field;
51356
      iprot.readStructBegin();
51357
      while (true)
51358
      {
51359
        field = iprot.readFieldBegin();
51360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51361
          break;
51362
        }
51363
        switch (field.id) {
51364
          case 0: // SUCCESS
51365
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
51366
              this.success = iprot.readDouble();
51367
              setSuccessIsSet(true);
51368
            } else { 
51369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51370
            }
51371
            break;
51372
          default:
51373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51374
        }
51375
        iprot.readFieldEnd();
51376
      }
51377
      iprot.readStructEnd();
51378
      validate();
51379
    }
51380
 
51381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51382
      oprot.writeStructBegin(STRUCT_DESC);
51383
 
51384
      if (this.isSetSuccess()) {
51385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51386
        oprot.writeDouble(this.success);
51387
        oprot.writeFieldEnd();
51388
      }
51389
      oprot.writeFieldStop();
51390
      oprot.writeStructEnd();
51391
    }
51392
 
51393
    @Override
51394
    public String toString() {
51395
      StringBuilder sb = new StringBuilder("getNlcForWarehouse_result(");
51396
      boolean first = true;
51397
 
51398
      sb.append("success:");
51399
      sb.append(this.success);
51400
      first = false;
51401
      sb.append(")");
51402
      return sb.toString();
51403
    }
51404
 
51405
    public void validate() throws org.apache.thrift.TException {
51406
      // check for required fields
51407
    }
51408
 
51409
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51410
      try {
51411
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51412
      } catch (org.apache.thrift.TException te) {
51413
        throw new java.io.IOException(te);
51414
      }
51415
    }
51416
 
51417
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51418
      try {
51419
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51420
      } catch (org.apache.thrift.TException te) {
51421
        throw new java.io.IOException(te);
51422
      }
51423
    }
51424
 
51425
  }
51426
 
9640 amar.kumar 51427
  public static class getHeldInventoryMapForItem_args implements org.apache.thrift.TBase<getHeldInventoryMapForItem_args, getHeldInventoryMapForItem_args._Fields>, java.io.Serializable, Cloneable   {
51428
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHeldInventoryMapForItem_args");
51429
 
51430
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
51431
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)2);
51432
 
51433
    private long item_id; // required
51434
    private long warehouse_id; // required
51435
 
51436
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51437
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51438
      ITEM_ID((short)1, "item_id"),
51439
      WAREHOUSE_ID((short)2, "warehouse_id");
51440
 
51441
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51442
 
51443
      static {
51444
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51445
          byName.put(field.getFieldName(), field);
51446
        }
51447
      }
51448
 
51449
      /**
51450
       * Find the _Fields constant that matches fieldId, or null if its not found.
51451
       */
51452
      public static _Fields findByThriftId(int fieldId) {
51453
        switch(fieldId) {
51454
          case 1: // ITEM_ID
51455
            return ITEM_ID;
51456
          case 2: // WAREHOUSE_ID
51457
            return WAREHOUSE_ID;
51458
          default:
51459
            return null;
51460
        }
51461
      }
51462
 
51463
      /**
51464
       * Find the _Fields constant that matches fieldId, throwing an exception
51465
       * if it is not found.
51466
       */
51467
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51468
        _Fields fields = findByThriftId(fieldId);
51469
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51470
        return fields;
51471
      }
51472
 
51473
      /**
51474
       * Find the _Fields constant that matches name, or null if its not found.
51475
       */
51476
      public static _Fields findByName(String name) {
51477
        return byName.get(name);
51478
      }
51479
 
51480
      private final short _thriftId;
51481
      private final String _fieldName;
51482
 
51483
      _Fields(short thriftId, String fieldName) {
51484
        _thriftId = thriftId;
51485
        _fieldName = fieldName;
51486
      }
51487
 
51488
      public short getThriftFieldId() {
51489
        return _thriftId;
51490
      }
51491
 
51492
      public String getFieldName() {
51493
        return _fieldName;
51494
      }
51495
    }
51496
 
51497
    // isset id assignments
51498
    private static final int __ITEM_ID_ISSET_ID = 0;
51499
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
51500
    private BitSet __isset_bit_vector = new BitSet(2);
51501
 
51502
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51503
    static {
51504
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51505
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51507
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHeldInventoryMapForItem_args.class, metaDataMap);
51511
    }
51512
 
51513
    public getHeldInventoryMapForItem_args() {
51514
    }
51515
 
51516
    public getHeldInventoryMapForItem_args(
51517
      long item_id,
51518
      long warehouse_id)
51519
    {
51520
      this();
51521
      this.item_id = item_id;
51522
      setItem_idIsSet(true);
51523
      this.warehouse_id = warehouse_id;
51524
      setWarehouse_idIsSet(true);
51525
    }
51526
 
51527
    /**
51528
     * Performs a deep copy on <i>other</i>.
51529
     */
51530
    public getHeldInventoryMapForItem_args(getHeldInventoryMapForItem_args other) {
51531
      __isset_bit_vector.clear();
51532
      __isset_bit_vector.or(other.__isset_bit_vector);
51533
      this.item_id = other.item_id;
51534
      this.warehouse_id = other.warehouse_id;
51535
    }
51536
 
51537
    public getHeldInventoryMapForItem_args deepCopy() {
51538
      return new getHeldInventoryMapForItem_args(this);
51539
    }
51540
 
51541
    @Override
51542
    public void clear() {
51543
      setItem_idIsSet(false);
51544
      this.item_id = 0;
51545
      setWarehouse_idIsSet(false);
51546
      this.warehouse_id = 0;
51547
    }
51548
 
51549
    public long getItem_id() {
51550
      return this.item_id;
51551
    }
51552
 
51553
    public void setItem_id(long item_id) {
51554
      this.item_id = item_id;
51555
      setItem_idIsSet(true);
51556
    }
51557
 
51558
    public void unsetItem_id() {
51559
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
51560
    }
51561
 
51562
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
51563
    public boolean isSetItem_id() {
51564
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
51565
    }
51566
 
51567
    public void setItem_idIsSet(boolean value) {
51568
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
51569
    }
51570
 
51571
    public long getWarehouse_id() {
51572
      return this.warehouse_id;
51573
    }
51574
 
51575
    public void setWarehouse_id(long warehouse_id) {
51576
      this.warehouse_id = warehouse_id;
51577
      setWarehouse_idIsSet(true);
51578
    }
51579
 
51580
    public void unsetWarehouse_id() {
51581
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
51582
    }
51583
 
51584
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
51585
    public boolean isSetWarehouse_id() {
51586
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
51587
    }
51588
 
51589
    public void setWarehouse_idIsSet(boolean value) {
51590
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
51591
    }
51592
 
51593
    public void setFieldValue(_Fields field, Object value) {
51594
      switch (field) {
51595
      case ITEM_ID:
51596
        if (value == null) {
51597
          unsetItem_id();
51598
        } else {
51599
          setItem_id((Long)value);
51600
        }
51601
        break;
51602
 
51603
      case WAREHOUSE_ID:
51604
        if (value == null) {
51605
          unsetWarehouse_id();
51606
        } else {
51607
          setWarehouse_id((Long)value);
51608
        }
51609
        break;
51610
 
51611
      }
51612
    }
51613
 
51614
    public Object getFieldValue(_Fields field) {
51615
      switch (field) {
51616
      case ITEM_ID:
51617
        return Long.valueOf(getItem_id());
51618
 
51619
      case WAREHOUSE_ID:
51620
        return Long.valueOf(getWarehouse_id());
51621
 
51622
      }
51623
      throw new IllegalStateException();
51624
    }
51625
 
51626
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51627
    public boolean isSet(_Fields field) {
51628
      if (field == null) {
51629
        throw new IllegalArgumentException();
51630
      }
51631
 
51632
      switch (field) {
51633
      case ITEM_ID:
51634
        return isSetItem_id();
51635
      case WAREHOUSE_ID:
51636
        return isSetWarehouse_id();
51637
      }
51638
      throw new IllegalStateException();
51639
    }
51640
 
51641
    @Override
51642
    public boolean equals(Object that) {
51643
      if (that == null)
51644
        return false;
51645
      if (that instanceof getHeldInventoryMapForItem_args)
51646
        return this.equals((getHeldInventoryMapForItem_args)that);
51647
      return false;
51648
    }
51649
 
51650
    public boolean equals(getHeldInventoryMapForItem_args that) {
51651
      if (that == null)
51652
        return false;
51653
 
51654
      boolean this_present_item_id = true;
51655
      boolean that_present_item_id = true;
51656
      if (this_present_item_id || that_present_item_id) {
51657
        if (!(this_present_item_id && that_present_item_id))
51658
          return false;
51659
        if (this.item_id != that.item_id)
51660
          return false;
51661
      }
51662
 
51663
      boolean this_present_warehouse_id = true;
51664
      boolean that_present_warehouse_id = true;
51665
      if (this_present_warehouse_id || that_present_warehouse_id) {
51666
        if (!(this_present_warehouse_id && that_present_warehouse_id))
51667
          return false;
51668
        if (this.warehouse_id != that.warehouse_id)
51669
          return false;
51670
      }
51671
 
51672
      return true;
51673
    }
51674
 
51675
    @Override
51676
    public int hashCode() {
51677
      return 0;
51678
    }
51679
 
51680
    public int compareTo(getHeldInventoryMapForItem_args other) {
51681
      if (!getClass().equals(other.getClass())) {
51682
        return getClass().getName().compareTo(other.getClass().getName());
51683
      }
51684
 
51685
      int lastComparison = 0;
51686
      getHeldInventoryMapForItem_args typedOther = (getHeldInventoryMapForItem_args)other;
51687
 
51688
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
51689
      if (lastComparison != 0) {
51690
        return lastComparison;
51691
      }
51692
      if (isSetItem_id()) {
51693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
51694
        if (lastComparison != 0) {
51695
          return lastComparison;
51696
        }
51697
      }
51698
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
51699
      if (lastComparison != 0) {
51700
        return lastComparison;
51701
      }
51702
      if (isSetWarehouse_id()) {
51703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
51704
        if (lastComparison != 0) {
51705
          return lastComparison;
51706
        }
51707
      }
51708
      return 0;
51709
    }
51710
 
51711
    public _Fields fieldForId(int fieldId) {
51712
      return _Fields.findByThriftId(fieldId);
51713
    }
51714
 
51715
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51716
      org.apache.thrift.protocol.TField field;
51717
      iprot.readStructBegin();
51718
      while (true)
51719
      {
51720
        field = iprot.readFieldBegin();
51721
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51722
          break;
51723
        }
51724
        switch (field.id) {
51725
          case 1: // ITEM_ID
51726
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51727
              this.item_id = iprot.readI64();
51728
              setItem_idIsSet(true);
51729
            } else { 
51730
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51731
            }
51732
            break;
51733
          case 2: // WAREHOUSE_ID
51734
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51735
              this.warehouse_id = iprot.readI64();
51736
              setWarehouse_idIsSet(true);
51737
            } else { 
51738
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51739
            }
51740
            break;
51741
          default:
51742
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51743
        }
51744
        iprot.readFieldEnd();
51745
      }
51746
      iprot.readStructEnd();
51747
      validate();
51748
    }
51749
 
51750
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51751
      validate();
51752
 
51753
      oprot.writeStructBegin(STRUCT_DESC);
51754
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
51755
      oprot.writeI64(this.item_id);
51756
      oprot.writeFieldEnd();
51757
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
51758
      oprot.writeI64(this.warehouse_id);
51759
      oprot.writeFieldEnd();
51760
      oprot.writeFieldStop();
51761
      oprot.writeStructEnd();
51762
    }
51763
 
51764
    @Override
51765
    public String toString() {
51766
      StringBuilder sb = new StringBuilder("getHeldInventoryMapForItem_args(");
51767
      boolean first = true;
51768
 
51769
      sb.append("item_id:");
51770
      sb.append(this.item_id);
51771
      first = false;
51772
      if (!first) sb.append(", ");
51773
      sb.append("warehouse_id:");
51774
      sb.append(this.warehouse_id);
51775
      first = false;
51776
      sb.append(")");
51777
      return sb.toString();
51778
    }
51779
 
51780
    public void validate() throws org.apache.thrift.TException {
51781
      // check for required fields
51782
    }
51783
 
51784
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51785
      try {
51786
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51787
      } catch (org.apache.thrift.TException te) {
51788
        throw new java.io.IOException(te);
51789
      }
51790
    }
51791
 
51792
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51793
      try {
10126 amar.kumar 51794
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
51795
        __isset_bit_vector = new BitSet(1);
9640 amar.kumar 51796
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51797
      } catch (org.apache.thrift.TException te) {
51798
        throw new java.io.IOException(te);
51799
      }
51800
    }
51801
 
51802
  }
51803
 
51804
  public static class getHeldInventoryMapForItem_result implements org.apache.thrift.TBase<getHeldInventoryMapForItem_result, getHeldInventoryMapForItem_result._Fields>, java.io.Serializable, Cloneable   {
51805
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHeldInventoryMapForItem_result");
51806
 
51807
    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);
51808
 
51809
    private Map<Integer,Long> success; // required
51810
 
51811
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51812
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51813
      SUCCESS((short)0, "success");
51814
 
51815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51816
 
51817
      static {
51818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51819
          byName.put(field.getFieldName(), field);
51820
        }
51821
      }
51822
 
51823
      /**
51824
       * Find the _Fields constant that matches fieldId, or null if its not found.
51825
       */
51826
      public static _Fields findByThriftId(int fieldId) {
51827
        switch(fieldId) {
51828
          case 0: // SUCCESS
51829
            return SUCCESS;
51830
          default:
51831
            return null;
51832
        }
51833
      }
51834
 
51835
      /**
51836
       * Find the _Fields constant that matches fieldId, throwing an exception
51837
       * if it is not found.
51838
       */
51839
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51840
        _Fields fields = findByThriftId(fieldId);
51841
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51842
        return fields;
51843
      }
51844
 
51845
      /**
51846
       * Find the _Fields constant that matches name, or null if its not found.
51847
       */
51848
      public static _Fields findByName(String name) {
51849
        return byName.get(name);
51850
      }
51851
 
51852
      private final short _thriftId;
51853
      private final String _fieldName;
51854
 
51855
      _Fields(short thriftId, String fieldName) {
51856
        _thriftId = thriftId;
51857
        _fieldName = fieldName;
51858
      }
51859
 
51860
      public short getThriftFieldId() {
51861
        return _thriftId;
51862
      }
51863
 
51864
      public String getFieldName() {
51865
        return _fieldName;
51866
      }
51867
    }
51868
 
51869
    // isset id assignments
51870
 
51871
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51872
    static {
51873
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51874
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51875
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
51876
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
51877
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
51878
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51879
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHeldInventoryMapForItem_result.class, metaDataMap);
51880
    }
51881
 
51882
    public getHeldInventoryMapForItem_result() {
51883
    }
51884
 
51885
    public getHeldInventoryMapForItem_result(
51886
      Map<Integer,Long> success)
51887
    {
51888
      this();
51889
      this.success = success;
51890
    }
51891
 
51892
    /**
51893
     * Performs a deep copy on <i>other</i>.
51894
     */
51895
    public getHeldInventoryMapForItem_result(getHeldInventoryMapForItem_result other) {
51896
      if (other.isSetSuccess()) {
51897
        Map<Integer,Long> __this__success = new HashMap<Integer,Long>();
51898
        for (Map.Entry<Integer, Long> other_element : other.success.entrySet()) {
51899
 
51900
          Integer other_element_key = other_element.getKey();
51901
          Long other_element_value = other_element.getValue();
51902
 
51903
          Integer __this__success_copy_key = other_element_key;
51904
 
51905
          Long __this__success_copy_value = other_element_value;
51906
 
51907
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
51908
        }
51909
        this.success = __this__success;
51910
      }
51911
    }
51912
 
51913
    public getHeldInventoryMapForItem_result deepCopy() {
51914
      return new getHeldInventoryMapForItem_result(this);
51915
    }
51916
 
51917
    @Override
51918
    public void clear() {
51919
      this.success = null;
51920
    }
51921
 
51922
    public int getSuccessSize() {
51923
      return (this.success == null) ? 0 : this.success.size();
51924
    }
51925
 
51926
    public void putToSuccess(int key, long val) {
51927
      if (this.success == null) {
51928
        this.success = new HashMap<Integer,Long>();
51929
      }
51930
      this.success.put(key, val);
51931
    }
51932
 
51933
    public Map<Integer,Long> getSuccess() {
51934
      return this.success;
51935
    }
51936
 
51937
    public void setSuccess(Map<Integer,Long> success) {
51938
      this.success = success;
51939
    }
51940
 
51941
    public void unsetSuccess() {
51942
      this.success = null;
51943
    }
51944
 
51945
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
51946
    public boolean isSetSuccess() {
51947
      return this.success != null;
51948
    }
51949
 
51950
    public void setSuccessIsSet(boolean value) {
51951
      if (!value) {
51952
        this.success = null;
51953
      }
51954
    }
51955
 
51956
    public void setFieldValue(_Fields field, Object value) {
51957
      switch (field) {
51958
      case SUCCESS:
51959
        if (value == null) {
51960
          unsetSuccess();
51961
        } else {
51962
          setSuccess((Map<Integer,Long>)value);
51963
        }
51964
        break;
51965
 
51966
      }
51967
    }
51968
 
51969
    public Object getFieldValue(_Fields field) {
51970
      switch (field) {
51971
      case SUCCESS:
51972
        return getSuccess();
51973
 
51974
      }
51975
      throw new IllegalStateException();
51976
    }
51977
 
51978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51979
    public boolean isSet(_Fields field) {
51980
      if (field == null) {
51981
        throw new IllegalArgumentException();
51982
      }
51983
 
51984
      switch (field) {
51985
      case SUCCESS:
51986
        return isSetSuccess();
51987
      }
51988
      throw new IllegalStateException();
51989
    }
51990
 
51991
    @Override
51992
    public boolean equals(Object that) {
51993
      if (that == null)
51994
        return false;
51995
      if (that instanceof getHeldInventoryMapForItem_result)
51996
        return this.equals((getHeldInventoryMapForItem_result)that);
51997
      return false;
51998
    }
51999
 
52000
    public boolean equals(getHeldInventoryMapForItem_result that) {
52001
      if (that == null)
52002
        return false;
52003
 
52004
      boolean this_present_success = true && this.isSetSuccess();
52005
      boolean that_present_success = true && that.isSetSuccess();
52006
      if (this_present_success || that_present_success) {
52007
        if (!(this_present_success && that_present_success))
52008
          return false;
52009
        if (!this.success.equals(that.success))
52010
          return false;
52011
      }
52012
 
52013
      return true;
52014
    }
52015
 
52016
    @Override
52017
    public int hashCode() {
52018
      return 0;
52019
    }
52020
 
52021
    public int compareTo(getHeldInventoryMapForItem_result other) {
52022
      if (!getClass().equals(other.getClass())) {
52023
        return getClass().getName().compareTo(other.getClass().getName());
52024
      }
52025
 
52026
      int lastComparison = 0;
52027
      getHeldInventoryMapForItem_result typedOther = (getHeldInventoryMapForItem_result)other;
52028
 
52029
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
52030
      if (lastComparison != 0) {
52031
        return lastComparison;
52032
      }
52033
      if (isSetSuccess()) {
52034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
52035
        if (lastComparison != 0) {
52036
          return lastComparison;
52037
        }
52038
      }
52039
      return 0;
52040
    }
52041
 
52042
    public _Fields fieldForId(int fieldId) {
52043
      return _Fields.findByThriftId(fieldId);
52044
    }
52045
 
52046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52047
      org.apache.thrift.protocol.TField field;
52048
      iprot.readStructBegin();
52049
      while (true)
52050
      {
52051
        field = iprot.readFieldBegin();
52052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52053
          break;
52054
        }
52055
        switch (field.id) {
52056
          case 0: // SUCCESS
52057
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
52058
              {
11173 vikram.rag 52059
                org.apache.thrift.protocol.TMap _map150 = iprot.readMapBegin();
52060
                this.success = new HashMap<Integer,Long>(2*_map150.size);
52061
                for (int _i151 = 0; _i151 < _map150.size; ++_i151)
9640 amar.kumar 52062
                {
11173 vikram.rag 52063
                  int _key152; // required
52064
                  long _val153; // required
52065
                  _key152 = iprot.readI32();
52066
                  _val153 = iprot.readI64();
52067
                  this.success.put(_key152, _val153);
9640 amar.kumar 52068
                }
52069
                iprot.readMapEnd();
52070
              }
52071
            } else { 
52072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52073
            }
52074
            break;
52075
          default:
52076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52077
        }
52078
        iprot.readFieldEnd();
52079
      }
52080
      iprot.readStructEnd();
52081
      validate();
52082
    }
52083
 
52084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52085
      oprot.writeStructBegin(STRUCT_DESC);
52086
 
52087
      if (this.isSetSuccess()) {
52088
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52089
        {
52090
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.I64, this.success.size()));
11173 vikram.rag 52091
          for (Map.Entry<Integer, Long> _iter154 : this.success.entrySet())
9640 amar.kumar 52092
          {
11173 vikram.rag 52093
            oprot.writeI32(_iter154.getKey());
52094
            oprot.writeI64(_iter154.getValue());
9640 amar.kumar 52095
          }
52096
          oprot.writeMapEnd();
52097
        }
52098
        oprot.writeFieldEnd();
52099
      }
52100
      oprot.writeFieldStop();
52101
      oprot.writeStructEnd();
52102
    }
52103
 
52104
    @Override
52105
    public String toString() {
52106
      StringBuilder sb = new StringBuilder("getHeldInventoryMapForItem_result(");
52107
      boolean first = true;
52108
 
52109
      sb.append("success:");
52110
      if (this.success == null) {
52111
        sb.append("null");
52112
      } else {
52113
        sb.append(this.success);
52114
      }
52115
      first = false;
52116
      sb.append(")");
52117
      return sb.toString();
52118
    }
52119
 
52120
    public void validate() throws org.apache.thrift.TException {
52121
      // check for required fields
52122
    }
52123
 
52124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52125
      try {
52126
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52127
      } catch (org.apache.thrift.TException te) {
52128
        throw new java.io.IOException(te);
52129
      }
52130
    }
52131
 
52132
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52133
      try {
52134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52135
      } catch (org.apache.thrift.TException te) {
52136
        throw new java.io.IOException(te);
52137
      }
52138
    }
52139
 
52140
  }
52141
 
9495 vikram.rag 52142
  public static class addOrUpdateAllAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_args, addOrUpdateAllAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable   {
52143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_args");
9456 vikram.rag 52144
 
9495 vikram.rag 52145
    private static final org.apache.thrift.protocol.TField ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("allamazonfbainventorysnapshot", org.apache.thrift.protocol.TType.LIST, (short)-1);
9456 vikram.rag 52146
 
9495 vikram.rag 52147
    private List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot; // required
9456 vikram.rag 52148
 
52149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9495 vikram.rag 52151
      ALLAMAZONFBAINVENTORYSNAPSHOT((short)-1, "allamazonfbainventorysnapshot");
9456 vikram.rag 52152
 
52153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52154
 
52155
      static {
52156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52157
          byName.put(field.getFieldName(), field);
52158
        }
52159
      }
52160
 
52161
      /**
52162
       * Find the _Fields constant that matches fieldId, or null if its not found.
52163
       */
52164
      public static _Fields findByThriftId(int fieldId) {
52165
        switch(fieldId) {
9495 vikram.rag 52166
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
52167
            return ALLAMAZONFBAINVENTORYSNAPSHOT;
9456 vikram.rag 52168
          default:
52169
            return null;
52170
        }
52171
      }
52172
 
52173
      /**
52174
       * Find the _Fields constant that matches fieldId, throwing an exception
52175
       * if it is not found.
52176
       */
52177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52178
        _Fields fields = findByThriftId(fieldId);
52179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52180
        return fields;
52181
      }
52182
 
52183
      /**
52184
       * Find the _Fields constant that matches name, or null if its not found.
52185
       */
52186
      public static _Fields findByName(String name) {
52187
        return byName.get(name);
52188
      }
52189
 
52190
      private final short _thriftId;
52191
      private final String _fieldName;
52192
 
52193
      _Fields(short thriftId, String fieldName) {
52194
        _thriftId = thriftId;
52195
        _fieldName = fieldName;
52196
      }
52197
 
52198
      public short getThriftFieldId() {
52199
        return _thriftId;
52200
      }
52201
 
52202
      public String getFieldName() {
52203
        return _fieldName;
52204
      }
52205
    }
9495 vikram.rag 52206
 
52207
    // isset id assignments
52208
 
9456 vikram.rag 52209
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52210
    static {
52211
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9495 vikram.rag 52212
      tmpMap.put(_Fields.ALLAMAZONFBAINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("allamazonfbainventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52213
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
52214
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
9456 vikram.rag 52215
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 52216
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllAmazonFbaInventory_args.class, metaDataMap);
9456 vikram.rag 52217
    }
52218
 
9495 vikram.rag 52219
    public addOrUpdateAllAmazonFbaInventory_args() {
9456 vikram.rag 52220
    }
52221
 
9495 vikram.rag 52222
    public addOrUpdateAllAmazonFbaInventory_args(
52223
      List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot)
52224
    {
52225
      this();
52226
      this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
52227
    }
52228
 
9456 vikram.rag 52229
    /**
52230
     * Performs a deep copy on <i>other</i>.
52231
     */
9495 vikram.rag 52232
    public addOrUpdateAllAmazonFbaInventory_args(addOrUpdateAllAmazonFbaInventory_args other) {
52233
      if (other.isSetAllamazonfbainventorysnapshot()) {
52234
        List<AmazonFbaInventorySnapshot> __this__allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>();
52235
        for (AmazonFbaInventorySnapshot other_element : other.allamazonfbainventorysnapshot) {
52236
          __this__allamazonfbainventorysnapshot.add(new AmazonFbaInventorySnapshot(other_element));
52237
        }
52238
        this.allamazonfbainventorysnapshot = __this__allamazonfbainventorysnapshot;
52239
      }
9456 vikram.rag 52240
    }
52241
 
9495 vikram.rag 52242
    public addOrUpdateAllAmazonFbaInventory_args deepCopy() {
52243
      return new addOrUpdateAllAmazonFbaInventory_args(this);
9456 vikram.rag 52244
    }
52245
 
52246
    @Override
52247
    public void clear() {
9495 vikram.rag 52248
      this.allamazonfbainventorysnapshot = null;
9456 vikram.rag 52249
    }
52250
 
9495 vikram.rag 52251
    public int getAllamazonfbainventorysnapshotSize() {
52252
      return (this.allamazonfbainventorysnapshot == null) ? 0 : this.allamazonfbainventorysnapshot.size();
52253
    }
52254
 
52255
    public java.util.Iterator<AmazonFbaInventorySnapshot> getAllamazonfbainventorysnapshotIterator() {
52256
      return (this.allamazonfbainventorysnapshot == null) ? null : this.allamazonfbainventorysnapshot.iterator();
52257
    }
52258
 
52259
    public void addToAllamazonfbainventorysnapshot(AmazonFbaInventorySnapshot elem) {
52260
      if (this.allamazonfbainventorysnapshot == null) {
52261
        this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>();
52262
      }
52263
      this.allamazonfbainventorysnapshot.add(elem);
52264
    }
52265
 
52266
    public List<AmazonFbaInventorySnapshot> getAllamazonfbainventorysnapshot() {
52267
      return this.allamazonfbainventorysnapshot;
52268
    }
52269
 
52270
    public void setAllamazonfbainventorysnapshot(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) {
52271
      this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
52272
    }
52273
 
52274
    public void unsetAllamazonfbainventorysnapshot() {
52275
      this.allamazonfbainventorysnapshot = null;
52276
    }
52277
 
52278
    /** Returns true if field allamazonfbainventorysnapshot is set (has been assigned a value) and false otherwise */
52279
    public boolean isSetAllamazonfbainventorysnapshot() {
52280
      return this.allamazonfbainventorysnapshot != null;
52281
    }
52282
 
52283
    public void setAllamazonfbainventorysnapshotIsSet(boolean value) {
52284
      if (!value) {
52285
        this.allamazonfbainventorysnapshot = null;
52286
      }
52287
    }
52288
 
9456 vikram.rag 52289
    public void setFieldValue(_Fields field, Object value) {
52290
      switch (field) {
9495 vikram.rag 52291
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
52292
        if (value == null) {
52293
          unsetAllamazonfbainventorysnapshot();
52294
        } else {
52295
          setAllamazonfbainventorysnapshot((List<AmazonFbaInventorySnapshot>)value);
52296
        }
52297
        break;
52298
 
9456 vikram.rag 52299
      }
52300
    }
52301
 
52302
    public Object getFieldValue(_Fields field) {
52303
      switch (field) {
9495 vikram.rag 52304
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
52305
        return getAllamazonfbainventorysnapshot();
52306
 
9456 vikram.rag 52307
      }
52308
      throw new IllegalStateException();
52309
    }
52310
 
52311
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52312
    public boolean isSet(_Fields field) {
52313
      if (field == null) {
52314
        throw new IllegalArgumentException();
52315
      }
52316
 
52317
      switch (field) {
9495 vikram.rag 52318
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
52319
        return isSetAllamazonfbainventorysnapshot();
9456 vikram.rag 52320
      }
52321
      throw new IllegalStateException();
52322
    }
52323
 
52324
    @Override
52325
    public boolean equals(Object that) {
52326
      if (that == null)
52327
        return false;
9495 vikram.rag 52328
      if (that instanceof addOrUpdateAllAmazonFbaInventory_args)
52329
        return this.equals((addOrUpdateAllAmazonFbaInventory_args)that);
9456 vikram.rag 52330
      return false;
52331
    }
52332
 
9495 vikram.rag 52333
    public boolean equals(addOrUpdateAllAmazonFbaInventory_args that) {
9456 vikram.rag 52334
      if (that == null)
52335
        return false;
52336
 
9495 vikram.rag 52337
      boolean this_present_allamazonfbainventorysnapshot = true && this.isSetAllamazonfbainventorysnapshot();
52338
      boolean that_present_allamazonfbainventorysnapshot = true && that.isSetAllamazonfbainventorysnapshot();
52339
      if (this_present_allamazonfbainventorysnapshot || that_present_allamazonfbainventorysnapshot) {
52340
        if (!(this_present_allamazonfbainventorysnapshot && that_present_allamazonfbainventorysnapshot))
52341
          return false;
52342
        if (!this.allamazonfbainventorysnapshot.equals(that.allamazonfbainventorysnapshot))
52343
          return false;
52344
      }
52345
 
9456 vikram.rag 52346
      return true;
52347
    }
52348
 
52349
    @Override
52350
    public int hashCode() {
52351
      return 0;
52352
    }
52353
 
9495 vikram.rag 52354
    public int compareTo(addOrUpdateAllAmazonFbaInventory_args other) {
9456 vikram.rag 52355
      if (!getClass().equals(other.getClass())) {
52356
        return getClass().getName().compareTo(other.getClass().getName());
52357
      }
52358
 
52359
      int lastComparison = 0;
9495 vikram.rag 52360
      addOrUpdateAllAmazonFbaInventory_args typedOther = (addOrUpdateAllAmazonFbaInventory_args)other;
9456 vikram.rag 52361
 
9495 vikram.rag 52362
      lastComparison = Boolean.valueOf(isSetAllamazonfbainventorysnapshot()).compareTo(typedOther.isSetAllamazonfbainventorysnapshot());
52363
      if (lastComparison != 0) {
52364
        return lastComparison;
52365
      }
52366
      if (isSetAllamazonfbainventorysnapshot()) {
52367
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allamazonfbainventorysnapshot, typedOther.allamazonfbainventorysnapshot);
52368
        if (lastComparison != 0) {
52369
          return lastComparison;
52370
        }
52371
      }
9456 vikram.rag 52372
      return 0;
52373
    }
52374
 
52375
    public _Fields fieldForId(int fieldId) {
52376
      return _Fields.findByThriftId(fieldId);
52377
    }
52378
 
52379
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52380
      org.apache.thrift.protocol.TField field;
52381
      iprot.readStructBegin();
52382
      while (true)
52383
      {
52384
        field = iprot.readFieldBegin();
52385
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52386
          break;
52387
        }
52388
        switch (field.id) {
9495 vikram.rag 52389
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
52390
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52391
              {
11173 vikram.rag 52392
                org.apache.thrift.protocol.TList _list155 = iprot.readListBegin();
52393
                this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>(_list155.size);
52394
                for (int _i156 = 0; _i156 < _list155.size; ++_i156)
9495 vikram.rag 52395
                {
11173 vikram.rag 52396
                  AmazonFbaInventorySnapshot _elem157; // required
52397
                  _elem157 = new AmazonFbaInventorySnapshot();
52398
                  _elem157.read(iprot);
52399
                  this.allamazonfbainventorysnapshot.add(_elem157);
9495 vikram.rag 52400
                }
52401
                iprot.readListEnd();
52402
              }
52403
            } else { 
52404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52405
            }
52406
            break;
9456 vikram.rag 52407
          default:
52408
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52409
        }
52410
        iprot.readFieldEnd();
52411
      }
52412
      iprot.readStructEnd();
52413
      validate();
52414
    }
52415
 
52416
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52417
      validate();
52418
 
52419
      oprot.writeStructBegin(STRUCT_DESC);
9495 vikram.rag 52420
      if (this.allamazonfbainventorysnapshot != null) {
52421
        oprot.writeFieldBegin(ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
52422
        {
52423
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allamazonfbainventorysnapshot.size()));
11173 vikram.rag 52424
          for (AmazonFbaInventorySnapshot _iter158 : this.allamazonfbainventorysnapshot)
9495 vikram.rag 52425
          {
11173 vikram.rag 52426
            _iter158.write(oprot);
9495 vikram.rag 52427
          }
52428
          oprot.writeListEnd();
52429
        }
52430
        oprot.writeFieldEnd();
52431
      }
9456 vikram.rag 52432
      oprot.writeFieldStop();
52433
      oprot.writeStructEnd();
52434
    }
52435
 
52436
    @Override
52437
    public String toString() {
9495 vikram.rag 52438
      StringBuilder sb = new StringBuilder("addOrUpdateAllAmazonFbaInventory_args(");
9456 vikram.rag 52439
      boolean first = true;
52440
 
9495 vikram.rag 52441
      sb.append("allamazonfbainventorysnapshot:");
52442
      if (this.allamazonfbainventorysnapshot == null) {
52443
        sb.append("null");
52444
      } else {
52445
        sb.append(this.allamazonfbainventorysnapshot);
52446
      }
52447
      first = false;
9456 vikram.rag 52448
      sb.append(")");
52449
      return sb.toString();
52450
    }
52451
 
52452
    public void validate() throws org.apache.thrift.TException {
52453
      // check for required fields
52454
    }
52455
 
52456
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52457
      try {
52458
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52459
      } catch (org.apache.thrift.TException te) {
52460
        throw new java.io.IOException(te);
52461
      }
52462
    }
52463
 
52464
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52465
      try {
52466
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52467
      } catch (org.apache.thrift.TException te) {
52468
        throw new java.io.IOException(te);
52469
      }
52470
    }
52471
 
52472
  }
52473
 
9495 vikram.rag 52474
  public static class addOrUpdateAllAmazonFbaInventory_result implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_result, addOrUpdateAllAmazonFbaInventory_result._Fields>, java.io.Serializable, Cloneable   {
52475
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_result");
9456 vikram.rag 52476
 
52477
 
52478
 
52479
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52480
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9495 vikram.rag 52481
;
9456 vikram.rag 52482
 
52483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52484
 
52485
      static {
52486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52487
          byName.put(field.getFieldName(), field);
52488
        }
52489
      }
52490
 
52491
      /**
52492
       * Find the _Fields constant that matches fieldId, or null if its not found.
52493
       */
52494
      public static _Fields findByThriftId(int fieldId) {
52495
        switch(fieldId) {
52496
          default:
52497
            return null;
52498
        }
52499
      }
52500
 
52501
      /**
52502
       * Find the _Fields constant that matches fieldId, throwing an exception
52503
       * if it is not found.
52504
       */
52505
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52506
        _Fields fields = findByThriftId(fieldId);
52507
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52508
        return fields;
52509
      }
52510
 
52511
      /**
52512
       * Find the _Fields constant that matches name, or null if its not found.
52513
       */
52514
      public static _Fields findByName(String name) {
52515
        return byName.get(name);
52516
      }
52517
 
52518
      private final short _thriftId;
52519
      private final String _fieldName;
52520
 
52521
      _Fields(short thriftId, String fieldName) {
52522
        _thriftId = thriftId;
52523
        _fieldName = fieldName;
52524
      }
52525
 
52526
      public short getThriftFieldId() {
52527
        return _thriftId;
52528
      }
52529
 
52530
      public String getFieldName() {
52531
        return _fieldName;
52532
      }
52533
    }
52534
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52535
    static {
52536
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52537
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 52538
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllAmazonFbaInventory_result.class, metaDataMap);
9456 vikram.rag 52539
    }
52540
 
9495 vikram.rag 52541
    public addOrUpdateAllAmazonFbaInventory_result() {
9456 vikram.rag 52542
    }
52543
 
52544
    /**
52545
     * Performs a deep copy on <i>other</i>.
52546
     */
9495 vikram.rag 52547
    public addOrUpdateAllAmazonFbaInventory_result(addOrUpdateAllAmazonFbaInventory_result other) {
9456 vikram.rag 52548
    }
52549
 
9495 vikram.rag 52550
    public addOrUpdateAllAmazonFbaInventory_result deepCopy() {
52551
      return new addOrUpdateAllAmazonFbaInventory_result(this);
9456 vikram.rag 52552
    }
52553
 
52554
    @Override
52555
    public void clear() {
52556
    }
52557
 
52558
    public void setFieldValue(_Fields field, Object value) {
52559
      switch (field) {
52560
      }
52561
    }
52562
 
52563
    public Object getFieldValue(_Fields field) {
52564
      switch (field) {
52565
      }
52566
      throw new IllegalStateException();
52567
    }
52568
 
52569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52570
    public boolean isSet(_Fields field) {
52571
      if (field == null) {
52572
        throw new IllegalArgumentException();
52573
      }
52574
 
52575
      switch (field) {
52576
      }
52577
      throw new IllegalStateException();
52578
    }
52579
 
52580
    @Override
52581
    public boolean equals(Object that) {
52582
      if (that == null)
52583
        return false;
9495 vikram.rag 52584
      if (that instanceof addOrUpdateAllAmazonFbaInventory_result)
52585
        return this.equals((addOrUpdateAllAmazonFbaInventory_result)that);
9456 vikram.rag 52586
      return false;
52587
    }
52588
 
9495 vikram.rag 52589
    public boolean equals(addOrUpdateAllAmazonFbaInventory_result that) {
9456 vikram.rag 52590
      if (that == null)
52591
        return false;
52592
 
52593
      return true;
52594
    }
52595
 
52596
    @Override
52597
    public int hashCode() {
52598
      return 0;
52599
    }
52600
 
9495 vikram.rag 52601
    public int compareTo(addOrUpdateAllAmazonFbaInventory_result other) {
9456 vikram.rag 52602
      if (!getClass().equals(other.getClass())) {
52603
        return getClass().getName().compareTo(other.getClass().getName());
52604
      }
52605
 
52606
      int lastComparison = 0;
9495 vikram.rag 52607
      addOrUpdateAllAmazonFbaInventory_result typedOther = (addOrUpdateAllAmazonFbaInventory_result)other;
9456 vikram.rag 52608
 
52609
      return 0;
52610
    }
52611
 
52612
    public _Fields fieldForId(int fieldId) {
52613
      return _Fields.findByThriftId(fieldId);
52614
    }
52615
 
52616
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52617
      org.apache.thrift.protocol.TField field;
52618
      iprot.readStructBegin();
52619
      while (true)
52620
      {
52621
        field = iprot.readFieldBegin();
52622
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52623
          break;
52624
        }
52625
        switch (field.id) {
52626
          default:
52627
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52628
        }
52629
        iprot.readFieldEnd();
52630
      }
52631
      iprot.readStructEnd();
52632
      validate();
52633
    }
52634
 
52635
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52636
      oprot.writeStructBegin(STRUCT_DESC);
52637
 
52638
      oprot.writeFieldStop();
52639
      oprot.writeStructEnd();
52640
    }
52641
 
52642
    @Override
52643
    public String toString() {
9495 vikram.rag 52644
      StringBuilder sb = new StringBuilder("addOrUpdateAllAmazonFbaInventory_result(");
9456 vikram.rag 52645
      boolean first = true;
52646
 
52647
      sb.append(")");
52648
      return sb.toString();
52649
    }
52650
 
52651
    public void validate() throws org.apache.thrift.TException {
52652
      // check for required fields
52653
    }
52654
 
52655
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52656
      try {
52657
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52658
      } catch (org.apache.thrift.TException te) {
52659
        throw new java.io.IOException(te);
52660
      }
52661
    }
52662
 
52663
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52664
      try {
52665
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52666
      } catch (org.apache.thrift.TException te) {
52667
        throw new java.io.IOException(te);
52668
      }
52669
    }
52670
 
52671
  }
52672
 
9495 vikram.rag 52673
  public static class addOrUpdateAllSnapdealInventory_args implements org.apache.thrift.TBase<addOrUpdateAllSnapdealInventory_args, addOrUpdateAllSnapdealInventory_args._Fields>, java.io.Serializable, Cloneable   {
52674
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllSnapdealInventory_args");
9482 vikram.rag 52675
 
9495 vikram.rag 52676
    private static final org.apache.thrift.protocol.TField ALLSNAPDEALINVENTORYSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("allsnapdealinventorysnapshot", org.apache.thrift.protocol.TType.LIST, (short)-1);
9482 vikram.rag 52677
 
9495 vikram.rag 52678
    private List<SnapdealInventoryItem> allsnapdealinventorysnapshot; // required
9482 vikram.rag 52679
 
52680
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52681
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9495 vikram.rag 52682
      ALLSNAPDEALINVENTORYSNAPSHOT((short)-1, "allsnapdealinventorysnapshot");
9482 vikram.rag 52683
 
52684
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52685
 
52686
      static {
52687
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52688
          byName.put(field.getFieldName(), field);
52689
        }
52690
      }
52691
 
52692
      /**
52693
       * Find the _Fields constant that matches fieldId, or null if its not found.
52694
       */
52695
      public static _Fields findByThriftId(int fieldId) {
52696
        switch(fieldId) {
9495 vikram.rag 52697
          case -1: // ALLSNAPDEALINVENTORYSNAPSHOT
52698
            return ALLSNAPDEALINVENTORYSNAPSHOT;
9482 vikram.rag 52699
          default:
52700
            return null;
52701
        }
52702
      }
52703
 
52704
      /**
52705
       * Find the _Fields constant that matches fieldId, throwing an exception
52706
       * if it is not found.
52707
       */
52708
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52709
        _Fields fields = findByThriftId(fieldId);
52710
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52711
        return fields;
52712
      }
52713
 
52714
      /**
52715
       * Find the _Fields constant that matches name, or null if its not found.
52716
       */
52717
      public static _Fields findByName(String name) {
52718
        return byName.get(name);
52719
      }
52720
 
52721
      private final short _thriftId;
52722
      private final String _fieldName;
52723
 
52724
      _Fields(short thriftId, String fieldName) {
52725
        _thriftId = thriftId;
52726
        _fieldName = fieldName;
52727
      }
52728
 
52729
      public short getThriftFieldId() {
52730
        return _thriftId;
52731
      }
52732
 
52733
      public String getFieldName() {
52734
        return _fieldName;
52735
      }
52736
    }
52737
 
52738
    // isset id assignments
52739
 
52740
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52741
    static {
52742
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9495 vikram.rag 52743
      tmpMap.put(_Fields.ALLSNAPDEALINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("allsnapdealinventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9482 vikram.rag 52744
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9495 vikram.rag 52745
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class))));
9482 vikram.rag 52746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 52747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllSnapdealInventory_args.class, metaDataMap);
9482 vikram.rag 52748
    }
52749
 
9495 vikram.rag 52750
    public addOrUpdateAllSnapdealInventory_args() {
9482 vikram.rag 52751
    }
52752
 
9495 vikram.rag 52753
    public addOrUpdateAllSnapdealInventory_args(
52754
      List<SnapdealInventoryItem> allsnapdealinventorysnapshot)
9482 vikram.rag 52755
    {
52756
      this();
9495 vikram.rag 52757
      this.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot;
9482 vikram.rag 52758
    }
52759
 
52760
    /**
52761
     * Performs a deep copy on <i>other</i>.
52762
     */
9495 vikram.rag 52763
    public addOrUpdateAllSnapdealInventory_args(addOrUpdateAllSnapdealInventory_args other) {
52764
      if (other.isSetAllsnapdealinventorysnapshot()) {
52765
        List<SnapdealInventoryItem> __this__allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>();
52766
        for (SnapdealInventoryItem other_element : other.allsnapdealinventorysnapshot) {
52767
          __this__allsnapdealinventorysnapshot.add(new SnapdealInventoryItem(other_element));
9482 vikram.rag 52768
        }
9495 vikram.rag 52769
        this.allsnapdealinventorysnapshot = __this__allsnapdealinventorysnapshot;
9482 vikram.rag 52770
      }
52771
    }
52772
 
9495 vikram.rag 52773
    public addOrUpdateAllSnapdealInventory_args deepCopy() {
52774
      return new addOrUpdateAllSnapdealInventory_args(this);
9482 vikram.rag 52775
    }
52776
 
52777
    @Override
52778
    public void clear() {
9495 vikram.rag 52779
      this.allsnapdealinventorysnapshot = null;
9482 vikram.rag 52780
    }
52781
 
9495 vikram.rag 52782
    public int getAllsnapdealinventorysnapshotSize() {
52783
      return (this.allsnapdealinventorysnapshot == null) ? 0 : this.allsnapdealinventorysnapshot.size();
9482 vikram.rag 52784
    }
52785
 
9495 vikram.rag 52786
    public java.util.Iterator<SnapdealInventoryItem> getAllsnapdealinventorysnapshotIterator() {
52787
      return (this.allsnapdealinventorysnapshot == null) ? null : this.allsnapdealinventorysnapshot.iterator();
9482 vikram.rag 52788
    }
52789
 
9495 vikram.rag 52790
    public void addToAllsnapdealinventorysnapshot(SnapdealInventoryItem elem) {
52791
      if (this.allsnapdealinventorysnapshot == null) {
52792
        this.allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>();
9482 vikram.rag 52793
      }
9495 vikram.rag 52794
      this.allsnapdealinventorysnapshot.add(elem);
9482 vikram.rag 52795
    }
52796
 
9495 vikram.rag 52797
    public List<SnapdealInventoryItem> getAllsnapdealinventorysnapshot() {
52798
      return this.allsnapdealinventorysnapshot;
9482 vikram.rag 52799
    }
52800
 
9495 vikram.rag 52801
    public void setAllsnapdealinventorysnapshot(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) {
52802
      this.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot;
9482 vikram.rag 52803
    }
52804
 
9495 vikram.rag 52805
    public void unsetAllsnapdealinventorysnapshot() {
52806
      this.allsnapdealinventorysnapshot = null;
9482 vikram.rag 52807
    }
52808
 
9495 vikram.rag 52809
    /** Returns true if field allsnapdealinventorysnapshot is set (has been assigned a value) and false otherwise */
52810
    public boolean isSetAllsnapdealinventorysnapshot() {
52811
      return this.allsnapdealinventorysnapshot != null;
9482 vikram.rag 52812
    }
52813
 
9495 vikram.rag 52814
    public void setAllsnapdealinventorysnapshotIsSet(boolean value) {
9482 vikram.rag 52815
      if (!value) {
9495 vikram.rag 52816
        this.allsnapdealinventorysnapshot = null;
9482 vikram.rag 52817
      }
52818
    }
52819
 
52820
    public void setFieldValue(_Fields field, Object value) {
52821
      switch (field) {
9495 vikram.rag 52822
      case ALLSNAPDEALINVENTORYSNAPSHOT:
9482 vikram.rag 52823
        if (value == null) {
9495 vikram.rag 52824
          unsetAllsnapdealinventorysnapshot();
9482 vikram.rag 52825
        } else {
9495 vikram.rag 52826
          setAllsnapdealinventorysnapshot((List<SnapdealInventoryItem>)value);
9482 vikram.rag 52827
        }
52828
        break;
52829
 
52830
      }
52831
    }
52832
 
52833
    public Object getFieldValue(_Fields field) {
52834
      switch (field) {
9495 vikram.rag 52835
      case ALLSNAPDEALINVENTORYSNAPSHOT:
52836
        return getAllsnapdealinventorysnapshot();
9482 vikram.rag 52837
 
52838
      }
52839
      throw new IllegalStateException();
52840
    }
52841
 
52842
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52843
    public boolean isSet(_Fields field) {
52844
      if (field == null) {
52845
        throw new IllegalArgumentException();
52846
      }
52847
 
52848
      switch (field) {
9495 vikram.rag 52849
      case ALLSNAPDEALINVENTORYSNAPSHOT:
52850
        return isSetAllsnapdealinventorysnapshot();
9482 vikram.rag 52851
      }
52852
      throw new IllegalStateException();
52853
    }
52854
 
52855
    @Override
52856
    public boolean equals(Object that) {
52857
      if (that == null)
52858
        return false;
9495 vikram.rag 52859
      if (that instanceof addOrUpdateAllSnapdealInventory_args)
52860
        return this.equals((addOrUpdateAllSnapdealInventory_args)that);
9482 vikram.rag 52861
      return false;
52862
    }
52863
 
9495 vikram.rag 52864
    public boolean equals(addOrUpdateAllSnapdealInventory_args that) {
9482 vikram.rag 52865
      if (that == null)
52866
        return false;
52867
 
9495 vikram.rag 52868
      boolean this_present_allsnapdealinventorysnapshot = true && this.isSetAllsnapdealinventorysnapshot();
52869
      boolean that_present_allsnapdealinventorysnapshot = true && that.isSetAllsnapdealinventorysnapshot();
52870
      if (this_present_allsnapdealinventorysnapshot || that_present_allsnapdealinventorysnapshot) {
52871
        if (!(this_present_allsnapdealinventorysnapshot && that_present_allsnapdealinventorysnapshot))
9482 vikram.rag 52872
          return false;
9495 vikram.rag 52873
        if (!this.allsnapdealinventorysnapshot.equals(that.allsnapdealinventorysnapshot))
9482 vikram.rag 52874
          return false;
52875
      }
52876
 
52877
      return true;
52878
    }
52879
 
52880
    @Override
52881
    public int hashCode() {
52882
      return 0;
52883
    }
52884
 
9495 vikram.rag 52885
    public int compareTo(addOrUpdateAllSnapdealInventory_args other) {
9482 vikram.rag 52886
      if (!getClass().equals(other.getClass())) {
52887
        return getClass().getName().compareTo(other.getClass().getName());
52888
      }
52889
 
52890
      int lastComparison = 0;
9495 vikram.rag 52891
      addOrUpdateAllSnapdealInventory_args typedOther = (addOrUpdateAllSnapdealInventory_args)other;
9482 vikram.rag 52892
 
9495 vikram.rag 52893
      lastComparison = Boolean.valueOf(isSetAllsnapdealinventorysnapshot()).compareTo(typedOther.isSetAllsnapdealinventorysnapshot());
9482 vikram.rag 52894
      if (lastComparison != 0) {
52895
        return lastComparison;
52896
      }
9495 vikram.rag 52897
      if (isSetAllsnapdealinventorysnapshot()) {
52898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allsnapdealinventorysnapshot, typedOther.allsnapdealinventorysnapshot);
9482 vikram.rag 52899
        if (lastComparison != 0) {
52900
          return lastComparison;
52901
        }
52902
      }
52903
      return 0;
52904
    }
52905
 
52906
    public _Fields fieldForId(int fieldId) {
52907
      return _Fields.findByThriftId(fieldId);
52908
    }
52909
 
52910
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52911
      org.apache.thrift.protocol.TField field;
52912
      iprot.readStructBegin();
52913
      while (true)
52914
      {
52915
        field = iprot.readFieldBegin();
52916
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52917
          break;
52918
        }
52919
        switch (field.id) {
9495 vikram.rag 52920
          case -1: // ALLSNAPDEALINVENTORYSNAPSHOT
9482 vikram.rag 52921
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52922
              {
11173 vikram.rag 52923
                org.apache.thrift.protocol.TList _list159 = iprot.readListBegin();
52924
                this.allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>(_list159.size);
52925
                for (int _i160 = 0; _i160 < _list159.size; ++_i160)
9482 vikram.rag 52926
                {
11173 vikram.rag 52927
                  SnapdealInventoryItem _elem161; // required
52928
                  _elem161 = new SnapdealInventoryItem();
52929
                  _elem161.read(iprot);
52930
                  this.allsnapdealinventorysnapshot.add(_elem161);
9482 vikram.rag 52931
                }
52932
                iprot.readListEnd();
52933
              }
52934
            } else { 
52935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52936
            }
52937
            break;
52938
          default:
52939
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52940
        }
52941
        iprot.readFieldEnd();
52942
      }
52943
      iprot.readStructEnd();
52944
      validate();
52945
    }
52946
 
52947
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52948
      validate();
52949
 
52950
      oprot.writeStructBegin(STRUCT_DESC);
9495 vikram.rag 52951
      if (this.allsnapdealinventorysnapshot != null) {
52952
        oprot.writeFieldBegin(ALLSNAPDEALINVENTORYSNAPSHOT_FIELD_DESC);
9482 vikram.rag 52953
        {
9495 vikram.rag 52954
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allsnapdealinventorysnapshot.size()));
11173 vikram.rag 52955
          for (SnapdealInventoryItem _iter162 : this.allsnapdealinventorysnapshot)
9482 vikram.rag 52956
          {
11173 vikram.rag 52957
            _iter162.write(oprot);
9482 vikram.rag 52958
          }
52959
          oprot.writeListEnd();
52960
        }
52961
        oprot.writeFieldEnd();
52962
      }
52963
      oprot.writeFieldStop();
52964
      oprot.writeStructEnd();
52965
    }
52966
 
52967
    @Override
52968
    public String toString() {
9495 vikram.rag 52969
      StringBuilder sb = new StringBuilder("addOrUpdateAllSnapdealInventory_args(");
9482 vikram.rag 52970
      boolean first = true;
52971
 
9495 vikram.rag 52972
      sb.append("allsnapdealinventorysnapshot:");
52973
      if (this.allsnapdealinventorysnapshot == null) {
9482 vikram.rag 52974
        sb.append("null");
52975
      } else {
9495 vikram.rag 52976
        sb.append(this.allsnapdealinventorysnapshot);
9482 vikram.rag 52977
      }
52978
      first = false;
52979
      sb.append(")");
52980
      return sb.toString();
52981
    }
52982
 
52983
    public void validate() throws org.apache.thrift.TException {
52984
      // check for required fields
52985
    }
52986
 
52987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52988
      try {
52989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52990
      } catch (org.apache.thrift.TException te) {
52991
        throw new java.io.IOException(te);
52992
      }
52993
    }
52994
 
52995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52996
      try {
52997
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52998
      } catch (org.apache.thrift.TException te) {
52999
        throw new java.io.IOException(te);
53000
      }
53001
    }
53002
 
53003
  }
53004
 
9495 vikram.rag 53005
  public static class addOrUpdateAllSnapdealInventory_result implements org.apache.thrift.TBase<addOrUpdateAllSnapdealInventory_result, addOrUpdateAllSnapdealInventory_result._Fields>, java.io.Serializable, Cloneable   {
53006
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllSnapdealInventory_result");
9482 vikram.rag 53007
 
53008
 
53009
 
53010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53011
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53012
;
53013
 
53014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53015
 
53016
      static {
53017
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53018
          byName.put(field.getFieldName(), field);
53019
        }
53020
      }
53021
 
53022
      /**
53023
       * Find the _Fields constant that matches fieldId, or null if its not found.
53024
       */
53025
      public static _Fields findByThriftId(int fieldId) {
53026
        switch(fieldId) {
53027
          default:
53028
            return null;
53029
        }
53030
      }
53031
 
53032
      /**
53033
       * Find the _Fields constant that matches fieldId, throwing an exception
53034
       * if it is not found.
53035
       */
53036
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53037
        _Fields fields = findByThriftId(fieldId);
53038
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53039
        return fields;
53040
      }
53041
 
53042
      /**
53043
       * Find the _Fields constant that matches name, or null if its not found.
53044
       */
53045
      public static _Fields findByName(String name) {
53046
        return byName.get(name);
53047
      }
53048
 
53049
      private final short _thriftId;
53050
      private final String _fieldName;
53051
 
53052
      _Fields(short thriftId, String fieldName) {
53053
        _thriftId = thriftId;
53054
        _fieldName = fieldName;
53055
      }
53056
 
53057
      public short getThriftFieldId() {
53058
        return _thriftId;
53059
      }
53060
 
53061
      public String getFieldName() {
53062
        return _fieldName;
53063
      }
53064
    }
53065
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53066
    static {
53067
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 53069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllSnapdealInventory_result.class, metaDataMap);
9482 vikram.rag 53070
    }
53071
 
9495 vikram.rag 53072
    public addOrUpdateAllSnapdealInventory_result() {
9482 vikram.rag 53073
    }
53074
 
53075
    /**
53076
     * Performs a deep copy on <i>other</i>.
53077
     */
9495 vikram.rag 53078
    public addOrUpdateAllSnapdealInventory_result(addOrUpdateAllSnapdealInventory_result other) {
9482 vikram.rag 53079
    }
53080
 
9495 vikram.rag 53081
    public addOrUpdateAllSnapdealInventory_result deepCopy() {
53082
      return new addOrUpdateAllSnapdealInventory_result(this);
9482 vikram.rag 53083
    }
53084
 
53085
    @Override
53086
    public void clear() {
53087
    }
53088
 
53089
    public void setFieldValue(_Fields field, Object value) {
53090
      switch (field) {
53091
      }
53092
    }
53093
 
53094
    public Object getFieldValue(_Fields field) {
53095
      switch (field) {
53096
      }
53097
      throw new IllegalStateException();
53098
    }
53099
 
53100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53101
    public boolean isSet(_Fields field) {
53102
      if (field == null) {
53103
        throw new IllegalArgumentException();
53104
      }
53105
 
53106
      switch (field) {
53107
      }
53108
      throw new IllegalStateException();
53109
    }
53110
 
53111
    @Override
53112
    public boolean equals(Object that) {
53113
      if (that == null)
53114
        return false;
9495 vikram.rag 53115
      if (that instanceof addOrUpdateAllSnapdealInventory_result)
53116
        return this.equals((addOrUpdateAllSnapdealInventory_result)that);
9482 vikram.rag 53117
      return false;
53118
    }
53119
 
9495 vikram.rag 53120
    public boolean equals(addOrUpdateAllSnapdealInventory_result that) {
9482 vikram.rag 53121
      if (that == null)
53122
        return false;
53123
 
53124
      return true;
53125
    }
53126
 
53127
    @Override
53128
    public int hashCode() {
53129
      return 0;
53130
    }
53131
 
9495 vikram.rag 53132
    public int compareTo(addOrUpdateAllSnapdealInventory_result other) {
9482 vikram.rag 53133
      if (!getClass().equals(other.getClass())) {
53134
        return getClass().getName().compareTo(other.getClass().getName());
53135
      }
53136
 
53137
      int lastComparison = 0;
9495 vikram.rag 53138
      addOrUpdateAllSnapdealInventory_result typedOther = (addOrUpdateAllSnapdealInventory_result)other;
9482 vikram.rag 53139
 
53140
      return 0;
53141
    }
53142
 
53143
    public _Fields fieldForId(int fieldId) {
53144
      return _Fields.findByThriftId(fieldId);
53145
    }
53146
 
53147
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53148
      org.apache.thrift.protocol.TField field;
53149
      iprot.readStructBegin();
53150
      while (true)
53151
      {
53152
        field = iprot.readFieldBegin();
53153
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53154
          break;
53155
        }
53156
        switch (field.id) {
53157
          default:
53158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53159
        }
53160
        iprot.readFieldEnd();
53161
      }
53162
      iprot.readStructEnd();
53163
      validate();
53164
    }
53165
 
53166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53167
      oprot.writeStructBegin(STRUCT_DESC);
53168
 
53169
      oprot.writeFieldStop();
53170
      oprot.writeStructEnd();
53171
    }
53172
 
53173
    @Override
53174
    public String toString() {
9495 vikram.rag 53175
      StringBuilder sb = new StringBuilder("addOrUpdateAllSnapdealInventory_result(");
9482 vikram.rag 53176
      boolean first = true;
53177
 
53178
      sb.append(")");
53179
      return sb.toString();
53180
    }
53181
 
53182
    public void validate() throws org.apache.thrift.TException {
53183
      // check for required fields
53184
    }
53185
 
53186
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53187
      try {
53188
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53189
      } catch (org.apache.thrift.TException te) {
53190
        throw new java.io.IOException(te);
53191
      }
53192
    }
53193
 
53194
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53195
      try {
53196
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53197
      } catch (org.apache.thrift.TException te) {
53198
        throw new java.io.IOException(te);
53199
      }
53200
    }
53201
 
53202
  }
53203
 
9495 vikram.rag 53204
  public static class getSnapdealInventorySnapshot_args implements org.apache.thrift.TBase<getSnapdealInventorySnapshot_args, getSnapdealInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
53205
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventorySnapshot_args");
53206
 
53207
 
53208
 
53209
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53210
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53211
;
53212
 
53213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53214
 
53215
      static {
53216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53217
          byName.put(field.getFieldName(), field);
53218
        }
53219
      }
53220
 
53221
      /**
53222
       * Find the _Fields constant that matches fieldId, or null if its not found.
53223
       */
53224
      public static _Fields findByThriftId(int fieldId) {
53225
        switch(fieldId) {
53226
          default:
53227
            return null;
53228
        }
53229
      }
53230
 
53231
      /**
53232
       * Find the _Fields constant that matches fieldId, throwing an exception
53233
       * if it is not found.
53234
       */
53235
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53236
        _Fields fields = findByThriftId(fieldId);
53237
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53238
        return fields;
53239
      }
53240
 
53241
      /**
53242
       * Find the _Fields constant that matches name, or null if its not found.
53243
       */
53244
      public static _Fields findByName(String name) {
53245
        return byName.get(name);
53246
      }
53247
 
53248
      private final short _thriftId;
53249
      private final String _fieldName;
53250
 
53251
      _Fields(short thriftId, String fieldName) {
53252
        _thriftId = thriftId;
53253
        _fieldName = fieldName;
53254
      }
53255
 
53256
      public short getThriftFieldId() {
53257
        return _thriftId;
53258
      }
53259
 
53260
      public String getFieldName() {
53261
        return _fieldName;
53262
      }
53263
    }
53264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53265
    static {
53266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventorySnapshot_args.class, metaDataMap);
53269
    }
53270
 
53271
    public getSnapdealInventorySnapshot_args() {
53272
    }
53273
 
53274
    /**
53275
     * Performs a deep copy on <i>other</i>.
53276
     */
53277
    public getSnapdealInventorySnapshot_args(getSnapdealInventorySnapshot_args other) {
53278
    }
53279
 
53280
    public getSnapdealInventorySnapshot_args deepCopy() {
53281
      return new getSnapdealInventorySnapshot_args(this);
53282
    }
53283
 
53284
    @Override
53285
    public void clear() {
53286
    }
53287
 
53288
    public void setFieldValue(_Fields field, Object value) {
53289
      switch (field) {
53290
      }
53291
    }
53292
 
53293
    public Object getFieldValue(_Fields field) {
53294
      switch (field) {
53295
      }
53296
      throw new IllegalStateException();
53297
    }
53298
 
53299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53300
    public boolean isSet(_Fields field) {
53301
      if (field == null) {
53302
        throw new IllegalArgumentException();
53303
      }
53304
 
53305
      switch (field) {
53306
      }
53307
      throw new IllegalStateException();
53308
    }
53309
 
53310
    @Override
53311
    public boolean equals(Object that) {
53312
      if (that == null)
53313
        return false;
53314
      if (that instanceof getSnapdealInventorySnapshot_args)
53315
        return this.equals((getSnapdealInventorySnapshot_args)that);
53316
      return false;
53317
    }
53318
 
53319
    public boolean equals(getSnapdealInventorySnapshot_args that) {
53320
      if (that == null)
53321
        return false;
53322
 
53323
      return true;
53324
    }
53325
 
53326
    @Override
53327
    public int hashCode() {
53328
      return 0;
53329
    }
53330
 
53331
    public int compareTo(getSnapdealInventorySnapshot_args other) {
53332
      if (!getClass().equals(other.getClass())) {
53333
        return getClass().getName().compareTo(other.getClass().getName());
53334
      }
53335
 
53336
      int lastComparison = 0;
53337
      getSnapdealInventorySnapshot_args typedOther = (getSnapdealInventorySnapshot_args)other;
53338
 
53339
      return 0;
53340
    }
53341
 
53342
    public _Fields fieldForId(int fieldId) {
53343
      return _Fields.findByThriftId(fieldId);
53344
    }
53345
 
53346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53347
      org.apache.thrift.protocol.TField field;
53348
      iprot.readStructBegin();
53349
      while (true)
53350
      {
53351
        field = iprot.readFieldBegin();
53352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53353
          break;
53354
        }
53355
        switch (field.id) {
53356
          default:
53357
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53358
        }
53359
        iprot.readFieldEnd();
53360
      }
53361
      iprot.readStructEnd();
53362
      validate();
53363
    }
53364
 
53365
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53366
      validate();
53367
 
53368
      oprot.writeStructBegin(STRUCT_DESC);
53369
      oprot.writeFieldStop();
53370
      oprot.writeStructEnd();
53371
    }
53372
 
53373
    @Override
53374
    public String toString() {
53375
      StringBuilder sb = new StringBuilder("getSnapdealInventorySnapshot_args(");
53376
      boolean first = true;
53377
 
53378
      sb.append(")");
53379
      return sb.toString();
53380
    }
53381
 
53382
    public void validate() throws org.apache.thrift.TException {
53383
      // check for required fields
53384
    }
53385
 
53386
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53387
      try {
53388
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53389
      } catch (org.apache.thrift.TException te) {
53390
        throw new java.io.IOException(te);
53391
      }
53392
    }
53393
 
53394
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53395
      try {
53396
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53397
      } catch (org.apache.thrift.TException te) {
53398
        throw new java.io.IOException(te);
53399
      }
53400
    }
53401
 
53402
  }
53403
 
53404
  public static class getSnapdealInventorySnapshot_result implements org.apache.thrift.TBase<getSnapdealInventorySnapshot_result, getSnapdealInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
53405
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventorySnapshot_result");
53406
 
53407
    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);
53408
 
53409
    private List<SnapdealInventoryItem> success; // required
53410
 
53411
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53412
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53413
      SUCCESS((short)0, "success");
53414
 
53415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53416
 
53417
      static {
53418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53419
          byName.put(field.getFieldName(), field);
53420
        }
53421
      }
53422
 
53423
      /**
53424
       * Find the _Fields constant that matches fieldId, or null if its not found.
53425
       */
53426
      public static _Fields findByThriftId(int fieldId) {
53427
        switch(fieldId) {
53428
          case 0: // SUCCESS
53429
            return SUCCESS;
53430
          default:
53431
            return null;
53432
        }
53433
      }
53434
 
53435
      /**
53436
       * Find the _Fields constant that matches fieldId, throwing an exception
53437
       * if it is not found.
53438
       */
53439
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53440
        _Fields fields = findByThriftId(fieldId);
53441
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53442
        return fields;
53443
      }
53444
 
53445
      /**
53446
       * Find the _Fields constant that matches name, or null if its not found.
53447
       */
53448
      public static _Fields findByName(String name) {
53449
        return byName.get(name);
53450
      }
53451
 
53452
      private final short _thriftId;
53453
      private final String _fieldName;
53454
 
53455
      _Fields(short thriftId, String fieldName) {
53456
        _thriftId = thriftId;
53457
        _fieldName = fieldName;
53458
      }
53459
 
53460
      public short getThriftFieldId() {
53461
        return _thriftId;
53462
      }
53463
 
53464
      public String getFieldName() {
53465
        return _fieldName;
53466
      }
53467
    }
53468
 
53469
    // isset id assignments
53470
 
53471
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53472
    static {
53473
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53474
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53475
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
53476
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class))));
53477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventorySnapshot_result.class, metaDataMap);
53479
    }
53480
 
53481
    public getSnapdealInventorySnapshot_result() {
53482
    }
53483
 
53484
    public getSnapdealInventorySnapshot_result(
53485
      List<SnapdealInventoryItem> success)
53486
    {
53487
      this();
53488
      this.success = success;
53489
    }
53490
 
53491
    /**
53492
     * Performs a deep copy on <i>other</i>.
53493
     */
53494
    public getSnapdealInventorySnapshot_result(getSnapdealInventorySnapshot_result other) {
53495
      if (other.isSetSuccess()) {
53496
        List<SnapdealInventoryItem> __this__success = new ArrayList<SnapdealInventoryItem>();
53497
        for (SnapdealInventoryItem other_element : other.success) {
53498
          __this__success.add(new SnapdealInventoryItem(other_element));
53499
        }
53500
        this.success = __this__success;
53501
      }
53502
    }
53503
 
53504
    public getSnapdealInventorySnapshot_result deepCopy() {
53505
      return new getSnapdealInventorySnapshot_result(this);
53506
    }
53507
 
53508
    @Override
53509
    public void clear() {
53510
      this.success = null;
53511
    }
53512
 
53513
    public int getSuccessSize() {
53514
      return (this.success == null) ? 0 : this.success.size();
53515
    }
53516
 
53517
    public java.util.Iterator<SnapdealInventoryItem> getSuccessIterator() {
53518
      return (this.success == null) ? null : this.success.iterator();
53519
    }
53520
 
53521
    public void addToSuccess(SnapdealInventoryItem elem) {
53522
      if (this.success == null) {
53523
        this.success = new ArrayList<SnapdealInventoryItem>();
53524
      }
53525
      this.success.add(elem);
53526
    }
53527
 
53528
    public List<SnapdealInventoryItem> getSuccess() {
53529
      return this.success;
53530
    }
53531
 
53532
    public void setSuccess(List<SnapdealInventoryItem> success) {
53533
      this.success = success;
53534
    }
53535
 
53536
    public void unsetSuccess() {
53537
      this.success = null;
53538
    }
53539
 
53540
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
53541
    public boolean isSetSuccess() {
53542
      return this.success != null;
53543
    }
53544
 
53545
    public void setSuccessIsSet(boolean value) {
53546
      if (!value) {
53547
        this.success = null;
53548
      }
53549
    }
53550
 
53551
    public void setFieldValue(_Fields field, Object value) {
53552
      switch (field) {
53553
      case SUCCESS:
53554
        if (value == null) {
53555
          unsetSuccess();
53556
        } else {
53557
          setSuccess((List<SnapdealInventoryItem>)value);
53558
        }
53559
        break;
53560
 
53561
      }
53562
    }
53563
 
53564
    public Object getFieldValue(_Fields field) {
53565
      switch (field) {
53566
      case SUCCESS:
53567
        return getSuccess();
53568
 
53569
      }
53570
      throw new IllegalStateException();
53571
    }
53572
 
53573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53574
    public boolean isSet(_Fields field) {
53575
      if (field == null) {
53576
        throw new IllegalArgumentException();
53577
      }
53578
 
53579
      switch (field) {
53580
      case SUCCESS:
53581
        return isSetSuccess();
53582
      }
53583
      throw new IllegalStateException();
53584
    }
53585
 
53586
    @Override
53587
    public boolean equals(Object that) {
53588
      if (that == null)
53589
        return false;
53590
      if (that instanceof getSnapdealInventorySnapshot_result)
53591
        return this.equals((getSnapdealInventorySnapshot_result)that);
53592
      return false;
53593
    }
53594
 
53595
    public boolean equals(getSnapdealInventorySnapshot_result that) {
53596
      if (that == null)
53597
        return false;
53598
 
53599
      boolean this_present_success = true && this.isSetSuccess();
53600
      boolean that_present_success = true && that.isSetSuccess();
53601
      if (this_present_success || that_present_success) {
53602
        if (!(this_present_success && that_present_success))
53603
          return false;
53604
        if (!this.success.equals(that.success))
53605
          return false;
53606
      }
53607
 
53608
      return true;
53609
    }
53610
 
53611
    @Override
53612
    public int hashCode() {
53613
      return 0;
53614
    }
53615
 
53616
    public int compareTo(getSnapdealInventorySnapshot_result other) {
53617
      if (!getClass().equals(other.getClass())) {
53618
        return getClass().getName().compareTo(other.getClass().getName());
53619
      }
53620
 
53621
      int lastComparison = 0;
53622
      getSnapdealInventorySnapshot_result typedOther = (getSnapdealInventorySnapshot_result)other;
53623
 
53624
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
53625
      if (lastComparison != 0) {
53626
        return lastComparison;
53627
      }
53628
      if (isSetSuccess()) {
53629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
53630
        if (lastComparison != 0) {
53631
          return lastComparison;
53632
        }
53633
      }
53634
      return 0;
53635
    }
53636
 
53637
    public _Fields fieldForId(int fieldId) {
53638
      return _Fields.findByThriftId(fieldId);
53639
    }
53640
 
53641
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53642
      org.apache.thrift.protocol.TField field;
53643
      iprot.readStructBegin();
53644
      while (true)
53645
      {
53646
        field = iprot.readFieldBegin();
53647
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53648
          break;
53649
        }
53650
        switch (field.id) {
53651
          case 0: // SUCCESS
53652
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53653
              {
11173 vikram.rag 53654
                org.apache.thrift.protocol.TList _list163 = iprot.readListBegin();
53655
                this.success = new ArrayList<SnapdealInventoryItem>(_list163.size);
53656
                for (int _i164 = 0; _i164 < _list163.size; ++_i164)
9495 vikram.rag 53657
                {
11173 vikram.rag 53658
                  SnapdealInventoryItem _elem165; // required
53659
                  _elem165 = new SnapdealInventoryItem();
53660
                  _elem165.read(iprot);
53661
                  this.success.add(_elem165);
9495 vikram.rag 53662
                }
53663
                iprot.readListEnd();
53664
              }
53665
            } else { 
53666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53667
            }
53668
            break;
53669
          default:
53670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53671
        }
53672
        iprot.readFieldEnd();
53673
      }
53674
      iprot.readStructEnd();
53675
      validate();
53676
    }
53677
 
53678
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53679
      oprot.writeStructBegin(STRUCT_DESC);
53680
 
53681
      if (this.isSetSuccess()) {
53682
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
53683
        {
53684
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 53685
          for (SnapdealInventoryItem _iter166 : this.success)
9495 vikram.rag 53686
          {
11173 vikram.rag 53687
            _iter166.write(oprot);
9495 vikram.rag 53688
          }
53689
          oprot.writeListEnd();
53690
        }
53691
        oprot.writeFieldEnd();
53692
      }
53693
      oprot.writeFieldStop();
53694
      oprot.writeStructEnd();
53695
    }
53696
 
53697
    @Override
53698
    public String toString() {
53699
      StringBuilder sb = new StringBuilder("getSnapdealInventorySnapshot_result(");
53700
      boolean first = true;
53701
 
53702
      sb.append("success:");
53703
      if (this.success == null) {
53704
        sb.append("null");
53705
      } else {
53706
        sb.append(this.success);
53707
      }
53708
      first = false;
53709
      sb.append(")");
53710
      return sb.toString();
53711
    }
53712
 
53713
    public void validate() throws org.apache.thrift.TException {
53714
      // check for required fields
53715
    }
53716
 
53717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53718
      try {
53719
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53720
      } catch (org.apache.thrift.TException te) {
53721
        throw new java.io.IOException(te);
53722
      }
53723
    }
53724
 
53725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53726
      try {
53727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53728
      } catch (org.apache.thrift.TException te) {
53729
        throw new java.io.IOException(te);
53730
      }
53731
    }
53732
 
53733
  }
53734
 
9761 amar.kumar 53735
  public static class getHoldInventoryDetails_args implements org.apache.thrift.TBase<getHoldInventoryDetails_args, getHoldInventoryDetails_args._Fields>, java.io.Serializable, Cloneable   {
53736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetails_args");
53737
 
53738
    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);
53739
    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)2);
53740
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)3);
53741
 
53742
    private long itemId; // required
53743
    private long warehouseId; // required
53744
    private long source; // required
53745
 
53746
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53747
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53748
      ITEM_ID((short)1, "itemId"),
53749
      WAREHOUSE_ID((short)2, "warehouseId"),
53750
      SOURCE((short)3, "source");
53751
 
53752
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53753
 
53754
      static {
53755
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53756
          byName.put(field.getFieldName(), field);
53757
        }
53758
      }
53759
 
53760
      /**
53761
       * Find the _Fields constant that matches fieldId, or null if its not found.
53762
       */
53763
      public static _Fields findByThriftId(int fieldId) {
53764
        switch(fieldId) {
53765
          case 1: // ITEM_ID
53766
            return ITEM_ID;
53767
          case 2: // WAREHOUSE_ID
53768
            return WAREHOUSE_ID;
53769
          case 3: // SOURCE
53770
            return SOURCE;
53771
          default:
53772
            return null;
53773
        }
53774
      }
53775
 
53776
      /**
53777
       * Find the _Fields constant that matches fieldId, throwing an exception
53778
       * if it is not found.
53779
       */
53780
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53781
        _Fields fields = findByThriftId(fieldId);
53782
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53783
        return fields;
53784
      }
53785
 
53786
      /**
53787
       * Find the _Fields constant that matches name, or null if its not found.
53788
       */
53789
      public static _Fields findByName(String name) {
53790
        return byName.get(name);
53791
      }
53792
 
53793
      private final short _thriftId;
53794
      private final String _fieldName;
53795
 
53796
      _Fields(short thriftId, String fieldName) {
53797
        _thriftId = thriftId;
53798
        _fieldName = fieldName;
53799
      }
53800
 
53801
      public short getThriftFieldId() {
53802
        return _thriftId;
53803
      }
53804
 
53805
      public String getFieldName() {
53806
        return _fieldName;
53807
      }
53808
    }
53809
 
53810
    // isset id assignments
53811
    private static final int __ITEMID_ISSET_ID = 0;
53812
    private static final int __WAREHOUSEID_ISSET_ID = 1;
53813
    private static final int __SOURCE_ISSET_ID = 2;
53814
    private BitSet __isset_bit_vector = new BitSet(3);
53815
 
53816
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53817
    static {
53818
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53819
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53821
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53823
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53824
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
53825
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53826
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetails_args.class, metaDataMap);
53827
    }
53828
 
53829
    public getHoldInventoryDetails_args() {
53830
    }
53831
 
53832
    public getHoldInventoryDetails_args(
53833
      long itemId,
53834
      long warehouseId,
53835
      long source)
53836
    {
53837
      this();
53838
      this.itemId = itemId;
53839
      setItemIdIsSet(true);
53840
      this.warehouseId = warehouseId;
53841
      setWarehouseIdIsSet(true);
53842
      this.source = source;
53843
      setSourceIsSet(true);
53844
    }
53845
 
53846
    /**
53847
     * Performs a deep copy on <i>other</i>.
53848
     */
53849
    public getHoldInventoryDetails_args(getHoldInventoryDetails_args other) {
53850
      __isset_bit_vector.clear();
53851
      __isset_bit_vector.or(other.__isset_bit_vector);
53852
      this.itemId = other.itemId;
53853
      this.warehouseId = other.warehouseId;
53854
      this.source = other.source;
53855
    }
53856
 
53857
    public getHoldInventoryDetails_args deepCopy() {
53858
      return new getHoldInventoryDetails_args(this);
53859
    }
53860
 
53861
    @Override
53862
    public void clear() {
53863
      setItemIdIsSet(false);
53864
      this.itemId = 0;
53865
      setWarehouseIdIsSet(false);
53866
      this.warehouseId = 0;
53867
      setSourceIsSet(false);
53868
      this.source = 0;
53869
    }
53870
 
53871
    public long getItemId() {
53872
      return this.itemId;
53873
    }
53874
 
53875
    public void setItemId(long itemId) {
53876
      this.itemId = itemId;
53877
      setItemIdIsSet(true);
53878
    }
53879
 
53880
    public void unsetItemId() {
53881
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
53882
    }
53883
 
53884
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
53885
    public boolean isSetItemId() {
53886
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
53887
    }
53888
 
53889
    public void setItemIdIsSet(boolean value) {
53890
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
53891
    }
53892
 
53893
    public long getWarehouseId() {
53894
      return this.warehouseId;
53895
    }
53896
 
53897
    public void setWarehouseId(long warehouseId) {
53898
      this.warehouseId = warehouseId;
53899
      setWarehouseIdIsSet(true);
53900
    }
53901
 
53902
    public void unsetWarehouseId() {
53903
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
53904
    }
53905
 
53906
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
53907
    public boolean isSetWarehouseId() {
53908
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
53909
    }
53910
 
53911
    public void setWarehouseIdIsSet(boolean value) {
53912
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
53913
    }
53914
 
53915
    public long getSource() {
53916
      return this.source;
53917
    }
53918
 
53919
    public void setSource(long source) {
53920
      this.source = source;
53921
      setSourceIsSet(true);
53922
    }
53923
 
53924
    public void unsetSource() {
53925
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
53926
    }
53927
 
53928
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
53929
    public boolean isSetSource() {
53930
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
53931
    }
53932
 
53933
    public void setSourceIsSet(boolean value) {
53934
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
53935
    }
53936
 
53937
    public void setFieldValue(_Fields field, Object value) {
53938
      switch (field) {
53939
      case ITEM_ID:
53940
        if (value == null) {
53941
          unsetItemId();
53942
        } else {
53943
          setItemId((Long)value);
53944
        }
53945
        break;
53946
 
53947
      case WAREHOUSE_ID:
53948
        if (value == null) {
53949
          unsetWarehouseId();
53950
        } else {
53951
          setWarehouseId((Long)value);
53952
        }
53953
        break;
53954
 
53955
      case SOURCE:
53956
        if (value == null) {
53957
          unsetSource();
53958
        } else {
53959
          setSource((Long)value);
53960
        }
53961
        break;
53962
 
53963
      }
53964
    }
53965
 
53966
    public Object getFieldValue(_Fields field) {
53967
      switch (field) {
53968
      case ITEM_ID:
53969
        return Long.valueOf(getItemId());
53970
 
53971
      case WAREHOUSE_ID:
53972
        return Long.valueOf(getWarehouseId());
53973
 
53974
      case SOURCE:
53975
        return Long.valueOf(getSource());
53976
 
53977
      }
53978
      throw new IllegalStateException();
53979
    }
53980
 
53981
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53982
    public boolean isSet(_Fields field) {
53983
      if (field == null) {
53984
        throw new IllegalArgumentException();
53985
      }
53986
 
53987
      switch (field) {
53988
      case ITEM_ID:
53989
        return isSetItemId();
53990
      case WAREHOUSE_ID:
53991
        return isSetWarehouseId();
53992
      case SOURCE:
53993
        return isSetSource();
53994
      }
53995
      throw new IllegalStateException();
53996
    }
53997
 
53998
    @Override
53999
    public boolean equals(Object that) {
54000
      if (that == null)
54001
        return false;
54002
      if (that instanceof getHoldInventoryDetails_args)
54003
        return this.equals((getHoldInventoryDetails_args)that);
54004
      return false;
54005
    }
54006
 
54007
    public boolean equals(getHoldInventoryDetails_args that) {
54008
      if (that == null)
54009
        return false;
54010
 
54011
      boolean this_present_itemId = true;
54012
      boolean that_present_itemId = true;
54013
      if (this_present_itemId || that_present_itemId) {
54014
        if (!(this_present_itemId && that_present_itemId))
54015
          return false;
54016
        if (this.itemId != that.itemId)
54017
          return false;
54018
      }
54019
 
54020
      boolean this_present_warehouseId = true;
54021
      boolean that_present_warehouseId = true;
54022
      if (this_present_warehouseId || that_present_warehouseId) {
54023
        if (!(this_present_warehouseId && that_present_warehouseId))
54024
          return false;
54025
        if (this.warehouseId != that.warehouseId)
54026
          return false;
54027
      }
54028
 
54029
      boolean this_present_source = true;
54030
      boolean that_present_source = true;
54031
      if (this_present_source || that_present_source) {
54032
        if (!(this_present_source && that_present_source))
54033
          return false;
54034
        if (this.source != that.source)
54035
          return false;
54036
      }
54037
 
54038
      return true;
54039
    }
54040
 
54041
    @Override
54042
    public int hashCode() {
54043
      return 0;
54044
    }
54045
 
54046
    public int compareTo(getHoldInventoryDetails_args other) {
54047
      if (!getClass().equals(other.getClass())) {
54048
        return getClass().getName().compareTo(other.getClass().getName());
54049
      }
54050
 
54051
      int lastComparison = 0;
54052
      getHoldInventoryDetails_args typedOther = (getHoldInventoryDetails_args)other;
54053
 
54054
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
54055
      if (lastComparison != 0) {
54056
        return lastComparison;
54057
      }
54058
      if (isSetItemId()) {
54059
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
54060
        if (lastComparison != 0) {
54061
          return lastComparison;
54062
        }
54063
      }
54064
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
54065
      if (lastComparison != 0) {
54066
        return lastComparison;
54067
      }
54068
      if (isSetWarehouseId()) {
54069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
54070
        if (lastComparison != 0) {
54071
          return lastComparison;
54072
        }
54073
      }
54074
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
54075
      if (lastComparison != 0) {
54076
        return lastComparison;
54077
      }
54078
      if (isSetSource()) {
54079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
54080
        if (lastComparison != 0) {
54081
          return lastComparison;
54082
        }
54083
      }
54084
      return 0;
54085
    }
54086
 
54087
    public _Fields fieldForId(int fieldId) {
54088
      return _Fields.findByThriftId(fieldId);
54089
    }
54090
 
54091
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54092
      org.apache.thrift.protocol.TField field;
54093
      iprot.readStructBegin();
54094
      while (true)
54095
      {
54096
        field = iprot.readFieldBegin();
54097
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54098
          break;
54099
        }
54100
        switch (field.id) {
54101
          case 1: // ITEM_ID
54102
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54103
              this.itemId = iprot.readI64();
54104
              setItemIdIsSet(true);
54105
            } else { 
54106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54107
            }
54108
            break;
54109
          case 2: // WAREHOUSE_ID
54110
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54111
              this.warehouseId = iprot.readI64();
54112
              setWarehouseIdIsSet(true);
54113
            } else { 
54114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54115
            }
54116
            break;
54117
          case 3: // SOURCE
54118
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54119
              this.source = iprot.readI64();
54120
              setSourceIsSet(true);
54121
            } else { 
54122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54123
            }
54124
            break;
54125
          default:
54126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54127
        }
54128
        iprot.readFieldEnd();
54129
      }
54130
      iprot.readStructEnd();
54131
      validate();
54132
    }
54133
 
54134
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54135
      validate();
54136
 
54137
      oprot.writeStructBegin(STRUCT_DESC);
54138
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
54139
      oprot.writeI64(this.itemId);
54140
      oprot.writeFieldEnd();
54141
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
54142
      oprot.writeI64(this.warehouseId);
54143
      oprot.writeFieldEnd();
54144
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
54145
      oprot.writeI64(this.source);
54146
      oprot.writeFieldEnd();
54147
      oprot.writeFieldStop();
54148
      oprot.writeStructEnd();
54149
    }
54150
 
54151
    @Override
54152
    public String toString() {
54153
      StringBuilder sb = new StringBuilder("getHoldInventoryDetails_args(");
54154
      boolean first = true;
54155
 
54156
      sb.append("itemId:");
54157
      sb.append(this.itemId);
54158
      first = false;
54159
      if (!first) sb.append(", ");
54160
      sb.append("warehouseId:");
54161
      sb.append(this.warehouseId);
54162
      first = false;
54163
      if (!first) sb.append(", ");
54164
      sb.append("source:");
54165
      sb.append(this.source);
54166
      first = false;
54167
      sb.append(")");
54168
      return sb.toString();
54169
    }
54170
 
54171
    public void validate() throws org.apache.thrift.TException {
54172
      // check for required fields
54173
    }
54174
 
54175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54176
      try {
54177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54178
      } catch (org.apache.thrift.TException te) {
54179
        throw new java.io.IOException(te);
54180
      }
54181
    }
54182
 
54183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54184
      try {
54185
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
54186
        __isset_bit_vector = new BitSet(1);
54187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54188
      } catch (org.apache.thrift.TException te) {
54189
        throw new java.io.IOException(te);
54190
      }
54191
    }
54192
 
54193
  }
54194
 
54195
  public static class getHoldInventoryDetails_result implements org.apache.thrift.TBase<getHoldInventoryDetails_result, getHoldInventoryDetails_result._Fields>, java.io.Serializable, Cloneable   {
54196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetails_result");
54197
 
54198
    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);
54199
 
54200
    private List<HoldInventoryDetail> success; // required
54201
 
54202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54204
      SUCCESS((short)0, "success");
54205
 
54206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54207
 
54208
      static {
54209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54210
          byName.put(field.getFieldName(), field);
54211
        }
54212
      }
54213
 
54214
      /**
54215
       * Find the _Fields constant that matches fieldId, or null if its not found.
54216
       */
54217
      public static _Fields findByThriftId(int fieldId) {
54218
        switch(fieldId) {
54219
          case 0: // SUCCESS
54220
            return SUCCESS;
54221
          default:
54222
            return null;
54223
        }
54224
      }
54225
 
54226
      /**
54227
       * Find the _Fields constant that matches fieldId, throwing an exception
54228
       * if it is not found.
54229
       */
54230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54231
        _Fields fields = findByThriftId(fieldId);
54232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54233
        return fields;
54234
      }
54235
 
54236
      /**
54237
       * Find the _Fields constant that matches name, or null if its not found.
54238
       */
54239
      public static _Fields findByName(String name) {
54240
        return byName.get(name);
54241
      }
54242
 
54243
      private final short _thriftId;
54244
      private final String _fieldName;
54245
 
54246
      _Fields(short thriftId, String fieldName) {
54247
        _thriftId = thriftId;
54248
        _fieldName = fieldName;
54249
      }
54250
 
54251
      public short getThriftFieldId() {
54252
        return _thriftId;
54253
      }
54254
 
54255
      public String getFieldName() {
54256
        return _fieldName;
54257
      }
54258
    }
54259
 
54260
    // isset id assignments
54261
 
54262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54263
    static {
54264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54265
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54266
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
54267
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HoldInventoryDetail.class))));
54268
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54269
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetails_result.class, metaDataMap);
54270
    }
54271
 
54272
    public getHoldInventoryDetails_result() {
54273
    }
54274
 
54275
    public getHoldInventoryDetails_result(
54276
      List<HoldInventoryDetail> success)
54277
    {
54278
      this();
54279
      this.success = success;
54280
    }
54281
 
54282
    /**
54283
     * Performs a deep copy on <i>other</i>.
54284
     */
54285
    public getHoldInventoryDetails_result(getHoldInventoryDetails_result other) {
54286
      if (other.isSetSuccess()) {
54287
        List<HoldInventoryDetail> __this__success = new ArrayList<HoldInventoryDetail>();
54288
        for (HoldInventoryDetail other_element : other.success) {
54289
          __this__success.add(new HoldInventoryDetail(other_element));
54290
        }
54291
        this.success = __this__success;
54292
      }
54293
    }
54294
 
54295
    public getHoldInventoryDetails_result deepCopy() {
54296
      return new getHoldInventoryDetails_result(this);
54297
    }
54298
 
54299
    @Override
54300
    public void clear() {
54301
      this.success = null;
54302
    }
54303
 
54304
    public int getSuccessSize() {
54305
      return (this.success == null) ? 0 : this.success.size();
54306
    }
54307
 
54308
    public java.util.Iterator<HoldInventoryDetail> getSuccessIterator() {
54309
      return (this.success == null) ? null : this.success.iterator();
54310
    }
54311
 
54312
    public void addToSuccess(HoldInventoryDetail elem) {
54313
      if (this.success == null) {
54314
        this.success = new ArrayList<HoldInventoryDetail>();
54315
      }
54316
      this.success.add(elem);
54317
    }
54318
 
54319
    public List<HoldInventoryDetail> getSuccess() {
54320
      return this.success;
54321
    }
54322
 
54323
    public void setSuccess(List<HoldInventoryDetail> success) {
54324
      this.success = success;
54325
    }
54326
 
54327
    public void unsetSuccess() {
54328
      this.success = null;
54329
    }
54330
 
54331
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
54332
    public boolean isSetSuccess() {
54333
      return this.success != null;
54334
    }
54335
 
54336
    public void setSuccessIsSet(boolean value) {
54337
      if (!value) {
54338
        this.success = null;
54339
      }
54340
    }
54341
 
54342
    public void setFieldValue(_Fields field, Object value) {
54343
      switch (field) {
54344
      case SUCCESS:
54345
        if (value == null) {
54346
          unsetSuccess();
54347
        } else {
54348
          setSuccess((List<HoldInventoryDetail>)value);
54349
        }
54350
        break;
54351
 
54352
      }
54353
    }
54354
 
54355
    public Object getFieldValue(_Fields field) {
54356
      switch (field) {
54357
      case SUCCESS:
54358
        return getSuccess();
54359
 
54360
      }
54361
      throw new IllegalStateException();
54362
    }
54363
 
54364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54365
    public boolean isSet(_Fields field) {
54366
      if (field == null) {
54367
        throw new IllegalArgumentException();
54368
      }
54369
 
54370
      switch (field) {
54371
      case SUCCESS:
54372
        return isSetSuccess();
54373
      }
54374
      throw new IllegalStateException();
54375
    }
54376
 
54377
    @Override
54378
    public boolean equals(Object that) {
54379
      if (that == null)
54380
        return false;
54381
      if (that instanceof getHoldInventoryDetails_result)
54382
        return this.equals((getHoldInventoryDetails_result)that);
54383
      return false;
54384
    }
54385
 
54386
    public boolean equals(getHoldInventoryDetails_result that) {
54387
      if (that == null)
54388
        return false;
54389
 
54390
      boolean this_present_success = true && this.isSetSuccess();
54391
      boolean that_present_success = true && that.isSetSuccess();
54392
      if (this_present_success || that_present_success) {
54393
        if (!(this_present_success && that_present_success))
54394
          return false;
54395
        if (!this.success.equals(that.success))
54396
          return false;
54397
      }
54398
 
54399
      return true;
54400
    }
54401
 
54402
    @Override
54403
    public int hashCode() {
54404
      return 0;
54405
    }
54406
 
54407
    public int compareTo(getHoldInventoryDetails_result other) {
54408
      if (!getClass().equals(other.getClass())) {
54409
        return getClass().getName().compareTo(other.getClass().getName());
54410
      }
54411
 
54412
      int lastComparison = 0;
54413
      getHoldInventoryDetails_result typedOther = (getHoldInventoryDetails_result)other;
54414
 
54415
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
54416
      if (lastComparison != 0) {
54417
        return lastComparison;
54418
      }
54419
      if (isSetSuccess()) {
54420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54421
        if (lastComparison != 0) {
54422
          return lastComparison;
54423
        }
54424
      }
54425
      return 0;
54426
    }
54427
 
54428
    public _Fields fieldForId(int fieldId) {
54429
      return _Fields.findByThriftId(fieldId);
54430
    }
54431
 
54432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54433
      org.apache.thrift.protocol.TField field;
54434
      iprot.readStructBegin();
54435
      while (true)
54436
      {
54437
        field = iprot.readFieldBegin();
54438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54439
          break;
54440
        }
54441
        switch (field.id) {
54442
          case 0: // SUCCESS
54443
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54444
              {
11173 vikram.rag 54445
                org.apache.thrift.protocol.TList _list167 = iprot.readListBegin();
54446
                this.success = new ArrayList<HoldInventoryDetail>(_list167.size);
54447
                for (int _i168 = 0; _i168 < _list167.size; ++_i168)
9761 amar.kumar 54448
                {
11173 vikram.rag 54449
                  HoldInventoryDetail _elem169; // required
54450
                  _elem169 = new HoldInventoryDetail();
54451
                  _elem169.read(iprot);
54452
                  this.success.add(_elem169);
9761 amar.kumar 54453
                }
54454
                iprot.readListEnd();
54455
              }
54456
            } else { 
54457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54458
            }
54459
            break;
54460
          default:
54461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54462
        }
54463
        iprot.readFieldEnd();
54464
      }
54465
      iprot.readStructEnd();
54466
      validate();
54467
    }
54468
 
54469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54470
      oprot.writeStructBegin(STRUCT_DESC);
54471
 
54472
      if (this.isSetSuccess()) {
54473
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54474
        {
54475
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 54476
          for (HoldInventoryDetail _iter170 : this.success)
9761 amar.kumar 54477
          {
11173 vikram.rag 54478
            _iter170.write(oprot);
9761 amar.kumar 54479
          }
54480
          oprot.writeListEnd();
54481
        }
54482
        oprot.writeFieldEnd();
54483
      }
54484
      oprot.writeFieldStop();
54485
      oprot.writeStructEnd();
54486
    }
54487
 
54488
    @Override
54489
    public String toString() {
54490
      StringBuilder sb = new StringBuilder("getHoldInventoryDetails_result(");
54491
      boolean first = true;
54492
 
54493
      sb.append("success:");
54494
      if (this.success == null) {
54495
        sb.append("null");
54496
      } else {
54497
        sb.append(this.success);
54498
      }
54499
      first = false;
54500
      sb.append(")");
54501
      return sb.toString();
54502
    }
54503
 
54504
    public void validate() throws org.apache.thrift.TException {
54505
      // check for required fields
54506
    }
54507
 
54508
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54509
      try {
54510
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54511
      } catch (org.apache.thrift.TException te) {
54512
        throw new java.io.IOException(te);
54513
      }
54514
    }
54515
 
54516
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54517
      try {
54518
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54519
      } catch (org.apache.thrift.TException te) {
54520
        throw new java.io.IOException(te);
54521
      }
54522
    }
54523
 
54524
  }
54525
 
10050 vikram.rag 54526
  public static class addOrUpdateFlipkartInventorySnapshot_args implements org.apache.thrift.TBase<addOrUpdateFlipkartInventorySnapshot_args, addOrUpdateFlipkartInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
54527
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartInventorySnapshot_args");
54528
 
10450 vikram.rag 54529
    private static final org.apache.thrift.protocol.TField FLIPKART_INVENTORY_SNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("flipkartInventorySnapshot", org.apache.thrift.protocol.TType.LIST, (short)1);
54530
    private static final org.apache.thrift.protocol.TField TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("time", org.apache.thrift.protocol.TType.I64, (short)2);
10050 vikram.rag 54531
 
54532
    private List<FlipkartInventorySnapshot> flipkartInventorySnapshot; // required
10450 vikram.rag 54533
    private long time; // required
10050 vikram.rag 54534
 
54535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54536
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10450 vikram.rag 54537
      FLIPKART_INVENTORY_SNAPSHOT((short)1, "flipkartInventorySnapshot"),
54538
      TIME((short)2, "time");
10050 vikram.rag 54539
 
54540
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54541
 
54542
      static {
54543
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54544
          byName.put(field.getFieldName(), field);
54545
        }
54546
      }
54547
 
54548
      /**
54549
       * Find the _Fields constant that matches fieldId, or null if its not found.
54550
       */
54551
      public static _Fields findByThriftId(int fieldId) {
54552
        switch(fieldId) {
10450 vikram.rag 54553
          case 1: // FLIPKART_INVENTORY_SNAPSHOT
10050 vikram.rag 54554
            return FLIPKART_INVENTORY_SNAPSHOT;
10450 vikram.rag 54555
          case 2: // TIME
54556
            return TIME;
10050 vikram.rag 54557
          default:
54558
            return null;
54559
        }
54560
      }
54561
 
54562
      /**
54563
       * Find the _Fields constant that matches fieldId, throwing an exception
54564
       * if it is not found.
54565
       */
54566
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54567
        _Fields fields = findByThriftId(fieldId);
54568
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54569
        return fields;
54570
      }
54571
 
54572
      /**
54573
       * Find the _Fields constant that matches name, or null if its not found.
54574
       */
54575
      public static _Fields findByName(String name) {
54576
        return byName.get(name);
54577
      }
54578
 
54579
      private final short _thriftId;
54580
      private final String _fieldName;
54581
 
54582
      _Fields(short thriftId, String fieldName) {
54583
        _thriftId = thriftId;
54584
        _fieldName = fieldName;
54585
      }
54586
 
54587
      public short getThriftFieldId() {
54588
        return _thriftId;
54589
      }
54590
 
54591
      public String getFieldName() {
54592
        return _fieldName;
54593
      }
54594
    }
54595
 
54596
    // isset id assignments
10450 vikram.rag 54597
    private static final int __TIME_ISSET_ID = 0;
54598
    private BitSet __isset_bit_vector = new BitSet(1);
10050 vikram.rag 54599
 
54600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54601
    static {
54602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54603
      tmpMap.put(_Fields.FLIPKART_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("flipkartInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54604
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
54605
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class))));
10450 vikram.rag 54606
      tmpMap.put(_Fields.TIME, new org.apache.thrift.meta_data.FieldMetaData("time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10050 vikram.rag 54608
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54609
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartInventorySnapshot_args.class, metaDataMap);
54610
    }
54611
 
54612
    public addOrUpdateFlipkartInventorySnapshot_args() {
54613
    }
54614
 
54615
    public addOrUpdateFlipkartInventorySnapshot_args(
10450 vikram.rag 54616
      List<FlipkartInventorySnapshot> flipkartInventorySnapshot,
54617
      long time)
10050 vikram.rag 54618
    {
54619
      this();
54620
      this.flipkartInventorySnapshot = flipkartInventorySnapshot;
10450 vikram.rag 54621
      this.time = time;
54622
      setTimeIsSet(true);
10050 vikram.rag 54623
    }
54624
 
54625
    /**
54626
     * Performs a deep copy on <i>other</i>.
54627
     */
54628
    public addOrUpdateFlipkartInventorySnapshot_args(addOrUpdateFlipkartInventorySnapshot_args other) {
10450 vikram.rag 54629
      __isset_bit_vector.clear();
54630
      __isset_bit_vector.or(other.__isset_bit_vector);
10050 vikram.rag 54631
      if (other.isSetFlipkartInventorySnapshot()) {
54632
        List<FlipkartInventorySnapshot> __this__flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>();
54633
        for (FlipkartInventorySnapshot other_element : other.flipkartInventorySnapshot) {
54634
          __this__flipkartInventorySnapshot.add(new FlipkartInventorySnapshot(other_element));
54635
        }
54636
        this.flipkartInventorySnapshot = __this__flipkartInventorySnapshot;
54637
      }
10450 vikram.rag 54638
      this.time = other.time;
10050 vikram.rag 54639
    }
54640
 
54641
    public addOrUpdateFlipkartInventorySnapshot_args deepCopy() {
54642
      return new addOrUpdateFlipkartInventorySnapshot_args(this);
54643
    }
54644
 
54645
    @Override
54646
    public void clear() {
54647
      this.flipkartInventorySnapshot = null;
10450 vikram.rag 54648
      setTimeIsSet(false);
54649
      this.time = 0;
10050 vikram.rag 54650
    }
54651
 
54652
    public int getFlipkartInventorySnapshotSize() {
54653
      return (this.flipkartInventorySnapshot == null) ? 0 : this.flipkartInventorySnapshot.size();
54654
    }
54655
 
54656
    public java.util.Iterator<FlipkartInventorySnapshot> getFlipkartInventorySnapshotIterator() {
54657
      return (this.flipkartInventorySnapshot == null) ? null : this.flipkartInventorySnapshot.iterator();
54658
    }
54659
 
54660
    public void addToFlipkartInventorySnapshot(FlipkartInventorySnapshot elem) {
54661
      if (this.flipkartInventorySnapshot == null) {
54662
        this.flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>();
54663
      }
54664
      this.flipkartInventorySnapshot.add(elem);
54665
    }
54666
 
54667
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() {
54668
      return this.flipkartInventorySnapshot;
54669
    }
54670
 
54671
    public void setFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) {
54672
      this.flipkartInventorySnapshot = flipkartInventorySnapshot;
54673
    }
54674
 
54675
    public void unsetFlipkartInventorySnapshot() {
54676
      this.flipkartInventorySnapshot = null;
54677
    }
54678
 
54679
    /** Returns true if field flipkartInventorySnapshot is set (has been assigned a value) and false otherwise */
54680
    public boolean isSetFlipkartInventorySnapshot() {
54681
      return this.flipkartInventorySnapshot != null;
54682
    }
54683
 
54684
    public void setFlipkartInventorySnapshotIsSet(boolean value) {
54685
      if (!value) {
54686
        this.flipkartInventorySnapshot = null;
54687
      }
54688
    }
54689
 
10450 vikram.rag 54690
    public long getTime() {
54691
      return this.time;
54692
    }
54693
 
54694
    public void setTime(long time) {
54695
      this.time = time;
54696
      setTimeIsSet(true);
54697
    }
54698
 
54699
    public void unsetTime() {
54700
      __isset_bit_vector.clear(__TIME_ISSET_ID);
54701
    }
54702
 
54703
    /** Returns true if field time is set (has been assigned a value) and false otherwise */
54704
    public boolean isSetTime() {
54705
      return __isset_bit_vector.get(__TIME_ISSET_ID);
54706
    }
54707
 
54708
    public void setTimeIsSet(boolean value) {
54709
      __isset_bit_vector.set(__TIME_ISSET_ID, value);
54710
    }
54711
 
10050 vikram.rag 54712
    public void setFieldValue(_Fields field, Object value) {
54713
      switch (field) {
54714
      case FLIPKART_INVENTORY_SNAPSHOT:
54715
        if (value == null) {
54716
          unsetFlipkartInventorySnapshot();
54717
        } else {
54718
          setFlipkartInventorySnapshot((List<FlipkartInventorySnapshot>)value);
54719
        }
54720
        break;
54721
 
10450 vikram.rag 54722
      case TIME:
54723
        if (value == null) {
54724
          unsetTime();
54725
        } else {
54726
          setTime((Long)value);
54727
        }
54728
        break;
54729
 
10050 vikram.rag 54730
      }
54731
    }
54732
 
54733
    public Object getFieldValue(_Fields field) {
54734
      switch (field) {
54735
      case FLIPKART_INVENTORY_SNAPSHOT:
54736
        return getFlipkartInventorySnapshot();
54737
 
10450 vikram.rag 54738
      case TIME:
54739
        return Long.valueOf(getTime());
54740
 
10050 vikram.rag 54741
      }
54742
      throw new IllegalStateException();
54743
    }
54744
 
54745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54746
    public boolean isSet(_Fields field) {
54747
      if (field == null) {
54748
        throw new IllegalArgumentException();
54749
      }
54750
 
54751
      switch (field) {
54752
      case FLIPKART_INVENTORY_SNAPSHOT:
54753
        return isSetFlipkartInventorySnapshot();
10450 vikram.rag 54754
      case TIME:
54755
        return isSetTime();
10050 vikram.rag 54756
      }
54757
      throw new IllegalStateException();
54758
    }
54759
 
54760
    @Override
54761
    public boolean equals(Object that) {
54762
      if (that == null)
54763
        return false;
54764
      if (that instanceof addOrUpdateFlipkartInventorySnapshot_args)
54765
        return this.equals((addOrUpdateFlipkartInventorySnapshot_args)that);
54766
      return false;
54767
    }
54768
 
54769
    public boolean equals(addOrUpdateFlipkartInventorySnapshot_args that) {
54770
      if (that == null)
54771
        return false;
54772
 
54773
      boolean this_present_flipkartInventorySnapshot = true && this.isSetFlipkartInventorySnapshot();
54774
      boolean that_present_flipkartInventorySnapshot = true && that.isSetFlipkartInventorySnapshot();
54775
      if (this_present_flipkartInventorySnapshot || that_present_flipkartInventorySnapshot) {
54776
        if (!(this_present_flipkartInventorySnapshot && that_present_flipkartInventorySnapshot))
54777
          return false;
54778
        if (!this.flipkartInventorySnapshot.equals(that.flipkartInventorySnapshot))
54779
          return false;
54780
      }
54781
 
10450 vikram.rag 54782
      boolean this_present_time = true;
54783
      boolean that_present_time = true;
54784
      if (this_present_time || that_present_time) {
54785
        if (!(this_present_time && that_present_time))
54786
          return false;
54787
        if (this.time != that.time)
54788
          return false;
54789
      }
54790
 
10050 vikram.rag 54791
      return true;
54792
    }
54793
 
54794
    @Override
54795
    public int hashCode() {
54796
      return 0;
54797
    }
54798
 
54799
    public int compareTo(addOrUpdateFlipkartInventorySnapshot_args other) {
54800
      if (!getClass().equals(other.getClass())) {
54801
        return getClass().getName().compareTo(other.getClass().getName());
54802
      }
54803
 
54804
      int lastComparison = 0;
54805
      addOrUpdateFlipkartInventorySnapshot_args typedOther = (addOrUpdateFlipkartInventorySnapshot_args)other;
54806
 
54807
      lastComparison = Boolean.valueOf(isSetFlipkartInventorySnapshot()).compareTo(typedOther.isSetFlipkartInventorySnapshot());
54808
      if (lastComparison != 0) {
54809
        return lastComparison;
54810
      }
54811
      if (isSetFlipkartInventorySnapshot()) {
54812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flipkartInventorySnapshot, typedOther.flipkartInventorySnapshot);
54813
        if (lastComparison != 0) {
54814
          return lastComparison;
54815
        }
54816
      }
10450 vikram.rag 54817
      lastComparison = Boolean.valueOf(isSetTime()).compareTo(typedOther.isSetTime());
54818
      if (lastComparison != 0) {
54819
        return lastComparison;
54820
      }
54821
      if (isSetTime()) {
54822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time, typedOther.time);
54823
        if (lastComparison != 0) {
54824
          return lastComparison;
54825
        }
54826
      }
10050 vikram.rag 54827
      return 0;
54828
    }
54829
 
54830
    public _Fields fieldForId(int fieldId) {
54831
      return _Fields.findByThriftId(fieldId);
54832
    }
54833
 
54834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54835
      org.apache.thrift.protocol.TField field;
54836
      iprot.readStructBegin();
54837
      while (true)
54838
      {
54839
        field = iprot.readFieldBegin();
54840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54841
          break;
54842
        }
54843
        switch (field.id) {
10450 vikram.rag 54844
          case 1: // FLIPKART_INVENTORY_SNAPSHOT
10050 vikram.rag 54845
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54846
              {
11173 vikram.rag 54847
                org.apache.thrift.protocol.TList _list171 = iprot.readListBegin();
54848
                this.flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>(_list171.size);
54849
                for (int _i172 = 0; _i172 < _list171.size; ++_i172)
10050 vikram.rag 54850
                {
11173 vikram.rag 54851
                  FlipkartInventorySnapshot _elem173; // required
54852
                  _elem173 = new FlipkartInventorySnapshot();
54853
                  _elem173.read(iprot);
54854
                  this.flipkartInventorySnapshot.add(_elem173);
10050 vikram.rag 54855
                }
54856
                iprot.readListEnd();
54857
              }
54858
            } else { 
54859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54860
            }
54861
            break;
10450 vikram.rag 54862
          case 2: // TIME
54863
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54864
              this.time = iprot.readI64();
54865
              setTimeIsSet(true);
54866
            } else { 
54867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54868
            }
54869
            break;
10050 vikram.rag 54870
          default:
54871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54872
        }
54873
        iprot.readFieldEnd();
54874
      }
54875
      iprot.readStructEnd();
54876
      validate();
54877
    }
54878
 
54879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54880
      validate();
54881
 
54882
      oprot.writeStructBegin(STRUCT_DESC);
54883
      if (this.flipkartInventorySnapshot != null) {
54884
        oprot.writeFieldBegin(FLIPKART_INVENTORY_SNAPSHOT_FIELD_DESC);
54885
        {
54886
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.flipkartInventorySnapshot.size()));
11173 vikram.rag 54887
          for (FlipkartInventorySnapshot _iter174 : this.flipkartInventorySnapshot)
10050 vikram.rag 54888
          {
11173 vikram.rag 54889
            _iter174.write(oprot);
10050 vikram.rag 54890
          }
54891
          oprot.writeListEnd();
54892
        }
54893
        oprot.writeFieldEnd();
54894
      }
10450 vikram.rag 54895
      oprot.writeFieldBegin(TIME_FIELD_DESC);
54896
      oprot.writeI64(this.time);
54897
      oprot.writeFieldEnd();
10050 vikram.rag 54898
      oprot.writeFieldStop();
54899
      oprot.writeStructEnd();
54900
    }
54901
 
54902
    @Override
54903
    public String toString() {
54904
      StringBuilder sb = new StringBuilder("addOrUpdateFlipkartInventorySnapshot_args(");
54905
      boolean first = true;
54906
 
54907
      sb.append("flipkartInventorySnapshot:");
54908
      if (this.flipkartInventorySnapshot == null) {
54909
        sb.append("null");
54910
      } else {
54911
        sb.append(this.flipkartInventorySnapshot);
54912
      }
54913
      first = false;
10450 vikram.rag 54914
      if (!first) sb.append(", ");
54915
      sb.append("time:");
54916
      sb.append(this.time);
54917
      first = false;
10050 vikram.rag 54918
      sb.append(")");
54919
      return sb.toString();
54920
    }
54921
 
54922
    public void validate() throws org.apache.thrift.TException {
54923
      // check for required fields
54924
    }
54925
 
54926
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54927
      try {
54928
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54929
      } catch (org.apache.thrift.TException te) {
54930
        throw new java.io.IOException(te);
54931
      }
54932
    }
54933
 
54934
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54935
      try {
10450 vikram.rag 54936
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
54937
        __isset_bit_vector = new BitSet(1);
10050 vikram.rag 54938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54939
      } catch (org.apache.thrift.TException te) {
54940
        throw new java.io.IOException(te);
54941
      }
54942
    }
54943
 
54944
  }
54945
 
54946
  public static class addOrUpdateFlipkartInventorySnapshot_result implements org.apache.thrift.TBase<addOrUpdateFlipkartInventorySnapshot_result, addOrUpdateFlipkartInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
54947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartInventorySnapshot_result");
54948
 
54949
 
54950
 
54951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54953
;
54954
 
54955
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54956
 
54957
      static {
54958
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54959
          byName.put(field.getFieldName(), field);
54960
        }
54961
      }
54962
 
54963
      /**
54964
       * Find the _Fields constant that matches fieldId, or null if its not found.
54965
       */
54966
      public static _Fields findByThriftId(int fieldId) {
54967
        switch(fieldId) {
54968
          default:
54969
            return null;
54970
        }
54971
      }
54972
 
54973
      /**
54974
       * Find the _Fields constant that matches fieldId, throwing an exception
54975
       * if it is not found.
54976
       */
54977
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54978
        _Fields fields = findByThriftId(fieldId);
54979
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54980
        return fields;
54981
      }
54982
 
54983
      /**
54984
       * Find the _Fields constant that matches name, or null if its not found.
54985
       */
54986
      public static _Fields findByName(String name) {
54987
        return byName.get(name);
54988
      }
54989
 
54990
      private final short _thriftId;
54991
      private final String _fieldName;
54992
 
54993
      _Fields(short thriftId, String fieldName) {
54994
        _thriftId = thriftId;
54995
        _fieldName = fieldName;
54996
      }
54997
 
54998
      public short getThriftFieldId() {
54999
        return _thriftId;
55000
      }
55001
 
55002
      public String getFieldName() {
55003
        return _fieldName;
55004
      }
55005
    }
55006
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55007
    static {
55008
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55009
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55010
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartInventorySnapshot_result.class, metaDataMap);
55011
    }
55012
 
55013
    public addOrUpdateFlipkartInventorySnapshot_result() {
55014
    }
55015
 
55016
    /**
55017
     * Performs a deep copy on <i>other</i>.
55018
     */
55019
    public addOrUpdateFlipkartInventorySnapshot_result(addOrUpdateFlipkartInventorySnapshot_result other) {
55020
    }
55021
 
55022
    public addOrUpdateFlipkartInventorySnapshot_result deepCopy() {
55023
      return new addOrUpdateFlipkartInventorySnapshot_result(this);
55024
    }
55025
 
55026
    @Override
55027
    public void clear() {
55028
    }
55029
 
55030
    public void setFieldValue(_Fields field, Object value) {
55031
      switch (field) {
55032
      }
55033
    }
55034
 
55035
    public Object getFieldValue(_Fields field) {
55036
      switch (field) {
55037
      }
55038
      throw new IllegalStateException();
55039
    }
55040
 
55041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55042
    public boolean isSet(_Fields field) {
55043
      if (field == null) {
55044
        throw new IllegalArgumentException();
55045
      }
55046
 
55047
      switch (field) {
55048
      }
55049
      throw new IllegalStateException();
55050
    }
55051
 
55052
    @Override
55053
    public boolean equals(Object that) {
55054
      if (that == null)
55055
        return false;
55056
      if (that instanceof addOrUpdateFlipkartInventorySnapshot_result)
55057
        return this.equals((addOrUpdateFlipkartInventorySnapshot_result)that);
55058
      return false;
55059
    }
55060
 
55061
    public boolean equals(addOrUpdateFlipkartInventorySnapshot_result that) {
55062
      if (that == null)
55063
        return false;
55064
 
55065
      return true;
55066
    }
55067
 
55068
    @Override
55069
    public int hashCode() {
55070
      return 0;
55071
    }
55072
 
55073
    public int compareTo(addOrUpdateFlipkartInventorySnapshot_result other) {
55074
      if (!getClass().equals(other.getClass())) {
55075
        return getClass().getName().compareTo(other.getClass().getName());
55076
      }
55077
 
55078
      int lastComparison = 0;
55079
      addOrUpdateFlipkartInventorySnapshot_result typedOther = (addOrUpdateFlipkartInventorySnapshot_result)other;
55080
 
55081
      return 0;
55082
    }
55083
 
55084
    public _Fields fieldForId(int fieldId) {
55085
      return _Fields.findByThriftId(fieldId);
55086
    }
55087
 
55088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55089
      org.apache.thrift.protocol.TField field;
55090
      iprot.readStructBegin();
55091
      while (true)
55092
      {
55093
        field = iprot.readFieldBegin();
55094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55095
          break;
55096
        }
55097
        switch (field.id) {
55098
          default:
55099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55100
        }
55101
        iprot.readFieldEnd();
55102
      }
55103
      iprot.readStructEnd();
55104
      validate();
55105
    }
55106
 
55107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55108
      oprot.writeStructBegin(STRUCT_DESC);
55109
 
55110
      oprot.writeFieldStop();
55111
      oprot.writeStructEnd();
55112
    }
55113
 
55114
    @Override
55115
    public String toString() {
55116
      StringBuilder sb = new StringBuilder("addOrUpdateFlipkartInventorySnapshot_result(");
55117
      boolean first = true;
55118
 
55119
      sb.append(")");
55120
      return sb.toString();
55121
    }
55122
 
55123
    public void validate() throws org.apache.thrift.TException {
55124
      // check for required fields
55125
    }
55126
 
55127
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55128
      try {
55129
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55130
      } catch (org.apache.thrift.TException te) {
55131
        throw new java.io.IOException(te);
55132
      }
55133
    }
55134
 
55135
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55136
      try {
55137
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55138
      } catch (org.apache.thrift.TException te) {
55139
        throw new java.io.IOException(te);
55140
      }
55141
    }
55142
 
55143
  }
55144
 
55145
  public static class getFlipkartInventorySnapshot_args implements org.apache.thrift.TBase<getFlipkartInventorySnapshot_args, getFlipkartInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
55146
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartInventorySnapshot_args");
55147
 
55148
 
55149
 
55150
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55151
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55152
;
55153
 
55154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55155
 
55156
      static {
55157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55158
          byName.put(field.getFieldName(), field);
55159
        }
55160
      }
55161
 
55162
      /**
55163
       * Find the _Fields constant that matches fieldId, or null if its not found.
55164
       */
55165
      public static _Fields findByThriftId(int fieldId) {
55166
        switch(fieldId) {
55167
          default:
55168
            return null;
55169
        }
55170
      }
55171
 
55172
      /**
55173
       * Find the _Fields constant that matches fieldId, throwing an exception
55174
       * if it is not found.
55175
       */
55176
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55177
        _Fields fields = findByThriftId(fieldId);
55178
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55179
        return fields;
55180
      }
55181
 
55182
      /**
55183
       * Find the _Fields constant that matches name, or null if its not found.
55184
       */
55185
      public static _Fields findByName(String name) {
55186
        return byName.get(name);
55187
      }
55188
 
55189
      private final short _thriftId;
55190
      private final String _fieldName;
55191
 
55192
      _Fields(short thriftId, String fieldName) {
55193
        _thriftId = thriftId;
55194
        _fieldName = fieldName;
55195
      }
55196
 
55197
      public short getThriftFieldId() {
55198
        return _thriftId;
55199
      }
55200
 
55201
      public String getFieldName() {
55202
        return _fieldName;
55203
      }
55204
    }
55205
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55206
    static {
55207
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartInventorySnapshot_args.class, metaDataMap);
55210
    }
55211
 
55212
    public getFlipkartInventorySnapshot_args() {
55213
    }
55214
 
55215
    /**
55216
     * Performs a deep copy on <i>other</i>.
55217
     */
55218
    public getFlipkartInventorySnapshot_args(getFlipkartInventorySnapshot_args other) {
55219
    }
55220
 
55221
    public getFlipkartInventorySnapshot_args deepCopy() {
55222
      return new getFlipkartInventorySnapshot_args(this);
55223
    }
55224
 
55225
    @Override
55226
    public void clear() {
55227
    }
55228
 
55229
    public void setFieldValue(_Fields field, Object value) {
55230
      switch (field) {
55231
      }
55232
    }
55233
 
55234
    public Object getFieldValue(_Fields field) {
55235
      switch (field) {
55236
      }
55237
      throw new IllegalStateException();
55238
    }
55239
 
55240
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55241
    public boolean isSet(_Fields field) {
55242
      if (field == null) {
55243
        throw new IllegalArgumentException();
55244
      }
55245
 
55246
      switch (field) {
55247
      }
55248
      throw new IllegalStateException();
55249
    }
55250
 
55251
    @Override
55252
    public boolean equals(Object that) {
55253
      if (that == null)
55254
        return false;
55255
      if (that instanceof getFlipkartInventorySnapshot_args)
55256
        return this.equals((getFlipkartInventorySnapshot_args)that);
55257
      return false;
55258
    }
55259
 
55260
    public boolean equals(getFlipkartInventorySnapshot_args that) {
55261
      if (that == null)
55262
        return false;
55263
 
55264
      return true;
55265
    }
55266
 
55267
    @Override
55268
    public int hashCode() {
55269
      return 0;
55270
    }
55271
 
55272
    public int compareTo(getFlipkartInventorySnapshot_args other) {
55273
      if (!getClass().equals(other.getClass())) {
55274
        return getClass().getName().compareTo(other.getClass().getName());
55275
      }
55276
 
55277
      int lastComparison = 0;
55278
      getFlipkartInventorySnapshot_args typedOther = (getFlipkartInventorySnapshot_args)other;
55279
 
55280
      return 0;
55281
    }
55282
 
55283
    public _Fields fieldForId(int fieldId) {
55284
      return _Fields.findByThriftId(fieldId);
55285
    }
55286
 
55287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55288
      org.apache.thrift.protocol.TField field;
55289
      iprot.readStructBegin();
55290
      while (true)
55291
      {
55292
        field = iprot.readFieldBegin();
55293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55294
          break;
55295
        }
55296
        switch (field.id) {
55297
          default:
55298
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55299
        }
55300
        iprot.readFieldEnd();
55301
      }
55302
      iprot.readStructEnd();
55303
      validate();
55304
    }
55305
 
55306
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55307
      validate();
55308
 
55309
      oprot.writeStructBegin(STRUCT_DESC);
55310
      oprot.writeFieldStop();
55311
      oprot.writeStructEnd();
55312
    }
55313
 
55314
    @Override
55315
    public String toString() {
55316
      StringBuilder sb = new StringBuilder("getFlipkartInventorySnapshot_args(");
55317
      boolean first = true;
55318
 
55319
      sb.append(")");
55320
      return sb.toString();
55321
    }
55322
 
55323
    public void validate() throws org.apache.thrift.TException {
55324
      // check for required fields
55325
    }
55326
 
55327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55328
      try {
55329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55330
      } catch (org.apache.thrift.TException te) {
55331
        throw new java.io.IOException(te);
55332
      }
55333
    }
55334
 
55335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55336
      try {
55337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55338
      } catch (org.apache.thrift.TException te) {
55339
        throw new java.io.IOException(te);
55340
      }
55341
    }
55342
 
55343
  }
55344
 
55345
  public static class getFlipkartInventorySnapshot_result implements org.apache.thrift.TBase<getFlipkartInventorySnapshot_result, getFlipkartInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
55346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartInventorySnapshot_result");
55347
 
55348
    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);
55349
 
55350
    private List<FlipkartInventorySnapshot> success; // required
55351
 
55352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55354
      SUCCESS((short)0, "success");
55355
 
55356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55357
 
55358
      static {
55359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55360
          byName.put(field.getFieldName(), field);
55361
        }
55362
      }
55363
 
55364
      /**
55365
       * Find the _Fields constant that matches fieldId, or null if its not found.
55366
       */
55367
      public static _Fields findByThriftId(int fieldId) {
55368
        switch(fieldId) {
55369
          case 0: // SUCCESS
55370
            return SUCCESS;
55371
          default:
55372
            return null;
55373
        }
55374
      }
55375
 
55376
      /**
55377
       * Find the _Fields constant that matches fieldId, throwing an exception
55378
       * if it is not found.
55379
       */
55380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55381
        _Fields fields = findByThriftId(fieldId);
55382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55383
        return fields;
55384
      }
55385
 
55386
      /**
55387
       * Find the _Fields constant that matches name, or null if its not found.
55388
       */
55389
      public static _Fields findByName(String name) {
55390
        return byName.get(name);
55391
      }
55392
 
55393
      private final short _thriftId;
55394
      private final String _fieldName;
55395
 
55396
      _Fields(short thriftId, String fieldName) {
55397
        _thriftId = thriftId;
55398
        _fieldName = fieldName;
55399
      }
55400
 
55401
      public short getThriftFieldId() {
55402
        return _thriftId;
55403
      }
55404
 
55405
      public String getFieldName() {
55406
        return _fieldName;
55407
      }
55408
    }
55409
 
55410
    // isset id assignments
55411
 
55412
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55413
    static {
55414
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55415
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55416
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
55417
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class))));
55418
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55419
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartInventorySnapshot_result.class, metaDataMap);
55420
    }
55421
 
55422
    public getFlipkartInventorySnapshot_result() {
55423
    }
55424
 
55425
    public getFlipkartInventorySnapshot_result(
55426
      List<FlipkartInventorySnapshot> success)
55427
    {
55428
      this();
55429
      this.success = success;
55430
    }
55431
 
55432
    /**
55433
     * Performs a deep copy on <i>other</i>.
55434
     */
55435
    public getFlipkartInventorySnapshot_result(getFlipkartInventorySnapshot_result other) {
55436
      if (other.isSetSuccess()) {
55437
        List<FlipkartInventorySnapshot> __this__success = new ArrayList<FlipkartInventorySnapshot>();
55438
        for (FlipkartInventorySnapshot other_element : other.success) {
55439
          __this__success.add(new FlipkartInventorySnapshot(other_element));
55440
        }
55441
        this.success = __this__success;
55442
      }
55443
    }
55444
 
55445
    public getFlipkartInventorySnapshot_result deepCopy() {
55446
      return new getFlipkartInventorySnapshot_result(this);
55447
    }
55448
 
55449
    @Override
55450
    public void clear() {
55451
      this.success = null;
55452
    }
55453
 
55454
    public int getSuccessSize() {
55455
      return (this.success == null) ? 0 : this.success.size();
55456
    }
55457
 
55458
    public java.util.Iterator<FlipkartInventorySnapshot> getSuccessIterator() {
55459
      return (this.success == null) ? null : this.success.iterator();
55460
    }
55461
 
55462
    public void addToSuccess(FlipkartInventorySnapshot elem) {
55463
      if (this.success == null) {
55464
        this.success = new ArrayList<FlipkartInventorySnapshot>();
55465
      }
55466
      this.success.add(elem);
55467
    }
55468
 
55469
    public List<FlipkartInventorySnapshot> getSuccess() {
55470
      return this.success;
55471
    }
55472
 
55473
    public void setSuccess(List<FlipkartInventorySnapshot> success) {
55474
      this.success = success;
55475
    }
55476
 
55477
    public void unsetSuccess() {
55478
      this.success = null;
55479
    }
55480
 
55481
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
55482
    public boolean isSetSuccess() {
55483
      return this.success != null;
55484
    }
55485
 
55486
    public void setSuccessIsSet(boolean value) {
55487
      if (!value) {
55488
        this.success = null;
55489
      }
55490
    }
55491
 
55492
    public void setFieldValue(_Fields field, Object value) {
55493
      switch (field) {
55494
      case SUCCESS:
55495
        if (value == null) {
55496
          unsetSuccess();
55497
        } else {
55498
          setSuccess((List<FlipkartInventorySnapshot>)value);
55499
        }
55500
        break;
55501
 
55502
      }
55503
    }
55504
 
55505
    public Object getFieldValue(_Fields field) {
55506
      switch (field) {
55507
      case SUCCESS:
55508
        return getSuccess();
55509
 
55510
      }
55511
      throw new IllegalStateException();
55512
    }
55513
 
55514
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55515
    public boolean isSet(_Fields field) {
55516
      if (field == null) {
55517
        throw new IllegalArgumentException();
55518
      }
55519
 
55520
      switch (field) {
55521
      case SUCCESS:
55522
        return isSetSuccess();
55523
      }
55524
      throw new IllegalStateException();
55525
    }
55526
 
55527
    @Override
55528
    public boolean equals(Object that) {
55529
      if (that == null)
55530
        return false;
55531
      if (that instanceof getFlipkartInventorySnapshot_result)
55532
        return this.equals((getFlipkartInventorySnapshot_result)that);
55533
      return false;
55534
    }
55535
 
55536
    public boolean equals(getFlipkartInventorySnapshot_result that) {
55537
      if (that == null)
55538
        return false;
55539
 
55540
      boolean this_present_success = true && this.isSetSuccess();
55541
      boolean that_present_success = true && that.isSetSuccess();
55542
      if (this_present_success || that_present_success) {
55543
        if (!(this_present_success && that_present_success))
55544
          return false;
55545
        if (!this.success.equals(that.success))
55546
          return false;
55547
      }
55548
 
55549
      return true;
55550
    }
55551
 
55552
    @Override
55553
    public int hashCode() {
55554
      return 0;
55555
    }
55556
 
55557
    public int compareTo(getFlipkartInventorySnapshot_result other) {
55558
      if (!getClass().equals(other.getClass())) {
55559
        return getClass().getName().compareTo(other.getClass().getName());
55560
      }
55561
 
55562
      int lastComparison = 0;
55563
      getFlipkartInventorySnapshot_result typedOther = (getFlipkartInventorySnapshot_result)other;
55564
 
55565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
55566
      if (lastComparison != 0) {
55567
        return lastComparison;
55568
      }
55569
      if (isSetSuccess()) {
55570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55571
        if (lastComparison != 0) {
55572
          return lastComparison;
55573
        }
55574
      }
55575
      return 0;
55576
    }
55577
 
55578
    public _Fields fieldForId(int fieldId) {
55579
      return _Fields.findByThriftId(fieldId);
55580
    }
55581
 
55582
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55583
      org.apache.thrift.protocol.TField field;
55584
      iprot.readStructBegin();
55585
      while (true)
55586
      {
55587
        field = iprot.readFieldBegin();
55588
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55589
          break;
55590
        }
55591
        switch (field.id) {
55592
          case 0: // SUCCESS
55593
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55594
              {
11173 vikram.rag 55595
                org.apache.thrift.protocol.TList _list175 = iprot.readListBegin();
55596
                this.success = new ArrayList<FlipkartInventorySnapshot>(_list175.size);
55597
                for (int _i176 = 0; _i176 < _list175.size; ++_i176)
10050 vikram.rag 55598
                {
11173 vikram.rag 55599
                  FlipkartInventorySnapshot _elem177; // required
55600
                  _elem177 = new FlipkartInventorySnapshot();
55601
                  _elem177.read(iprot);
55602
                  this.success.add(_elem177);
10050 vikram.rag 55603
                }
55604
                iprot.readListEnd();
55605
              }
55606
            } else { 
55607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55608
            }
55609
            break;
55610
          default:
55611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55612
        }
55613
        iprot.readFieldEnd();
55614
      }
55615
      iprot.readStructEnd();
55616
      validate();
55617
    }
55618
 
55619
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55620
      oprot.writeStructBegin(STRUCT_DESC);
55621
 
55622
      if (this.isSetSuccess()) {
55623
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
55624
        {
55625
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 55626
          for (FlipkartInventorySnapshot _iter178 : this.success)
10050 vikram.rag 55627
          {
11173 vikram.rag 55628
            _iter178.write(oprot);
10050 vikram.rag 55629
          }
55630
          oprot.writeListEnd();
55631
        }
55632
        oprot.writeFieldEnd();
55633
      }
55634
      oprot.writeFieldStop();
55635
      oprot.writeStructEnd();
55636
    }
55637
 
55638
    @Override
55639
    public String toString() {
55640
      StringBuilder sb = new StringBuilder("getFlipkartInventorySnapshot_result(");
55641
      boolean first = true;
55642
 
55643
      sb.append("success:");
55644
      if (this.success == null) {
55645
        sb.append("null");
55646
      } else {
55647
        sb.append(this.success);
55648
      }
55649
      first = false;
55650
      sb.append(")");
55651
      return sb.toString();
55652
    }
55653
 
55654
    public void validate() throws org.apache.thrift.TException {
55655
      // check for required fields
55656
    }
55657
 
55658
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55659
      try {
55660
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55661
      } catch (org.apache.thrift.TException te) {
55662
        throw new java.io.IOException(te);
55663
      }
55664
    }
55665
 
55666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55667
      try {
55668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55669
      } catch (org.apache.thrift.TException te) {
55670
        throw new java.io.IOException(te);
55671
      }
55672
    }
55673
 
55674
  }
55675
 
10097 kshitij.so 55676
  public static class getFlipkartlInventoryForItem_args implements org.apache.thrift.TBase<getFlipkartlInventoryForItem_args, getFlipkartlInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
55677
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartlInventoryForItem_args");
55678
 
55679
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
55680
 
55681
    private long item_id; // required
55682
 
55683
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55684
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55685
      ITEM_ID((short)1, "item_id");
55686
 
55687
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55688
 
55689
      static {
55690
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55691
          byName.put(field.getFieldName(), field);
55692
        }
55693
      }
55694
 
55695
      /**
55696
       * Find the _Fields constant that matches fieldId, or null if its not found.
55697
       */
55698
      public static _Fields findByThriftId(int fieldId) {
55699
        switch(fieldId) {
55700
          case 1: // ITEM_ID
55701
            return ITEM_ID;
55702
          default:
55703
            return null;
55704
        }
55705
      }
55706
 
55707
      /**
55708
       * Find the _Fields constant that matches fieldId, throwing an exception
55709
       * if it is not found.
55710
       */
55711
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55712
        _Fields fields = findByThriftId(fieldId);
55713
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55714
        return fields;
55715
      }
55716
 
55717
      /**
55718
       * Find the _Fields constant that matches name, or null if its not found.
55719
       */
55720
      public static _Fields findByName(String name) {
55721
        return byName.get(name);
55722
      }
55723
 
55724
      private final short _thriftId;
55725
      private final String _fieldName;
55726
 
55727
      _Fields(short thriftId, String fieldName) {
55728
        _thriftId = thriftId;
55729
        _fieldName = fieldName;
55730
      }
55731
 
55732
      public short getThriftFieldId() {
55733
        return _thriftId;
55734
      }
55735
 
55736
      public String getFieldName() {
55737
        return _fieldName;
55738
      }
55739
    }
55740
 
55741
    // isset id assignments
55742
    private static final int __ITEM_ID_ISSET_ID = 0;
55743
    private BitSet __isset_bit_vector = new BitSet(1);
55744
 
55745
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55746
    static {
55747
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55748
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55749
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
55750
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55751
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartlInventoryForItem_args.class, metaDataMap);
55752
    }
55753
 
55754
    public getFlipkartlInventoryForItem_args() {
55755
    }
55756
 
55757
    public getFlipkartlInventoryForItem_args(
55758
      long item_id)
55759
    {
55760
      this();
55761
      this.item_id = item_id;
55762
      setItem_idIsSet(true);
55763
    }
55764
 
55765
    /**
55766
     * Performs a deep copy on <i>other</i>.
55767
     */
55768
    public getFlipkartlInventoryForItem_args(getFlipkartlInventoryForItem_args other) {
55769
      __isset_bit_vector.clear();
55770
      __isset_bit_vector.or(other.__isset_bit_vector);
55771
      this.item_id = other.item_id;
55772
    }
55773
 
55774
    public getFlipkartlInventoryForItem_args deepCopy() {
55775
      return new getFlipkartlInventoryForItem_args(this);
55776
    }
55777
 
55778
    @Override
55779
    public void clear() {
55780
      setItem_idIsSet(false);
55781
      this.item_id = 0;
55782
    }
55783
 
55784
    public long getItem_id() {
55785
      return this.item_id;
55786
    }
55787
 
55788
    public void setItem_id(long item_id) {
55789
      this.item_id = item_id;
55790
      setItem_idIsSet(true);
55791
    }
55792
 
55793
    public void unsetItem_id() {
55794
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
55795
    }
55796
 
55797
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
55798
    public boolean isSetItem_id() {
55799
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
55800
    }
55801
 
55802
    public void setItem_idIsSet(boolean value) {
55803
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
55804
    }
55805
 
55806
    public void setFieldValue(_Fields field, Object value) {
55807
      switch (field) {
55808
      case ITEM_ID:
55809
        if (value == null) {
55810
          unsetItem_id();
55811
        } else {
55812
          setItem_id((Long)value);
55813
        }
55814
        break;
55815
 
55816
      }
55817
    }
55818
 
55819
    public Object getFieldValue(_Fields field) {
55820
      switch (field) {
55821
      case ITEM_ID:
55822
        return Long.valueOf(getItem_id());
55823
 
55824
      }
55825
      throw new IllegalStateException();
55826
    }
55827
 
55828
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55829
    public boolean isSet(_Fields field) {
55830
      if (field == null) {
55831
        throw new IllegalArgumentException();
55832
      }
55833
 
55834
      switch (field) {
55835
      case ITEM_ID:
55836
        return isSetItem_id();
55837
      }
55838
      throw new IllegalStateException();
55839
    }
55840
 
55841
    @Override
55842
    public boolean equals(Object that) {
55843
      if (that == null)
55844
        return false;
55845
      if (that instanceof getFlipkartlInventoryForItem_args)
55846
        return this.equals((getFlipkartlInventoryForItem_args)that);
55847
      return false;
55848
    }
55849
 
55850
    public boolean equals(getFlipkartlInventoryForItem_args that) {
55851
      if (that == null)
55852
        return false;
55853
 
55854
      boolean this_present_item_id = true;
55855
      boolean that_present_item_id = true;
55856
      if (this_present_item_id || that_present_item_id) {
55857
        if (!(this_present_item_id && that_present_item_id))
55858
          return false;
55859
        if (this.item_id != that.item_id)
55860
          return false;
55861
      }
55862
 
55863
      return true;
55864
    }
55865
 
55866
    @Override
55867
    public int hashCode() {
55868
      return 0;
55869
    }
55870
 
55871
    public int compareTo(getFlipkartlInventoryForItem_args other) {
55872
      if (!getClass().equals(other.getClass())) {
55873
        return getClass().getName().compareTo(other.getClass().getName());
55874
      }
55875
 
55876
      int lastComparison = 0;
55877
      getFlipkartlInventoryForItem_args typedOther = (getFlipkartlInventoryForItem_args)other;
55878
 
55879
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
55880
      if (lastComparison != 0) {
55881
        return lastComparison;
55882
      }
55883
      if (isSetItem_id()) {
55884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
55885
        if (lastComparison != 0) {
55886
          return lastComparison;
55887
        }
55888
      }
55889
      return 0;
55890
    }
55891
 
55892
    public _Fields fieldForId(int fieldId) {
55893
      return _Fields.findByThriftId(fieldId);
55894
    }
55895
 
55896
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55897
      org.apache.thrift.protocol.TField field;
55898
      iprot.readStructBegin();
55899
      while (true)
55900
      {
55901
        field = iprot.readFieldBegin();
55902
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55903
          break;
55904
        }
55905
        switch (field.id) {
55906
          case 1: // ITEM_ID
55907
            if (field.type == org.apache.thrift.protocol.TType.I64) {
55908
              this.item_id = iprot.readI64();
55909
              setItem_idIsSet(true);
55910
            } else { 
55911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55912
            }
55913
            break;
55914
          default:
55915
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55916
        }
55917
        iprot.readFieldEnd();
55918
      }
55919
      iprot.readStructEnd();
55920
      validate();
55921
    }
55922
 
55923
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55924
      validate();
55925
 
55926
      oprot.writeStructBegin(STRUCT_DESC);
55927
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
55928
      oprot.writeI64(this.item_id);
55929
      oprot.writeFieldEnd();
55930
      oprot.writeFieldStop();
55931
      oprot.writeStructEnd();
55932
    }
55933
 
55934
    @Override
55935
    public String toString() {
55936
      StringBuilder sb = new StringBuilder("getFlipkartlInventoryForItem_args(");
55937
      boolean first = true;
55938
 
55939
      sb.append("item_id:");
55940
      sb.append(this.item_id);
55941
      first = false;
55942
      sb.append(")");
55943
      return sb.toString();
55944
    }
55945
 
55946
    public void validate() throws org.apache.thrift.TException {
55947
      // check for required fields
55948
    }
55949
 
55950
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55951
      try {
55952
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55953
      } catch (org.apache.thrift.TException te) {
55954
        throw new java.io.IOException(te);
55955
      }
55956
    }
55957
 
55958
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55959
      try {
55960
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
55961
        __isset_bit_vector = new BitSet(1);
55962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55963
      } catch (org.apache.thrift.TException te) {
55964
        throw new java.io.IOException(te);
55965
      }
55966
    }
55967
 
55968
  }
55969
 
55970
  public static class getFlipkartlInventoryForItem_result implements org.apache.thrift.TBase<getFlipkartlInventoryForItem_result, getFlipkartlInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
55971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartlInventoryForItem_result");
55972
 
55973
    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);
55974
 
55975
    private FlipkartInventorySnapshot success; // required
55976
 
55977
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55978
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55979
      SUCCESS((short)0, "success");
55980
 
55981
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55982
 
55983
      static {
55984
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55985
          byName.put(field.getFieldName(), field);
55986
        }
55987
      }
55988
 
55989
      /**
55990
       * Find the _Fields constant that matches fieldId, or null if its not found.
55991
       */
55992
      public static _Fields findByThriftId(int fieldId) {
55993
        switch(fieldId) {
55994
          case 0: // SUCCESS
55995
            return SUCCESS;
55996
          default:
55997
            return null;
55998
        }
55999
      }
56000
 
56001
      /**
56002
       * Find the _Fields constant that matches fieldId, throwing an exception
56003
       * if it is not found.
56004
       */
56005
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56006
        _Fields fields = findByThriftId(fieldId);
56007
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56008
        return fields;
56009
      }
56010
 
56011
      /**
56012
       * Find the _Fields constant that matches name, or null if its not found.
56013
       */
56014
      public static _Fields findByName(String name) {
56015
        return byName.get(name);
56016
      }
56017
 
56018
      private final short _thriftId;
56019
      private final String _fieldName;
56020
 
56021
      _Fields(short thriftId, String fieldName) {
56022
        _thriftId = thriftId;
56023
        _fieldName = fieldName;
56024
      }
56025
 
56026
      public short getThriftFieldId() {
56027
        return _thriftId;
56028
      }
56029
 
56030
      public String getFieldName() {
56031
        return _fieldName;
56032
      }
56033
    }
56034
 
56035
    // isset id assignments
56036
 
56037
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56038
    static {
56039
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56040
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56041
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class)));
56042
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56043
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartlInventoryForItem_result.class, metaDataMap);
56044
    }
56045
 
56046
    public getFlipkartlInventoryForItem_result() {
56047
    }
56048
 
56049
    public getFlipkartlInventoryForItem_result(
56050
      FlipkartInventorySnapshot success)
56051
    {
56052
      this();
56053
      this.success = success;
56054
    }
56055
 
56056
    /**
56057
     * Performs a deep copy on <i>other</i>.
56058
     */
56059
    public getFlipkartlInventoryForItem_result(getFlipkartlInventoryForItem_result other) {
56060
      if (other.isSetSuccess()) {
56061
        this.success = new FlipkartInventorySnapshot(other.success);
56062
      }
56063
    }
56064
 
56065
    public getFlipkartlInventoryForItem_result deepCopy() {
56066
      return new getFlipkartlInventoryForItem_result(this);
56067
    }
56068
 
56069
    @Override
56070
    public void clear() {
56071
      this.success = null;
56072
    }
56073
 
56074
    public FlipkartInventorySnapshot getSuccess() {
56075
      return this.success;
56076
    }
56077
 
56078
    public void setSuccess(FlipkartInventorySnapshot success) {
56079
      this.success = success;
56080
    }
56081
 
56082
    public void unsetSuccess() {
56083
      this.success = null;
56084
    }
56085
 
56086
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
56087
    public boolean isSetSuccess() {
56088
      return this.success != null;
56089
    }
56090
 
56091
    public void setSuccessIsSet(boolean value) {
56092
      if (!value) {
56093
        this.success = null;
56094
      }
56095
    }
56096
 
56097
    public void setFieldValue(_Fields field, Object value) {
56098
      switch (field) {
56099
      case SUCCESS:
56100
        if (value == null) {
56101
          unsetSuccess();
56102
        } else {
56103
          setSuccess((FlipkartInventorySnapshot)value);
56104
        }
56105
        break;
56106
 
56107
      }
56108
    }
56109
 
56110
    public Object getFieldValue(_Fields field) {
56111
      switch (field) {
56112
      case SUCCESS:
56113
        return getSuccess();
56114
 
56115
      }
56116
      throw new IllegalStateException();
56117
    }
56118
 
56119
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56120
    public boolean isSet(_Fields field) {
56121
      if (field == null) {
56122
        throw new IllegalArgumentException();
56123
      }
56124
 
56125
      switch (field) {
56126
      case SUCCESS:
56127
        return isSetSuccess();
56128
      }
56129
      throw new IllegalStateException();
56130
    }
56131
 
56132
    @Override
56133
    public boolean equals(Object that) {
56134
      if (that == null)
56135
        return false;
56136
      if (that instanceof getFlipkartlInventoryForItem_result)
56137
        return this.equals((getFlipkartlInventoryForItem_result)that);
56138
      return false;
56139
    }
56140
 
56141
    public boolean equals(getFlipkartlInventoryForItem_result that) {
56142
      if (that == null)
56143
        return false;
56144
 
56145
      boolean this_present_success = true && this.isSetSuccess();
56146
      boolean that_present_success = true && that.isSetSuccess();
56147
      if (this_present_success || that_present_success) {
56148
        if (!(this_present_success && that_present_success))
56149
          return false;
56150
        if (!this.success.equals(that.success))
56151
          return false;
56152
      }
56153
 
56154
      return true;
56155
    }
56156
 
56157
    @Override
56158
    public int hashCode() {
56159
      return 0;
56160
    }
56161
 
56162
    public int compareTo(getFlipkartlInventoryForItem_result other) {
56163
      if (!getClass().equals(other.getClass())) {
56164
        return getClass().getName().compareTo(other.getClass().getName());
56165
      }
56166
 
56167
      int lastComparison = 0;
56168
      getFlipkartlInventoryForItem_result typedOther = (getFlipkartlInventoryForItem_result)other;
56169
 
56170
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
56171
      if (lastComparison != 0) {
56172
        return lastComparison;
56173
      }
56174
      if (isSetSuccess()) {
56175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
56176
        if (lastComparison != 0) {
56177
          return lastComparison;
56178
        }
56179
      }
56180
      return 0;
56181
    }
56182
 
56183
    public _Fields fieldForId(int fieldId) {
56184
      return _Fields.findByThriftId(fieldId);
56185
    }
56186
 
56187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56188
      org.apache.thrift.protocol.TField field;
56189
      iprot.readStructBegin();
56190
      while (true)
56191
      {
56192
        field = iprot.readFieldBegin();
56193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56194
          break;
56195
        }
56196
        switch (field.id) {
56197
          case 0: // SUCCESS
56198
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
56199
              this.success = new FlipkartInventorySnapshot();
56200
              this.success.read(iprot);
56201
            } else { 
56202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56203
            }
56204
            break;
56205
          default:
56206
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56207
        }
56208
        iprot.readFieldEnd();
56209
      }
56210
      iprot.readStructEnd();
56211
      validate();
56212
    }
56213
 
56214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56215
      oprot.writeStructBegin(STRUCT_DESC);
56216
 
56217
      if (this.isSetSuccess()) {
56218
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56219
        this.success.write(oprot);
56220
        oprot.writeFieldEnd();
56221
      }
56222
      oprot.writeFieldStop();
56223
      oprot.writeStructEnd();
56224
    }
56225
 
56226
    @Override
56227
    public String toString() {
56228
      StringBuilder sb = new StringBuilder("getFlipkartlInventoryForItem_result(");
56229
      boolean first = true;
56230
 
56231
      sb.append("success:");
56232
      if (this.success == null) {
56233
        sb.append("null");
56234
      } else {
56235
        sb.append(this.success);
56236
      }
56237
      first = false;
56238
      sb.append(")");
56239
      return sb.toString();
56240
    }
56241
 
56242
    public void validate() throws org.apache.thrift.TException {
56243
      // check for required fields
56244
    }
56245
 
56246
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56247
      try {
56248
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56249
      } catch (org.apache.thrift.TException te) {
56250
        throw new java.io.IOException(te);
56251
      }
56252
    }
56253
 
56254
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56255
      try {
56256
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56257
      } catch (org.apache.thrift.TException te) {
56258
        throw new java.io.IOException(te);
56259
      }
56260
    }
56261
 
56262
  }
56263
 
10485 vikram.rag 56264
  public static class getStateMaster_args implements org.apache.thrift.TBase<getStateMaster_args, getStateMaster_args._Fields>, java.io.Serializable, Cloneable   {
56265
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateMaster_args");
56266
 
56267
 
56268
 
56269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56271
;
56272
 
56273
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56274
 
56275
      static {
56276
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56277
          byName.put(field.getFieldName(), field);
56278
        }
56279
      }
56280
 
56281
      /**
56282
       * Find the _Fields constant that matches fieldId, or null if its not found.
56283
       */
56284
      public static _Fields findByThriftId(int fieldId) {
56285
        switch(fieldId) {
56286
          default:
56287
            return null;
56288
        }
56289
      }
56290
 
56291
      /**
56292
       * Find the _Fields constant that matches fieldId, throwing an exception
56293
       * if it is not found.
56294
       */
56295
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56296
        _Fields fields = findByThriftId(fieldId);
56297
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56298
        return fields;
56299
      }
56300
 
56301
      /**
56302
       * Find the _Fields constant that matches name, or null if its not found.
56303
       */
56304
      public static _Fields findByName(String name) {
56305
        return byName.get(name);
56306
      }
56307
 
56308
      private final short _thriftId;
56309
      private final String _fieldName;
56310
 
56311
      _Fields(short thriftId, String fieldName) {
56312
        _thriftId = thriftId;
56313
        _fieldName = fieldName;
56314
      }
56315
 
56316
      public short getThriftFieldId() {
56317
        return _thriftId;
56318
      }
56319
 
56320
      public String getFieldName() {
56321
        return _fieldName;
56322
      }
56323
    }
56324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56325
    static {
56326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56327
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56328
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateMaster_args.class, metaDataMap);
56329
    }
56330
 
56331
    public getStateMaster_args() {
56332
    }
56333
 
56334
    /**
56335
     * Performs a deep copy on <i>other</i>.
56336
     */
56337
    public getStateMaster_args(getStateMaster_args other) {
56338
    }
56339
 
56340
    public getStateMaster_args deepCopy() {
56341
      return new getStateMaster_args(this);
56342
    }
56343
 
56344
    @Override
56345
    public void clear() {
56346
    }
56347
 
56348
    public void setFieldValue(_Fields field, Object value) {
56349
      switch (field) {
56350
      }
56351
    }
56352
 
56353
    public Object getFieldValue(_Fields field) {
56354
      switch (field) {
56355
      }
56356
      throw new IllegalStateException();
56357
    }
56358
 
56359
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56360
    public boolean isSet(_Fields field) {
56361
      if (field == null) {
56362
        throw new IllegalArgumentException();
56363
      }
56364
 
56365
      switch (field) {
56366
      }
56367
      throw new IllegalStateException();
56368
    }
56369
 
56370
    @Override
56371
    public boolean equals(Object that) {
56372
      if (that == null)
56373
        return false;
56374
      if (that instanceof getStateMaster_args)
56375
        return this.equals((getStateMaster_args)that);
56376
      return false;
56377
    }
56378
 
56379
    public boolean equals(getStateMaster_args that) {
56380
      if (that == null)
56381
        return false;
56382
 
56383
      return true;
56384
    }
56385
 
56386
    @Override
56387
    public int hashCode() {
56388
      return 0;
56389
    }
56390
 
56391
    public int compareTo(getStateMaster_args other) {
56392
      if (!getClass().equals(other.getClass())) {
56393
        return getClass().getName().compareTo(other.getClass().getName());
56394
      }
56395
 
56396
      int lastComparison = 0;
56397
      getStateMaster_args typedOther = (getStateMaster_args)other;
56398
 
56399
      return 0;
56400
    }
56401
 
56402
    public _Fields fieldForId(int fieldId) {
56403
      return _Fields.findByThriftId(fieldId);
56404
    }
56405
 
56406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56407
      org.apache.thrift.protocol.TField field;
56408
      iprot.readStructBegin();
56409
      while (true)
56410
      {
56411
        field = iprot.readFieldBegin();
56412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56413
          break;
56414
        }
56415
        switch (field.id) {
56416
          default:
56417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56418
        }
56419
        iprot.readFieldEnd();
56420
      }
56421
      iprot.readStructEnd();
56422
      validate();
56423
    }
56424
 
56425
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56426
      validate();
56427
 
56428
      oprot.writeStructBegin(STRUCT_DESC);
56429
      oprot.writeFieldStop();
56430
      oprot.writeStructEnd();
56431
    }
56432
 
56433
    @Override
56434
    public String toString() {
56435
      StringBuilder sb = new StringBuilder("getStateMaster_args(");
56436
      boolean first = true;
56437
 
56438
      sb.append(")");
56439
      return sb.toString();
56440
    }
56441
 
56442
    public void validate() throws org.apache.thrift.TException {
56443
      // check for required fields
56444
    }
56445
 
56446
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56447
      try {
56448
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56449
      } catch (org.apache.thrift.TException te) {
56450
        throw new java.io.IOException(te);
56451
      }
56452
    }
56453
 
56454
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56455
      try {
56456
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56457
      } catch (org.apache.thrift.TException te) {
56458
        throw new java.io.IOException(te);
56459
      }
56460
    }
56461
 
56462
  }
56463
 
56464
  public static class getStateMaster_result implements org.apache.thrift.TBase<getStateMaster_result, getStateMaster_result._Fields>, java.io.Serializable, Cloneable   {
56465
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateMaster_result");
56466
 
56467
    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);
56468
 
56469
    private Map<Long,String> success; // required
56470
 
56471
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56472
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56473
      SUCCESS((short)0, "success");
56474
 
56475
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56476
 
56477
      static {
56478
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56479
          byName.put(field.getFieldName(), field);
56480
        }
56481
      }
56482
 
56483
      /**
56484
       * Find the _Fields constant that matches fieldId, or null if its not found.
56485
       */
56486
      public static _Fields findByThriftId(int fieldId) {
56487
        switch(fieldId) {
56488
          case 0: // SUCCESS
56489
            return SUCCESS;
56490
          default:
56491
            return null;
56492
        }
56493
      }
56494
 
56495
      /**
56496
       * Find the _Fields constant that matches fieldId, throwing an exception
56497
       * if it is not found.
56498
       */
56499
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56500
        _Fields fields = findByThriftId(fieldId);
56501
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56502
        return fields;
56503
      }
56504
 
56505
      /**
56506
       * Find the _Fields constant that matches name, or null if its not found.
56507
       */
56508
      public static _Fields findByName(String name) {
56509
        return byName.get(name);
56510
      }
56511
 
56512
      private final short _thriftId;
56513
      private final String _fieldName;
56514
 
56515
      _Fields(short thriftId, String fieldName) {
56516
        _thriftId = thriftId;
56517
        _fieldName = fieldName;
56518
      }
56519
 
56520
      public short getThriftFieldId() {
56521
        return _thriftId;
56522
      }
56523
 
56524
      public String getFieldName() {
56525
        return _fieldName;
56526
      }
56527
    }
56528
 
56529
    // isset id assignments
56530
 
56531
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56532
    static {
56533
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56534
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56535
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
56536
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
56537
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
56538
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56539
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateMaster_result.class, metaDataMap);
56540
    }
56541
 
56542
    public getStateMaster_result() {
56543
    }
56544
 
56545
    public getStateMaster_result(
56546
      Map<Long,String> success)
56547
    {
56548
      this();
56549
      this.success = success;
56550
    }
56551
 
56552
    /**
56553
     * Performs a deep copy on <i>other</i>.
56554
     */
56555
    public getStateMaster_result(getStateMaster_result other) {
56556
      if (other.isSetSuccess()) {
56557
        Map<Long,String> __this__success = new HashMap<Long,String>();
56558
        for (Map.Entry<Long, String> other_element : other.success.entrySet()) {
56559
 
56560
          Long other_element_key = other_element.getKey();
56561
          String other_element_value = other_element.getValue();
56562
 
56563
          Long __this__success_copy_key = other_element_key;
56564
 
56565
          String __this__success_copy_value = other_element_value;
56566
 
56567
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
56568
        }
56569
        this.success = __this__success;
56570
      }
56571
    }
56572
 
56573
    public getStateMaster_result deepCopy() {
56574
      return new getStateMaster_result(this);
56575
    }
56576
 
56577
    @Override
56578
    public void clear() {
56579
      this.success = null;
56580
    }
56581
 
56582
    public int getSuccessSize() {
56583
      return (this.success == null) ? 0 : this.success.size();
56584
    }
56585
 
56586
    public void putToSuccess(long key, String val) {
56587
      if (this.success == null) {
56588
        this.success = new HashMap<Long,String>();
56589
      }
56590
      this.success.put(key, val);
56591
    }
56592
 
56593
    public Map<Long,String> getSuccess() {
56594
      return this.success;
56595
    }
56596
 
56597
    public void setSuccess(Map<Long,String> success) {
56598
      this.success = success;
56599
    }
56600
 
56601
    public void unsetSuccess() {
56602
      this.success = null;
56603
    }
56604
 
56605
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
56606
    public boolean isSetSuccess() {
56607
      return this.success != null;
56608
    }
56609
 
56610
    public void setSuccessIsSet(boolean value) {
56611
      if (!value) {
56612
        this.success = null;
56613
      }
56614
    }
56615
 
56616
    public void setFieldValue(_Fields field, Object value) {
56617
      switch (field) {
56618
      case SUCCESS:
56619
        if (value == null) {
56620
          unsetSuccess();
56621
        } else {
56622
          setSuccess((Map<Long,String>)value);
56623
        }
56624
        break;
56625
 
56626
      }
56627
    }
56628
 
56629
    public Object getFieldValue(_Fields field) {
56630
      switch (field) {
56631
      case SUCCESS:
56632
        return getSuccess();
56633
 
56634
      }
56635
      throw new IllegalStateException();
56636
    }
56637
 
56638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56639
    public boolean isSet(_Fields field) {
56640
      if (field == null) {
56641
        throw new IllegalArgumentException();
56642
      }
56643
 
56644
      switch (field) {
56645
      case SUCCESS:
56646
        return isSetSuccess();
56647
      }
56648
      throw new IllegalStateException();
56649
    }
56650
 
56651
    @Override
56652
    public boolean equals(Object that) {
56653
      if (that == null)
56654
        return false;
56655
      if (that instanceof getStateMaster_result)
56656
        return this.equals((getStateMaster_result)that);
56657
      return false;
56658
    }
56659
 
56660
    public boolean equals(getStateMaster_result that) {
56661
      if (that == null)
56662
        return false;
56663
 
56664
      boolean this_present_success = true && this.isSetSuccess();
56665
      boolean that_present_success = true && that.isSetSuccess();
56666
      if (this_present_success || that_present_success) {
56667
        if (!(this_present_success && that_present_success))
56668
          return false;
56669
        if (!this.success.equals(that.success))
56670
          return false;
56671
      }
56672
 
56673
      return true;
56674
    }
56675
 
56676
    @Override
56677
    public int hashCode() {
56678
      return 0;
56679
    }
56680
 
56681
    public int compareTo(getStateMaster_result other) {
56682
      if (!getClass().equals(other.getClass())) {
56683
        return getClass().getName().compareTo(other.getClass().getName());
56684
      }
56685
 
56686
      int lastComparison = 0;
56687
      getStateMaster_result typedOther = (getStateMaster_result)other;
56688
 
56689
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
56690
      if (lastComparison != 0) {
56691
        return lastComparison;
56692
      }
56693
      if (isSetSuccess()) {
56694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
56695
        if (lastComparison != 0) {
56696
          return lastComparison;
56697
        }
56698
      }
56699
      return 0;
56700
    }
56701
 
56702
    public _Fields fieldForId(int fieldId) {
56703
      return _Fields.findByThriftId(fieldId);
56704
    }
56705
 
56706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56707
      org.apache.thrift.protocol.TField field;
56708
      iprot.readStructBegin();
56709
      while (true)
56710
      {
56711
        field = iprot.readFieldBegin();
56712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56713
          break;
56714
        }
56715
        switch (field.id) {
56716
          case 0: // SUCCESS
56717
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
56718
              {
11173 vikram.rag 56719
                org.apache.thrift.protocol.TMap _map179 = iprot.readMapBegin();
56720
                this.success = new HashMap<Long,String>(2*_map179.size);
56721
                for (int _i180 = 0; _i180 < _map179.size; ++_i180)
10485 vikram.rag 56722
                {
11173 vikram.rag 56723
                  long _key181; // required
56724
                  String _val182; // required
56725
                  _key181 = iprot.readI64();
56726
                  _val182 = iprot.readString();
56727
                  this.success.put(_key181, _val182);
10485 vikram.rag 56728
                }
56729
                iprot.readMapEnd();
56730
              }
56731
            } else { 
56732
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56733
            }
56734
            break;
56735
          default:
56736
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56737
        }
56738
        iprot.readFieldEnd();
56739
      }
56740
      iprot.readStructEnd();
56741
      validate();
56742
    }
56743
 
56744
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56745
      oprot.writeStructBegin(STRUCT_DESC);
56746
 
56747
      if (this.isSetSuccess()) {
56748
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56749
        {
56750
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
11173 vikram.rag 56751
          for (Map.Entry<Long, String> _iter183 : this.success.entrySet())
10485 vikram.rag 56752
          {
11173 vikram.rag 56753
            oprot.writeI64(_iter183.getKey());
56754
            oprot.writeString(_iter183.getValue());
10485 vikram.rag 56755
          }
56756
          oprot.writeMapEnd();
56757
        }
56758
        oprot.writeFieldEnd();
56759
      }
56760
      oprot.writeFieldStop();
56761
      oprot.writeStructEnd();
56762
    }
56763
 
56764
    @Override
56765
    public String toString() {
56766
      StringBuilder sb = new StringBuilder("getStateMaster_result(");
56767
      boolean first = true;
56768
 
56769
      sb.append("success:");
56770
      if (this.success == null) {
56771
        sb.append("null");
56772
      } else {
56773
        sb.append(this.success);
56774
      }
56775
      first = false;
56776
      sb.append(")");
56777
      return sb.toString();
56778
    }
56779
 
56780
    public void validate() throws org.apache.thrift.TException {
56781
      // check for required fields
56782
    }
56783
 
56784
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56785
      try {
56786
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56787
      } catch (org.apache.thrift.TException te) {
56788
        throw new java.io.IOException(te);
56789
      }
56790
    }
56791
 
56792
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56793
      try {
56794
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56795
      } catch (org.apache.thrift.TException te) {
56796
        throw new java.io.IOException(te);
56797
      }
56798
    }
56799
 
56800
  }
56801
 
10546 vikram.rag 56802
  public static class updateSnapdealStockAtEOD_args implements org.apache.thrift.TBase<updateSnapdealStockAtEOD_args, updateSnapdealStockAtEOD_args._Fields>, java.io.Serializable, Cloneable   {
56803
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealStockAtEOD_args");
56804
 
56805
    private static final org.apache.thrift.protocol.TField ALLSNAPDEALSTOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("allsnapdealstock", org.apache.thrift.protocol.TType.LIST, (short)-1);
56806
 
56807
    private List<SnapdealStockAtEOD> allsnapdealstock; // required
56808
 
56809
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56810
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56811
      ALLSNAPDEALSTOCK((short)-1, "allsnapdealstock");
56812
 
56813
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56814
 
56815
      static {
56816
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56817
          byName.put(field.getFieldName(), field);
56818
        }
56819
      }
56820
 
56821
      /**
56822
       * Find the _Fields constant that matches fieldId, or null if its not found.
56823
       */
56824
      public static _Fields findByThriftId(int fieldId) {
56825
        switch(fieldId) {
56826
          case -1: // ALLSNAPDEALSTOCK
56827
            return ALLSNAPDEALSTOCK;
56828
          default:
56829
            return null;
56830
        }
56831
      }
56832
 
56833
      /**
56834
       * Find the _Fields constant that matches fieldId, throwing an exception
56835
       * if it is not found.
56836
       */
56837
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56838
        _Fields fields = findByThriftId(fieldId);
56839
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56840
        return fields;
56841
      }
56842
 
56843
      /**
56844
       * Find the _Fields constant that matches name, or null if its not found.
56845
       */
56846
      public static _Fields findByName(String name) {
56847
        return byName.get(name);
56848
      }
56849
 
56850
      private final short _thriftId;
56851
      private final String _fieldName;
56852
 
56853
      _Fields(short thriftId, String fieldName) {
56854
        _thriftId = thriftId;
56855
        _fieldName = fieldName;
56856
      }
56857
 
56858
      public short getThriftFieldId() {
56859
        return _thriftId;
56860
      }
56861
 
56862
      public String getFieldName() {
56863
        return _fieldName;
56864
      }
56865
    }
56866
 
56867
    // isset id assignments
56868
 
56869
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56870
    static {
56871
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56872
      tmpMap.put(_Fields.ALLSNAPDEALSTOCK, new org.apache.thrift.meta_data.FieldMetaData("allsnapdealstock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56873
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
56874
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealStockAtEOD.class))));
56875
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56876
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealStockAtEOD_args.class, metaDataMap);
56877
    }
56878
 
56879
    public updateSnapdealStockAtEOD_args() {
56880
    }
56881
 
56882
    public updateSnapdealStockAtEOD_args(
56883
      List<SnapdealStockAtEOD> allsnapdealstock)
56884
    {
56885
      this();
56886
      this.allsnapdealstock = allsnapdealstock;
56887
    }
56888
 
56889
    /**
56890
     * Performs a deep copy on <i>other</i>.
56891
     */
56892
    public updateSnapdealStockAtEOD_args(updateSnapdealStockAtEOD_args other) {
56893
      if (other.isSetAllsnapdealstock()) {
56894
        List<SnapdealStockAtEOD> __this__allsnapdealstock = new ArrayList<SnapdealStockAtEOD>();
56895
        for (SnapdealStockAtEOD other_element : other.allsnapdealstock) {
56896
          __this__allsnapdealstock.add(new SnapdealStockAtEOD(other_element));
56897
        }
56898
        this.allsnapdealstock = __this__allsnapdealstock;
56899
      }
56900
    }
56901
 
56902
    public updateSnapdealStockAtEOD_args deepCopy() {
56903
      return new updateSnapdealStockAtEOD_args(this);
56904
    }
56905
 
56906
    @Override
56907
    public void clear() {
56908
      this.allsnapdealstock = null;
56909
    }
56910
 
56911
    public int getAllsnapdealstockSize() {
56912
      return (this.allsnapdealstock == null) ? 0 : this.allsnapdealstock.size();
56913
    }
56914
 
56915
    public java.util.Iterator<SnapdealStockAtEOD> getAllsnapdealstockIterator() {
56916
      return (this.allsnapdealstock == null) ? null : this.allsnapdealstock.iterator();
56917
    }
56918
 
56919
    public void addToAllsnapdealstock(SnapdealStockAtEOD elem) {
56920
      if (this.allsnapdealstock == null) {
56921
        this.allsnapdealstock = new ArrayList<SnapdealStockAtEOD>();
56922
      }
56923
      this.allsnapdealstock.add(elem);
56924
    }
56925
 
56926
    public List<SnapdealStockAtEOD> getAllsnapdealstock() {
56927
      return this.allsnapdealstock;
56928
    }
56929
 
56930
    public void setAllsnapdealstock(List<SnapdealStockAtEOD> allsnapdealstock) {
56931
      this.allsnapdealstock = allsnapdealstock;
56932
    }
56933
 
56934
    public void unsetAllsnapdealstock() {
56935
      this.allsnapdealstock = null;
56936
    }
56937
 
56938
    /** Returns true if field allsnapdealstock is set (has been assigned a value) and false otherwise */
56939
    public boolean isSetAllsnapdealstock() {
56940
      return this.allsnapdealstock != null;
56941
    }
56942
 
56943
    public void setAllsnapdealstockIsSet(boolean value) {
56944
      if (!value) {
56945
        this.allsnapdealstock = null;
56946
      }
56947
    }
56948
 
56949
    public void setFieldValue(_Fields field, Object value) {
56950
      switch (field) {
56951
      case ALLSNAPDEALSTOCK:
56952
        if (value == null) {
56953
          unsetAllsnapdealstock();
56954
        } else {
56955
          setAllsnapdealstock((List<SnapdealStockAtEOD>)value);
56956
        }
56957
        break;
56958
 
56959
      }
56960
    }
56961
 
56962
    public Object getFieldValue(_Fields field) {
56963
      switch (field) {
56964
      case ALLSNAPDEALSTOCK:
56965
        return getAllsnapdealstock();
56966
 
56967
      }
56968
      throw new IllegalStateException();
56969
    }
56970
 
56971
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56972
    public boolean isSet(_Fields field) {
56973
      if (field == null) {
56974
        throw new IllegalArgumentException();
56975
      }
56976
 
56977
      switch (field) {
56978
      case ALLSNAPDEALSTOCK:
56979
        return isSetAllsnapdealstock();
56980
      }
56981
      throw new IllegalStateException();
56982
    }
56983
 
56984
    @Override
56985
    public boolean equals(Object that) {
56986
      if (that == null)
56987
        return false;
56988
      if (that instanceof updateSnapdealStockAtEOD_args)
56989
        return this.equals((updateSnapdealStockAtEOD_args)that);
56990
      return false;
56991
    }
56992
 
56993
    public boolean equals(updateSnapdealStockAtEOD_args that) {
56994
      if (that == null)
56995
        return false;
56996
 
56997
      boolean this_present_allsnapdealstock = true && this.isSetAllsnapdealstock();
56998
      boolean that_present_allsnapdealstock = true && that.isSetAllsnapdealstock();
56999
      if (this_present_allsnapdealstock || that_present_allsnapdealstock) {
57000
        if (!(this_present_allsnapdealstock && that_present_allsnapdealstock))
57001
          return false;
57002
        if (!this.allsnapdealstock.equals(that.allsnapdealstock))
57003
          return false;
57004
      }
57005
 
57006
      return true;
57007
    }
57008
 
57009
    @Override
57010
    public int hashCode() {
57011
      return 0;
57012
    }
57013
 
57014
    public int compareTo(updateSnapdealStockAtEOD_args other) {
57015
      if (!getClass().equals(other.getClass())) {
57016
        return getClass().getName().compareTo(other.getClass().getName());
57017
      }
57018
 
57019
      int lastComparison = 0;
57020
      updateSnapdealStockAtEOD_args typedOther = (updateSnapdealStockAtEOD_args)other;
57021
 
57022
      lastComparison = Boolean.valueOf(isSetAllsnapdealstock()).compareTo(typedOther.isSetAllsnapdealstock());
57023
      if (lastComparison != 0) {
57024
        return lastComparison;
57025
      }
57026
      if (isSetAllsnapdealstock()) {
57027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allsnapdealstock, typedOther.allsnapdealstock);
57028
        if (lastComparison != 0) {
57029
          return lastComparison;
57030
        }
57031
      }
57032
      return 0;
57033
    }
57034
 
57035
    public _Fields fieldForId(int fieldId) {
57036
      return _Fields.findByThriftId(fieldId);
57037
    }
57038
 
57039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57040
      org.apache.thrift.protocol.TField field;
57041
      iprot.readStructBegin();
57042
      while (true)
57043
      {
57044
        field = iprot.readFieldBegin();
57045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57046
          break;
57047
        }
57048
        switch (field.id) {
57049
          case -1: // ALLSNAPDEALSTOCK
57050
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57051
              {
11173 vikram.rag 57052
                org.apache.thrift.protocol.TList _list184 = iprot.readListBegin();
57053
                this.allsnapdealstock = new ArrayList<SnapdealStockAtEOD>(_list184.size);
57054
                for (int _i185 = 0; _i185 < _list184.size; ++_i185)
10546 vikram.rag 57055
                {
11173 vikram.rag 57056
                  SnapdealStockAtEOD _elem186; // required
57057
                  _elem186 = new SnapdealStockAtEOD();
57058
                  _elem186.read(iprot);
57059
                  this.allsnapdealstock.add(_elem186);
10546 vikram.rag 57060
                }
57061
                iprot.readListEnd();
57062
              }
57063
            } else { 
57064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57065
            }
57066
            break;
57067
          default:
57068
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57069
        }
57070
        iprot.readFieldEnd();
57071
      }
57072
      iprot.readStructEnd();
57073
      validate();
57074
    }
57075
 
57076
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57077
      validate();
57078
 
57079
      oprot.writeStructBegin(STRUCT_DESC);
57080
      if (this.allsnapdealstock != null) {
57081
        oprot.writeFieldBegin(ALLSNAPDEALSTOCK_FIELD_DESC);
57082
        {
57083
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allsnapdealstock.size()));
11173 vikram.rag 57084
          for (SnapdealStockAtEOD _iter187 : this.allsnapdealstock)
10546 vikram.rag 57085
          {
11173 vikram.rag 57086
            _iter187.write(oprot);
10546 vikram.rag 57087
          }
57088
          oprot.writeListEnd();
57089
        }
57090
        oprot.writeFieldEnd();
57091
      }
57092
      oprot.writeFieldStop();
57093
      oprot.writeStructEnd();
57094
    }
57095
 
57096
    @Override
57097
    public String toString() {
57098
      StringBuilder sb = new StringBuilder("updateSnapdealStockAtEOD_args(");
57099
      boolean first = true;
57100
 
57101
      sb.append("allsnapdealstock:");
57102
      if (this.allsnapdealstock == null) {
57103
        sb.append("null");
57104
      } else {
57105
        sb.append(this.allsnapdealstock);
57106
      }
57107
      first = false;
57108
      sb.append(")");
57109
      return sb.toString();
57110
    }
57111
 
57112
    public void validate() throws org.apache.thrift.TException {
57113
      // check for required fields
57114
    }
57115
 
57116
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57117
      try {
57118
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57119
      } catch (org.apache.thrift.TException te) {
57120
        throw new java.io.IOException(te);
57121
      }
57122
    }
57123
 
57124
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57125
      try {
57126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57127
      } catch (org.apache.thrift.TException te) {
57128
        throw new java.io.IOException(te);
57129
      }
57130
    }
57131
 
57132
  }
57133
 
57134
  public static class updateSnapdealStockAtEOD_result implements org.apache.thrift.TBase<updateSnapdealStockAtEOD_result, updateSnapdealStockAtEOD_result._Fields>, java.io.Serializable, Cloneable   {
57135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealStockAtEOD_result");
57136
 
57137
 
57138
 
57139
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57140
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57141
;
57142
 
57143
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57144
 
57145
      static {
57146
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57147
          byName.put(field.getFieldName(), field);
57148
        }
57149
      }
57150
 
57151
      /**
57152
       * Find the _Fields constant that matches fieldId, or null if its not found.
57153
       */
57154
      public static _Fields findByThriftId(int fieldId) {
57155
        switch(fieldId) {
57156
          default:
57157
            return null;
57158
        }
57159
      }
57160
 
57161
      /**
57162
       * Find the _Fields constant that matches fieldId, throwing an exception
57163
       * if it is not found.
57164
       */
57165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57166
        _Fields fields = findByThriftId(fieldId);
57167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57168
        return fields;
57169
      }
57170
 
57171
      /**
57172
       * Find the _Fields constant that matches name, or null if its not found.
57173
       */
57174
      public static _Fields findByName(String name) {
57175
        return byName.get(name);
57176
      }
57177
 
57178
      private final short _thriftId;
57179
      private final String _fieldName;
57180
 
57181
      _Fields(short thriftId, String fieldName) {
57182
        _thriftId = thriftId;
57183
        _fieldName = fieldName;
57184
      }
57185
 
57186
      public short getThriftFieldId() {
57187
        return _thriftId;
57188
      }
57189
 
57190
      public String getFieldName() {
57191
        return _fieldName;
57192
      }
57193
    }
57194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57195
    static {
57196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57197
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57198
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealStockAtEOD_result.class, metaDataMap);
57199
    }
57200
 
57201
    public updateSnapdealStockAtEOD_result() {
57202
    }
57203
 
57204
    /**
57205
     * Performs a deep copy on <i>other</i>.
57206
     */
57207
    public updateSnapdealStockAtEOD_result(updateSnapdealStockAtEOD_result other) {
57208
    }
57209
 
57210
    public updateSnapdealStockAtEOD_result deepCopy() {
57211
      return new updateSnapdealStockAtEOD_result(this);
57212
    }
57213
 
57214
    @Override
57215
    public void clear() {
57216
    }
57217
 
57218
    public void setFieldValue(_Fields field, Object value) {
57219
      switch (field) {
57220
      }
57221
    }
57222
 
57223
    public Object getFieldValue(_Fields field) {
57224
      switch (field) {
57225
      }
57226
      throw new IllegalStateException();
57227
    }
57228
 
57229
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57230
    public boolean isSet(_Fields field) {
57231
      if (field == null) {
57232
        throw new IllegalArgumentException();
57233
      }
57234
 
57235
      switch (field) {
57236
      }
57237
      throw new IllegalStateException();
57238
    }
57239
 
57240
    @Override
57241
    public boolean equals(Object that) {
57242
      if (that == null)
57243
        return false;
57244
      if (that instanceof updateSnapdealStockAtEOD_result)
57245
        return this.equals((updateSnapdealStockAtEOD_result)that);
57246
      return false;
57247
    }
57248
 
57249
    public boolean equals(updateSnapdealStockAtEOD_result that) {
57250
      if (that == null)
57251
        return false;
57252
 
57253
      return true;
57254
    }
57255
 
57256
    @Override
57257
    public int hashCode() {
57258
      return 0;
57259
    }
57260
 
57261
    public int compareTo(updateSnapdealStockAtEOD_result other) {
57262
      if (!getClass().equals(other.getClass())) {
57263
        return getClass().getName().compareTo(other.getClass().getName());
57264
      }
57265
 
57266
      int lastComparison = 0;
57267
      updateSnapdealStockAtEOD_result typedOther = (updateSnapdealStockAtEOD_result)other;
57268
 
57269
      return 0;
57270
    }
57271
 
57272
    public _Fields fieldForId(int fieldId) {
57273
      return _Fields.findByThriftId(fieldId);
57274
    }
57275
 
57276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57277
      org.apache.thrift.protocol.TField field;
57278
      iprot.readStructBegin();
57279
      while (true)
57280
      {
57281
        field = iprot.readFieldBegin();
57282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57283
          break;
57284
        }
57285
        switch (field.id) {
57286
          default:
57287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57288
        }
57289
        iprot.readFieldEnd();
57290
      }
57291
      iprot.readStructEnd();
57292
      validate();
57293
    }
57294
 
57295
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57296
      oprot.writeStructBegin(STRUCT_DESC);
57297
 
57298
      oprot.writeFieldStop();
57299
      oprot.writeStructEnd();
57300
    }
57301
 
57302
    @Override
57303
    public String toString() {
57304
      StringBuilder sb = new StringBuilder("updateSnapdealStockAtEOD_result(");
57305
      boolean first = true;
57306
 
57307
      sb.append(")");
57308
      return sb.toString();
57309
    }
57310
 
57311
    public void validate() throws org.apache.thrift.TException {
57312
      // check for required fields
57313
    }
57314
 
57315
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57316
      try {
57317
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57318
      } catch (org.apache.thrift.TException te) {
57319
        throw new java.io.IOException(te);
57320
      }
57321
    }
57322
 
57323
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57324
      try {
57325
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57326
      } catch (org.apache.thrift.TException te) {
57327
        throw new java.io.IOException(te);
57328
      }
57329
    }
57330
 
57331
  }
57332
 
57333
  public static class updateFlipkartStockAtEOD_args implements org.apache.thrift.TBase<updateFlipkartStockAtEOD_args, updateFlipkartStockAtEOD_args._Fields>, java.io.Serializable, Cloneable   {
57334
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartStockAtEOD_args");
57335
 
57336
    private static final org.apache.thrift.protocol.TField ALLFLIPKARTSTOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("allflipkartstock", org.apache.thrift.protocol.TType.LIST, (short)-1);
57337
 
57338
    private List<FlipkartStockAtEOD> allflipkartstock; // required
57339
 
57340
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57341
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57342
      ALLFLIPKARTSTOCK((short)-1, "allflipkartstock");
57343
 
57344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57345
 
57346
      static {
57347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57348
          byName.put(field.getFieldName(), field);
57349
        }
57350
      }
57351
 
57352
      /**
57353
       * Find the _Fields constant that matches fieldId, or null if its not found.
57354
       */
57355
      public static _Fields findByThriftId(int fieldId) {
57356
        switch(fieldId) {
57357
          case -1: // ALLFLIPKARTSTOCK
57358
            return ALLFLIPKARTSTOCK;
57359
          default:
57360
            return null;
57361
        }
57362
      }
57363
 
57364
      /**
57365
       * Find the _Fields constant that matches fieldId, throwing an exception
57366
       * if it is not found.
57367
       */
57368
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57369
        _Fields fields = findByThriftId(fieldId);
57370
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57371
        return fields;
57372
      }
57373
 
57374
      /**
57375
       * Find the _Fields constant that matches name, or null if its not found.
57376
       */
57377
      public static _Fields findByName(String name) {
57378
        return byName.get(name);
57379
      }
57380
 
57381
      private final short _thriftId;
57382
      private final String _fieldName;
57383
 
57384
      _Fields(short thriftId, String fieldName) {
57385
        _thriftId = thriftId;
57386
        _fieldName = fieldName;
57387
      }
57388
 
57389
      public short getThriftFieldId() {
57390
        return _thriftId;
57391
      }
57392
 
57393
      public String getFieldName() {
57394
        return _fieldName;
57395
      }
57396
    }
57397
 
57398
    // isset id assignments
57399
 
57400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57401
    static {
57402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57403
      tmpMap.put(_Fields.ALLFLIPKARTSTOCK, new org.apache.thrift.meta_data.FieldMetaData("allflipkartstock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57404
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
57405
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartStockAtEOD.class))));
57406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartStockAtEOD_args.class, metaDataMap);
57408
    }
57409
 
57410
    public updateFlipkartStockAtEOD_args() {
57411
    }
57412
 
57413
    public updateFlipkartStockAtEOD_args(
57414
      List<FlipkartStockAtEOD> allflipkartstock)
57415
    {
57416
      this();
57417
      this.allflipkartstock = allflipkartstock;
57418
    }
57419
 
57420
    /**
57421
     * Performs a deep copy on <i>other</i>.
57422
     */
57423
    public updateFlipkartStockAtEOD_args(updateFlipkartStockAtEOD_args other) {
57424
      if (other.isSetAllflipkartstock()) {
57425
        List<FlipkartStockAtEOD> __this__allflipkartstock = new ArrayList<FlipkartStockAtEOD>();
57426
        for (FlipkartStockAtEOD other_element : other.allflipkartstock) {
57427
          __this__allflipkartstock.add(new FlipkartStockAtEOD(other_element));
57428
        }
57429
        this.allflipkartstock = __this__allflipkartstock;
57430
      }
57431
    }
57432
 
57433
    public updateFlipkartStockAtEOD_args deepCopy() {
57434
      return new updateFlipkartStockAtEOD_args(this);
57435
    }
57436
 
57437
    @Override
57438
    public void clear() {
57439
      this.allflipkartstock = null;
57440
    }
57441
 
57442
    public int getAllflipkartstockSize() {
57443
      return (this.allflipkartstock == null) ? 0 : this.allflipkartstock.size();
57444
    }
57445
 
57446
    public java.util.Iterator<FlipkartStockAtEOD> getAllflipkartstockIterator() {
57447
      return (this.allflipkartstock == null) ? null : this.allflipkartstock.iterator();
57448
    }
57449
 
57450
    public void addToAllflipkartstock(FlipkartStockAtEOD elem) {
57451
      if (this.allflipkartstock == null) {
57452
        this.allflipkartstock = new ArrayList<FlipkartStockAtEOD>();
57453
      }
57454
      this.allflipkartstock.add(elem);
57455
    }
57456
 
57457
    public List<FlipkartStockAtEOD> getAllflipkartstock() {
57458
      return this.allflipkartstock;
57459
    }
57460
 
57461
    public void setAllflipkartstock(List<FlipkartStockAtEOD> allflipkartstock) {
57462
      this.allflipkartstock = allflipkartstock;
57463
    }
57464
 
57465
    public void unsetAllflipkartstock() {
57466
      this.allflipkartstock = null;
57467
    }
57468
 
57469
    /** Returns true if field allflipkartstock is set (has been assigned a value) and false otherwise */
57470
    public boolean isSetAllflipkartstock() {
57471
      return this.allflipkartstock != null;
57472
    }
57473
 
57474
    public void setAllflipkartstockIsSet(boolean value) {
57475
      if (!value) {
57476
        this.allflipkartstock = null;
57477
      }
57478
    }
57479
 
57480
    public void setFieldValue(_Fields field, Object value) {
57481
      switch (field) {
57482
      case ALLFLIPKARTSTOCK:
57483
        if (value == null) {
57484
          unsetAllflipkartstock();
57485
        } else {
57486
          setAllflipkartstock((List<FlipkartStockAtEOD>)value);
57487
        }
57488
        break;
57489
 
57490
      }
57491
    }
57492
 
57493
    public Object getFieldValue(_Fields field) {
57494
      switch (field) {
57495
      case ALLFLIPKARTSTOCK:
57496
        return getAllflipkartstock();
57497
 
57498
      }
57499
      throw new IllegalStateException();
57500
    }
57501
 
57502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57503
    public boolean isSet(_Fields field) {
57504
      if (field == null) {
57505
        throw new IllegalArgumentException();
57506
      }
57507
 
57508
      switch (field) {
57509
      case ALLFLIPKARTSTOCK:
57510
        return isSetAllflipkartstock();
57511
      }
57512
      throw new IllegalStateException();
57513
    }
57514
 
57515
    @Override
57516
    public boolean equals(Object that) {
57517
      if (that == null)
57518
        return false;
57519
      if (that instanceof updateFlipkartStockAtEOD_args)
57520
        return this.equals((updateFlipkartStockAtEOD_args)that);
57521
      return false;
57522
    }
57523
 
57524
    public boolean equals(updateFlipkartStockAtEOD_args that) {
57525
      if (that == null)
57526
        return false;
57527
 
57528
      boolean this_present_allflipkartstock = true && this.isSetAllflipkartstock();
57529
      boolean that_present_allflipkartstock = true && that.isSetAllflipkartstock();
57530
      if (this_present_allflipkartstock || that_present_allflipkartstock) {
57531
        if (!(this_present_allflipkartstock && that_present_allflipkartstock))
57532
          return false;
57533
        if (!this.allflipkartstock.equals(that.allflipkartstock))
57534
          return false;
57535
      }
57536
 
57537
      return true;
57538
    }
57539
 
57540
    @Override
57541
    public int hashCode() {
57542
      return 0;
57543
    }
57544
 
57545
    public int compareTo(updateFlipkartStockAtEOD_args other) {
57546
      if (!getClass().equals(other.getClass())) {
57547
        return getClass().getName().compareTo(other.getClass().getName());
57548
      }
57549
 
57550
      int lastComparison = 0;
57551
      updateFlipkartStockAtEOD_args typedOther = (updateFlipkartStockAtEOD_args)other;
57552
 
57553
      lastComparison = Boolean.valueOf(isSetAllflipkartstock()).compareTo(typedOther.isSetAllflipkartstock());
57554
      if (lastComparison != 0) {
57555
        return lastComparison;
57556
      }
57557
      if (isSetAllflipkartstock()) {
57558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allflipkartstock, typedOther.allflipkartstock);
57559
        if (lastComparison != 0) {
57560
          return lastComparison;
57561
        }
57562
      }
57563
      return 0;
57564
    }
57565
 
57566
    public _Fields fieldForId(int fieldId) {
57567
      return _Fields.findByThriftId(fieldId);
57568
    }
57569
 
57570
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57571
      org.apache.thrift.protocol.TField field;
57572
      iprot.readStructBegin();
57573
      while (true)
57574
      {
57575
        field = iprot.readFieldBegin();
57576
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57577
          break;
57578
        }
57579
        switch (field.id) {
57580
          case -1: // ALLFLIPKARTSTOCK
57581
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57582
              {
11173 vikram.rag 57583
                org.apache.thrift.protocol.TList _list188 = iprot.readListBegin();
57584
                this.allflipkartstock = new ArrayList<FlipkartStockAtEOD>(_list188.size);
57585
                for (int _i189 = 0; _i189 < _list188.size; ++_i189)
10546 vikram.rag 57586
                {
11173 vikram.rag 57587
                  FlipkartStockAtEOD _elem190; // required
57588
                  _elem190 = new FlipkartStockAtEOD();
57589
                  _elem190.read(iprot);
57590
                  this.allflipkartstock.add(_elem190);
10546 vikram.rag 57591
                }
57592
                iprot.readListEnd();
57593
              }
57594
            } else { 
57595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57596
            }
57597
            break;
57598
          default:
57599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57600
        }
57601
        iprot.readFieldEnd();
57602
      }
57603
      iprot.readStructEnd();
57604
      validate();
57605
    }
57606
 
57607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57608
      validate();
57609
 
57610
      oprot.writeStructBegin(STRUCT_DESC);
57611
      if (this.allflipkartstock != null) {
57612
        oprot.writeFieldBegin(ALLFLIPKARTSTOCK_FIELD_DESC);
57613
        {
57614
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allflipkartstock.size()));
11173 vikram.rag 57615
          for (FlipkartStockAtEOD _iter191 : this.allflipkartstock)
10546 vikram.rag 57616
          {
11173 vikram.rag 57617
            _iter191.write(oprot);
10546 vikram.rag 57618
          }
57619
          oprot.writeListEnd();
57620
        }
57621
        oprot.writeFieldEnd();
57622
      }
57623
      oprot.writeFieldStop();
57624
      oprot.writeStructEnd();
57625
    }
57626
 
57627
    @Override
57628
    public String toString() {
57629
      StringBuilder sb = new StringBuilder("updateFlipkartStockAtEOD_args(");
57630
      boolean first = true;
57631
 
57632
      sb.append("allflipkartstock:");
57633
      if (this.allflipkartstock == null) {
57634
        sb.append("null");
57635
      } else {
57636
        sb.append(this.allflipkartstock);
57637
      }
57638
      first = false;
57639
      sb.append(")");
57640
      return sb.toString();
57641
    }
57642
 
57643
    public void validate() throws org.apache.thrift.TException {
57644
      // check for required fields
57645
    }
57646
 
57647
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57648
      try {
57649
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57650
      } catch (org.apache.thrift.TException te) {
57651
        throw new java.io.IOException(te);
57652
      }
57653
    }
57654
 
57655
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57656
      try {
57657
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57658
      } catch (org.apache.thrift.TException te) {
57659
        throw new java.io.IOException(te);
57660
      }
57661
    }
57662
 
57663
  }
57664
 
57665
  public static class updateFlipkartStockAtEOD_result implements org.apache.thrift.TBase<updateFlipkartStockAtEOD_result, updateFlipkartStockAtEOD_result._Fields>, java.io.Serializable, Cloneable   {
57666
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartStockAtEOD_result");
57667
 
57668
 
57669
 
57670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57671
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57672
;
57673
 
57674
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57675
 
57676
      static {
57677
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57678
          byName.put(field.getFieldName(), field);
57679
        }
57680
      }
57681
 
57682
      /**
57683
       * Find the _Fields constant that matches fieldId, or null if its not found.
57684
       */
57685
      public static _Fields findByThriftId(int fieldId) {
57686
        switch(fieldId) {
57687
          default:
57688
            return null;
57689
        }
57690
      }
57691
 
57692
      /**
57693
       * Find the _Fields constant that matches fieldId, throwing an exception
57694
       * if it is not found.
57695
       */
57696
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57697
        _Fields fields = findByThriftId(fieldId);
57698
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57699
        return fields;
57700
      }
57701
 
57702
      /**
57703
       * Find the _Fields constant that matches name, or null if its not found.
57704
       */
57705
      public static _Fields findByName(String name) {
57706
        return byName.get(name);
57707
      }
57708
 
57709
      private final short _thriftId;
57710
      private final String _fieldName;
57711
 
57712
      _Fields(short thriftId, String fieldName) {
57713
        _thriftId = thriftId;
57714
        _fieldName = fieldName;
57715
      }
57716
 
57717
      public short getThriftFieldId() {
57718
        return _thriftId;
57719
      }
57720
 
57721
      public String getFieldName() {
57722
        return _fieldName;
57723
      }
57724
    }
57725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57726
    static {
57727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57728
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57729
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartStockAtEOD_result.class, metaDataMap);
57730
    }
57731
 
57732
    public updateFlipkartStockAtEOD_result() {
57733
    }
57734
 
57735
    /**
57736
     * Performs a deep copy on <i>other</i>.
57737
     */
57738
    public updateFlipkartStockAtEOD_result(updateFlipkartStockAtEOD_result other) {
57739
    }
57740
 
57741
    public updateFlipkartStockAtEOD_result deepCopy() {
57742
      return new updateFlipkartStockAtEOD_result(this);
57743
    }
57744
 
57745
    @Override
57746
    public void clear() {
57747
    }
57748
 
57749
    public void setFieldValue(_Fields field, Object value) {
57750
      switch (field) {
57751
      }
57752
    }
57753
 
57754
    public Object getFieldValue(_Fields field) {
57755
      switch (field) {
57756
      }
57757
      throw new IllegalStateException();
57758
    }
57759
 
57760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57761
    public boolean isSet(_Fields field) {
57762
      if (field == null) {
57763
        throw new IllegalArgumentException();
57764
      }
57765
 
57766
      switch (field) {
57767
      }
57768
      throw new IllegalStateException();
57769
    }
57770
 
57771
    @Override
57772
    public boolean equals(Object that) {
57773
      if (that == null)
57774
        return false;
57775
      if (that instanceof updateFlipkartStockAtEOD_result)
57776
        return this.equals((updateFlipkartStockAtEOD_result)that);
57777
      return false;
57778
    }
57779
 
57780
    public boolean equals(updateFlipkartStockAtEOD_result that) {
57781
      if (that == null)
57782
        return false;
57783
 
57784
      return true;
57785
    }
57786
 
57787
    @Override
57788
    public int hashCode() {
57789
      return 0;
57790
    }
57791
 
57792
    public int compareTo(updateFlipkartStockAtEOD_result other) {
57793
      if (!getClass().equals(other.getClass())) {
57794
        return getClass().getName().compareTo(other.getClass().getName());
57795
      }
57796
 
57797
      int lastComparison = 0;
57798
      updateFlipkartStockAtEOD_result typedOther = (updateFlipkartStockAtEOD_result)other;
57799
 
57800
      return 0;
57801
    }
57802
 
57803
    public _Fields fieldForId(int fieldId) {
57804
      return _Fields.findByThriftId(fieldId);
57805
    }
57806
 
57807
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57808
      org.apache.thrift.protocol.TField field;
57809
      iprot.readStructBegin();
57810
      while (true)
57811
      {
57812
        field = iprot.readFieldBegin();
57813
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57814
          break;
57815
        }
57816
        switch (field.id) {
57817
          default:
57818
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57819
        }
57820
        iprot.readFieldEnd();
57821
      }
57822
      iprot.readStructEnd();
57823
      validate();
57824
    }
57825
 
57826
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57827
      oprot.writeStructBegin(STRUCT_DESC);
57828
 
57829
      oprot.writeFieldStop();
57830
      oprot.writeStructEnd();
57831
    }
57832
 
57833
    @Override
57834
    public String toString() {
57835
      StringBuilder sb = new StringBuilder("updateFlipkartStockAtEOD_result(");
57836
      boolean first = true;
57837
 
57838
      sb.append(")");
57839
      return sb.toString();
57840
    }
57841
 
57842
    public void validate() throws org.apache.thrift.TException {
57843
      // check for required fields
57844
    }
57845
 
57846
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57847
      try {
57848
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57849
      } catch (org.apache.thrift.TException te) {
57850
        throw new java.io.IOException(te);
57851
      }
57852
    }
57853
 
57854
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57855
      try {
57856
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57857
      } catch (org.apache.thrift.TException te) {
57858
        throw new java.io.IOException(te);
57859
      }
57860
    }
57861
 
57862
  }
57863
 
5945 mandeep.dh 57864
}