Subversion Repositories SmartDukaan

Rev

Rev 17990 | Rev 19413 | 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
 
12280 amit.gupta 374
    public Map<Long,StateInfo> getStateMaster() throws org.apache.thrift.TException;
10485 vikram.rag 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
 
12363 kshitij.so 380
    public double getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException;
381
 
382
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException;
383
 
17990 kshitij.so 384
    public boolean updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException;
385
 
19247 kshitij.so 386
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException;
387
 
388
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException;
389
 
5945 mandeep.dh 390
  }
391
 
392
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
393
 
394
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
395
 
396
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
397
 
398
    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;
399
 
400
    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;
401
 
402
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
403
 
404
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
405
 
406
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
407
 
408
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
409
 
5978 rajveer 410
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 411
 
412
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
413
 
414
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
415
 
416
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
417
 
5967 rajveer 418
    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 419
 
5967 rajveer 420
    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 421
 
7968 amar.kumar 422
    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;
423
 
5967 rajveer 424
    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;
425
 
5945 mandeep.dh 426
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
427
 
428
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
429
 
430
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
431
 
432
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
433
 
434
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
435
 
436
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
437
 
438
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
439
 
440
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
441
 
442
    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;
443
 
444
    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;
445
 
446
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
447
 
448
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
449
 
450
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
451
 
452
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
453
 
454
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
455
 
456
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
457
 
458
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
459
 
460
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
461
 
462
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
463
 
464
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
465
 
6096 amit.gupta 466
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
467
 
7718 amar.kumar 468
    public void getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
6467 amar.kumar 469
 
6484 amar.kumar 470
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
471
 
6531 vikram.rag 472
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException;
473
 
474
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException;
475
 
476
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException;
477
 
478
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException;
479
 
480
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
481
 
482
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
483
 
6821 amar.kumar 484
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
485
 
486
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
487
 
488
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
489
 
9665 rajveer 490
    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 491
 
10126 amar.kumar 492
    public void getOosStatusesForXDays(int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDays_call> resultHandler) throws org.apache.thrift.TException;
493
 
494
    public void getAllVendorItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
495
 
6857 amar.kumar 496
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
497
 
7149 amar.kumar 498
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException;
499
 
7281 kshitij.so 500
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseName_call> resultHandler) throws org.apache.thrift.TException;
501
 
502
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
503
 
504
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException;
505
 
10450 vikram.rag 506
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
7281 kshitij.so 507
 
7972 amar.kumar 508
    public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException;
509
 
8282 kshitij.so 510
    public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
511
 
8182 amar.kumar 512
    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;
513
 
8282 kshitij.so 514
    public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
515
 
8363 vikram.rag 516
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
8282 kshitij.so 517
 
8363 vikram.rag 518
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException;
519
 
8958 vikram.rag 520
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException;
521
 
9404 vikram.rag 522
    public void getSnapdealInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
523
 
524
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
525
 
526
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
527
 
9640 amar.kumar 528
    public void getHeldInventoryMapForItem(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHeldInventoryMapForItem_call> resultHandler) throws org.apache.thrift.TException;
529
 
9482 vikram.rag 530
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
531
 
9495 vikram.rag 532
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
533
 
534
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
535
 
9761 amar.kumar 536
    public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException;
537
 
10450 vikram.rag 538
    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 539
 
540
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
541
 
10097 kshitij.so 542
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
543
 
10485 vikram.rag 544
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateMaster_call> resultHandler) throws org.apache.thrift.TException;
545
 
10546 vikram.rag 546
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
547
 
548
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
549
 
12363 kshitij.so 550
    public void getWanNlcForSource(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWanNlcForSource_call> resultHandler) throws org.apache.thrift.TException;
551
 
552
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
553
 
17990 kshitij.so 554
    public void updateItemAvailabilityForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemAvailabilityForItemIds_call> resultHandler) throws org.apache.thrift.TException;
555
 
19247 kshitij.so 556
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException;
557
 
558
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException;
559
 
5945 mandeep.dh 560
  }
561
 
562
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
563
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
564
      public Factory() {}
565
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
566
        return new Client(prot);
567
      }
568
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
569
        return new Client(iprot, oprot);
570
      }
571
    }
572
 
573
    public Client(org.apache.thrift.protocol.TProtocol prot)
574
    {
575
      super(prot, prot);
576
    }
577
 
578
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
579
      super(iprot, oprot);
580
    }
581
 
582
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
583
    {
584
      send_addWarehouse(warehouse);
585
      return recv_addWarehouse();
586
    }
587
 
588
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
589
    {
590
      addWarehouse_args args = new addWarehouse_args();
591
      args.setWarehouse(warehouse);
592
      sendBase("addWarehouse", args);
593
    }
594
 
595
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
596
    {
597
      addWarehouse_result result = new addWarehouse_result();
598
      receiveBase(result, "addWarehouse");
599
      if (result.isSetSuccess()) {
600
        return result.success;
601
      }
602
      if (result.cex != null) {
603
        throw result.cex;
604
      }
605
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
606
    }
607
 
608
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
609
    {
610
      send_addVendor(vendor);
611
      return recv_addVendor();
612
    }
613
 
614
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
615
    {
616
      addVendor_args args = new addVendor_args();
617
      args.setVendor(vendor);
618
      sendBase("addVendor", args);
619
    }
620
 
621
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
622
    {
623
      addVendor_result result = new addVendor_result();
624
      receiveBase(result, "addVendor");
625
      if (result.isSetSuccess()) {
626
        return result.success;
627
      }
628
      if (result.cex != null) {
629
        throw result.cex;
630
      }
631
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
632
    }
633
 
634
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
635
    {
636
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
637
      recv_updateInventoryHistory();
638
    }
639
 
640
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
641
    {
642
      updateInventoryHistory_args args = new updateInventoryHistory_args();
643
      args.setWarehouse_id(warehouse_id);
644
      args.setTimestamp(timestamp);
645
      args.setAvailability(availability);
646
      sendBase("updateInventoryHistory", args);
647
    }
648
 
649
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
650
    {
651
      updateInventoryHistory_result result = new updateInventoryHistory_result();
652
      receiveBase(result, "updateInventoryHistory");
653
      if (result.cex != null) {
654
        throw result.cex;
655
      }
656
      return;
657
    }
658
 
659
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
660
    {
661
      send_updateInventory(warehouse_id, timestamp, availability);
662
      recv_updateInventory();
663
    }
664
 
665
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
666
    {
667
      updateInventory_args args = new updateInventory_args();
668
      args.setWarehouse_id(warehouse_id);
669
      args.setTimestamp(timestamp);
670
      args.setAvailability(availability);
671
      sendBase("updateInventory", args);
672
    }
673
 
674
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
675
    {
676
      updateInventory_result result = new updateInventory_result();
677
      receiveBase(result, "updateInventory");
678
      if (result.cex != null) {
679
        throw result.cex;
680
      }
681
      return;
682
    }
683
 
684
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
685
    {
686
      send_addInventory(itemId, warehouseId, quantity);
687
      recv_addInventory();
688
    }
689
 
690
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
691
    {
692
      addInventory_args args = new addInventory_args();
693
      args.setItemId(itemId);
694
      args.setWarehouseId(warehouseId);
695
      args.setQuantity(quantity);
696
      sendBase("addInventory", args);
697
    }
698
 
699
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
700
    {
701
      addInventory_result result = new addInventory_result();
702
      receiveBase(result, "addInventory");
703
      if (result.cex != null) {
704
        throw result.cex;
705
      }
706
      return;
707
    }
708
 
709
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
710
    {
711
      send_retireWarehouse(warehouse_id);
712
      recv_retireWarehouse();
713
    }
714
 
715
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
716
    {
717
      retireWarehouse_args args = new retireWarehouse_args();
718
      args.setWarehouse_id(warehouse_id);
719
      sendBase("retireWarehouse", args);
720
    }
721
 
722
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
723
    {
724
      retireWarehouse_result result = new retireWarehouse_result();
725
      receiveBase(result, "retireWarehouse");
726
      if (result.cex != null) {
727
        throw result.cex;
728
      }
729
      return;
730
    }
731
 
732
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
733
    {
734
      send_getItemInventoryByItemId(item_id);
735
      return recv_getItemInventoryByItemId();
736
    }
737
 
738
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
739
    {
740
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
741
      args.setItem_id(item_id);
742
      sendBase("getItemInventoryByItemId", args);
743
    }
744
 
745
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
746
    {
747
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
748
      receiveBase(result, "getItemInventoryByItemId");
749
      if (result.isSetSuccess()) {
750
        return result.success;
751
      }
752
      if (result.cex != null) {
753
        throw result.cex;
754
      }
755
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
756
    }
757
 
758
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
759
    {
760
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
761
      return recv_getItemAvailibilityAtWarehouse();
762
    }
763
 
764
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
765
    {
766
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
767
      args.setWarehouse_id(warehouse_id);
768
      args.setItem_id(item_id);
769
      sendBase("getItemAvailibilityAtWarehouse", args);
770
    }
771
 
772
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
773
    {
774
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
775
      receiveBase(result, "getItemAvailibilityAtWarehouse");
776
      if (result.isSetSuccess()) {
777
        return result.success;
778
      }
779
      if (result.cex != null) {
780
        throw result.cex;
781
      }
782
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
783
    }
784
 
5978 rajveer 785
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 786
    {
5978 rajveer 787
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 788
      return recv_getItemAvailabilityAtLocation();
789
    }
790
 
5978 rajveer 791
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 792
    {
793
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
794
      args.setItemId(itemId);
5978 rajveer 795
      args.setSourceId(sourceId);
5945 mandeep.dh 796
      sendBase("getItemAvailabilityAtLocation", args);
797
    }
798
 
799
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
800
    {
801
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
802
      receiveBase(result, "getItemAvailabilityAtLocation");
803
      if (result.isSetSuccess()) {
804
        return result.success;
805
      }
806
      if (result.isex != null) {
807
        throw result.isex;
808
      }
809
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
810
    }
811
 
812
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
813
    {
814
      send_getAllWarehouses(isActive);
815
      return recv_getAllWarehouses();
816
    }
817
 
818
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
819
    {
820
      getAllWarehouses_args args = new getAllWarehouses_args();
821
      args.setIsActive(isActive);
822
      sendBase("getAllWarehouses", args);
823
    }
824
 
825
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
826
    {
827
      getAllWarehouses_result result = new getAllWarehouses_result();
828
      receiveBase(result, "getAllWarehouses");
829
      if (result.isSetSuccess()) {
830
        return result.success;
831
      }
832
      if (result.cex != null) {
833
        throw result.cex;
834
      }
835
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
836
    }
837
 
838
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
839
    {
840
      send_getWarehouse(warehouse_id);
841
      return recv_getWarehouse();
842
    }
843
 
844
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
845
    {
846
      getWarehouse_args args = new getWarehouse_args();
847
      args.setWarehouse_id(warehouse_id);
848
      sendBase("getWarehouse", args);
849
    }
850
 
851
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
852
    {
853
      getWarehouse_result result = new getWarehouse_result();
854
      receiveBase(result, "getWarehouse");
855
      if (result.isSetSuccess()) {
856
        return result.success;
857
      }
858
      if (result.cex != null) {
859
        throw result.cex;
860
      }
861
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
862
    }
863
 
864
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
865
    {
866
      send_getAllItemsForWarehouse(warehouse_id);
867
      return recv_getAllItemsForWarehouse();
868
    }
869
 
870
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
871
    {
872
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
873
      args.setWarehouse_id(warehouse_id);
874
      sendBase("getAllItemsForWarehouse", args);
875
    }
876
 
877
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
878
    {
879
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
880
      receiveBase(result, "getAllItemsForWarehouse");
881
      if (result.isSetSuccess()) {
882
        return result.success;
883
      }
884
      if (result.cex != null) {
885
        throw result.cex;
886
      }
887
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
888
    }
889
 
5967 rajveer 890
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 891
    {
5967 rajveer 892
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
893
      return recv_isOrderBillable();
894
    }
895
 
896
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
897
    {
898
      isOrderBillable_args args = new isOrderBillable_args();
899
      args.setItemId(itemId);
900
      args.setWarehouseId(warehouseId);
901
      args.setSourceId(sourceId);
902
      args.setOrderId(orderId);
903
      sendBase("isOrderBillable", args);
904
    }
905
 
906
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
907
    {
908
      isOrderBillable_result result = new isOrderBillable_result();
909
      receiveBase(result, "isOrderBillable");
910
      if (result.isSetSuccess()) {
911
        return result.success;
912
      }
913
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
914
    }
915
 
916
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
917
    {
918
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 919
      return recv_reserveItemInWarehouse();
920
    }
921
 
5967 rajveer 922
    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 923
    {
924
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
925
      args.setItemId(itemId);
926
      args.setWarehouseId(warehouseId);
5967 rajveer 927
      args.setSourceId(sourceId);
928
      args.setOrderId(orderId);
929
      args.setCreatedTimestamp(createdTimestamp);
930
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 931
      args.setQuantity(quantity);
932
      sendBase("reserveItemInWarehouse", args);
933
    }
934
 
935
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
936
    {
937
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
938
      receiveBase(result, "reserveItemInWarehouse");
939
      if (result.isSetSuccess()) {
940
        return result.success;
941
      }
942
      if (result.cex != null) {
943
        throw result.cex;
944
      }
945
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
946
    }
947
 
7968 amar.kumar 948
    public boolean updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
949
    {
950
      send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
951
      return recv_updateReservationForOrder();
952
    }
953
 
954
    public void send_updateReservationForOrder(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws org.apache.thrift.TException
955
    {
956
      updateReservationForOrder_args args = new updateReservationForOrder_args();
957
      args.setItemId(itemId);
958
      args.setWarehouseId(warehouseId);
959
      args.setSourceId(sourceId);
960
      args.setOrderId(orderId);
961
      args.setCreatedTimestamp(createdTimestamp);
962
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
963
      args.setQuantity(quantity);
964
      sendBase("updateReservationForOrder", args);
965
    }
966
 
967
    public boolean recv_updateReservationForOrder() throws InventoryServiceException, org.apache.thrift.TException
968
    {
969
      updateReservationForOrder_result result = new updateReservationForOrder_result();
970
      receiveBase(result, "updateReservationForOrder");
971
      if (result.isSetSuccess()) {
972
        return result.success;
973
      }
974
      if (result.cex != null) {
975
        throw result.cex;
976
      }
977
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
978
    }
979
 
5967 rajveer 980
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 981
    {
5967 rajveer 982
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 983
      return recv_reduceReservationCount();
984
    }
985
 
5967 rajveer 986
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 987
    {
988
      reduceReservationCount_args args = new reduceReservationCount_args();
989
      args.setItemId(itemId);
990
      args.setWarehouseId(warehouseId);
5967 rajveer 991
      args.setSourceId(sourceId);
992
      args.setOrderId(orderId);
5945 mandeep.dh 993
      args.setQuantity(quantity);
994
      sendBase("reduceReservationCount", args);
995
    }
996
 
997
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
998
    {
999
      reduceReservationCount_result result = new reduceReservationCount_result();
1000
      receiveBase(result, "reduceReservationCount");
1001
      if (result.isSetSuccess()) {
1002
        return result.success;
1003
      }
1004
      if (result.cex != null) {
1005
        throw result.cex;
1006
      }
1007
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1008
    }
1009
 
1010
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
1011
    {
1012
      send_getItemPricing(itemId, vendorId);
1013
      return recv_getItemPricing();
1014
    }
1015
 
1016
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
1017
    {
1018
      getItemPricing_args args = new getItemPricing_args();
1019
      args.setItemId(itemId);
1020
      args.setVendorId(vendorId);
1021
      sendBase("getItemPricing", args);
1022
    }
1023
 
1024
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
1025
    {
1026
      getItemPricing_result result = new getItemPricing_result();
1027
      receiveBase(result, "getItemPricing");
1028
      if (result.isSetSuccess()) {
1029
        return result.success;
1030
      }
1031
      if (result.cex != null) {
1032
        throw result.cex;
1033
      }
1034
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1035
    }
1036
 
1037
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
1038
    {
1039
      send_getAllItemPricing(itemId);
1040
      return recv_getAllItemPricing();
1041
    }
1042
 
1043
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
1044
    {
1045
      getAllItemPricing_args args = new getAllItemPricing_args();
1046
      args.setItemId(itemId);
1047
      sendBase("getAllItemPricing", args);
1048
    }
1049
 
1050
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
1051
    {
1052
      getAllItemPricing_result result = new getAllItemPricing_result();
1053
      receiveBase(result, "getAllItemPricing");
1054
      if (result.isSetSuccess()) {
1055
        return result.success;
1056
      }
1057
      if (result.cex != null) {
1058
        throw result.cex;
1059
      }
1060
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1061
    }
1062
 
1063
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
1064
    {
1065
      send_addVendorItemPricing(vendorItemPricing);
1066
      recv_addVendorItemPricing();
1067
    }
1068
 
1069
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
1070
    {
1071
      addVendorItemPricing_args args = new addVendorItemPricing_args();
1072
      args.setVendorItemPricing(vendorItemPricing);
1073
      sendBase("addVendorItemPricing", args);
1074
    }
1075
 
1076
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
1077
    {
1078
      addVendorItemPricing_result result = new addVendorItemPricing_result();
1079
      receiveBase(result, "addVendorItemPricing");
1080
      if (result.cex != null) {
1081
        throw result.cex;
1082
      }
1083
      return;
1084
    }
1085
 
1086
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
1087
    {
1088
      send_getVendor(vendorId);
1089
      return recv_getVendor();
1090
    }
1091
 
1092
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
1093
    {
1094
      getVendor_args args = new getVendor_args();
1095
      args.setVendorId(vendorId);
1096
      sendBase("getVendor", args);
1097
    }
1098
 
1099
    public Vendor recv_getVendor() throws org.apache.thrift.TException
1100
    {
1101
      getVendor_result result = new getVendor_result();
1102
      receiveBase(result, "getVendor");
1103
      if (result.isSetSuccess()) {
1104
        return result.success;
1105
      }
1106
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1107
    }
1108
 
1109
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
1110
    {
1111
      send_getAllVendors();
1112
      return recv_getAllVendors();
1113
    }
1114
 
1115
    public void send_getAllVendors() throws org.apache.thrift.TException
1116
    {
1117
      getAllVendors_args args = new getAllVendors_args();
1118
      sendBase("getAllVendors", args);
1119
    }
1120
 
1121
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
1122
    {
1123
      getAllVendors_result result = new getAllVendors_result();
1124
      receiveBase(result, "getAllVendors");
1125
      if (result.isSetSuccess()) {
1126
        return result.success;
1127
      }
1128
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1129
    }
1130
 
1131
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
1132
    {
1133
      send_addVendorItemMapping(key, vendorItemMapping);
1134
      recv_addVendorItemMapping();
1135
    }
1136
 
1137
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
1138
    {
1139
      addVendorItemMapping_args args = new addVendorItemMapping_args();
1140
      args.setKey(key);
1141
      args.setVendorItemMapping(vendorItemMapping);
1142
      sendBase("addVendorItemMapping", args);
1143
    }
1144
 
1145
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
1146
    {
1147
      addVendorItemMapping_result result = new addVendorItemMapping_result();
1148
      receiveBase(result, "addVendorItemMapping");
1149
      if (result.cex != null) {
1150
        throw result.cex;
1151
      }
1152
      return;
1153
    }
1154
 
1155
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
1156
    {
1157
      send_getVendorItemMappings(itemId);
1158
      return recv_getVendorItemMappings();
1159
    }
1160
 
1161
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
1162
    {
1163
      getVendorItemMappings_args args = new getVendorItemMappings_args();
1164
      args.setItemId(itemId);
1165
      sendBase("getVendorItemMappings", args);
1166
    }
1167
 
1168
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
1169
    {
1170
      getVendorItemMappings_result result = new getVendorItemMappings_result();
1171
      receiveBase(result, "getVendorItemMappings");
1172
      if (result.isSetSuccess()) {
1173
        return result.success;
1174
      }
1175
      if (result.cex != null) {
1176
        throw result.cex;
1177
      }
1178
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1179
    }
1180
 
1181
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1182
    {
1183
      send_getPendingOrdersInventory(vendorid);
1184
      return recv_getPendingOrdersInventory();
1185
    }
1186
 
1187
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1188
    {
1189
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
1190
      args.setVendorid(vendorid);
1191
      sendBase("getPendingOrdersInventory", args);
1192
    }
1193
 
1194
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
1195
    {
1196
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
1197
      receiveBase(result, "getPendingOrdersInventory");
1198
      if (result.isSetSuccess()) {
1199
        return result.success;
1200
      }
1201
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1202
    }
1203
 
1204
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1205
    {
1206
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
1207
      return recv_getWarehouses();
1208
    }
1209
 
1210
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1211
    {
1212
      getWarehouses_args args = new getWarehouses_args();
1213
      args.setWarehouseType(warehouseType);
1214
      args.setInventoryType(inventoryType);
1215
      args.setVendorId(vendorId);
1216
      args.setBillingWarehouseId(billingWarehouseId);
1217
      args.setShippingWarehouseId(shippingWarehouseId);
1218
      sendBase("getWarehouses", args);
1219
    }
1220
 
1221
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
1222
    {
1223
      getWarehouses_result result = new getWarehouses_result();
1224
      receiveBase(result, "getWarehouses");
1225
      if (result.isSetSuccess()) {
1226
        return result.success;
1227
      }
1228
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1229
    }
1230
 
1231
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1232
    {
1233
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1234
      recv_resetAvailability();
1235
    }
1236
 
1237
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1238
    {
1239
      resetAvailability_args args = new resetAvailability_args();
1240
      args.setItemKey(itemKey);
1241
      args.setVendorId(vendorId);
1242
      args.setQuantity(quantity);
1243
      args.setWarehouseId(warehouseId);
1244
      sendBase("resetAvailability", args);
1245
    }
1246
 
1247
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1248
    {
1249
      resetAvailability_result result = new resetAvailability_result();
1250
      receiveBase(result, "resetAvailability");
1251
      if (result.cex != null) {
1252
        throw result.cex;
1253
      }
1254
      return;
1255
    }
1256
 
1257
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1258
    {
1259
      send_resetAvailabilityForWarehouse(warehouseId);
1260
      recv_resetAvailabilityForWarehouse();
1261
    }
1262
 
1263
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1264
    {
1265
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1266
      args.setWarehouseId(warehouseId);
1267
      sendBase("resetAvailabilityForWarehouse", args);
1268
    }
1269
 
1270
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1271
    {
1272
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1273
      receiveBase(result, "resetAvailabilityForWarehouse");
1274
      if (result.cex != null) {
1275
        throw result.cex;
1276
      }
1277
      return;
1278
    }
1279
 
1280
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1281
    {
1282
      send_getItemKeysToBeProcessed(warehouseId);
1283
      return recv_getItemKeysToBeProcessed();
1284
    }
1285
 
1286
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1287
    {
1288
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1289
      args.setWarehouseId(warehouseId);
1290
      sendBase("getItemKeysToBeProcessed", args);
1291
    }
1292
 
1293
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1294
    {
1295
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1296
      receiveBase(result, "getItemKeysToBeProcessed");
1297
      if (result.isSetSuccess()) {
1298
        return result.success;
1299
      }
1300
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1301
    }
1302
 
1303
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1304
    {
1305
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1306
      recv_markMissedInventoryUpdatesAsProcessed();
1307
    }
1308
 
1309
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1310
    {
1311
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1312
      args.setItemKey(itemKey);
1313
      args.setWarehouseId(warehouseId);
1314
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1315
    }
1316
 
1317
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1318
    {
1319
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1320
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1321
      return;
1322
    }
1323
 
1324
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1325
    {
1326
      send_getIgnoredItemKeys();
1327
      return recv_getIgnoredItemKeys();
1328
    }
1329
 
1330
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1331
    {
1332
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1333
      sendBase("getIgnoredItemKeys", args);
1334
    }
1335
 
1336
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1337
    {
1338
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1339
      receiveBase(result, "getIgnoredItemKeys");
1340
      if (result.isSetSuccess()) {
1341
        return result.success;
1342
      }
1343
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1344
    }
1345
 
1346
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1347
    {
1348
      send_addBadInventory(itemId, warehouseId, quantity);
1349
      recv_addBadInventory();
1350
    }
1351
 
1352
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1353
    {
1354
      addBadInventory_args args = new addBadInventory_args();
1355
      args.setItemId(itemId);
1356
      args.setWarehouseId(warehouseId);
1357
      args.setQuantity(quantity);
1358
      sendBase("addBadInventory", args);
1359
    }
1360
 
1361
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1362
    {
1363
      addBadInventory_result result = new addBadInventory_result();
1364
      receiveBase(result, "addBadInventory");
1365
      if (result.cex != null) {
1366
        throw result.cex;
1367
      }
1368
      return;
1369
    }
1370
 
1371
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1372
    {
1373
      send_getShippingLocations();
1374
      return recv_getShippingLocations();
1375
    }
1376
 
1377
    public void send_getShippingLocations() throws org.apache.thrift.TException
1378
    {
1379
      getShippingLocations_args args = new getShippingLocations_args();
1380
      sendBase("getShippingLocations", args);
1381
    }
1382
 
1383
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1384
    {
1385
      getShippingLocations_result result = new getShippingLocations_result();
1386
      receiveBase(result, "getShippingLocations");
1387
      if (result.isSetSuccess()) {
1388
        return result.success;
1389
      }
1390
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1391
    }
1392
 
1393
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1394
    {
1395
      send_getAllVendorItemMappings();
1396
      return recv_getAllVendorItemMappings();
1397
    }
1398
 
1399
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1400
    {
1401
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1402
      sendBase("getAllVendorItemMappings", args);
1403
    }
1404
 
1405
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1406
    {
1407
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1408
      receiveBase(result, "getAllVendorItemMappings");
1409
      if (result.isSetSuccess()) {
1410
        return result.success;
1411
      }
1412
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1413
    }
1414
 
1415
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1416
    {
1417
      send_getInventorySnapshot(warehouseId);
1418
      return recv_getInventorySnapshot();
1419
    }
1420
 
1421
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1422
    {
1423
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1424
      args.setWarehouseId(warehouseId);
1425
      sendBase("getInventorySnapshot", args);
1426
    }
1427
 
1428
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1429
    {
1430
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1431
      receiveBase(result, "getInventorySnapshot");
1432
      if (result.isSetSuccess()) {
1433
        return result.success;
1434
      }
1435
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1436
    }
1437
 
1438
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1439
    {
1440
      send_clearItemAvailabilityCache();
1441
      recv_clearItemAvailabilityCache();
1442
    }
1443
 
1444
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1445
    {
1446
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1447
      sendBase("clearItemAvailabilityCache", args);
1448
    }
1449
 
1450
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1451
    {
1452
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1453
      receiveBase(result, "clearItemAvailabilityCache");
1454
      return;
1455
    }
1456
 
1457
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1458
    {
1459
      send_updateVendorString(warehouseId, vendorString);
1460
      recv_updateVendorString();
1461
    }
1462
 
1463
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1464
    {
1465
      updateVendorString_args args = new updateVendorString_args();
1466
      args.setWarehouseId(warehouseId);
1467
      args.setVendorString(vendorString);
1468
      sendBase("updateVendorString", args);
1469
    }
1470
 
1471
    public void recv_updateVendorString() throws org.apache.thrift.TException
1472
    {
1473
      updateVendorString_result result = new updateVendorString_result();
1474
      receiveBase(result, "updateVendorString");
1475
      return;
1476
    }
1477
 
6096 amit.gupta 1478
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1479
    {
1480
      send_clearItemAvailabilityCacheForItem(item_id);
1481
      recv_clearItemAvailabilityCacheForItem();
1482
    }
1483
 
1484
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1485
    {
1486
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1487
      args.setItem_id(item_id);
1488
      sendBase("clearItemAvailabilityCacheForItem", args);
1489
    }
1490
 
1491
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1492
    {
1493
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1494
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1495
      return;
1496
    }
1497
 
7718 amar.kumar 1498
    public long getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
6467 amar.kumar 1499
    {
7718 amar.kumar 1500
      send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId);
6467 amar.kumar 1501
      return recv_getOurWarehouseIdForVendor();
1502
    }
1503
 
7718 amar.kumar 1504
    public void send_getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId) throws org.apache.thrift.TException
6467 amar.kumar 1505
    {
1506
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1507
      args.setVendorId(vendorId);
7718 amar.kumar 1508
      args.setBillingWarehouseId(billingWarehouseId);
6467 amar.kumar 1509
      sendBase("getOurWarehouseIdForVendor", args);
1510
    }
1511
 
1512
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1513
    {
1514
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1515
      receiveBase(result, "getOurWarehouseIdForVendor");
1516
      if (result.isSetSuccess()) {
1517
        return result.success;
1518
      }
1519
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1520
    }
1521
 
6484 amar.kumar 1522
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1523
    {
1524
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
1525
      return recv_getItemAvailabilitiesAtOurWarehouses();
1526
    }
1527
 
1528
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1529
    {
1530
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
1531
      args.setItem_ids(item_ids);
1532
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
1533
    }
1534
 
1535
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
1536
    {
1537
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
1538
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
1539
      if (result.isSetSuccess()) {
1540
        return result.success;
1541
      }
1542
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1543
    }
1544
 
6531 vikram.rag 1545
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1546
    {
1547
      send_getMonitoredWarehouseForVendors(vendorIds);
1548
      return recv_getMonitoredWarehouseForVendors();
1549
    }
1550
 
1551
    public void send_getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1552
    {
1553
      getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
1554
      args.setVendorIds(vendorIds);
1555
      sendBase("getMonitoredWarehouseForVendors", args);
1556
    }
1557
 
1558
    public List<Long> recv_getMonitoredWarehouseForVendors() throws org.apache.thrift.TException
1559
    {
1560
      getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
1561
      receiveBase(result, "getMonitoredWarehouseForVendors");
1562
      if (result.isSetSuccess()) {
1563
        return result.success;
1564
      }
1565
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1566
    }
1567
 
1568
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1569
    {
1570
      send_getIgnoredWarehouseidsAndItemids();
1571
      return recv_getIgnoredWarehouseidsAndItemids();
1572
    }
1573
 
1574
    public void send_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1575
    {
1576
      getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
1577
      sendBase("getIgnoredWarehouseidsAndItemids", args);
1578
    }
1579
 
1580
    public List<IgnoredInventoryUpdateItems> recv_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1581
    {
1582
      getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
1583
      receiveBase(result, "getIgnoredWarehouseidsAndItemids");
1584
      if (result.isSetSuccess()) {
1585
        return result.success;
1586
      }
1587
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1588
    }
1589
 
1590
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1591
    {
1592
      send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id);
1593
      return recv_insertItemtoIgnoreInventoryUpdatelist();
1594
    }
1595
 
1596
    public void send_insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1597
    {
1598
      insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
1599
      args.setItem_id(item_id);
1600
      args.setWarehouse_id(warehouse_id);
1601
      sendBase("insertItemtoIgnoreInventoryUpdatelist", args);
1602
    }
1603
 
1604
    public boolean recv_insertItemtoIgnoreInventoryUpdatelist() throws org.apache.thrift.TException
1605
    {
1606
      insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
1607
      receiveBase(result, "insertItemtoIgnoreInventoryUpdatelist");
1608
      if (result.isSetSuccess()) {
1609
        return result.success;
1610
      }
1611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
1612
    }
1613
 
1614
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1615
    {
1616
      send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id);
1617
      return recv_deleteItemFromIgnoredInventoryUpdateList();
1618
    }
1619
 
1620
    public void send_deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1621
    {
1622
      deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
1623
      args.setItem_id(item_id);
1624
      args.setWarehouse_id(warehouse_id);
1625
      sendBase("deleteItemFromIgnoredInventoryUpdateList", args);
1626
    }
1627
 
1628
    public boolean recv_deleteItemFromIgnoredInventoryUpdateList() throws org.apache.thrift.TException
1629
    {
1630
      deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
1631
      receiveBase(result, "deleteItemFromIgnoredInventoryUpdateList");
1632
      if (result.isSetSuccess()) {
1633
        return result.success;
1634
      }
1635
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
1636
    }
1637
 
1638
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1639
    {
1640
      send_getAllIgnoredInventoryupdateItemsCount();
1641
      return recv_getAllIgnoredInventoryupdateItemsCount();
1642
    }
1643
 
1644
    public void send_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1645
    {
1646
      getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
1647
      sendBase("getAllIgnoredInventoryupdateItemsCount", args);
1648
    }
1649
 
1650
    public int recv_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1651
    {
1652
      getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
1653
      receiveBase(result, "getAllIgnoredInventoryupdateItemsCount");
1654
      if (result.isSetSuccess()) {
1655
        return result.success;
1656
      }
1657
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
1658
    }
1659
 
1660
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1661
    {
1662
      send_getIgnoredInventoryUpdateItemids(offset, limit);
1663
      return recv_getIgnoredInventoryUpdateItemids();
1664
    }
1665
 
1666
    public void send_getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1667
    {
1668
      getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
1669
      args.setOffset(offset);
1670
      args.setLimit(limit);
1671
      sendBase("getIgnoredInventoryUpdateItemids", args);
1672
    }
1673
 
1674
    public List<Long> recv_getIgnoredInventoryUpdateItemids() throws org.apache.thrift.TException
1675
    {
1676
      getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
1677
      receiveBase(result, "getIgnoredInventoryUpdateItemids");
1678
      if (result.isSetSuccess()) {
1679
        return result.success;
1680
      }
1681
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1682
    }
1683
 
6821 amar.kumar 1684
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1685
    {
1686
      send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel);
1687
      recv_updateItemStockPurchaseParams();
1688
    }
1689
 
1690
    public void send_updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1691
    {
1692
      updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
1693
      args.setItem_id(item_id);
1694
      args.setNumOfDaysStock(numOfDaysStock);
1695
      args.setMinStockLevel(minStockLevel);
1696
      sendBase("updateItemStockPurchaseParams", args);
1697
    }
1698
 
1699
    public void recv_updateItemStockPurchaseParams() throws org.apache.thrift.TException
1700
    {
1701
      updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
1702
      receiveBase(result, "updateItemStockPurchaseParams");
1703
      return;
1704
    }
1705
 
1706
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1707
    {
1708
      send_getItemStockPurchaseParams(itemId);
1709
      return recv_getItemStockPurchaseParams();
1710
    }
1711
 
1712
    public void send_getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1713
    {
1714
      getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
1715
      args.setItemId(itemId);
1716
      sendBase("getItemStockPurchaseParams", args);
1717
    }
1718
 
1719
    public ItemStockPurchaseParams recv_getItemStockPurchaseParams() throws org.apache.thrift.TException
1720
    {
1721
      getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
1722
      receiveBase(result, "getItemStockPurchaseParams");
1723
      if (result.isSetSuccess()) {
1724
        return result.success;
1725
      }
1726
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
1727
    }
1728
 
1729
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1730
    {
1731
      send_addOosStatusForItem(oosStatusMap, date);
1732
      recv_addOosStatusForItem();
1733
    }
1734
 
1735
    public void send_addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1736
    {
1737
      addOosStatusForItem_args args = new addOosStatusForItem_args();
1738
      args.setOosStatusMap(oosStatusMap);
1739
      args.setDate(date);
1740
      sendBase("addOosStatusForItem", args);
1741
    }
1742
 
1743
    public void recv_addOosStatusForItem() throws org.apache.thrift.TException
1744
    {
1745
      addOosStatusForItem_result result = new addOosStatusForItem_result();
1746
      receiveBase(result, "addOosStatusForItem");
1747
      return;
1748
    }
1749
 
9665 rajveer 1750
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int sourceId, int days) throws org.apache.thrift.TException
6832 amar.kumar 1751
    {
9665 rajveer 1752
      send_getOosStatusesForXDaysForItem(itemId, sourceId, days);
6832 amar.kumar 1753
      return recv_getOosStatusesForXDaysForItem();
1754
    }
1755
 
9665 rajveer 1756
    public void send_getOosStatusesForXDaysForItem(long itemId, int sourceId, int days) throws org.apache.thrift.TException
6832 amar.kumar 1757
    {
1758
      getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
1759
      args.setItemId(itemId);
9665 rajveer 1760
      args.setSourceId(sourceId);
6832 amar.kumar 1761
      args.setDays(days);
1762
      sendBase("getOosStatusesForXDaysForItem", args);
1763
    }
1764
 
1765
    public List<OOSStatus> recv_getOosStatusesForXDaysForItem() throws org.apache.thrift.TException
1766
    {
1767
      getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
1768
      receiveBase(result, "getOosStatusesForXDaysForItem");
1769
      if (result.isSetSuccess()) {
1770
        return result.success;
1771
      }
1772
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
1773
    }
1774
 
10126 amar.kumar 1775
    public List<OOSStatus> getOosStatusesForXDays(int sourceId, int days) throws org.apache.thrift.TException
1776
    {
1777
      send_getOosStatusesForXDays(sourceId, days);
1778
      return recv_getOosStatusesForXDays();
1779
    }
1780
 
1781
    public void send_getOosStatusesForXDays(int sourceId, int days) throws org.apache.thrift.TException
1782
    {
1783
      getOosStatusesForXDays_args args = new getOosStatusesForXDays_args();
1784
      args.setSourceId(sourceId);
1785
      args.setDays(days);
1786
      sendBase("getOosStatusesForXDays", args);
1787
    }
1788
 
1789
    public List<OOSStatus> recv_getOosStatusesForXDays() throws org.apache.thrift.TException
1790
    {
1791
      getOosStatusesForXDays_result result = new getOosStatusesForXDays_result();
1792
      receiveBase(result, "getOosStatusesForXDays");
1793
      if (result.isSetSuccess()) {
1794
        return result.success;
1795
      }
1796
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDays failed: unknown result");
1797
    }
1798
 
1799
    public List<VendorItemPricing> getAllVendorItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
1800
    {
1801
      send_getAllVendorItemPricing(itemId, vendorId);
1802
      return recv_getAllVendorItemPricing();
1803
    }
1804
 
1805
    public void send_getAllVendorItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
1806
    {
1807
      getAllVendorItemPricing_args args = new getAllVendorItemPricing_args();
1808
      args.setItemId(itemId);
1809
      args.setVendorId(vendorId);
1810
      sendBase("getAllVendorItemPricing", args);
1811
    }
1812
 
1813
    public List<VendorItemPricing> recv_getAllVendorItemPricing() throws org.apache.thrift.TException
1814
    {
1815
      getAllVendorItemPricing_result result = new getAllVendorItemPricing_result();
1816
      receiveBase(result, "getAllVendorItemPricing");
1817
      if (result.isSetSuccess()) {
1818
        return result.success;
1819
      }
1820
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemPricing failed: unknown result");
1821
    }
1822
 
6857 amar.kumar 1823
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1824
    {
1825
      send_getNonZeroItemStockPurchaseParams();
1826
      return recv_getNonZeroItemStockPurchaseParams();
1827
    }
1828
 
1829
    public void send_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1830
    {
1831
      getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
1832
      sendBase("getNonZeroItemStockPurchaseParams", args);
1833
    }
1834
 
1835
    public List<ItemStockPurchaseParams> recv_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1836
    {
1837
      getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
1838
      receiveBase(result, "getNonZeroItemStockPurchaseParams");
1839
      if (result.isSetSuccess()) {
1840
        return result.success;
1841
      }
1842
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
1843
    }
1844
 
7149 amar.kumar 1845
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1846
    {
1847
      send_getBillableInventoryAndPendingOrders();
1848
      return recv_getBillableInventoryAndPendingOrders();
1849
    }
1850
 
1851
    public void send_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1852
    {
1853
      getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
1854
      sendBase("getBillableInventoryAndPendingOrders", args);
1855
    }
1856
 
1857
    public List<AvailableAndReservedStock> recv_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1858
    {
1859
      getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
1860
      receiveBase(result, "getBillableInventoryAndPendingOrders");
1861
      if (result.isSetSuccess()) {
1862
        return result.success;
1863
      }
1864
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
1865
    }
1866
 
7281 kshitij.so 1867
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1868
    {
1869
      send_getWarehouseName(warehouse_id);
1870
      return recv_getWarehouseName();
1871
    }
1872
 
1873
    public void send_getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1874
    {
1875
      getWarehouseName_args args = new getWarehouseName_args();
1876
      args.setWarehouse_id(warehouse_id);
1877
      sendBase("getWarehouseName", args);
1878
    }
1879
 
1880
    public String recv_getWarehouseName() throws org.apache.thrift.TException
1881
    {
1882
      getWarehouseName_result result = new getWarehouseName_result();
1883
      receiveBase(result, "getWarehouseName");
1884
      if (result.isSetSuccess()) {
1885
        return result.success;
1886
      }
1887
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
1888
    }
1889
 
1890
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1891
    {
1892
      send_getAmazonInventoryForItem(item_id);
1893
      return recv_getAmazonInventoryForItem();
1894
    }
1895
 
1896
    public void send_getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1897
    {
1898
      getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
1899
      args.setItem_id(item_id);
1900
      sendBase("getAmazonInventoryForItem", args);
1901
    }
1902
 
1903
    public AmazonInventorySnapshot recv_getAmazonInventoryForItem() throws org.apache.thrift.TException
1904
    {
1905
      getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
1906
      receiveBase(result, "getAmazonInventoryForItem");
1907
      if (result.isSetSuccess()) {
1908
        return result.success;
1909
      }
1910
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
1911
    }
1912
 
1913
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException
1914
    {
1915
      send_getAllAmazonInventory();
1916
      return recv_getAllAmazonInventory();
1917
    }
1918
 
1919
    public void send_getAllAmazonInventory() throws org.apache.thrift.TException
1920
    {
1921
      getAllAmazonInventory_args args = new getAllAmazonInventory_args();
1922
      sendBase("getAllAmazonInventory", args);
1923
    }
1924
 
1925
    public List<AmazonInventorySnapshot> recv_getAllAmazonInventory() throws org.apache.thrift.TException
1926
    {
1927
      getAllAmazonInventory_result result = new getAllAmazonInventory_result();
1928
      receiveBase(result, "getAllAmazonInventory");
1929
      if (result.isSetSuccess()) {
1930
        return result.success;
1931
      }
1932
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
1933
    }
1934
 
10450 vikram.rag 1935
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time) throws org.apache.thrift.TException
7281 kshitij.so 1936
    {
10450 vikram.rag 1937
      send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot, time);
7281 kshitij.so 1938
      recv_addOrUpdateAmazonInventoryForItem();
1939
    }
1940
 
10450 vikram.rag 1941
    public void send_addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time) throws org.apache.thrift.TException
7281 kshitij.so 1942
    {
1943
      addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
1944
      args.setAmazonInventorySnapshot(amazonInventorySnapshot);
10450 vikram.rag 1945
      args.setTime(time);
7281 kshitij.so 1946
      sendBase("addOrUpdateAmazonInventoryForItem", args);
1947
    }
1948
 
1949
    public void recv_addOrUpdateAmazonInventoryForItem() throws org.apache.thrift.TException
1950
    {
1951
      addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
1952
      receiveBase(result, "addOrUpdateAmazonInventoryForItem");
1953
      return;
1954
    }
1955
 
7972 amar.kumar 1956
    public String getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException
1957
    {
1958
      send_getLastNdaySaleForItem(itemId, numberOfDays);
1959
      return recv_getLastNdaySaleForItem();
1960
    }
1961
 
1962
    public void send_getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException
1963
    {
1964
      getLastNdaySaleForItem_args args = new getLastNdaySaleForItem_args();
1965
      args.setItemId(itemId);
1966
      args.setNumberOfDays(numberOfDays);
1967
      sendBase("getLastNdaySaleForItem", args);
1968
    }
1969
 
1970
    public String recv_getLastNdaySaleForItem() throws org.apache.thrift.TException
1971
    {
1972
      getLastNdaySaleForItem_result result = new getLastNdaySaleForItem_result();
1973
      receiveBase(result, "getLastNdaySaleForItem");
1974
      if (result.isSetSuccess()) {
1975
        return result.success;
1976
      }
1977
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
1978
    }
1979
 
8282 kshitij.so 1980
    public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException
1981
    {
1982
      send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot);
1983
      recv_addOrUpdateAmazonFbaInventory();
1984
    }
1985
 
1986
    public void send_addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException
1987
    {
1988
      addOrUpdateAmazonFbaInventory_args args = new addOrUpdateAmazonFbaInventory_args();
1989
      args.setAmazonfbainventorysnapshot(amazonfbainventorysnapshot);
1990
      sendBase("addOrUpdateAmazonFbaInventory", args);
1991
    }
1992
 
1993
    public void recv_addOrUpdateAmazonFbaInventory() throws org.apache.thrift.TException
1994
    {
1995
      addOrUpdateAmazonFbaInventory_result result = new addOrUpdateAmazonFbaInventory_result();
1996
      receiveBase(result, "addOrUpdateAmazonFbaInventory");
1997
      return;
1998
    }
1999
 
9762 amar.kumar 2000
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws InventoryServiceException, org.apache.thrift.TException
8182 amar.kumar 2001
    {
2002
      send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source);
2003
      recv_addUpdateHoldInventory();
2004
    }
2005
 
2006
    public void send_addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException
2007
    {
2008
      addUpdateHoldInventory_args args = new addUpdateHoldInventory_args();
2009
      args.setItemId(itemId);
2010
      args.setWarehouseId(warehouseId);
2011
      args.setHoldQuantity(holdQuantity);
2012
      args.setSource(source);
2013
      sendBase("addUpdateHoldInventory", args);
2014
    }
2015
 
9762 amar.kumar 2016
    public void recv_addUpdateHoldInventory() throws InventoryServiceException, org.apache.thrift.TException
8182 amar.kumar 2017
    {
2018
      addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
2019
      receiveBase(result, "addUpdateHoldInventory");
9762 amar.kumar 2020
      if (result.cex != null) {
2021
        throw result.cex;
2022
      }
8182 amar.kumar 2023
      return;
2024
    }
2025
 
11173 vikram.rag 2026
    public List<AmazonFbaInventorySnapshot> getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException
8282 kshitij.so 2027
    {
2028
      send_getAmazonFbaItemInventory(itemId);
2029
      return recv_getAmazonFbaItemInventory();
2030
    }
2031
 
2032
    public void send_getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException
2033
    {
2034
      getAmazonFbaItemInventory_args args = new getAmazonFbaItemInventory_args();
2035
      args.setItemId(itemId);
2036
      sendBase("getAmazonFbaItemInventory", args);
2037
    }
2038
 
11173 vikram.rag 2039
    public List<AmazonFbaInventorySnapshot> recv_getAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2040
    {
2041
      getAmazonFbaItemInventory_result result = new getAmazonFbaItemInventory_result();
2042
      receiveBase(result, "getAmazonFbaItemInventory");
2043
      if (result.isSetSuccess()) {
2044
        return result.success;
2045
      }
2046
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2047
    }
2048
 
8363 vikram.rag 2049
    public List<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2050
    {
8363 vikram.rag 2051
      send_getAllAmazonFbaItemInventory();
2052
      return recv_getAllAmazonFbaItemInventory();
8282 kshitij.so 2053
    }
2054
 
8363 vikram.rag 2055
    public void send_getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2056
    {
8363 vikram.rag 2057
      getAllAmazonFbaItemInventory_args args = new getAllAmazonFbaItemInventory_args();
2058
      sendBase("getAllAmazonFbaItemInventory", args);
8282 kshitij.so 2059
    }
2060
 
8363 vikram.rag 2061
    public List<AmazonFbaInventorySnapshot> recv_getAllAmazonFbaItemInventory() throws org.apache.thrift.TException
8282 kshitij.so 2062
    {
8363 vikram.rag 2063
      getAllAmazonFbaItemInventory_result result = new getAllAmazonFbaItemInventory_result();
2064
      receiveBase(result, "getAllAmazonFbaItemInventory");
8282 kshitij.so 2065
      if (result.isSetSuccess()) {
2066
        return result.success;
2067
      }
8363 vikram.rag 2068
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2069
    }
2070
 
8363 vikram.rag 2071
    public List<Long> getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException
2072
    {
2073
      send_getOursGoodWarehouseIdsForLocation(state_id);
2074
      return recv_getOursGoodWarehouseIdsForLocation();
2075
    }
2076
 
2077
    public void send_getOursGoodWarehouseIdsForLocation(long state_id) throws org.apache.thrift.TException
2078
    {
2079
      getOursGoodWarehouseIdsForLocation_args args = new getOursGoodWarehouseIdsForLocation_args();
2080
      args.setState_id(state_id);
2081
      sendBase("getOursGoodWarehouseIdsForLocation", args);
2082
    }
2083
 
2084
    public List<Long> recv_getOursGoodWarehouseIdsForLocation() throws org.apache.thrift.TException
2085
    {
2086
      getOursGoodWarehouseIdsForLocation_result result = new getOursGoodWarehouseIdsForLocation_result();
2087
      receiveBase(result, "getOursGoodWarehouseIdsForLocation");
2088
      if (result.isSetSuccess()) {
2089
        return result.success;
2090
      }
2091
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2092
    }
2093
 
8958 vikram.rag 2094
    public long getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException
2095
    {
2096
      send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source);
2097
      return recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
2098
    }
2099
 
2100
    public void send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source) throws org.apache.thrift.TException
2101
    {
2102
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
2103
      args.setId(id);
2104
      args.setWarehouse_id(warehouse_id);
2105
      args.setSource(source);
2106
      sendBase("getHoldInventoryDetailForItemForWarehouseIdExceptSource", args);
2107
    }
2108
 
2109
    public long recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource() throws org.apache.thrift.TException
2110
    {
2111
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_result result = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result();
2112
      receiveBase(result, "getHoldInventoryDetailForItemForWarehouseIdExceptSource");
2113
      if (result.isSetSuccess()) {
2114
        return result.success;
2115
      }
2116
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2117
    }
2118
 
9404 vikram.rag 2119
    public SnapdealInventoryItem getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException
2120
    {
2121
      send_getSnapdealInventoryForItem(item_id);
2122
      return recv_getSnapdealInventoryForItem();
2123
    }
2124
 
2125
    public void send_getSnapdealInventoryForItem(long item_id) throws org.apache.thrift.TException
2126
    {
2127
      getSnapdealInventoryForItem_args args = new getSnapdealInventoryForItem_args();
2128
      args.setItem_id(item_id);
2129
      sendBase("getSnapdealInventoryForItem", args);
2130
    }
2131
 
2132
    public SnapdealInventoryItem recv_getSnapdealInventoryForItem() throws org.apache.thrift.TException
2133
    {
2134
      getSnapdealInventoryForItem_result result = new getSnapdealInventoryForItem_result();
2135
      receiveBase(result, "getSnapdealInventoryForItem");
2136
      if (result.isSetSuccess()) {
2137
        return result.success;
2138
      }
2139
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2140
    }
2141
 
2142
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException
2143
    {
2144
      send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem);
2145
      recv_addOrUpdateSnapdealInventoryForItem();
2146
    }
2147
 
2148
    public void send_addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem) throws org.apache.thrift.TException
2149
    {
2150
      addOrUpdateSnapdealInventoryForItem_args args = new addOrUpdateSnapdealInventoryForItem_args();
2151
      args.setSnapdealinventoryitem(snapdealinventoryitem);
2152
      sendBase("addOrUpdateSnapdealInventoryForItem", args);
2153
    }
2154
 
2155
    public void recv_addOrUpdateSnapdealInventoryForItem() throws org.apache.thrift.TException
2156
    {
2157
      addOrUpdateSnapdealInventoryForItem_result result = new addOrUpdateSnapdealInventoryForItem_result();
2158
      receiveBase(result, "addOrUpdateSnapdealInventoryForItem");
2159
      return;
2160
    }
2161
 
2162
    public double getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
2163
    {
2164
      send_getNlcForWarehouse(warehouse_id, item_id);
2165
      return recv_getNlcForWarehouse();
2166
    }
2167
 
2168
    public void send_getNlcForWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
2169
    {
2170
      getNlcForWarehouse_args args = new getNlcForWarehouse_args();
2171
      args.setWarehouse_id(warehouse_id);
2172
      args.setItem_id(item_id);
2173
      sendBase("getNlcForWarehouse", args);
2174
    }
2175
 
2176
    public double recv_getNlcForWarehouse() throws org.apache.thrift.TException
2177
    {
2178
      getNlcForWarehouse_result result = new getNlcForWarehouse_result();
2179
      receiveBase(result, "getNlcForWarehouse");
2180
      if (result.isSetSuccess()) {
2181
        return result.success;
2182
      }
2183
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2184
    }
2185
 
9640 amar.kumar 2186
    public Map<Integer,Long> getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException
2187
    {
2188
      send_getHeldInventoryMapForItem(item_id, warehouse_id);
2189
      return recv_getHeldInventoryMapForItem();
2190
    }
2191
 
2192
    public void send_getHeldInventoryMapForItem(long item_id, long warehouse_id) throws org.apache.thrift.TException
2193
    {
2194
      getHeldInventoryMapForItem_args args = new getHeldInventoryMapForItem_args();
2195
      args.setItem_id(item_id);
2196
      args.setWarehouse_id(warehouse_id);
2197
      sendBase("getHeldInventoryMapForItem", args);
2198
    }
2199
 
2200
    public Map<Integer,Long> recv_getHeldInventoryMapForItem() throws org.apache.thrift.TException
2201
    {
2202
      getHeldInventoryMapForItem_result result = new getHeldInventoryMapForItem_result();
2203
      receiveBase(result, "getHeldInventoryMapForItem");
2204
      if (result.isSetSuccess()) {
2205
        return result.success;
2206
      }
2207
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2208
    }
2209
 
9482 vikram.rag 2210
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
2211
    {
2212
      send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot);
2213
      recv_addOrUpdateAllAmazonFbaInventory();
2214
    }
2215
 
2216
    public void send_addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) throws org.apache.thrift.TException
2217
    {
2218
      addOrUpdateAllAmazonFbaInventory_args args = new addOrUpdateAllAmazonFbaInventory_args();
2219
      args.setAllamazonfbainventorysnapshot(allamazonfbainventorysnapshot);
2220
      sendBase("addOrUpdateAllAmazonFbaInventory", args);
2221
    }
2222
 
2223
    public void recv_addOrUpdateAllAmazonFbaInventory() throws org.apache.thrift.TException
2224
    {
2225
      addOrUpdateAllAmazonFbaInventory_result result = new addOrUpdateAllAmazonFbaInventory_result();
2226
      receiveBase(result, "addOrUpdateAllAmazonFbaInventory");
2227
      return;
2228
    }
2229
 
9495 vikram.rag 2230
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException
2231
    {
2232
      send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot);
2233
      recv_addOrUpdateAllSnapdealInventory();
2234
    }
2235
 
2236
    public void send_addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException
2237
    {
2238
      addOrUpdateAllSnapdealInventory_args args = new addOrUpdateAllSnapdealInventory_args();
2239
      args.setAllsnapdealinventorysnapshot(allsnapdealinventorysnapshot);
2240
      sendBase("addOrUpdateAllSnapdealInventory", args);
2241
    }
2242
 
2243
    public void recv_addOrUpdateAllSnapdealInventory() throws org.apache.thrift.TException
2244
    {
2245
      addOrUpdateAllSnapdealInventory_result result = new addOrUpdateAllSnapdealInventory_result();
2246
      receiveBase(result, "addOrUpdateAllSnapdealInventory");
2247
      return;
2248
    }
2249
 
2250
    public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException
2251
    {
2252
      send_getSnapdealInventorySnapshot();
2253
      return recv_getSnapdealInventorySnapshot();
2254
    }
2255
 
2256
    public void send_getSnapdealInventorySnapshot() throws org.apache.thrift.TException
2257
    {
2258
      getSnapdealInventorySnapshot_args args = new getSnapdealInventorySnapshot_args();
2259
      sendBase("getSnapdealInventorySnapshot", args);
2260
    }
2261
 
2262
    public List<SnapdealInventoryItem> recv_getSnapdealInventorySnapshot() throws org.apache.thrift.TException
2263
    {
2264
      getSnapdealInventorySnapshot_result result = new getSnapdealInventorySnapshot_result();
2265
      receiveBase(result, "getSnapdealInventorySnapshot");
2266
      if (result.isSetSuccess()) {
2267
        return result.success;
2268
      }
2269
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2270
    }
2271
 
9761 amar.kumar 2272
    public List<HoldInventoryDetail> getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException
2273
    {
2274
      send_getHoldInventoryDetails(itemId, warehouseId, source);
2275
      return recv_getHoldInventoryDetails();
2276
    }
2277
 
2278
    public void send_getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException
2279
    {
2280
      getHoldInventoryDetails_args args = new getHoldInventoryDetails_args();
2281
      args.setItemId(itemId);
2282
      args.setWarehouseId(warehouseId);
2283
      args.setSource(source);
2284
      sendBase("getHoldInventoryDetails", args);
2285
    }
2286
 
2287
    public List<HoldInventoryDetail> recv_getHoldInventoryDetails() throws org.apache.thrift.TException
2288
    {
2289
      getHoldInventoryDetails_result result = new getHoldInventoryDetails_result();
2290
      receiveBase(result, "getHoldInventoryDetails");
2291
      if (result.isSetSuccess()) {
2292
        return result.success;
2293
      }
2294
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2295
    }
2296
 
10450 vikram.rag 2297
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time) throws org.apache.thrift.TException
10050 vikram.rag 2298
    {
10450 vikram.rag 2299
      send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot, time);
10050 vikram.rag 2300
      recv_addOrUpdateFlipkartInventorySnapshot();
2301
    }
2302
 
10450 vikram.rag 2303
    public void send_addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time) throws org.apache.thrift.TException
10050 vikram.rag 2304
    {
2305
      addOrUpdateFlipkartInventorySnapshot_args args = new addOrUpdateFlipkartInventorySnapshot_args();
2306
      args.setFlipkartInventorySnapshot(flipkartInventorySnapshot);
10450 vikram.rag 2307
      args.setTime(time);
10050 vikram.rag 2308
      sendBase("addOrUpdateFlipkartInventorySnapshot", args);
2309
    }
2310
 
2311
    public void recv_addOrUpdateFlipkartInventorySnapshot() throws org.apache.thrift.TException
2312
    {
2313
      addOrUpdateFlipkartInventorySnapshot_result result = new addOrUpdateFlipkartInventorySnapshot_result();
2314
      receiveBase(result, "addOrUpdateFlipkartInventorySnapshot");
2315
      return;
2316
    }
2317
 
2318
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException
2319
    {
2320
      send_getFlipkartInventorySnapshot();
2321
      return recv_getFlipkartInventorySnapshot();
2322
    }
2323
 
2324
    public void send_getFlipkartInventorySnapshot() throws org.apache.thrift.TException
2325
    {
2326
      getFlipkartInventorySnapshot_args args = new getFlipkartInventorySnapshot_args();
2327
      sendBase("getFlipkartInventorySnapshot", args);
2328
    }
2329
 
2330
    public List<FlipkartInventorySnapshot> recv_getFlipkartInventorySnapshot() throws org.apache.thrift.TException
2331
    {
2332
      getFlipkartInventorySnapshot_result result = new getFlipkartInventorySnapshot_result();
2333
      receiveBase(result, "getFlipkartInventorySnapshot");
2334
      if (result.isSetSuccess()) {
2335
        return result.success;
2336
      }
2337
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
2338
    }
2339
 
10097 kshitij.so 2340
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException
2341
    {
2342
      send_getFlipkartlInventoryForItem(item_id);
2343
      return recv_getFlipkartlInventoryForItem();
2344
    }
2345
 
2346
    public void send_getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException
2347
    {
2348
      getFlipkartlInventoryForItem_args args = new getFlipkartlInventoryForItem_args();
2349
      args.setItem_id(item_id);
2350
      sendBase("getFlipkartlInventoryForItem", args);
2351
    }
2352
 
2353
    public FlipkartInventorySnapshot recv_getFlipkartlInventoryForItem() throws org.apache.thrift.TException
2354
    {
2355
      getFlipkartlInventoryForItem_result result = new getFlipkartlInventoryForItem_result();
2356
      receiveBase(result, "getFlipkartlInventoryForItem");
2357
      if (result.isSetSuccess()) {
2358
        return result.success;
2359
      }
2360
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
2361
    }
2362
 
12280 amit.gupta 2363
    public Map<Long,StateInfo> getStateMaster() throws org.apache.thrift.TException
10485 vikram.rag 2364
    {
2365
      send_getStateMaster();
2366
      return recv_getStateMaster();
2367
    }
2368
 
2369
    public void send_getStateMaster() throws org.apache.thrift.TException
2370
    {
2371
      getStateMaster_args args = new getStateMaster_args();
2372
      sendBase("getStateMaster", args);
2373
    }
2374
 
12280 amit.gupta 2375
    public Map<Long,StateInfo> recv_getStateMaster() throws org.apache.thrift.TException
10485 vikram.rag 2376
    {
2377
      getStateMaster_result result = new getStateMaster_result();
2378
      receiveBase(result, "getStateMaster");
2379
      if (result.isSetSuccess()) {
2380
        return result.success;
2381
      }
2382
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
2383
    }
2384
 
10546 vikram.rag 2385
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException
2386
    {
2387
      send_updateSnapdealStockAtEOD(allsnapdealstock);
2388
      recv_updateSnapdealStockAtEOD();
2389
    }
2390
 
2391
    public void send_updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException
2392
    {
2393
      updateSnapdealStockAtEOD_args args = new updateSnapdealStockAtEOD_args();
2394
      args.setAllsnapdealstock(allsnapdealstock);
2395
      sendBase("updateSnapdealStockAtEOD", args);
2396
    }
2397
 
2398
    public void recv_updateSnapdealStockAtEOD() throws org.apache.thrift.TException
2399
    {
2400
      updateSnapdealStockAtEOD_result result = new updateSnapdealStockAtEOD_result();
2401
      receiveBase(result, "updateSnapdealStockAtEOD");
2402
      return;
2403
    }
2404
 
2405
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException
2406
    {
2407
      send_updateFlipkartStockAtEOD(allflipkartstock);
2408
      recv_updateFlipkartStockAtEOD();
2409
    }
2410
 
2411
    public void send_updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException
2412
    {
2413
      updateFlipkartStockAtEOD_args args = new updateFlipkartStockAtEOD_args();
2414
      args.setAllflipkartstock(allflipkartstock);
2415
      sendBase("updateFlipkartStockAtEOD", args);
2416
    }
2417
 
2418
    public void recv_updateFlipkartStockAtEOD() throws org.apache.thrift.TException
2419
    {
2420
      updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
2421
      receiveBase(result, "updateFlipkartStockAtEOD");
2422
      return;
2423
    }
2424
 
12363 kshitij.so 2425
    public double getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException
2426
    {
2427
      send_getWanNlcForSource(item_id, source);
2428
      return recv_getWanNlcForSource();
2429
    }
2430
 
2431
    public void send_getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException
2432
    {
2433
      getWanNlcForSource_args args = new getWanNlcForSource_args();
2434
      args.setItem_id(item_id);
2435
      args.setSource(source);
2436
      sendBase("getWanNlcForSource", args);
2437
    }
2438
 
2439
    public double recv_getWanNlcForSource() throws org.apache.thrift.TException
2440
    {
2441
      getWanNlcForSource_result result = new getWanNlcForSource_result();
2442
      receiveBase(result, "getWanNlcForSource");
2443
      if (result.isSetSuccess()) {
2444
        return result.success;
2445
      }
2446
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWanNlcForSource failed: unknown result");
2447
    }
2448
 
2449
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException
2450
    {
2451
      send_getAllAvailableAmazonFbaItemInventory();
2452
      return recv_getAllAvailableAmazonFbaItemInventory();
2453
    }
2454
 
2455
    public void send_getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException
2456
    {
2457
      getAllAvailableAmazonFbaItemInventory_args args = new getAllAvailableAmazonFbaItemInventory_args();
2458
      sendBase("getAllAvailableAmazonFbaItemInventory", args);
2459
    }
2460
 
2461
    public List<AmazonFbaInventorySnapshot> recv_getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException
2462
    {
2463
      getAllAvailableAmazonFbaItemInventory_result result = new getAllAvailableAmazonFbaItemInventory_result();
2464
      receiveBase(result, "getAllAvailableAmazonFbaItemInventory");
2465
      if (result.isSetSuccess()) {
2466
        return result.success;
2467
      }
2468
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
2469
    }
2470
 
17990 kshitij.so 2471
    public boolean updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException
2472
    {
2473
      send_updateItemAvailabilityForItemIds(itemIds);
2474
      return recv_updateItemAvailabilityForItemIds();
2475
    }
2476
 
2477
    public void send_updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException
2478
    {
2479
      updateItemAvailabilityForItemIds_args args = new updateItemAvailabilityForItemIds_args();
2480
      args.setItemIds(itemIds);
2481
      sendBase("updateItemAvailabilityForItemIds", args);
2482
    }
2483
 
2484
    public boolean recv_updateItemAvailabilityForItemIds() throws org.apache.thrift.TException
2485
    {
2486
      updateItemAvailabilityForItemIds_result result = new updateItemAvailabilityForItemIds_result();
2487
      receiveBase(result, "updateItemAvailabilityForItemIds");
2488
      if (result.isSetSuccess()) {
2489
        return result.success;
2490
      }
2491
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemAvailabilityForItemIds failed: unknown result");
2492
    }
2493
 
19247 kshitij.so 2494
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException
2495
    {
2496
      send_addVendorItemPricingInBulk(vendorItemPricingList);
2497
      return recv_addVendorItemPricingInBulk();
2498
    }
2499
 
2500
    public void send_addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException
2501
    {
2502
      addVendorItemPricingInBulk_args args = new addVendorItemPricingInBulk_args();
2503
      args.setVendorItemPricingList(vendorItemPricingList);
2504
      sendBase("addVendorItemPricingInBulk", args);
2505
    }
2506
 
2507
    public List<Long> recv_addVendorItemPricingInBulk() throws org.apache.thrift.TException
2508
    {
2509
      addVendorItemPricingInBulk_result result = new addVendorItemPricingInBulk_result();
2510
      receiveBase(result, "addVendorItemPricingInBulk");
2511
      if (result.isSetSuccess()) {
2512
        return result.success;
2513
      }
2514
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendorItemPricingInBulk failed: unknown result");
2515
    }
2516
 
2517
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException
2518
    {
2519
      send_addInventoryInBulk(bulkInventoryList);
2520
      recv_addInventoryInBulk();
2521
    }
2522
 
2523
    public void send_addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws org.apache.thrift.TException
2524
    {
2525
      addInventoryInBulk_args args = new addInventoryInBulk_args();
2526
      args.setBulkInventoryList(bulkInventoryList);
2527
      sendBase("addInventoryInBulk", args);
2528
    }
2529
 
2530
    public void recv_addInventoryInBulk() throws InventoryServiceException, org.apache.thrift.TException
2531
    {
2532
      addInventoryInBulk_result result = new addInventoryInBulk_result();
2533
      receiveBase(result, "addInventoryInBulk");
2534
      if (result.cex != null) {
2535
        throw result.cex;
2536
      }
2537
      return;
2538
    }
2539
 
5945 mandeep.dh 2540
  }
2541
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2542
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2543
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2544
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2545
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
2546
        this.clientManager = clientManager;
2547
        this.protocolFactory = protocolFactory;
2548
      }
2549
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
2550
        return new AsyncClient(protocolFactory, clientManager, transport);
2551
      }
2552
    }
2553
 
2554
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
2555
      super(protocolFactory, clientManager, transport);
2556
    }
2557
 
2558
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2559
      checkReady();
2560
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
2561
      this.___currentMethod = method_call;
2562
      ___manager.call(method_call);
2563
    }
2564
 
2565
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2566
      private Warehouse warehouse;
2567
      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 {
2568
        super(client, protocolFactory, transport, resultHandler, false);
2569
        this.warehouse = warehouse;
2570
      }
2571
 
2572
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2573
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2574
        addWarehouse_args args = new addWarehouse_args();
2575
        args.setWarehouse(warehouse);
2576
        args.write(prot);
2577
        prot.writeMessageEnd();
2578
      }
2579
 
2580
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2581
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2582
          throw new IllegalStateException("Method call not finished!");
2583
        }
2584
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2585
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2586
        return (new Client(prot)).recv_addWarehouse();
2587
      }
2588
    }
2589
 
2590
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
2591
      checkReady();
2592
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
2593
      this.___currentMethod = method_call;
2594
      ___manager.call(method_call);
2595
    }
2596
 
2597
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2598
      private Vendor vendor;
2599
      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 {
2600
        super(client, protocolFactory, transport, resultHandler, false);
2601
        this.vendor = vendor;
2602
      }
2603
 
2604
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2605
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2606
        addVendor_args args = new addVendor_args();
2607
        args.setVendor(vendor);
2608
        args.write(prot);
2609
        prot.writeMessageEnd();
2610
      }
2611
 
2612
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2613
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2614
          throw new IllegalStateException("Method call not finished!");
2615
        }
2616
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2617
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2618
        return (new Client(prot)).recv_addVendor();
2619
      }
2620
    }
2621
 
2622
    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 {
2623
      checkReady();
2624
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
2625
      this.___currentMethod = method_call;
2626
      ___manager.call(method_call);
2627
    }
2628
 
2629
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
2630
      private long warehouse_id;
2631
      private String timestamp;
2632
      private Map<String,Long> availability;
2633
      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 {
2634
        super(client, protocolFactory, transport, resultHandler, false);
2635
        this.warehouse_id = warehouse_id;
2636
        this.timestamp = timestamp;
2637
        this.availability = availability;
2638
      }
2639
 
2640
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2641
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2642
        updateInventoryHistory_args args = new updateInventoryHistory_args();
2643
        args.setWarehouse_id(warehouse_id);
2644
        args.setTimestamp(timestamp);
2645
        args.setAvailability(availability);
2646
        args.write(prot);
2647
        prot.writeMessageEnd();
2648
      }
2649
 
2650
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2651
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2652
          throw new IllegalStateException("Method call not finished!");
2653
        }
2654
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2655
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2656
        (new Client(prot)).recv_updateInventoryHistory();
2657
      }
2658
    }
2659
 
2660
    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 {
2661
      checkReady();
2662
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
2663
      this.___currentMethod = method_call;
2664
      ___manager.call(method_call);
2665
    }
2666
 
2667
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2668
      private long warehouse_id;
2669
      private String timestamp;
2670
      private Map<String,Long> availability;
2671
      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 {
2672
        super(client, protocolFactory, transport, resultHandler, false);
2673
        this.warehouse_id = warehouse_id;
2674
        this.timestamp = timestamp;
2675
        this.availability = availability;
2676
      }
2677
 
2678
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2679
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2680
        updateInventory_args args = new updateInventory_args();
2681
        args.setWarehouse_id(warehouse_id);
2682
        args.setTimestamp(timestamp);
2683
        args.setAvailability(availability);
2684
        args.write(prot);
2685
        prot.writeMessageEnd();
2686
      }
2687
 
2688
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2689
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2690
          throw new IllegalStateException("Method call not finished!");
2691
        }
2692
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2693
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2694
        (new Client(prot)).recv_updateInventory();
2695
      }
2696
    }
2697
 
2698
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
2699
      checkReady();
2700
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2701
      this.___currentMethod = method_call;
2702
      ___manager.call(method_call);
2703
    }
2704
 
2705
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2706
      private long itemId;
2707
      private long warehouseId;
2708
      private long quantity;
2709
      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 {
2710
        super(client, protocolFactory, transport, resultHandler, false);
2711
        this.itemId = itemId;
2712
        this.warehouseId = warehouseId;
2713
        this.quantity = quantity;
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("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2718
        addInventory_args args = new addInventory_args();
2719
        args.setItemId(itemId);
2720
        args.setWarehouseId(warehouseId);
2721
        args.setQuantity(quantity);
2722
        args.write(prot);
2723
        prot.writeMessageEnd();
2724
      }
2725
 
2726
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2727
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2728
          throw new IllegalStateException("Method call not finished!");
2729
        }
2730
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2731
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2732
        (new Client(prot)).recv_addInventory();
2733
      }
2734
    }
2735
 
2736
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2737
      checkReady();
2738
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2739
      this.___currentMethod = method_call;
2740
      ___manager.call(method_call);
2741
    }
2742
 
2743
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2744
      private long warehouse_id;
2745
      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 {
2746
        super(client, protocolFactory, transport, resultHandler, false);
2747
        this.warehouse_id = warehouse_id;
2748
      }
2749
 
2750
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2751
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2752
        retireWarehouse_args args = new retireWarehouse_args();
2753
        args.setWarehouse_id(warehouse_id);
2754
        args.write(prot);
2755
        prot.writeMessageEnd();
2756
      }
2757
 
2758
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2759
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2760
          throw new IllegalStateException("Method call not finished!");
2761
        }
2762
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2763
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2764
        (new Client(prot)).recv_retireWarehouse();
2765
      }
2766
    }
2767
 
2768
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
2769
      checkReady();
2770
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2771
      this.___currentMethod = method_call;
2772
      ___manager.call(method_call);
2773
    }
2774
 
2775
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
2776
      private long item_id;
2777
      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 {
2778
        super(client, protocolFactory, transport, resultHandler, false);
2779
        this.item_id = item_id;
2780
      }
2781
 
2782
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2783
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
2784
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
2785
        args.setItem_id(item_id);
2786
        args.write(prot);
2787
        prot.writeMessageEnd();
2788
      }
2789
 
2790
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
2791
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2792
          throw new IllegalStateException("Method call not finished!");
2793
        }
2794
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2795
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2796
        return (new Client(prot)).recv_getItemInventoryByItemId();
2797
      }
2798
    }
2799
 
2800
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2801
      checkReady();
2802
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
2803
      this.___currentMethod = method_call;
2804
      ___manager.call(method_call);
2805
    }
2806
 
2807
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2808
      private long warehouse_id;
2809
      private long item_id;
2810
      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 {
2811
        super(client, protocolFactory, transport, resultHandler, false);
2812
        this.warehouse_id = warehouse_id;
2813
        this.item_id = item_id;
2814
      }
2815
 
2816
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2817
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2818
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
2819
        args.setWarehouse_id(warehouse_id);
2820
        args.setItem_id(item_id);
2821
        args.write(prot);
2822
        prot.writeMessageEnd();
2823
      }
2824
 
2825
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2826
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2827
          throw new IllegalStateException("Method call not finished!");
2828
        }
2829
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2830
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2831
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
2832
      }
2833
    }
2834
 
5978 rajveer 2835
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 2836
      checkReady();
5978 rajveer 2837
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2838
      this.___currentMethod = method_call;
2839
      ___manager.call(method_call);
2840
    }
2841
 
2842
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
2843
      private long itemId;
5978 rajveer 2844
      private long sourceId;
2845
      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 2846
        super(client, protocolFactory, transport, resultHandler, false);
2847
        this.itemId = itemId;
5978 rajveer 2848
        this.sourceId = sourceId;
5945 mandeep.dh 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("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
2853
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
2854
        args.setItemId(itemId);
5978 rajveer 2855
        args.setSourceId(sourceId);
5945 mandeep.dh 2856
        args.write(prot);
2857
        prot.writeMessageEnd();
2858
      }
2859
 
2860
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2861
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2862
          throw new IllegalStateException("Method call not finished!");
2863
        }
2864
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2865
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2866
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
2867
      }
2868
    }
2869
 
2870
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
2871
      checkReady();
2872
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
2873
      this.___currentMethod = method_call;
2874
      ___manager.call(method_call);
2875
    }
2876
 
2877
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2878
      private boolean isActive;
2879
      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 {
2880
        super(client, protocolFactory, transport, resultHandler, false);
2881
        this.isActive = isActive;
2882
      }
2883
 
2884
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2885
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2886
        getAllWarehouses_args args = new getAllWarehouses_args();
2887
        args.setIsActive(isActive);
2888
        args.write(prot);
2889
        prot.writeMessageEnd();
2890
      }
2891
 
2892
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2893
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2894
          throw new IllegalStateException("Method call not finished!");
2895
        }
2896
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2897
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2898
        return (new Client(prot)).recv_getAllWarehouses();
2899
      }
2900
    }
2901
 
2902
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2903
      checkReady();
2904
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2905
      this.___currentMethod = method_call;
2906
      ___manager.call(method_call);
2907
    }
2908
 
2909
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2910
      private long warehouse_id;
2911
      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 {
2912
        super(client, protocolFactory, transport, resultHandler, false);
2913
        this.warehouse_id = warehouse_id;
2914
      }
2915
 
2916
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2917
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2918
        getWarehouse_args args = new getWarehouse_args();
2919
        args.setWarehouse_id(warehouse_id);
2920
        args.write(prot);
2921
        prot.writeMessageEnd();
2922
      }
2923
 
2924
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
2925
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2926
          throw new IllegalStateException("Method call not finished!");
2927
        }
2928
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2929
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2930
        return (new Client(prot)).recv_getWarehouse();
2931
      }
2932
    }
2933
 
2934
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2935
      checkReady();
2936
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2937
      this.___currentMethod = method_call;
2938
      ___manager.call(method_call);
2939
    }
2940
 
2941
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2942
      private long warehouse_id;
2943
      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 {
2944
        super(client, protocolFactory, transport, resultHandler, false);
2945
        this.warehouse_id = warehouse_id;
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("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2950
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
2951
        args.setWarehouse_id(warehouse_id);
2952
        args.write(prot);
2953
        prot.writeMessageEnd();
2954
      }
2955
 
2956
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2957
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2958
          throw new IllegalStateException("Method call not finished!");
2959
        }
2960
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2961
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2962
        return (new Client(prot)).recv_getAllItemsForWarehouse();
2963
      }
2964
    }
2965
 
5967 rajveer 2966
    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 2967
      checkReady();
5967 rajveer 2968
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2969
      this.___currentMethod = method_call;
2970
      ___manager.call(method_call);
2971
    }
2972
 
5967 rajveer 2973
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
2974
      private long itemId;
2975
      private long warehouseId;
2976
      private long sourceId;
2977
      private long orderId;
2978
      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 {
2979
        super(client, protocolFactory, transport, resultHandler, false);
2980
        this.itemId = itemId;
2981
        this.warehouseId = warehouseId;
2982
        this.sourceId = sourceId;
2983
        this.orderId = orderId;
2984
      }
2985
 
2986
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2987
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2988
        isOrderBillable_args args = new isOrderBillable_args();
2989
        args.setItemId(itemId);
2990
        args.setWarehouseId(warehouseId);
2991
        args.setSourceId(sourceId);
2992
        args.setOrderId(orderId);
2993
        args.write(prot);
2994
        prot.writeMessageEnd();
2995
      }
2996
 
2997
      public boolean getResult() throws org.apache.thrift.TException {
2998
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2999
          throw new IllegalStateException("Method call not finished!");
3000
        }
3001
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3002
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3003
        return (new Client(prot)).recv_isOrderBillable();
3004
      }
3005
    }
3006
 
3007
    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 {
3008
      checkReady();
3009
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
3010
      this.___currentMethod = method_call;
3011
      ___manager.call(method_call);
3012
    }
3013
 
5945 mandeep.dh 3014
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
3015
      private long itemId;
3016
      private long warehouseId;
5967 rajveer 3017
      private long sourceId;
3018
      private long orderId;
3019
      private long createdTimestamp;
3020
      private long promisedShippingTimestamp;
5945 mandeep.dh 3021
      private double quantity;
5967 rajveer 3022
      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 3023
        super(client, protocolFactory, transport, resultHandler, false);
3024
        this.itemId = itemId;
3025
        this.warehouseId = warehouseId;
5967 rajveer 3026
        this.sourceId = sourceId;
3027
        this.orderId = orderId;
3028
        this.createdTimestamp = createdTimestamp;
3029
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 3030
        this.quantity = quantity;
3031
      }
3032
 
3033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
3035
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
3036
        args.setItemId(itemId);
3037
        args.setWarehouseId(warehouseId);
5967 rajveer 3038
        args.setSourceId(sourceId);
3039
        args.setOrderId(orderId);
3040
        args.setCreatedTimestamp(createdTimestamp);
3041
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 3042
        args.setQuantity(quantity);
3043
        args.write(prot);
3044
        prot.writeMessageEnd();
3045
      }
3046
 
3047
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
3048
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3049
          throw new IllegalStateException("Method call not finished!");
3050
        }
3051
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3052
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3053
        return (new Client(prot)).recv_reserveItemInWarehouse();
3054
      }
3055
    }
3056
 
7968 amar.kumar 3057
    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 {
3058
      checkReady();
3059
      updateReservationForOrder_call method_call = new updateReservationForOrder_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
3060
      this.___currentMethod = method_call;
3061
      ___manager.call(method_call);
3062
    }
3063
 
3064
    public static class updateReservationForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
3065
      private long itemId;
3066
      private long warehouseId;
3067
      private long sourceId;
3068
      private long orderId;
3069
      private long createdTimestamp;
3070
      private long promisedShippingTimestamp;
3071
      private double quantity;
3072
      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 {
3073
        super(client, protocolFactory, transport, resultHandler, false);
3074
        this.itemId = itemId;
3075
        this.warehouseId = warehouseId;
3076
        this.sourceId = sourceId;
3077
        this.orderId = orderId;
3078
        this.createdTimestamp = createdTimestamp;
3079
        this.promisedShippingTimestamp = promisedShippingTimestamp;
3080
        this.quantity = quantity;
3081
      }
3082
 
3083
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3084
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateReservationForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
3085
        updateReservationForOrder_args args = new updateReservationForOrder_args();
3086
        args.setItemId(itemId);
3087
        args.setWarehouseId(warehouseId);
3088
        args.setSourceId(sourceId);
3089
        args.setOrderId(orderId);
3090
        args.setCreatedTimestamp(createdTimestamp);
3091
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
3092
        args.setQuantity(quantity);
3093
        args.write(prot);
3094
        prot.writeMessageEnd();
3095
      }
3096
 
3097
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
3098
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3099
          throw new IllegalStateException("Method call not finished!");
3100
        }
3101
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3102
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3103
        return (new Client(prot)).recv_updateReservationForOrder();
3104
      }
3105
    }
3106
 
5967 rajveer 3107
    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 3108
      checkReady();
5967 rajveer 3109
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 3110
      this.___currentMethod = method_call;
3111
      ___manager.call(method_call);
3112
    }
3113
 
3114
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3115
      private long itemId;
3116
      private long warehouseId;
5967 rajveer 3117
      private long sourceId;
3118
      private long orderId;
5945 mandeep.dh 3119
      private double quantity;
5967 rajveer 3120
      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 3121
        super(client, protocolFactory, transport, resultHandler, false);
3122
        this.itemId = itemId;
3123
        this.warehouseId = warehouseId;
5967 rajveer 3124
        this.sourceId = sourceId;
3125
        this.orderId = orderId;
5945 mandeep.dh 3126
        this.quantity = quantity;
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("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3131
        reduceReservationCount_args args = new reduceReservationCount_args();
3132
        args.setItemId(itemId);
3133
        args.setWarehouseId(warehouseId);
5967 rajveer 3134
        args.setSourceId(sourceId);
3135
        args.setOrderId(orderId);
5945 mandeep.dh 3136
        args.setQuantity(quantity);
3137
        args.write(prot);
3138
        prot.writeMessageEnd();
3139
      }
3140
 
3141
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
3142
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3143
          throw new IllegalStateException("Method call not finished!");
3144
        }
3145
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3146
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3147
        return (new Client(prot)).recv_reduceReservationCount();
3148
      }
3149
    }
3150
 
3151
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
3152
      checkReady();
3153
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
3154
      this.___currentMethod = method_call;
3155
      ___manager.call(method_call);
3156
    }
3157
 
3158
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
3159
      private long itemId;
3160
      private long vendorId;
3161
      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 {
3162
        super(client, protocolFactory, transport, resultHandler, false);
3163
        this.itemId = itemId;
3164
        this.vendorId = vendorId;
3165
      }
3166
 
3167
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3168
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
3169
        getItemPricing_args args = new getItemPricing_args();
3170
        args.setItemId(itemId);
3171
        args.setVendorId(vendorId);
3172
        args.write(prot);
3173
        prot.writeMessageEnd();
3174
      }
3175
 
3176
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
3177
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3178
          throw new IllegalStateException("Method call not finished!");
3179
        }
3180
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3181
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3182
        return (new Client(prot)).recv_getItemPricing();
3183
      }
3184
    }
3185
 
3186
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
3187
      checkReady();
3188
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3189
      this.___currentMethod = method_call;
3190
      ___manager.call(method_call);
3191
    }
3192
 
3193
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
3194
      private long itemId;
3195
      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 {
3196
        super(client, protocolFactory, transport, resultHandler, false);
3197
        this.itemId = itemId;
3198
      }
3199
 
3200
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3201
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
3202
        getAllItemPricing_args args = new getAllItemPricing_args();
3203
        args.setItemId(itemId);
3204
        args.write(prot);
3205
        prot.writeMessageEnd();
3206
      }
3207
 
3208
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
3209
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3210
          throw new IllegalStateException("Method call not finished!");
3211
        }
3212
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3213
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3214
        return (new Client(prot)).recv_getAllItemPricing();
3215
      }
3216
    }
3217
 
3218
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
3219
      checkReady();
3220
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
3221
      this.___currentMethod = method_call;
3222
      ___manager.call(method_call);
3223
    }
3224
 
3225
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
3226
      private VendorItemPricing vendorItemPricing;
3227
      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 {
3228
        super(client, protocolFactory, transport, resultHandler, false);
3229
        this.vendorItemPricing = vendorItemPricing;
3230
      }
3231
 
3232
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3233
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
3234
        addVendorItemPricing_args args = new addVendorItemPricing_args();
3235
        args.setVendorItemPricing(vendorItemPricing);
3236
        args.write(prot);
3237
        prot.writeMessageEnd();
3238
      }
3239
 
3240
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3241
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3242
          throw new IllegalStateException("Method call not finished!");
3243
        }
3244
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3245
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3246
        (new Client(prot)).recv_addVendorItemPricing();
3247
      }
3248
    }
3249
 
3250
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
3251
      checkReady();
3252
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
3253
      this.___currentMethod = method_call;
3254
      ___manager.call(method_call);
3255
    }
3256
 
3257
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
3258
      private long vendorId;
3259
      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 {
3260
        super(client, protocolFactory, transport, resultHandler, false);
3261
        this.vendorId = vendorId;
3262
      }
3263
 
3264
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3265
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
3266
        getVendor_args args = new getVendor_args();
3267
        args.setVendorId(vendorId);
3268
        args.write(prot);
3269
        prot.writeMessageEnd();
3270
      }
3271
 
3272
      public Vendor getResult() throws org.apache.thrift.TException {
3273
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3274
          throw new IllegalStateException("Method call not finished!");
3275
        }
3276
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3277
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3278
        return (new Client(prot)).recv_getVendor();
3279
      }
3280
    }
3281
 
3282
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
3283
      checkReady();
3284
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
3285
      this.___currentMethod = method_call;
3286
      ___manager.call(method_call);
3287
    }
3288
 
3289
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
3290
      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 {
3291
        super(client, protocolFactory, transport, resultHandler, false);
3292
      }
3293
 
3294
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3295
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
3296
        getAllVendors_args args = new getAllVendors_args();
3297
        args.write(prot);
3298
        prot.writeMessageEnd();
3299
      }
3300
 
3301
      public List<Vendor> getResult() throws org.apache.thrift.TException {
3302
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3303
          throw new IllegalStateException("Method call not finished!");
3304
        }
3305
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3306
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3307
        return (new Client(prot)).recv_getAllVendors();
3308
      }
3309
    }
3310
 
3311
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
3312
      checkReady();
3313
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
3314
      this.___currentMethod = method_call;
3315
      ___manager.call(method_call);
3316
    }
3317
 
3318
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
3319
      private String key;
3320
      private VendorItemMapping vendorItemMapping;
3321
      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 {
3322
        super(client, protocolFactory, transport, resultHandler, false);
3323
        this.key = key;
3324
        this.vendorItemMapping = vendorItemMapping;
3325
      }
3326
 
3327
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3328
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
3329
        addVendorItemMapping_args args = new addVendorItemMapping_args();
3330
        args.setKey(key);
3331
        args.setVendorItemMapping(vendorItemMapping);
3332
        args.write(prot);
3333
        prot.writeMessageEnd();
3334
      }
3335
 
3336
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3337
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3338
          throw new IllegalStateException("Method call not finished!");
3339
        }
3340
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3341
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3342
        (new Client(prot)).recv_addVendorItemMapping();
3343
      }
3344
    }
3345
 
3346
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
3347
      checkReady();
3348
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3349
      this.___currentMethod = method_call;
3350
      ___manager.call(method_call);
3351
    }
3352
 
3353
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
3354
      private long itemId;
3355
      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 {
3356
        super(client, protocolFactory, transport, resultHandler, false);
3357
        this.itemId = itemId;
3358
      }
3359
 
3360
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3361
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
3362
        getVendorItemMappings_args args = new getVendorItemMappings_args();
3363
        args.setItemId(itemId);
3364
        args.write(prot);
3365
        prot.writeMessageEnd();
3366
      }
3367
 
3368
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
3369
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3370
          throw new IllegalStateException("Method call not finished!");
3371
        }
3372
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3373
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3374
        return (new Client(prot)).recv_getVendorItemMappings();
3375
      }
3376
    }
3377
 
3378
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
3379
      checkReady();
3380
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
3381
      this.___currentMethod = method_call;
3382
      ___manager.call(method_call);
3383
    }
3384
 
3385
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3386
      private long vendorid;
3387
      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 {
3388
        super(client, protocolFactory, transport, resultHandler, false);
3389
        this.vendorid = vendorid;
3390
      }
3391
 
3392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3394
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
3395
        args.setVendorid(vendorid);
3396
        args.write(prot);
3397
        prot.writeMessageEnd();
3398
      }
3399
 
3400
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
3401
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3402
          throw new IllegalStateException("Method call not finished!");
3403
        }
3404
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3405
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3406
        return (new Client(prot)).recv_getPendingOrdersInventory();
3407
      }
3408
    }
3409
 
3410
    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 {
3411
      checkReady();
3412
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3413
      this.___currentMethod = method_call;
3414
      ___manager.call(method_call);
3415
    }
3416
 
3417
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
3418
      private WarehouseType warehouseType;
3419
      private InventoryType inventoryType;
3420
      private long vendorId;
3421
      private long billingWarehouseId;
3422
      private long shippingWarehouseId;
3423
      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 {
3424
        super(client, protocolFactory, transport, resultHandler, false);
3425
        this.warehouseType = warehouseType;
3426
        this.inventoryType = inventoryType;
3427
        this.vendorId = vendorId;
3428
        this.billingWarehouseId = billingWarehouseId;
3429
        this.shippingWarehouseId = shippingWarehouseId;
3430
      }
3431
 
3432
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3433
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
3434
        getWarehouses_args args = new getWarehouses_args();
3435
        args.setWarehouseType(warehouseType);
3436
        args.setInventoryType(inventoryType);
3437
        args.setVendorId(vendorId);
3438
        args.setBillingWarehouseId(billingWarehouseId);
3439
        args.setShippingWarehouseId(shippingWarehouseId);
3440
        args.write(prot);
3441
        prot.writeMessageEnd();
3442
      }
3443
 
3444
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
3445
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3446
          throw new IllegalStateException("Method call not finished!");
3447
        }
3448
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3449
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3450
        return (new Client(prot)).recv_getWarehouses();
3451
      }
3452
    }
3453
 
3454
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
3455
      checkReady();
3456
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3457
      this.___currentMethod = method_call;
3458
      ___manager.call(method_call);
3459
    }
3460
 
3461
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
3462
      private String itemKey;
3463
      private long vendorId;
3464
      private long quantity;
3465
      private long warehouseId;
3466
      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 {
3467
        super(client, protocolFactory, transport, resultHandler, false);
3468
        this.itemKey = itemKey;
3469
        this.vendorId = vendorId;
3470
        this.quantity = quantity;
3471
        this.warehouseId = warehouseId;
3472
      }
3473
 
3474
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3475
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
3476
        resetAvailability_args args = new resetAvailability_args();
3477
        args.setItemKey(itemKey);
3478
        args.setVendorId(vendorId);
3479
        args.setQuantity(quantity);
3480
        args.setWarehouseId(warehouseId);
3481
        args.write(prot);
3482
        prot.writeMessageEnd();
3483
      }
3484
 
3485
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3486
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3487
          throw new IllegalStateException("Method call not finished!");
3488
        }
3489
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3490
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3491
        (new Client(prot)).recv_resetAvailability();
3492
      }
3493
    }
3494
 
3495
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
3496
      checkReady();
3497
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3498
      this.___currentMethod = method_call;
3499
      ___manager.call(method_call);
3500
    }
3501
 
3502
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
3503
      private long warehouseId;
3504
      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 {
3505
        super(client, protocolFactory, transport, resultHandler, false);
3506
        this.warehouseId = warehouseId;
3507
      }
3508
 
3509
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3510
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
3511
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
3512
        args.setWarehouseId(warehouseId);
3513
        args.write(prot);
3514
        prot.writeMessageEnd();
3515
      }
3516
 
3517
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3518
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3519
          throw new IllegalStateException("Method call not finished!");
3520
        }
3521
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3522
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3523
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
3524
      }
3525
    }
3526
 
3527
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
3528
      checkReady();
3529
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3530
      this.___currentMethod = method_call;
3531
      ___manager.call(method_call);
3532
    }
3533
 
3534
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
3535
      private long warehouseId;
3536
      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 {
3537
        super(client, protocolFactory, transport, resultHandler, false);
3538
        this.warehouseId = warehouseId;
3539
      }
3540
 
3541
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3542
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
3543
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
3544
        args.setWarehouseId(warehouseId);
3545
        args.write(prot);
3546
        prot.writeMessageEnd();
3547
      }
3548
 
3549
      public List<String> getResult() throws org.apache.thrift.TException {
3550
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3551
          throw new IllegalStateException("Method call not finished!");
3552
        }
3553
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3554
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3555
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
3556
      }
3557
    }
3558
 
3559
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
3560
      checkReady();
3561
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3562
      this.___currentMethod = method_call;
3563
      ___manager.call(method_call);
3564
    }
3565
 
3566
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
3567
      private String itemKey;
3568
      private long warehouseId;
3569
      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 {
3570
        super(client, protocolFactory, transport, resultHandler, false);
3571
        this.itemKey = itemKey;
3572
        this.warehouseId = warehouseId;
3573
      }
3574
 
3575
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3576
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
3577
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
3578
        args.setItemKey(itemKey);
3579
        args.setWarehouseId(warehouseId);
3580
        args.write(prot);
3581
        prot.writeMessageEnd();
3582
      }
3583
 
3584
      public void getResult() throws org.apache.thrift.TException {
3585
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3586
          throw new IllegalStateException("Method call not finished!");
3587
        }
3588
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3589
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3590
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
3591
      }
3592
    }
3593
 
3594
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
3595
      checkReady();
3596
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
3597
      this.___currentMethod = method_call;
3598
      ___manager.call(method_call);
3599
    }
3600
 
3601
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
3602
      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 {
3603
        super(client, protocolFactory, transport, resultHandler, false);
3604
      }
3605
 
3606
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3607
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
3608
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
3609
        args.write(prot);
3610
        prot.writeMessageEnd();
3611
      }
3612
 
3613
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
3614
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3615
          throw new IllegalStateException("Method call not finished!");
3616
        }
3617
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3618
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3619
        return (new Client(prot)).recv_getIgnoredItemKeys();
3620
      }
3621
    }
3622
 
3623
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
3624
      checkReady();
3625
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
3626
      this.___currentMethod = method_call;
3627
      ___manager.call(method_call);
3628
    }
3629
 
3630
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3631
      private long itemId;
3632
      private long warehouseId;
3633
      private long quantity;
3634
      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 {
3635
        super(client, protocolFactory, transport, resultHandler, false);
3636
        this.itemId = itemId;
3637
        this.warehouseId = warehouseId;
3638
        this.quantity = quantity;
3639
      }
3640
 
3641
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3642
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3643
        addBadInventory_args args = new addBadInventory_args();
3644
        args.setItemId(itemId);
3645
        args.setWarehouseId(warehouseId);
3646
        args.setQuantity(quantity);
3647
        args.write(prot);
3648
        prot.writeMessageEnd();
3649
      }
3650
 
3651
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
3652
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3653
          throw new IllegalStateException("Method call not finished!");
3654
        }
3655
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3656
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3657
        (new Client(prot)).recv_addBadInventory();
3658
      }
3659
    }
3660
 
3661
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
3662
      checkReady();
3663
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
3664
      this.___currentMethod = method_call;
3665
      ___manager.call(method_call);
3666
    }
3667
 
3668
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
3669
      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 {
3670
        super(client, protocolFactory, transport, resultHandler, false);
3671
      }
3672
 
3673
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3674
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
3675
        getShippingLocations_args args = new getShippingLocations_args();
3676
        args.write(prot);
3677
        prot.writeMessageEnd();
3678
      }
3679
 
3680
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
3681
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3682
          throw new IllegalStateException("Method call not finished!");
3683
        }
3684
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3685
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3686
        return (new Client(prot)).recv_getShippingLocations();
3687
      }
3688
    }
3689
 
3690
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
3691
      checkReady();
3692
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
3693
      this.___currentMethod = method_call;
3694
      ___manager.call(method_call);
3695
    }
3696
 
3697
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
3698
      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 {
3699
        super(client, protocolFactory, transport, resultHandler, false);
3700
      }
3701
 
3702
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3703
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
3704
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
3705
        args.write(prot);
3706
        prot.writeMessageEnd();
3707
      }
3708
 
3709
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
3710
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3711
          throw new IllegalStateException("Method call not finished!");
3712
        }
3713
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3714
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3715
        return (new Client(prot)).recv_getAllVendorItemMappings();
3716
      }
3717
    }
3718
 
3719
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
3720
      checkReady();
3721
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
3722
      this.___currentMethod = method_call;
3723
      ___manager.call(method_call);
3724
    }
3725
 
3726
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
3727
      private long warehouseId;
3728
      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 {
3729
        super(client, protocolFactory, transport, resultHandler, false);
3730
        this.warehouseId = warehouseId;
3731
      }
3732
 
3733
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3734
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
3735
        getInventorySnapshot_args args = new getInventorySnapshot_args();
3736
        args.setWarehouseId(warehouseId);
3737
        args.write(prot);
3738
        prot.writeMessageEnd();
3739
      }
3740
 
3741
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
3742
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3743
          throw new IllegalStateException("Method call not finished!");
3744
        }
3745
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3746
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3747
        return (new Client(prot)).recv_getInventorySnapshot();
3748
      }
3749
    }
3750
 
3751
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
3752
      checkReady();
3753
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
3754
      this.___currentMethod = method_call;
3755
      ___manager.call(method_call);
3756
    }
3757
 
3758
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
3759
      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 {
3760
        super(client, protocolFactory, transport, resultHandler, false);
3761
      }
3762
 
3763
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3764
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
3765
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
3766
        args.write(prot);
3767
        prot.writeMessageEnd();
3768
      }
3769
 
3770
      public void getResult() throws org.apache.thrift.TException {
3771
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3772
          throw new IllegalStateException("Method call not finished!");
3773
        }
3774
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3775
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3776
        (new Client(prot)).recv_clearItemAvailabilityCache();
3777
      }
3778
    }
3779
 
3780
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
3781
      checkReady();
3782
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
3783
      this.___currentMethod = method_call;
3784
      ___manager.call(method_call);
3785
    }
3786
 
3787
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
3788
      private long warehouseId;
3789
      private String vendorString;
3790
      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 {
3791
        super(client, protocolFactory, transport, resultHandler, false);
3792
        this.warehouseId = warehouseId;
3793
        this.vendorString = vendorString;
3794
      }
3795
 
3796
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3797
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
3798
        updateVendorString_args args = new updateVendorString_args();
3799
        args.setWarehouseId(warehouseId);
3800
        args.setVendorString(vendorString);
3801
        args.write(prot);
3802
        prot.writeMessageEnd();
3803
      }
3804
 
3805
      public void getResult() throws org.apache.thrift.TException {
3806
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3807
          throw new IllegalStateException("Method call not finished!");
3808
        }
3809
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3810
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3811
        (new Client(prot)).recv_updateVendorString();
3812
      }
3813
    }
3814
 
6096 amit.gupta 3815
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
3816
      checkReady();
3817
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
3818
      this.___currentMethod = method_call;
3819
      ___manager.call(method_call);
3820
    }
3821
 
3822
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3823
      private long item_id;
3824
      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 {
3825
        super(client, protocolFactory, transport, resultHandler, false);
3826
        this.item_id = item_id;
3827
      }
3828
 
3829
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3830
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3831
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
3832
        args.setItem_id(item_id);
3833
        args.write(prot);
3834
        prot.writeMessageEnd();
3835
      }
3836
 
3837
      public void getResult() throws org.apache.thrift.TException {
3838
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3839
          throw new IllegalStateException("Method call not finished!");
3840
        }
3841
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3843
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
3844
      }
3845
    }
3846
 
7718 amar.kumar 3847
    public void getOurWarehouseIdForVendor(long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
6467 amar.kumar 3848
      checkReady();
7718 amar.kumar 3849
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
6467 amar.kumar 3850
      this.___currentMethod = method_call;
3851
      ___manager.call(method_call);
3852
    }
3853
 
3854
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
3855
      private long vendorId;
7718 amar.kumar 3856
      private long billingWarehouseId;
3857
      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 3858
        super(client, protocolFactory, transport, resultHandler, false);
3859
        this.vendorId = vendorId;
7718 amar.kumar 3860
        this.billingWarehouseId = billingWarehouseId;
6467 amar.kumar 3861
      }
3862
 
3863
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3864
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
3865
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
3866
        args.setVendorId(vendorId);
7718 amar.kumar 3867
        args.setBillingWarehouseId(billingWarehouseId);
6467 amar.kumar 3868
        args.write(prot);
3869
        prot.writeMessageEnd();
3870
      }
3871
 
3872
      public long getResult() throws org.apache.thrift.TException {
3873
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3874
          throw new IllegalStateException("Method call not finished!");
3875
        }
3876
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3877
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3878
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
3879
      }
3880
    }
3881
 
6484 amar.kumar 3882
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
3883
      checkReady();
3884
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
3885
      this.___currentMethod = method_call;
3886
      ___manager.call(method_call);
3887
    }
3888
 
3889
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
3890
      private List<Long> item_ids;
3891
      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 {
3892
        super(client, protocolFactory, transport, resultHandler, false);
3893
        this.item_ids = item_ids;
3894
      }
3895
 
3896
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3897
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
3898
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
3899
        args.setItem_ids(item_ids);
3900
        args.write(prot);
3901
        prot.writeMessageEnd();
3902
      }
3903
 
3904
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
3905
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3906
          throw new IllegalStateException("Method call not finished!");
3907
        }
3908
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3909
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3910
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
3911
      }
3912
    }
3913
 
6531 vikram.rag 3914
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException {
3915
      checkReady();
3916
      getMonitoredWarehouseForVendors_call method_call = new getMonitoredWarehouseForVendors_call(vendorIds, resultHandler, this, ___protocolFactory, ___transport);
3917
      this.___currentMethod = method_call;
3918
      ___manager.call(method_call);
3919
    }
3920
 
3921
    public static class getMonitoredWarehouseForVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
3922
      private List<Long> vendorIds;
3923
      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 {
3924
        super(client, protocolFactory, transport, resultHandler, false);
3925
        this.vendorIds = vendorIds;
3926
      }
3927
 
3928
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3929
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMonitoredWarehouseForVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
3930
        getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
3931
        args.setVendorIds(vendorIds);
3932
        args.write(prot);
3933
        prot.writeMessageEnd();
3934
      }
3935
 
3936
      public List<Long> getResult() throws org.apache.thrift.TException {
3937
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3938
          throw new IllegalStateException("Method call not finished!");
3939
        }
3940
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3941
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3942
        return (new Client(prot)).recv_getMonitoredWarehouseForVendors();
3943
      }
3944
    }
3945
 
3946
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException {
3947
      checkReady();
3948
      getIgnoredWarehouseidsAndItemids_call method_call = new getIgnoredWarehouseidsAndItemids_call(resultHandler, this, ___protocolFactory, ___transport);
3949
      this.___currentMethod = method_call;
3950
      ___manager.call(method_call);
3951
    }
3952
 
3953
    public static class getIgnoredWarehouseidsAndItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3954
      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 {
3955
        super(client, protocolFactory, transport, resultHandler, false);
3956
      }
3957
 
3958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredWarehouseidsAndItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3960
        getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
3961
        args.write(prot);
3962
        prot.writeMessageEnd();
3963
      }
3964
 
3965
      public List<IgnoredInventoryUpdateItems> getResult() throws org.apache.thrift.TException {
3966
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3967
          throw new IllegalStateException("Method call not finished!");
3968
        }
3969
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3970
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3971
        return (new Client(prot)).recv_getIgnoredWarehouseidsAndItemids();
3972
      }
3973
    }
3974
 
3975
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException {
3976
      checkReady();
3977
      insertItemtoIgnoreInventoryUpdatelist_call method_call = new insertItemtoIgnoreInventoryUpdatelist_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3978
      this.___currentMethod = method_call;
3979
      ___manager.call(method_call);
3980
    }
3981
 
3982
    public static class insertItemtoIgnoreInventoryUpdatelist_call extends org.apache.thrift.async.TAsyncMethodCall {
3983
      private long item_id;
3984
      private long warehouse_id;
3985
      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 {
3986
        super(client, protocolFactory, transport, resultHandler, false);
3987
        this.item_id = item_id;
3988
        this.warehouse_id = warehouse_id;
3989
      }
3990
 
3991
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3992
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertItemtoIgnoreInventoryUpdatelist", org.apache.thrift.protocol.TMessageType.CALL, 0));
3993
        insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
3994
        args.setItem_id(item_id);
3995
        args.setWarehouse_id(warehouse_id);
3996
        args.write(prot);
3997
        prot.writeMessageEnd();
3998
      }
3999
 
4000
      public boolean getResult() throws org.apache.thrift.TException {
4001
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4002
          throw new IllegalStateException("Method call not finished!");
4003
        }
4004
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4005
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4006
        return (new Client(prot)).recv_insertItemtoIgnoreInventoryUpdatelist();
4007
      }
4008
    }
4009
 
4010
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException {
4011
      checkReady();
4012
      deleteItemFromIgnoredInventoryUpdateList_call method_call = new deleteItemFromIgnoredInventoryUpdateList_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
4013
      this.___currentMethod = method_call;
4014
      ___manager.call(method_call);
4015
    }
4016
 
4017
    public static class deleteItemFromIgnoredInventoryUpdateList_call extends org.apache.thrift.async.TAsyncMethodCall {
4018
      private long item_id;
4019
      private long warehouse_id;
4020
      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 {
4021
        super(client, protocolFactory, transport, resultHandler, false);
4022
        this.item_id = item_id;
4023
        this.warehouse_id = warehouse_id;
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("deleteItemFromIgnoredInventoryUpdateList", org.apache.thrift.protocol.TMessageType.CALL, 0));
4028
        deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
4029
        args.setItem_id(item_id);
4030
        args.setWarehouse_id(warehouse_id);
4031
        args.write(prot);
4032
        prot.writeMessageEnd();
4033
      }
4034
 
4035
      public boolean getResult() throws org.apache.thrift.TException {
4036
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4037
          throw new IllegalStateException("Method call not finished!");
4038
        }
4039
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4040
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4041
        return (new Client(prot)).recv_deleteItemFromIgnoredInventoryUpdateList();
4042
      }
4043
    }
4044
 
4045
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException {
4046
      checkReady();
4047
      getAllIgnoredInventoryupdateItemsCount_call method_call = new getAllIgnoredInventoryupdateItemsCount_call(resultHandler, this, ___protocolFactory, ___transport);
4048
      this.___currentMethod = method_call;
4049
      ___manager.call(method_call);
4050
    }
4051
 
4052
    public static class getAllIgnoredInventoryupdateItemsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
4053
      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 {
4054
        super(client, protocolFactory, transport, resultHandler, false);
4055
      }
4056
 
4057
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4058
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryupdateItemsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
4059
        getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
4060
        args.write(prot);
4061
        prot.writeMessageEnd();
4062
      }
4063
 
4064
      public int getResult() throws org.apache.thrift.TException {
4065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4066
          throw new IllegalStateException("Method call not finished!");
4067
        }
4068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4070
        return (new Client(prot)).recv_getAllIgnoredInventoryupdateItemsCount();
4071
      }
4072
    }
4073
 
4074
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException {
4075
      checkReady();
4076
      getIgnoredInventoryUpdateItemids_call method_call = new getIgnoredInventoryUpdateItemids_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
4077
      this.___currentMethod = method_call;
4078
      ___manager.call(method_call);
4079
    }
4080
 
4081
    public static class getIgnoredInventoryUpdateItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
4082
      private int offset;
4083
      private int limit;
4084
      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 {
4085
        super(client, protocolFactory, transport, resultHandler, false);
4086
        this.offset = offset;
4087
        this.limit = limit;
4088
      }
4089
 
4090
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4091
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredInventoryUpdateItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
4092
        getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
4093
        args.setOffset(offset);
4094
        args.setLimit(limit);
4095
        args.write(prot);
4096
        prot.writeMessageEnd();
4097
      }
4098
 
4099
      public List<Long> getResult() throws org.apache.thrift.TException {
4100
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4101
          throw new IllegalStateException("Method call not finished!");
4102
        }
4103
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4104
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4105
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
4106
      }
4107
    }
4108
 
6821 amar.kumar 4109
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
4110
      checkReady();
4111
      updateItemStockPurchaseParams_call method_call = new updateItemStockPurchaseParams_call(item_id, numOfDaysStock, minStockLevel, resultHandler, this, ___protocolFactory, ___transport);
4112
      this.___currentMethod = method_call;
4113
      ___manager.call(method_call);
4114
    }
4115
 
4116
    public static class updateItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
4117
      private long item_id;
4118
      private int numOfDaysStock;
4119
      private long minStockLevel;
4120
      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 {
4121
        super(client, protocolFactory, transport, resultHandler, false);
4122
        this.item_id = item_id;
4123
        this.numOfDaysStock = numOfDaysStock;
4124
        this.minStockLevel = minStockLevel;
4125
      }
4126
 
4127
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4128
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
4129
        updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
4130
        args.setItem_id(item_id);
4131
        args.setNumOfDaysStock(numOfDaysStock);
4132
        args.setMinStockLevel(minStockLevel);
4133
        args.write(prot);
4134
        prot.writeMessageEnd();
4135
      }
4136
 
4137
      public void getResult() throws org.apache.thrift.TException {
4138
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4139
          throw new IllegalStateException("Method call not finished!");
4140
        }
4141
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4142
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4143
        (new Client(prot)).recv_updateItemStockPurchaseParams();
4144
      }
4145
    }
4146
 
4147
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
4148
      checkReady();
4149
      getItemStockPurchaseParams_call method_call = new getItemStockPurchaseParams_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
4150
      this.___currentMethod = method_call;
4151
      ___manager.call(method_call);
4152
    }
4153
 
4154
    public static class getItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
4155
      private long itemId;
4156
      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 {
4157
        super(client, protocolFactory, transport, resultHandler, false);
4158
        this.itemId = itemId;
4159
      }
4160
 
4161
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4162
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
4163
        getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
4164
        args.setItemId(itemId);
4165
        args.write(prot);
4166
        prot.writeMessageEnd();
4167
      }
4168
 
4169
      public ItemStockPurchaseParams getResult() throws org.apache.thrift.TException {
4170
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4171
          throw new IllegalStateException("Method call not finished!");
4172
        }
4173
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4174
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4175
        return (new Client(prot)).recv_getItemStockPurchaseParams();
4176
      }
4177
    }
4178
 
4179
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException {
4180
      checkReady();
4181
      addOosStatusForItem_call method_call = new addOosStatusForItem_call(oosStatusMap, date, resultHandler, this, ___protocolFactory, ___transport);
4182
      this.___currentMethod = method_call;
4183
      ___manager.call(method_call);
4184
    }
4185
 
4186
    public static class addOosStatusForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4187
      private Map<Long,Boolean> oosStatusMap;
4188
      private long date;
4189
      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 {
4190
        super(client, protocolFactory, transport, resultHandler, false);
4191
        this.oosStatusMap = oosStatusMap;
4192
        this.date = date;
4193
      }
4194
 
4195
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4196
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOosStatusForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4197
        addOosStatusForItem_args args = new addOosStatusForItem_args();
4198
        args.setOosStatusMap(oosStatusMap);
4199
        args.setDate(date);
4200
        args.write(prot);
4201
        prot.writeMessageEnd();
4202
      }
4203
 
4204
      public void getResult() throws org.apache.thrift.TException {
4205
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4206
          throw new IllegalStateException("Method call not finished!");
4207
        }
4208
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4209
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4210
        (new Client(prot)).recv_addOosStatusForItem();
4211
      }
4212
    }
4213
 
9665 rajveer 4214
    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 4215
      checkReady();
9665 rajveer 4216
      getOosStatusesForXDaysForItem_call method_call = new getOosStatusesForXDaysForItem_call(itemId, sourceId, days, resultHandler, this, ___protocolFactory, ___transport);
6832 amar.kumar 4217
      this.___currentMethod = method_call;
4218
      ___manager.call(method_call);
4219
    }
4220
 
4221
    public static class getOosStatusesForXDaysForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4222
      private long itemId;
9665 rajveer 4223
      private int sourceId;
6832 amar.kumar 4224
      private int days;
9665 rajveer 4225
      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 4226
        super(client, protocolFactory, transport, resultHandler, false);
4227
        this.itemId = itemId;
9665 rajveer 4228
        this.sourceId = sourceId;
6832 amar.kumar 4229
        this.days = days;
4230
      }
4231
 
4232
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4233
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOosStatusesForXDaysForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4234
        getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
4235
        args.setItemId(itemId);
9665 rajveer 4236
        args.setSourceId(sourceId);
6832 amar.kumar 4237
        args.setDays(days);
4238
        args.write(prot);
4239
        prot.writeMessageEnd();
4240
      }
4241
 
4242
      public List<OOSStatus> getResult() throws org.apache.thrift.TException {
4243
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4244
          throw new IllegalStateException("Method call not finished!");
4245
        }
4246
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4247
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4248
        return (new Client(prot)).recv_getOosStatusesForXDaysForItem();
4249
      }
4250
    }
4251
 
10126 amar.kumar 4252
    public void getOosStatusesForXDays(int sourceId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDays_call> resultHandler) throws org.apache.thrift.TException {
4253
      checkReady();
4254
      getOosStatusesForXDays_call method_call = new getOosStatusesForXDays_call(sourceId, days, resultHandler, this, ___protocolFactory, ___transport);
4255
      this.___currentMethod = method_call;
4256
      ___manager.call(method_call);
4257
    }
4258
 
4259
    public static class getOosStatusesForXDays_call extends org.apache.thrift.async.TAsyncMethodCall {
4260
      private int sourceId;
4261
      private int days;
4262
      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 {
4263
        super(client, protocolFactory, transport, resultHandler, false);
4264
        this.sourceId = sourceId;
4265
        this.days = days;
4266
      }
4267
 
4268
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4269
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOosStatusesForXDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
4270
        getOosStatusesForXDays_args args = new getOosStatusesForXDays_args();
4271
        args.setSourceId(sourceId);
4272
        args.setDays(days);
4273
        args.write(prot);
4274
        prot.writeMessageEnd();
4275
      }
4276
 
4277
      public List<OOSStatus> getResult() throws org.apache.thrift.TException {
4278
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4279
          throw new IllegalStateException("Method call not finished!");
4280
        }
4281
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4282
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4283
        return (new Client(prot)).recv_getOosStatusesForXDays();
4284
      }
4285
    }
4286
 
4287
    public void getAllVendorItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
4288
      checkReady();
4289
      getAllVendorItemPricing_call method_call = new getAllVendorItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
4290
      this.___currentMethod = method_call;
4291
      ___manager.call(method_call);
4292
    }
4293
 
4294
    public static class getAllVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
4295
      private long itemId;
4296
      private long vendorId;
4297
      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 {
4298
        super(client, protocolFactory, transport, resultHandler, false);
4299
        this.itemId = itemId;
4300
        this.vendorId = vendorId;
4301
      }
4302
 
4303
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4304
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
4305
        getAllVendorItemPricing_args args = new getAllVendorItemPricing_args();
4306
        args.setItemId(itemId);
4307
        args.setVendorId(vendorId);
4308
        args.write(prot);
4309
        prot.writeMessageEnd();
4310
      }
4311
 
4312
      public List<VendorItemPricing> getResult() throws org.apache.thrift.TException {
4313
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4314
          throw new IllegalStateException("Method call not finished!");
4315
        }
4316
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4317
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4318
        return (new Client(prot)).recv_getAllVendorItemPricing();
4319
      }
4320
    }
4321
 
6857 amar.kumar 4322
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
4323
      checkReady();
4324
      getNonZeroItemStockPurchaseParams_call method_call = new getNonZeroItemStockPurchaseParams_call(resultHandler, this, ___protocolFactory, ___transport);
4325
      this.___currentMethod = method_call;
4326
      ___manager.call(method_call);
4327
    }
4328
 
4329
    public static class getNonZeroItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
4330
      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 {
4331
        super(client, protocolFactory, transport, resultHandler, false);
4332
      }
4333
 
4334
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4335
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonZeroItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
4336
        getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
4337
        args.write(prot);
4338
        prot.writeMessageEnd();
4339
      }
4340
 
4341
      public List<ItemStockPurchaseParams> getResult() throws org.apache.thrift.TException {
4342
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4343
          throw new IllegalStateException("Method call not finished!");
4344
        }
4345
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4346
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4347
        return (new Client(prot)).recv_getNonZeroItemStockPurchaseParams();
4348
      }
4349
    }
4350
 
7149 amar.kumar 4351
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException {
4352
      checkReady();
4353
      getBillableInventoryAndPendingOrders_call method_call = new getBillableInventoryAndPendingOrders_call(resultHandler, this, ___protocolFactory, ___transport);
4354
      this.___currentMethod = method_call;
4355
      ___manager.call(method_call);
4356
    }
4357
 
4358
    public static class getBillableInventoryAndPendingOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
4359
      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 {
4360
        super(client, protocolFactory, transport, resultHandler, false);
4361
      }
4362
 
4363
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4364
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBillableInventoryAndPendingOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
4365
        getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
4366
        args.write(prot);
4367
        prot.writeMessageEnd();
4368
      }
4369
 
4370
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
4371
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4372
          throw new IllegalStateException("Method call not finished!");
4373
        }
4374
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4375
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4376
        return (new Client(prot)).recv_getBillableInventoryAndPendingOrders();
4377
      }
4378
    }
4379
 
7281 kshitij.so 4380
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseName_call> resultHandler) throws org.apache.thrift.TException {
4381
      checkReady();
4382
      getWarehouseName_call method_call = new getWarehouseName_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
4383
      this.___currentMethod = method_call;
4384
      ___manager.call(method_call);
4385
    }
4386
 
4387
    public static class getWarehouseName_call extends org.apache.thrift.async.TAsyncMethodCall {
4388
      private long warehouse_id;
4389
      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 {
4390
        super(client, protocolFactory, transport, resultHandler, false);
4391
        this.warehouse_id = warehouse_id;
4392
      }
4393
 
4394
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4395
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseName", org.apache.thrift.protocol.TMessageType.CALL, 0));
4396
        getWarehouseName_args args = new getWarehouseName_args();
4397
        args.setWarehouse_id(warehouse_id);
4398
        args.write(prot);
4399
        prot.writeMessageEnd();
4400
      }
4401
 
4402
      public String getResult() throws org.apache.thrift.TException {
4403
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4404
          throw new IllegalStateException("Method call not finished!");
4405
        }
4406
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4407
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4408
        return (new Client(prot)).recv_getWarehouseName();
4409
      }
4410
    }
4411
 
4412
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
4413
      checkReady();
4414
      getAmazonInventoryForItem_call method_call = new getAmazonInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
4415
      this.___currentMethod = method_call;
4416
      ___manager.call(method_call);
4417
    }
4418
 
4419
    public static class getAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4420
      private long item_id;
4421
      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 {
4422
        super(client, protocolFactory, transport, resultHandler, false);
4423
        this.item_id = item_id;
4424
      }
4425
 
4426
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4427
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4428
        getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
4429
        args.setItem_id(item_id);
4430
        args.write(prot);
4431
        prot.writeMessageEnd();
4432
      }
4433
 
4434
      public AmazonInventorySnapshot getResult() throws org.apache.thrift.TException {
4435
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4436
          throw new IllegalStateException("Method call not finished!");
4437
        }
4438
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4439
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4440
        return (new Client(prot)).recv_getAmazonInventoryForItem();
4441
      }
4442
    }
4443
 
4444
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException {
4445
      checkReady();
4446
      getAllAmazonInventory_call method_call = new getAllAmazonInventory_call(resultHandler, this, ___protocolFactory, ___transport);
4447
      this.___currentMethod = method_call;
4448
      ___manager.call(method_call);
4449
    }
4450
 
4451
    public static class getAllAmazonInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4452
      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 {
4453
        super(client, protocolFactory, transport, resultHandler, false);
4454
      }
4455
 
4456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4458
        getAllAmazonInventory_args args = new getAllAmazonInventory_args();
4459
        args.write(prot);
4460
        prot.writeMessageEnd();
4461
      }
4462
 
4463
      public List<AmazonInventorySnapshot> getResult() throws org.apache.thrift.TException {
4464
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4465
          throw new IllegalStateException("Method call not finished!");
4466
        }
4467
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4468
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4469
        return (new Client(prot)).recv_getAllAmazonInventory();
4470
      }
4471
    }
4472
 
10450 vikram.rag 4473
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
7281 kshitij.so 4474
      checkReady();
10450 vikram.rag 4475
      addOrUpdateAmazonInventoryForItem_call method_call = new addOrUpdateAmazonInventoryForItem_call(amazonInventorySnapshot, time, resultHandler, this, ___protocolFactory, ___transport);
7281 kshitij.so 4476
      this.___currentMethod = method_call;
4477
      ___manager.call(method_call);
4478
    }
4479
 
4480
    public static class addOrUpdateAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4481
      private AmazonInventorySnapshot amazonInventorySnapshot;
10450 vikram.rag 4482
      private long time;
4483
      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 4484
        super(client, protocolFactory, transport, resultHandler, false);
4485
        this.amazonInventorySnapshot = amazonInventorySnapshot;
10450 vikram.rag 4486
        this.time = time;
7281 kshitij.so 4487
      }
4488
 
4489
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4490
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4491
        addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
4492
        args.setAmazonInventorySnapshot(amazonInventorySnapshot);
10450 vikram.rag 4493
        args.setTime(time);
7281 kshitij.so 4494
        args.write(prot);
4495
        prot.writeMessageEnd();
4496
      }
4497
 
4498
      public void getResult() throws org.apache.thrift.TException {
4499
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4500
          throw new IllegalStateException("Method call not finished!");
4501
        }
4502
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4503
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4504
        (new Client(prot)).recv_addOrUpdateAmazonInventoryForItem();
4505
      }
4506
    }
4507
 
7972 amar.kumar 4508
    public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException {
4509
      checkReady();
4510
      getLastNdaySaleForItem_call method_call = new getLastNdaySaleForItem_call(itemId, numberOfDays, resultHandler, this, ___protocolFactory, ___transport);
4511
      this.___currentMethod = method_call;
4512
      ___manager.call(method_call);
4513
    }
4514
 
4515
    public static class getLastNdaySaleForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4516
      private long itemId;
4517
      private long numberOfDays;
4518
      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 {
4519
        super(client, protocolFactory, transport, resultHandler, false);
4520
        this.itemId = itemId;
4521
        this.numberOfDays = numberOfDays;
4522
      }
4523
 
4524
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4525
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLastNdaySaleForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4526
        getLastNdaySaleForItem_args args = new getLastNdaySaleForItem_args();
4527
        args.setItemId(itemId);
4528
        args.setNumberOfDays(numberOfDays);
4529
        args.write(prot);
4530
        prot.writeMessageEnd();
4531
      }
4532
 
4533
      public String getResult() throws org.apache.thrift.TException {
4534
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4535
          throw new IllegalStateException("Method call not finished!");
4536
        }
4537
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4538
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4539
        return (new Client(prot)).recv_getLastNdaySaleForItem();
4540
      }
4541
    }
4542
 
8282 kshitij.so 4543
    public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
4544
      checkReady();
4545
      addOrUpdateAmazonFbaInventory_call method_call = new addOrUpdateAmazonFbaInventory_call(amazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
4546
      this.___currentMethod = method_call;
4547
      ___manager.call(method_call);
4548
    }
4549
 
4550
    public static class addOrUpdateAmazonFbaInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4551
      private AmazonFbaInventorySnapshot amazonfbainventorysnapshot;
4552
      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 {
4553
        super(client, protocolFactory, transport, resultHandler, false);
4554
        this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
4555
      }
4556
 
4557
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4558
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonFbaInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4559
        addOrUpdateAmazonFbaInventory_args args = new addOrUpdateAmazonFbaInventory_args();
4560
        args.setAmazonfbainventorysnapshot(amazonfbainventorysnapshot);
4561
        args.write(prot);
4562
        prot.writeMessageEnd();
4563
      }
4564
 
4565
      public void getResult() throws org.apache.thrift.TException {
4566
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4567
          throw new IllegalStateException("Method call not finished!");
4568
        }
4569
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4570
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4571
        (new Client(prot)).recv_addOrUpdateAmazonFbaInventory();
4572
      }
4573
    }
4574
 
8182 amar.kumar 4575
    public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException {
4576
      checkReady();
4577
      addUpdateHoldInventory_call method_call = new addUpdateHoldInventory_call(itemId, warehouseId, holdQuantity, source, resultHandler, this, ___protocolFactory, ___transport);
4578
      this.___currentMethod = method_call;
4579
      ___manager.call(method_call);
4580
    }
4581
 
4582
    public static class addUpdateHoldInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4583
      private long itemId;
4584
      private long warehouseId;
4585
      private long holdQuantity;
4586
      private long source;
4587
      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 {
4588
        super(client, protocolFactory, transport, resultHandler, false);
4589
        this.itemId = itemId;
4590
        this.warehouseId = warehouseId;
4591
        this.holdQuantity = holdQuantity;
4592
        this.source = source;
4593
      }
4594
 
4595
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4596
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUpdateHoldInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4597
        addUpdateHoldInventory_args args = new addUpdateHoldInventory_args();
4598
        args.setItemId(itemId);
4599
        args.setWarehouseId(warehouseId);
4600
        args.setHoldQuantity(holdQuantity);
4601
        args.setSource(source);
4602
        args.write(prot);
4603
        prot.writeMessageEnd();
4604
      }
4605
 
9762 amar.kumar 4606
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
8182 amar.kumar 4607
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4608
          throw new IllegalStateException("Method call not finished!");
4609
        }
4610
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4611
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4612
        (new Client(prot)).recv_addUpdateHoldInventory();
4613
      }
4614
    }
4615
 
8282 kshitij.so 4616
    public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
4617
      checkReady();
4618
      getAmazonFbaItemInventory_call method_call = new getAmazonFbaItemInventory_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
4619
      this.___currentMethod = method_call;
4620
      ___manager.call(method_call);
4621
    }
4622
 
4623
    public static class getAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4624
      private long itemId;
4625
      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 {
4626
        super(client, protocolFactory, transport, resultHandler, false);
4627
        this.itemId = itemId;
4628
      }
4629
 
4630
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4631
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4632
        getAmazonFbaItemInventory_args args = new getAmazonFbaItemInventory_args();
4633
        args.setItemId(itemId);
4634
        args.write(prot);
4635
        prot.writeMessageEnd();
4636
      }
4637
 
11173 vikram.rag 4638
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
8282 kshitij.so 4639
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4640
          throw new IllegalStateException("Method call not finished!");
4641
        }
4642
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4643
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4644
        return (new Client(prot)).recv_getAmazonFbaItemInventory();
4645
      }
4646
    }
4647
 
8363 vikram.rag 4648
    public void getAllAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
8282 kshitij.so 4649
      checkReady();
8363 vikram.rag 4650
      getAllAmazonFbaItemInventory_call method_call = new getAllAmazonFbaItemInventory_call(resultHandler, this, ___protocolFactory, ___transport);
8282 kshitij.so 4651
      this.___currentMethod = method_call;
4652
      ___manager.call(method_call);
4653
    }
4654
 
8363 vikram.rag 4655
    public static class getAllAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4656
      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 4657
        super(client, protocolFactory, transport, resultHandler, false);
4658
      }
4659
 
4660
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
8363 vikram.rag 4661
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4662
        getAllAmazonFbaItemInventory_args args = new getAllAmazonFbaItemInventory_args();
8282 kshitij.so 4663
        args.write(prot);
4664
        prot.writeMessageEnd();
4665
      }
4666
 
4667
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
4668
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4669
          throw new IllegalStateException("Method call not finished!");
4670
        }
4671
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4672
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8363 vikram.rag 4673
        return (new Client(prot)).recv_getAllAmazonFbaItemInventory();
8282 kshitij.so 4674
      }
4675
    }
4676
 
8363 vikram.rag 4677
    public void getOursGoodWarehouseIdsForLocation(long state_id, org.apache.thrift.async.AsyncMethodCallback<getOursGoodWarehouseIdsForLocation_call> resultHandler) throws org.apache.thrift.TException {
4678
      checkReady();
4679
      getOursGoodWarehouseIdsForLocation_call method_call = new getOursGoodWarehouseIdsForLocation_call(state_id, resultHandler, this, ___protocolFactory, ___transport);
4680
      this.___currentMethod = method_call;
4681
      ___manager.call(method_call);
4682
    }
4683
 
4684
    public static class getOursGoodWarehouseIdsForLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
4685
      private long state_id;
4686
      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 {
4687
        super(client, protocolFactory, transport, resultHandler, false);
4688
        this.state_id = state_id;
4689
      }
4690
 
4691
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4692
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOursGoodWarehouseIdsForLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
4693
        getOursGoodWarehouseIdsForLocation_args args = new getOursGoodWarehouseIdsForLocation_args();
4694
        args.setState_id(state_id);
4695
        args.write(prot);
4696
        prot.writeMessageEnd();
4697
      }
4698
 
4699
      public List<Long> getResult() throws org.apache.thrift.TException {
4700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4701
          throw new IllegalStateException("Method call not finished!");
4702
        }
4703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4705
        return (new Client(prot)).recv_getOursGoodWarehouseIdsForLocation();
4706
      }
4707
    }
4708
 
8958 vikram.rag 4709
    public void getHoldInventoryDetailForItemForWarehouseIdExceptSource(long id, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetailForItemForWarehouseIdExceptSource_call> resultHandler) throws org.apache.thrift.TException {
4710
      checkReady();
4711
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_call method_call = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_call(id, warehouse_id, source, resultHandler, this, ___protocolFactory, ___transport);
4712
      this.___currentMethod = method_call;
4713
      ___manager.call(method_call);
4714
    }
4715
 
4716
    public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_call extends org.apache.thrift.async.TAsyncMethodCall {
4717
      private long id;
4718
      private long warehouse_id;
4719
      private long source;
4720
      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 {
4721
        super(client, protocolFactory, transport, resultHandler, false);
4722
        this.id = id;
4723
        this.warehouse_id = warehouse_id;
4724
        this.source = source;
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("getHoldInventoryDetailForItemForWarehouseIdExceptSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
4729
        getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
4730
        args.setId(id);
4731
        args.setWarehouse_id(warehouse_id);
4732
        args.setSource(source);
4733
        args.write(prot);
4734
        prot.writeMessageEnd();
4735
      }
4736
 
4737
      public long getResult() throws org.apache.thrift.TException {
4738
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4739
          throw new IllegalStateException("Method call not finished!");
4740
        }
4741
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4743
        return (new Client(prot)).recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource();
4744
      }
4745
    }
4746
 
9404 vikram.rag 4747
    public void getSnapdealInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
4748
      checkReady();
4749
      getSnapdealInventoryForItem_call method_call = new getSnapdealInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
4750
      this.___currentMethod = method_call;
4751
      ___manager.call(method_call);
4752
    }
4753
 
4754
    public static class getSnapdealInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4755
      private long item_id;
4756
      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 {
4757
        super(client, protocolFactory, transport, resultHandler, false);
4758
        this.item_id = item_id;
4759
      }
4760
 
4761
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4762
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4763
        getSnapdealInventoryForItem_args args = new getSnapdealInventoryForItem_args();
4764
        args.setItem_id(item_id);
4765
        args.write(prot);
4766
        prot.writeMessageEnd();
4767
      }
4768
 
4769
      public SnapdealInventoryItem getResult() throws org.apache.thrift.TException {
4770
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4771
          throw new IllegalStateException("Method call not finished!");
4772
        }
4773
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4774
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4775
        return (new Client(prot)).recv_getSnapdealInventoryForItem();
4776
      }
4777
    }
4778
 
4779
    public void addOrUpdateSnapdealInventoryForItem(SnapdealInventoryItem snapdealinventoryitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateSnapdealInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
4780
      checkReady();
4781
      addOrUpdateSnapdealInventoryForItem_call method_call = new addOrUpdateSnapdealInventoryForItem_call(snapdealinventoryitem, resultHandler, this, ___protocolFactory, ___transport);
4782
      this.___currentMethod = method_call;
4783
      ___manager.call(method_call);
4784
    }
4785
 
4786
    public static class addOrUpdateSnapdealInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4787
      private SnapdealInventoryItem snapdealinventoryitem;
4788
      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 {
4789
        super(client, protocolFactory, transport, resultHandler, false);
4790
        this.snapdealinventoryitem = snapdealinventoryitem;
4791
      }
4792
 
4793
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4794
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateSnapdealInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4795
        addOrUpdateSnapdealInventoryForItem_args args = new addOrUpdateSnapdealInventoryForItem_args();
4796
        args.setSnapdealinventoryitem(snapdealinventoryitem);
4797
        args.write(prot);
4798
        prot.writeMessageEnd();
4799
      }
4800
 
4801
      public void getResult() throws org.apache.thrift.TException {
4802
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4803
          throw new IllegalStateException("Method call not finished!");
4804
        }
4805
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4806
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4807
        (new Client(prot)).recv_addOrUpdateSnapdealInventoryForItem();
4808
      }
4809
    }
4810
 
4811
    public void getNlcForWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getNlcForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
4812
      checkReady();
4813
      getNlcForWarehouse_call method_call = new getNlcForWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
4814
      this.___currentMethod = method_call;
4815
      ___manager.call(method_call);
4816
    }
4817
 
4818
    public static class getNlcForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
4819
      private long warehouse_id;
4820
      private long item_id;
4821
      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 {
4822
        super(client, protocolFactory, transport, resultHandler, false);
4823
        this.warehouse_id = warehouse_id;
4824
        this.item_id = item_id;
4825
      }
4826
 
4827
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4828
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNlcForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
4829
        getNlcForWarehouse_args args = new getNlcForWarehouse_args();
4830
        args.setWarehouse_id(warehouse_id);
4831
        args.setItem_id(item_id);
4832
        args.write(prot);
4833
        prot.writeMessageEnd();
4834
      }
4835
 
4836
      public double getResult() throws org.apache.thrift.TException {
4837
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4838
          throw new IllegalStateException("Method call not finished!");
4839
        }
4840
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4841
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4842
        return (new Client(prot)).recv_getNlcForWarehouse();
4843
      }
4844
    }
4845
 
9640 amar.kumar 4846
    public void getHeldInventoryMapForItem(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getHeldInventoryMapForItem_call> resultHandler) throws org.apache.thrift.TException {
4847
      checkReady();
4848
      getHeldInventoryMapForItem_call method_call = new getHeldInventoryMapForItem_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
4849
      this.___currentMethod = method_call;
4850
      ___manager.call(method_call);
4851
    }
4852
 
4853
    public static class getHeldInventoryMapForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
4854
      private long item_id;
4855
      private long warehouse_id;
4856
      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 {
4857
        super(client, protocolFactory, transport, resultHandler, false);
4858
        this.item_id = item_id;
4859
        this.warehouse_id = warehouse_id;
4860
      }
4861
 
4862
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4863
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHeldInventoryMapForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
4864
        getHeldInventoryMapForItem_args args = new getHeldInventoryMapForItem_args();
4865
        args.setItem_id(item_id);
4866
        args.setWarehouse_id(warehouse_id);
4867
        args.write(prot);
4868
        prot.writeMessageEnd();
4869
      }
4870
 
4871
      public Map<Integer,Long> getResult() throws org.apache.thrift.TException {
4872
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4873
          throw new IllegalStateException("Method call not finished!");
4874
        }
4875
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4876
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4877
        return (new Client(prot)).recv_getHeldInventoryMapForItem();
4878
      }
4879
    }
4880
 
9495 vikram.rag 4881
    public void addOrUpdateAllAmazonFbaInventory(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
9456 vikram.rag 4882
      checkReady();
9495 vikram.rag 4883
      addOrUpdateAllAmazonFbaInventory_call method_call = new addOrUpdateAllAmazonFbaInventory_call(allamazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
9456 vikram.rag 4884
      this.___currentMethod = method_call;
4885
      ___manager.call(method_call);
4886
    }
4887
 
9495 vikram.rag 4888
    public static class addOrUpdateAllAmazonFbaInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4889
      private List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot;
4890
      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 4891
        super(client, protocolFactory, transport, resultHandler, false);
9495 vikram.rag 4892
        this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
9456 vikram.rag 4893
      }
4894
 
4895
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
9495 vikram.rag 4896
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAllAmazonFbaInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4897
        addOrUpdateAllAmazonFbaInventory_args args = new addOrUpdateAllAmazonFbaInventory_args();
4898
        args.setAllamazonfbainventorysnapshot(allamazonfbainventorysnapshot);
9456 vikram.rag 4899
        args.write(prot);
4900
        prot.writeMessageEnd();
4901
      }
4902
 
9495 vikram.rag 4903
      public void getResult() throws org.apache.thrift.TException {
9456 vikram.rag 4904
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4905
          throw new IllegalStateException("Method call not finished!");
4906
        }
4907
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4908
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9495 vikram.rag 4909
        (new Client(prot)).recv_addOrUpdateAllAmazonFbaInventory();
9456 vikram.rag 4910
      }
4911
    }
4912
 
9495 vikram.rag 4913
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException {
9482 vikram.rag 4914
      checkReady();
9495 vikram.rag 4915
      addOrUpdateAllSnapdealInventory_call method_call = new addOrUpdateAllSnapdealInventory_call(allsnapdealinventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
9482 vikram.rag 4916
      this.___currentMethod = method_call;
4917
      ___manager.call(method_call);
4918
    }
4919
 
9495 vikram.rag 4920
    public static class addOrUpdateAllSnapdealInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
4921
      private List<SnapdealInventoryItem> allsnapdealinventorysnapshot;
4922
      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 4923
        super(client, protocolFactory, transport, resultHandler, false);
9495 vikram.rag 4924
        this.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot;
9482 vikram.rag 4925
      }
4926
 
4927
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
9495 vikram.rag 4928
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAllSnapdealInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
4929
        addOrUpdateAllSnapdealInventory_args args = new addOrUpdateAllSnapdealInventory_args();
4930
        args.setAllsnapdealinventorysnapshot(allsnapdealinventorysnapshot);
9482 vikram.rag 4931
        args.write(prot);
4932
        prot.writeMessageEnd();
4933
      }
4934
 
4935
      public void getResult() throws org.apache.thrift.TException {
4936
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4937
          throw new IllegalStateException("Method call not finished!");
4938
        }
4939
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4940
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9495 vikram.rag 4941
        (new Client(prot)).recv_addOrUpdateAllSnapdealInventory();
9482 vikram.rag 4942
      }
4943
    }
4944
 
9495 vikram.rag 4945
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
4946
      checkReady();
4947
      getSnapdealInventorySnapshot_call method_call = new getSnapdealInventorySnapshot_call(resultHandler, this, ___protocolFactory, ___transport);
4948
      this.___currentMethod = method_call;
4949
      ___manager.call(method_call);
4950
    }
4951
 
4952
    public static class getSnapdealInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
4953
      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 {
4954
        super(client, protocolFactory, transport, resultHandler, false);
4955
      }
4956
 
4957
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4958
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
4959
        getSnapdealInventorySnapshot_args args = new getSnapdealInventorySnapshot_args();
4960
        args.write(prot);
4961
        prot.writeMessageEnd();
4962
      }
4963
 
4964
      public List<SnapdealInventoryItem> getResult() throws org.apache.thrift.TException {
4965
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
4966
          throw new IllegalStateException("Method call not finished!");
4967
        }
4968
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
4969
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4970
        return (new Client(prot)).recv_getSnapdealInventorySnapshot();
4971
      }
4972
    }
4973
 
9761 amar.kumar 4974
    public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException {
4975
      checkReady();
4976
      getHoldInventoryDetails_call method_call = new getHoldInventoryDetails_call(itemId, warehouseId, source, resultHandler, this, ___protocolFactory, ___transport);
4977
      this.___currentMethod = method_call;
4978
      ___manager.call(method_call);
4979
    }
4980
 
4981
    public static class getHoldInventoryDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
4982
      private long itemId;
4983
      private long warehouseId;
4984
      private long source;
4985
      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 {
4986
        super(client, protocolFactory, transport, resultHandler, false);
4987
        this.itemId = itemId;
4988
        this.warehouseId = warehouseId;
4989
        this.source = source;
4990
      }
4991
 
4992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4993
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHoldInventoryDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
4994
        getHoldInventoryDetails_args args = new getHoldInventoryDetails_args();
4995
        args.setItemId(itemId);
4996
        args.setWarehouseId(warehouseId);
4997
        args.setSource(source);
4998
        args.write(prot);
4999
        prot.writeMessageEnd();
5000
      }
5001
 
5002
      public List<HoldInventoryDetail> getResult() throws org.apache.thrift.TException {
5003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5004
          throw new IllegalStateException("Method call not finished!");
5005
        }
5006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5008
        return (new Client(prot)).recv_getHoldInventoryDetails();
5009
      }
5010
    }
5011
 
10450 vikram.rag 5012
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, long time, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
10050 vikram.rag 5013
      checkReady();
10450 vikram.rag 5014
      addOrUpdateFlipkartInventorySnapshot_call method_call = new addOrUpdateFlipkartInventorySnapshot_call(flipkartInventorySnapshot, time, resultHandler, this, ___protocolFactory, ___transport);
10050 vikram.rag 5015
      this.___currentMethod = method_call;
5016
      ___manager.call(method_call);
5017
    }
5018
 
5019
    public static class addOrUpdateFlipkartInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
5020
      private List<FlipkartInventorySnapshot> flipkartInventorySnapshot;
10450 vikram.rag 5021
      private long time;
5022
      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 5023
        super(client, protocolFactory, transport, resultHandler, false);
5024
        this.flipkartInventorySnapshot = flipkartInventorySnapshot;
10450 vikram.rag 5025
        this.time = time;
10050 vikram.rag 5026
      }
5027
 
5028
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5029
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateFlipkartInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
5030
        addOrUpdateFlipkartInventorySnapshot_args args = new addOrUpdateFlipkartInventorySnapshot_args();
5031
        args.setFlipkartInventorySnapshot(flipkartInventorySnapshot);
10450 vikram.rag 5032
        args.setTime(time);
10050 vikram.rag 5033
        args.write(prot);
5034
        prot.writeMessageEnd();
5035
      }
5036
 
5037
      public void getResult() throws org.apache.thrift.TException {
5038
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5039
          throw new IllegalStateException("Method call not finished!");
5040
        }
5041
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5042
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5043
        (new Client(prot)).recv_addOrUpdateFlipkartInventorySnapshot();
5044
      }
5045
    }
5046
 
5047
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
5048
      checkReady();
5049
      getFlipkartInventorySnapshot_call method_call = new getFlipkartInventorySnapshot_call(resultHandler, this, ___protocolFactory, ___transport);
5050
      this.___currentMethod = method_call;
5051
      ___manager.call(method_call);
5052
    }
5053
 
5054
    public static class getFlipkartInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
5055
      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 {
5056
        super(client, protocolFactory, transport, resultHandler, false);
5057
      }
5058
 
5059
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5060
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
5061
        getFlipkartInventorySnapshot_args args = new getFlipkartInventorySnapshot_args();
5062
        args.write(prot);
5063
        prot.writeMessageEnd();
5064
      }
5065
 
5066
      public List<FlipkartInventorySnapshot> getResult() throws org.apache.thrift.TException {
5067
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5068
          throw new IllegalStateException("Method call not finished!");
5069
        }
5070
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5071
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5072
        return (new Client(prot)).recv_getFlipkartInventorySnapshot();
5073
      }
5074
    }
5075
 
10097 kshitij.so 5076
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
5077
      checkReady();
5078
      getFlipkartlInventoryForItem_call method_call = new getFlipkartlInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
5079
      this.___currentMethod = method_call;
5080
      ___manager.call(method_call);
5081
    }
5082
 
5083
    public static class getFlipkartlInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5084
      private long item_id;
5085
      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 {
5086
        super(client, protocolFactory, transport, resultHandler, false);
5087
        this.item_id = item_id;
5088
      }
5089
 
5090
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5091
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartlInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
5092
        getFlipkartlInventoryForItem_args args = new getFlipkartlInventoryForItem_args();
5093
        args.setItem_id(item_id);
5094
        args.write(prot);
5095
        prot.writeMessageEnd();
5096
      }
5097
 
5098
      public FlipkartInventorySnapshot getResult() throws org.apache.thrift.TException {
5099
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5100
          throw new IllegalStateException("Method call not finished!");
5101
        }
5102
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5103
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5104
        return (new Client(prot)).recv_getFlipkartlInventoryForItem();
5105
      }
5106
    }
5107
 
10485 vikram.rag 5108
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<getStateMaster_call> resultHandler) throws org.apache.thrift.TException {
5109
      checkReady();
5110
      getStateMaster_call method_call = new getStateMaster_call(resultHandler, this, ___protocolFactory, ___transport);
5111
      this.___currentMethod = method_call;
5112
      ___manager.call(method_call);
5113
    }
5114
 
5115
    public static class getStateMaster_call extends org.apache.thrift.async.TAsyncMethodCall {
5116
      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 {
5117
        super(client, protocolFactory, transport, resultHandler, false);
5118
      }
5119
 
5120
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5121
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStateMaster", org.apache.thrift.protocol.TMessageType.CALL, 0));
5122
        getStateMaster_args args = new getStateMaster_args();
5123
        args.write(prot);
5124
        prot.writeMessageEnd();
5125
      }
5126
 
12280 amit.gupta 5127
      public Map<Long,StateInfo> getResult() throws org.apache.thrift.TException {
10485 vikram.rag 5128
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5129
          throw new IllegalStateException("Method call not finished!");
5130
        }
5131
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5132
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5133
        return (new Client(prot)).recv_getStateMaster();
5134
      }
5135
    }
5136
 
10546 vikram.rag 5137
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException {
5138
      checkReady();
5139
      updateSnapdealStockAtEOD_call method_call = new updateSnapdealStockAtEOD_call(allsnapdealstock, resultHandler, this, ___protocolFactory, ___transport);
5140
      this.___currentMethod = method_call;
5141
      ___manager.call(method_call);
5142
    }
5143
 
5144
    public static class updateSnapdealStockAtEOD_call extends org.apache.thrift.async.TAsyncMethodCall {
5145
      private List<SnapdealStockAtEOD> allsnapdealstock;
5146
      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 {
5147
        super(client, protocolFactory, transport, resultHandler, false);
5148
        this.allsnapdealstock = allsnapdealstock;
5149
      }
5150
 
5151
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5152
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateSnapdealStockAtEOD", org.apache.thrift.protocol.TMessageType.CALL, 0));
5153
        updateSnapdealStockAtEOD_args args = new updateSnapdealStockAtEOD_args();
5154
        args.setAllsnapdealstock(allsnapdealstock);
5155
        args.write(prot);
5156
        prot.writeMessageEnd();
5157
      }
5158
 
5159
      public void getResult() throws org.apache.thrift.TException {
5160
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5161
          throw new IllegalStateException("Method call not finished!");
5162
        }
5163
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5164
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5165
        (new Client(prot)).recv_updateSnapdealStockAtEOD();
5166
      }
5167
    }
5168
 
5169
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException {
5170
      checkReady();
5171
      updateFlipkartStockAtEOD_call method_call = new updateFlipkartStockAtEOD_call(allflipkartstock, resultHandler, this, ___protocolFactory, ___transport);
5172
      this.___currentMethod = method_call;
5173
      ___manager.call(method_call);
5174
    }
5175
 
5176
    public static class updateFlipkartStockAtEOD_call extends org.apache.thrift.async.TAsyncMethodCall {
5177
      private List<FlipkartStockAtEOD> allflipkartstock;
5178
      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 {
5179
        super(client, protocolFactory, transport, resultHandler, false);
5180
        this.allflipkartstock = allflipkartstock;
5181
      }
5182
 
5183
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5184
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateFlipkartStockAtEOD", org.apache.thrift.protocol.TMessageType.CALL, 0));
5185
        updateFlipkartStockAtEOD_args args = new updateFlipkartStockAtEOD_args();
5186
        args.setAllflipkartstock(allflipkartstock);
5187
        args.write(prot);
5188
        prot.writeMessageEnd();
5189
      }
5190
 
5191
      public void getResult() throws org.apache.thrift.TException {
5192
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5193
          throw new IllegalStateException("Method call not finished!");
5194
        }
5195
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5196
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5197
        (new Client(prot)).recv_updateFlipkartStockAtEOD();
5198
      }
5199
    }
5200
 
12363 kshitij.so 5201
    public void getWanNlcForSource(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<getWanNlcForSource_call> resultHandler) throws org.apache.thrift.TException {
5202
      checkReady();
5203
      getWanNlcForSource_call method_call = new getWanNlcForSource_call(item_id, source, resultHandler, this, ___protocolFactory, ___transport);
5204
      this.___currentMethod = method_call;
5205
      ___manager.call(method_call);
5206
    }
5207
 
5208
    public static class getWanNlcForSource_call extends org.apache.thrift.async.TAsyncMethodCall {
5209
      private long item_id;
5210
      private long source;
5211
      public getWanNlcForSource_call(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<getWanNlcForSource_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 {
5212
        super(client, protocolFactory, transport, resultHandler, false);
5213
        this.item_id = item_id;
5214
        this.source = source;
5215
      }
5216
 
5217
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5218
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWanNlcForSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
5219
        getWanNlcForSource_args args = new getWanNlcForSource_args();
5220
        args.setItem_id(item_id);
5221
        args.setSource(source);
5222
        args.write(prot);
5223
        prot.writeMessageEnd();
5224
      }
5225
 
5226
      public double getResult() throws org.apache.thrift.TException {
5227
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5228
          throw new IllegalStateException("Method call not finished!");
5229
        }
5230
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5231
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5232
        return (new Client(prot)).recv_getWanNlcForSource();
5233
      }
5234
    }
5235
 
5236
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
5237
      checkReady();
5238
      getAllAvailableAmazonFbaItemInventory_call method_call = new getAllAvailableAmazonFbaItemInventory_call(resultHandler, this, ___protocolFactory, ___transport);
5239
      this.___currentMethod = method_call;
5240
      ___manager.call(method_call);
5241
    }
5242
 
5243
    public static class getAllAvailableAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
5244
      public getAllAvailableAmazonFbaItemInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllAvailableAmazonFbaItemInventory_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 {
5245
        super(client, protocolFactory, transport, resultHandler, false);
5246
      }
5247
 
5248
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5249
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAvailableAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
5250
        getAllAvailableAmazonFbaItemInventory_args args = new getAllAvailableAmazonFbaItemInventory_args();
5251
        args.write(prot);
5252
        prot.writeMessageEnd();
5253
      }
5254
 
5255
      public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
5256
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5257
          throw new IllegalStateException("Method call not finished!");
5258
        }
5259
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5260
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5261
        return (new Client(prot)).recv_getAllAvailableAmazonFbaItemInventory();
5262
      }
5263
    }
5264
 
17990 kshitij.so 5265
    public void updateItemAvailabilityForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<updateItemAvailabilityForItemIds_call> resultHandler) throws org.apache.thrift.TException {
5266
      checkReady();
5267
      updateItemAvailabilityForItemIds_call method_call = new updateItemAvailabilityForItemIds_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
5268
      this.___currentMethod = method_call;
5269
      ___manager.call(method_call);
5270
    }
5271
 
5272
    public static class updateItemAvailabilityForItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
5273
      private List<Long> itemIds;
5274
      public updateItemAvailabilityForItemIds_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<updateItemAvailabilityForItemIds_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 {
5275
        super(client, protocolFactory, transport, resultHandler, false);
5276
        this.itemIds = itemIds;
5277
      }
5278
 
5279
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5280
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemAvailabilityForItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
5281
        updateItemAvailabilityForItemIds_args args = new updateItemAvailabilityForItemIds_args();
5282
        args.setItemIds(itemIds);
5283
        args.write(prot);
5284
        prot.writeMessageEnd();
5285
      }
5286
 
5287
      public boolean getResult() throws org.apache.thrift.TException {
5288
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5289
          throw new IllegalStateException("Method call not finished!");
5290
        }
5291
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5292
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5293
        return (new Client(prot)).recv_updateItemAvailabilityForItemIds();
5294
      }
5295
    }
5296
 
19247 kshitij.so 5297
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException {
5298
      checkReady();
5299
      addVendorItemPricingInBulk_call method_call = new addVendorItemPricingInBulk_call(vendorItemPricingList, resultHandler, this, ___protocolFactory, ___transport);
5300
      this.___currentMethod = method_call;
5301
      ___manager.call(method_call);
5302
    }
5303
 
5304
    public static class addVendorItemPricingInBulk_call extends org.apache.thrift.async.TAsyncMethodCall {
5305
      private List<VendorItemPricing> vendorItemPricingList;
5306
      public addVendorItemPricingInBulk_call(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricingInBulk_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 {
5307
        super(client, protocolFactory, transport, resultHandler, false);
5308
        this.vendorItemPricingList = vendorItemPricingList;
5309
      }
5310
 
5311
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5312
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricingInBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));
5313
        addVendorItemPricingInBulk_args args = new addVendorItemPricingInBulk_args();
5314
        args.setVendorItemPricingList(vendorItemPricingList);
5315
        args.write(prot);
5316
        prot.writeMessageEnd();
5317
      }
5318
 
5319
      public List<Long> getResult() throws org.apache.thrift.TException {
5320
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5321
          throw new IllegalStateException("Method call not finished!");
5322
        }
5323
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5324
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5325
        return (new Client(prot)).recv_addVendorItemPricingInBulk();
5326
      }
5327
    }
5328
 
5329
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException {
5330
      checkReady();
5331
      addInventoryInBulk_call method_call = new addInventoryInBulk_call(bulkInventoryList, resultHandler, this, ___protocolFactory, ___transport);
5332
      this.___currentMethod = method_call;
5333
      ___manager.call(method_call);
5334
    }
5335
 
5336
    public static class addInventoryInBulk_call extends org.apache.thrift.async.TAsyncMethodCall {
5337
      private List<BulkAddInventory> bulkInventoryList;
5338
      public addInventoryInBulk_call(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<addInventoryInBulk_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 {
5339
        super(client, protocolFactory, transport, resultHandler, false);
5340
        this.bulkInventoryList = bulkInventoryList;
5341
      }
5342
 
5343
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5344
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventoryInBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));
5345
        addInventoryInBulk_args args = new addInventoryInBulk_args();
5346
        args.setBulkInventoryList(bulkInventoryList);
5347
        args.write(prot);
5348
        prot.writeMessageEnd();
5349
      }
5350
 
5351
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
5352
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5353
          throw new IllegalStateException("Method call not finished!");
5354
        }
5355
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5357
        (new Client(prot)).recv_addInventoryInBulk();
5358
      }
5359
    }
5360
 
5945 mandeep.dh 5361
  }
5362
 
5363
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5364
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5365
    public Processor(I iface) {
5366
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
5367
    }
5368
 
5369
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
5370
      super(iface, getProcessMap(processMap));
5371
    }
5372
 
5373
    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) {
5374
      processMap.put("addWarehouse", new addWarehouse());
5375
      processMap.put("addVendor", new addVendor());
5376
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
5377
      processMap.put("updateInventory", new updateInventory());
5378
      processMap.put("addInventory", new addInventory());
5379
      processMap.put("retireWarehouse", new retireWarehouse());
5380
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
5381
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
5382
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
5383
      processMap.put("getAllWarehouses", new getAllWarehouses());
5384
      processMap.put("getWarehouse", new getWarehouse());
5385
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 5386
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 5387
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
7968 amar.kumar 5388
      processMap.put("updateReservationForOrder", new updateReservationForOrder());
5945 mandeep.dh 5389
      processMap.put("reduceReservationCount", new reduceReservationCount());
5390
      processMap.put("getItemPricing", new getItemPricing());
5391
      processMap.put("getAllItemPricing", new getAllItemPricing());
5392
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
5393
      processMap.put("getVendor", new getVendor());
5394
      processMap.put("getAllVendors", new getAllVendors());
5395
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
5396
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
5397
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
5398
      processMap.put("getWarehouses", new getWarehouses());
5399
      processMap.put("resetAvailability", new resetAvailability());
5400
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
5401
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
5402
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
5403
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
5404
      processMap.put("addBadInventory", new addBadInventory());
5405
      processMap.put("getShippingLocations", new getShippingLocations());
5406
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
5407
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
5408
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
5409
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 5410
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 5411
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
6484 amar.kumar 5412
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
6531 vikram.rag 5413
      processMap.put("getMonitoredWarehouseForVendors", new getMonitoredWarehouseForVendors());
5414
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
5415
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
5416
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
5417
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
5418
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
6821 amar.kumar 5419
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
5420
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
5421
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
6832 amar.kumar 5422
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
10126 amar.kumar 5423
      processMap.put("getOosStatusesForXDays", new getOosStatusesForXDays());
5424
      processMap.put("getAllVendorItemPricing", new getAllVendorItemPricing());
6857 amar.kumar 5425
      processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
7149 amar.kumar 5426
      processMap.put("getBillableInventoryAndPendingOrders", new getBillableInventoryAndPendingOrders());
7281 kshitij.so 5427
      processMap.put("getWarehouseName", new getWarehouseName());
5428
      processMap.put("getAmazonInventoryForItem", new getAmazonInventoryForItem());
5429
      processMap.put("getAllAmazonInventory", new getAllAmazonInventory());
5430
      processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
7972 amar.kumar 5431
      processMap.put("getLastNdaySaleForItem", new getLastNdaySaleForItem());
8282 kshitij.so 5432
      processMap.put("addOrUpdateAmazonFbaInventory", new addOrUpdateAmazonFbaInventory());
8182 amar.kumar 5433
      processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
8282 kshitij.so 5434
      processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
8363 vikram.rag 5435
      processMap.put("getAllAmazonFbaItemInventory", new getAllAmazonFbaItemInventory());
5436
      processMap.put("getOursGoodWarehouseIdsForLocation", new getOursGoodWarehouseIdsForLocation());
8958 vikram.rag 5437
      processMap.put("getHoldInventoryDetailForItemForWarehouseIdExceptSource", new getHoldInventoryDetailForItemForWarehouseIdExceptSource());
9404 vikram.rag 5438
      processMap.put("getSnapdealInventoryForItem", new getSnapdealInventoryForItem());
5439
      processMap.put("addOrUpdateSnapdealInventoryForItem", new addOrUpdateSnapdealInventoryForItem());
5440
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
9640 amar.kumar 5441
      processMap.put("getHeldInventoryMapForItem", new getHeldInventoryMapForItem());
9482 vikram.rag 5442
      processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
9495 vikram.rag 5443
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
5444
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
9761 amar.kumar 5445
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
10050 vikram.rag 5446
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
5447
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
10097 kshitij.so 5448
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
10485 vikram.rag 5449
      processMap.put("getStateMaster", new getStateMaster());
10546 vikram.rag 5450
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5451
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
12363 kshitij.so 5452
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5453
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
17990 kshitij.so 5454
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
19247 kshitij.so 5455
      processMap.put("addVendorItemPricingInBulk", new addVendorItemPricingInBulk());
5456
      processMap.put("addInventoryInBulk", new addInventoryInBulk());
5945 mandeep.dh 5457
      return processMap;
5458
    }
5459
 
5460
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5461
      public addWarehouse() {
5462
        super("addWarehouse");
5463
      }
5464
 
5465
      protected addWarehouse_args getEmptyArgsInstance() {
5466
        return new addWarehouse_args();
5467
      }
5468
 
5469
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
5470
        addWarehouse_result result = new addWarehouse_result();
5471
        try {
5472
          result.success = iface.addWarehouse(args.warehouse);
5473
          result.setSuccessIsSet(true);
5474
        } catch (InventoryServiceException cex) {
5475
          result.cex = cex;
5476
        }
5477
        return result;
5478
      }
5479
    }
5480
 
5481
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
5482
      public addVendor() {
5483
        super("addVendor");
5484
      }
5485
 
5486
      protected addVendor_args getEmptyArgsInstance() {
5487
        return new addVendor_args();
5488
      }
5489
 
5490
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
5491
        addVendor_result result = new addVendor_result();
5492
        try {
5493
          result.success = iface.addVendor(args.vendor);
5494
          result.setSuccessIsSet(true);
5495
        } catch (InventoryServiceException cex) {
5496
          result.cex = cex;
5497
        }
5498
        return result;
5499
      }
5500
    }
5501
 
5502
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
5503
      public updateInventoryHistory() {
5504
        super("updateInventoryHistory");
5505
      }
5506
 
5507
      protected updateInventoryHistory_args getEmptyArgsInstance() {
5508
        return new updateInventoryHistory_args();
5509
      }
5510
 
5511
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
5512
        updateInventoryHistory_result result = new updateInventoryHistory_result();
5513
        try {
5514
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
5515
        } catch (InventoryServiceException cex) {
5516
          result.cex = cex;
5517
        }
5518
        return result;
5519
      }
5520
    }
5521
 
5522
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
5523
      public updateInventory() {
5524
        super("updateInventory");
5525
      }
5526
 
5527
      protected updateInventory_args getEmptyArgsInstance() {
5528
        return new updateInventory_args();
5529
      }
5530
 
5531
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
5532
        updateInventory_result result = new updateInventory_result();
5533
        try {
5534
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
5535
        } catch (InventoryServiceException cex) {
5536
          result.cex = cex;
5537
        }
5538
        return result;
5539
      }
5540
    }
5541
 
5542
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
5543
      public addInventory() {
5544
        super("addInventory");
5545
      }
5546
 
5547
      protected addInventory_args getEmptyArgsInstance() {
5548
        return new addInventory_args();
5549
      }
5550
 
5551
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
5552
        addInventory_result result = new addInventory_result();
5553
        try {
5554
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
5555
        } catch (InventoryServiceException cex) {
5556
          result.cex = cex;
5557
        }
5558
        return result;
5559
      }
5560
    }
5561
 
5562
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
5563
      public retireWarehouse() {
5564
        super("retireWarehouse");
5565
      }
5566
 
5567
      protected retireWarehouse_args getEmptyArgsInstance() {
5568
        return new retireWarehouse_args();
5569
      }
5570
 
5571
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
5572
        retireWarehouse_result result = new retireWarehouse_result();
5573
        try {
5574
          iface.retireWarehouse(args.warehouse_id);
5575
        } catch (InventoryServiceException cex) {
5576
          result.cex = cex;
5577
        }
5578
        return result;
5579
      }
5580
    }
5581
 
5582
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
5583
      public getItemInventoryByItemId() {
5584
        super("getItemInventoryByItemId");
5585
      }
5586
 
5587
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
5588
        return new getItemInventoryByItemId_args();
5589
      }
5590
 
5591
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
5592
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
5593
        try {
5594
          result.success = iface.getItemInventoryByItemId(args.item_id);
5595
        } catch (InventoryServiceException cex) {
5596
          result.cex = cex;
5597
        }
5598
        return result;
5599
      }
5600
    }
5601
 
5602
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
5603
      public getItemAvailibilityAtWarehouse() {
5604
        super("getItemAvailibilityAtWarehouse");
5605
      }
5606
 
5607
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
5608
        return new getItemAvailibilityAtWarehouse_args();
5609
      }
5610
 
5611
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
5612
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
5613
        try {
5614
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
5615
          result.setSuccessIsSet(true);
5616
        } catch (InventoryServiceException cex) {
5617
          result.cex = cex;
5618
        }
5619
        return result;
5620
      }
5621
    }
5622
 
5623
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
5624
      public getItemAvailabilityAtLocation() {
5625
        super("getItemAvailabilityAtLocation");
5626
      }
5627
 
5628
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
5629
        return new getItemAvailabilityAtLocation_args();
5630
      }
5631
 
5632
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
5633
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
5634
        try {
5978 rajveer 5635
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 5636
        } catch (InventoryServiceException isex) {
5637
          result.isex = isex;
5638
        }
5639
        return result;
5640
      }
5641
    }
5642
 
5643
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
5644
      public getAllWarehouses() {
5645
        super("getAllWarehouses");
5646
      }
5647
 
5648
      protected getAllWarehouses_args getEmptyArgsInstance() {
5649
        return new getAllWarehouses_args();
5650
      }
5651
 
5652
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
5653
        getAllWarehouses_result result = new getAllWarehouses_result();
5654
        try {
5655
          result.success = iface.getAllWarehouses(args.isActive);
5656
        } catch (InventoryServiceException cex) {
5657
          result.cex = cex;
5658
        }
5659
        return result;
5660
      }
5661
    }
5662
 
5663
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
5664
      public getWarehouse() {
5665
        super("getWarehouse");
5666
      }
5667
 
5668
      protected getWarehouse_args getEmptyArgsInstance() {
5669
        return new getWarehouse_args();
5670
      }
5671
 
5672
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
5673
        getWarehouse_result result = new getWarehouse_result();
5674
        try {
5675
          result.success = iface.getWarehouse(args.warehouse_id);
5676
        } catch (InventoryServiceException cex) {
5677
          result.cex = cex;
5678
        }
5679
        return result;
5680
      }
5681
    }
5682
 
5683
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
5684
      public getAllItemsForWarehouse() {
5685
        super("getAllItemsForWarehouse");
5686
      }
5687
 
5688
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
5689
        return new getAllItemsForWarehouse_args();
5690
      }
5691
 
5692
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
5693
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
5694
        try {
5695
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
5696
        } catch (InventoryServiceException cex) {
5697
          result.cex = cex;
5698
        }
5699
        return result;
5700
      }
5701
    }
5702
 
5967 rajveer 5703
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
5704
      public isOrderBillable() {
5705
        super("isOrderBillable");
5706
      }
5707
 
5708
      protected isOrderBillable_args getEmptyArgsInstance() {
5709
        return new isOrderBillable_args();
5710
      }
5711
 
5712
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
5713
        isOrderBillable_result result = new isOrderBillable_result();
5714
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
5715
        result.setSuccessIsSet(true);
5716
        return result;
5717
      }
5718
    }
5719
 
5945 mandeep.dh 5720
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
5721
      public reserveItemInWarehouse() {
5722
        super("reserveItemInWarehouse");
5723
      }
5724
 
5725
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
5726
        return new reserveItemInWarehouse_args();
5727
      }
5728
 
5729
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
5730
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
5731
        try {
5967 rajveer 5732
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 5733
          result.setSuccessIsSet(true);
5734
        } catch (InventoryServiceException cex) {
5735
          result.cex = cex;
5736
        }
5737
        return result;
5738
      }
5739
    }
5740
 
7968 amar.kumar 5741
    private static class updateReservationForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateReservationForOrder_args> {
5742
      public updateReservationForOrder() {
5743
        super("updateReservationForOrder");
5744
      }
5745
 
5746
      protected updateReservationForOrder_args getEmptyArgsInstance() {
5747
        return new updateReservationForOrder_args();
5748
      }
5749
 
5750
      protected updateReservationForOrder_result getResult(I iface, updateReservationForOrder_args args) throws org.apache.thrift.TException {
5751
        updateReservationForOrder_result result = new updateReservationForOrder_result();
5752
        try {
5753
          result.success = iface.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5754
          result.setSuccessIsSet(true);
5755
        } catch (InventoryServiceException cex) {
5756
          result.cex = cex;
5757
        }
5758
        return result;
5759
      }
5760
    }
5761
 
5945 mandeep.dh 5762
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
5763
      public reduceReservationCount() {
5764
        super("reduceReservationCount");
5765
      }
5766
 
5767
      protected reduceReservationCount_args getEmptyArgsInstance() {
5768
        return new reduceReservationCount_args();
5769
      }
5770
 
5771
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
5772
        reduceReservationCount_result result = new reduceReservationCount_result();
5773
        try {
5967 rajveer 5774
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 5775
          result.setSuccessIsSet(true);
5776
        } catch (InventoryServiceException cex) {
5777
          result.cex = cex;
5778
        }
5779
        return result;
5780
      }
5781
    }
5782
 
5783
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
5784
      public getItemPricing() {
5785
        super("getItemPricing");
5786
      }
5787
 
5788
      protected getItemPricing_args getEmptyArgsInstance() {
5789
        return new getItemPricing_args();
5790
      }
5791
 
5792
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
5793
        getItemPricing_result result = new getItemPricing_result();
5794
        try {
5795
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
5796
        } catch (InventoryServiceException cex) {
5797
          result.cex = cex;
5798
        }
5799
        return result;
5800
      }
5801
    }
5802
 
5803
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
5804
      public getAllItemPricing() {
5805
        super("getAllItemPricing");
5806
      }
5807
 
5808
      protected getAllItemPricing_args getEmptyArgsInstance() {
5809
        return new getAllItemPricing_args();
5810
      }
5811
 
5812
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
5813
        getAllItemPricing_result result = new getAllItemPricing_result();
5814
        try {
5815
          result.success = iface.getAllItemPricing(args.itemId);
5816
        } catch (InventoryServiceException cex) {
5817
          result.cex = cex;
5818
        }
5819
        return result;
5820
      }
5821
    }
5822
 
5823
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
5824
      public addVendorItemPricing() {
5825
        super("addVendorItemPricing");
5826
      }
5827
 
5828
      protected addVendorItemPricing_args getEmptyArgsInstance() {
5829
        return new addVendorItemPricing_args();
5830
      }
5831
 
5832
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
5833
        addVendorItemPricing_result result = new addVendorItemPricing_result();
5834
        try {
5835
          iface.addVendorItemPricing(args.vendorItemPricing);
5836
        } catch (InventoryServiceException cex) {
5837
          result.cex = cex;
5838
        }
5839
        return result;
5840
      }
5841
    }
5842
 
5843
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
5844
      public getVendor() {
5845
        super("getVendor");
5846
      }
5847
 
5848
      protected getVendor_args getEmptyArgsInstance() {
5849
        return new getVendor_args();
5850
      }
5851
 
5852
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
5853
        getVendor_result result = new getVendor_result();
5854
        result.success = iface.getVendor(args.vendorId);
5855
        return result;
5856
      }
5857
    }
5858
 
5859
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
5860
      public getAllVendors() {
5861
        super("getAllVendors");
5862
      }
5863
 
5864
      protected getAllVendors_args getEmptyArgsInstance() {
5865
        return new getAllVendors_args();
5866
      }
5867
 
5868
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
5869
        getAllVendors_result result = new getAllVendors_result();
5870
        result.success = iface.getAllVendors();
5871
        return result;
5872
      }
5873
    }
5874
 
5875
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
5876
      public addVendorItemMapping() {
5877
        super("addVendorItemMapping");
5878
      }
5879
 
5880
      protected addVendorItemMapping_args getEmptyArgsInstance() {
5881
        return new addVendorItemMapping_args();
5882
      }
5883
 
5884
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
5885
        addVendorItemMapping_result result = new addVendorItemMapping_result();
5886
        try {
5887
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
5888
        } catch (InventoryServiceException cex) {
5889
          result.cex = cex;
5890
        }
5891
        return result;
5892
      }
5893
    }
5894
 
5895
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
5896
      public getVendorItemMappings() {
5897
        super("getVendorItemMappings");
5898
      }
5899
 
5900
      protected getVendorItemMappings_args getEmptyArgsInstance() {
5901
        return new getVendorItemMappings_args();
5902
      }
5903
 
5904
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
5905
        getVendorItemMappings_result result = new getVendorItemMappings_result();
5906
        try {
5907
          result.success = iface.getVendorItemMappings(args.itemId);
5908
        } catch (InventoryServiceException cex) {
5909
          result.cex = cex;
5910
        }
5911
        return result;
5912
      }
5913
    }
5914
 
5915
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
5916
      public getPendingOrdersInventory() {
5917
        super("getPendingOrdersInventory");
5918
      }
5919
 
5920
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
5921
        return new getPendingOrdersInventory_args();
5922
      }
5923
 
5924
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
5925
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
5926
        result.success = iface.getPendingOrdersInventory(args.vendorid);
5927
        return result;
5928
      }
5929
    }
5930
 
5931
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
5932
      public getWarehouses() {
5933
        super("getWarehouses");
5934
      }
5935
 
5936
      protected getWarehouses_args getEmptyArgsInstance() {
5937
        return new getWarehouses_args();
5938
      }
5939
 
5940
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
5941
        getWarehouses_result result = new getWarehouses_result();
5942
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
5943
        return result;
5944
      }
5945
    }
5946
 
5947
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
5948
      public resetAvailability() {
5949
        super("resetAvailability");
5950
      }
5951
 
5952
      protected resetAvailability_args getEmptyArgsInstance() {
5953
        return new resetAvailability_args();
5954
      }
5955
 
5956
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
5957
        resetAvailability_result result = new resetAvailability_result();
5958
        try {
5959
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
5960
        } catch (InventoryServiceException cex) {
5961
          result.cex = cex;
5962
        }
5963
        return result;
5964
      }
5965
    }
5966
 
5967
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
5968
      public resetAvailabilityForWarehouse() {
5969
        super("resetAvailabilityForWarehouse");
5970
      }
5971
 
5972
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
5973
        return new resetAvailabilityForWarehouse_args();
5974
      }
5975
 
5976
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
5977
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
5978
        try {
5979
          iface.resetAvailabilityForWarehouse(args.warehouseId);
5980
        } catch (InventoryServiceException cex) {
5981
          result.cex = cex;
5982
        }
5983
        return result;
5984
      }
5985
    }
5986
 
5987
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
5988
      public getItemKeysToBeProcessed() {
5989
        super("getItemKeysToBeProcessed");
5990
      }
5991
 
5992
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
5993
        return new getItemKeysToBeProcessed_args();
5994
      }
5995
 
5996
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
5997
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
5998
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
5999
        return result;
6000
      }
6001
    }
6002
 
6003
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
6004
      public markMissedInventoryUpdatesAsProcessed() {
6005
        super("markMissedInventoryUpdatesAsProcessed");
6006
      }
6007
 
6008
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
6009
        return new markMissedInventoryUpdatesAsProcessed_args();
6010
      }
6011
 
6012
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
6013
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
6014
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
6015
        return result;
6016
      }
6017
    }
6018
 
6019
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
6020
      public getIgnoredItemKeys() {
6021
        super("getIgnoredItemKeys");
6022
      }
6023
 
6024
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
6025
        return new getIgnoredItemKeys_args();
6026
      }
6027
 
6028
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
6029
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
6030
        result.success = iface.getIgnoredItemKeys();
6031
        return result;
6032
      }
6033
    }
6034
 
6035
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
6036
      public addBadInventory() {
6037
        super("addBadInventory");
6038
      }
6039
 
6040
      protected addBadInventory_args getEmptyArgsInstance() {
6041
        return new addBadInventory_args();
6042
      }
6043
 
6044
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
6045
        addBadInventory_result result = new addBadInventory_result();
6046
        try {
6047
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
6048
        } catch (InventoryServiceException cex) {
6049
          result.cex = cex;
6050
        }
6051
        return result;
6052
      }
6053
    }
6054
 
6055
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
6056
      public getShippingLocations() {
6057
        super("getShippingLocations");
6058
      }
6059
 
6060
      protected getShippingLocations_args getEmptyArgsInstance() {
6061
        return new getShippingLocations_args();
6062
      }
6063
 
6064
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
6065
        getShippingLocations_result result = new getShippingLocations_result();
6066
        result.success = iface.getShippingLocations();
6067
        return result;
6068
      }
6069
    }
6070
 
6071
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
6072
      public getAllVendorItemMappings() {
6073
        super("getAllVendorItemMappings");
6074
      }
6075
 
6076
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
6077
        return new getAllVendorItemMappings_args();
6078
      }
6079
 
6080
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
6081
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
6082
        result.success = iface.getAllVendorItemMappings();
6083
        return result;
6084
      }
6085
    }
6086
 
6087
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
6088
      public getInventorySnapshot() {
6089
        super("getInventorySnapshot");
6090
      }
6091
 
6092
      protected getInventorySnapshot_args getEmptyArgsInstance() {
6093
        return new getInventorySnapshot_args();
6094
      }
6095
 
6096
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
6097
        getInventorySnapshot_result result = new getInventorySnapshot_result();
6098
        result.success = iface.getInventorySnapshot(args.warehouseId);
6099
        return result;
6100
      }
6101
    }
6102
 
6103
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
6104
      public clearItemAvailabilityCache() {
6105
        super("clearItemAvailabilityCache");
6106
      }
6107
 
6108
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
6109
        return new clearItemAvailabilityCache_args();
6110
      }
6111
 
6112
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
6113
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
6114
        iface.clearItemAvailabilityCache();
6115
        return result;
6116
      }
6117
    }
6118
 
6119
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
6120
      public updateVendorString() {
6121
        super("updateVendorString");
6122
      }
6123
 
6124
      protected updateVendorString_args getEmptyArgsInstance() {
6125
        return new updateVendorString_args();
6126
      }
6127
 
6128
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
6129
        updateVendorString_result result = new updateVendorString_result();
6130
        iface.updateVendorString(args.warehouseId, args.vendorString);
6131
        return result;
6132
      }
6133
    }
6134
 
6096 amit.gupta 6135
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
6136
      public clearItemAvailabilityCacheForItem() {
6137
        super("clearItemAvailabilityCacheForItem");
6138
      }
6139
 
6140
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
6141
        return new clearItemAvailabilityCacheForItem_args();
6142
      }
6143
 
6144
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
6145
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
6146
        iface.clearItemAvailabilityCacheForItem(args.item_id);
6147
        return result;
6148
      }
6149
    }
6150
 
6467 amar.kumar 6151
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
6152
      public getOurWarehouseIdForVendor() {
6153
        super("getOurWarehouseIdForVendor");
6154
      }
6155
 
6156
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
6157
        return new getOurWarehouseIdForVendor_args();
6158
      }
6159
 
6160
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
6161
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
7718 amar.kumar 6162
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId);
6467 amar.kumar 6163
        result.setSuccessIsSet(true);
6164
        return result;
6165
      }
6166
    }
6167
 
6484 amar.kumar 6168
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
6169
      public getItemAvailabilitiesAtOurWarehouses() {
6170
        super("getItemAvailabilitiesAtOurWarehouses");
6171
      }
6172
 
6173
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
6174
        return new getItemAvailabilitiesAtOurWarehouses_args();
6175
      }
6176
 
6177
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
6178
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
6179
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
6180
        return result;
6181
      }
6182
    }
6183
 
6531 vikram.rag 6184
    private static class getMonitoredWarehouseForVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMonitoredWarehouseForVendors_args> {
6185
      public getMonitoredWarehouseForVendors() {
6186
        super("getMonitoredWarehouseForVendors");
6187
      }
6188
 
6189
      protected getMonitoredWarehouseForVendors_args getEmptyArgsInstance() {
6190
        return new getMonitoredWarehouseForVendors_args();
6191
      }
6192
 
6193
      protected getMonitoredWarehouseForVendors_result getResult(I iface, getMonitoredWarehouseForVendors_args args) throws org.apache.thrift.TException {
6194
        getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
6195
        result.success = iface.getMonitoredWarehouseForVendors(args.vendorIds);
6196
        return result;
6197
      }
6198
    }
6199
 
6200
    private static class getIgnoredWarehouseidsAndItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredWarehouseidsAndItemids_args> {
6201
      public getIgnoredWarehouseidsAndItemids() {
6202
        super("getIgnoredWarehouseidsAndItemids");
6203
      }
6204
 
6205
      protected getIgnoredWarehouseidsAndItemids_args getEmptyArgsInstance() {
6206
        return new getIgnoredWarehouseidsAndItemids_args();
6207
      }
6208
 
6209
      protected getIgnoredWarehouseidsAndItemids_result getResult(I iface, getIgnoredWarehouseidsAndItemids_args args) throws org.apache.thrift.TException {
6210
        getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
6211
        result.success = iface.getIgnoredWarehouseidsAndItemids();
6212
        return result;
6213
      }
6214
    }
6215
 
6216
    private static class insertItemtoIgnoreInventoryUpdatelist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertItemtoIgnoreInventoryUpdatelist_args> {
6217
      public insertItemtoIgnoreInventoryUpdatelist() {
6218
        super("insertItemtoIgnoreInventoryUpdatelist");
6219
      }
6220
 
6221
      protected insertItemtoIgnoreInventoryUpdatelist_args getEmptyArgsInstance() {
6222
        return new insertItemtoIgnoreInventoryUpdatelist_args();
6223
      }
6224
 
6225
      protected insertItemtoIgnoreInventoryUpdatelist_result getResult(I iface, insertItemtoIgnoreInventoryUpdatelist_args args) throws org.apache.thrift.TException {
6226
        insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
6227
        result.success = iface.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id);
6228
        result.setSuccessIsSet(true);
6229
        return result;
6230
      }
6231
    }
6232
 
6233
    private static class deleteItemFromIgnoredInventoryUpdateList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromIgnoredInventoryUpdateList_args> {
6234
      public deleteItemFromIgnoredInventoryUpdateList() {
6235
        super("deleteItemFromIgnoredInventoryUpdateList");
6236
      }
6237
 
6238
      protected deleteItemFromIgnoredInventoryUpdateList_args getEmptyArgsInstance() {
6239
        return new deleteItemFromIgnoredInventoryUpdateList_args();
6240
      }
6241
 
6242
      protected deleteItemFromIgnoredInventoryUpdateList_result getResult(I iface, deleteItemFromIgnoredInventoryUpdateList_args args) throws org.apache.thrift.TException {
6243
        deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
6244
        result.success = iface.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id);
6245
        result.setSuccessIsSet(true);
6246
        return result;
6247
      }
6248
    }
6249
 
6250
    private static class getAllIgnoredInventoryupdateItemsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryupdateItemsCount_args> {
6251
      public getAllIgnoredInventoryupdateItemsCount() {
6252
        super("getAllIgnoredInventoryupdateItemsCount");
6253
      }
6254
 
6255
      protected getAllIgnoredInventoryupdateItemsCount_args getEmptyArgsInstance() {
6256
        return new getAllIgnoredInventoryupdateItemsCount_args();
6257
      }
6258
 
6259
      protected getAllIgnoredInventoryupdateItemsCount_result getResult(I iface, getAllIgnoredInventoryupdateItemsCount_args args) throws org.apache.thrift.TException {
6260
        getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
6261
        result.success = iface.getAllIgnoredInventoryupdateItemsCount();
6262
        result.setSuccessIsSet(true);
6263
        return result;
6264
      }
6265
    }
6266
 
6267
    private static class getIgnoredInventoryUpdateItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredInventoryUpdateItemids_args> {
6268
      public getIgnoredInventoryUpdateItemids() {
6269
        super("getIgnoredInventoryUpdateItemids");
6270
      }
6271
 
6272
      protected getIgnoredInventoryUpdateItemids_args getEmptyArgsInstance() {
6273
        return new getIgnoredInventoryUpdateItemids_args();
6274
      }
6275
 
6276
      protected getIgnoredInventoryUpdateItemids_result getResult(I iface, getIgnoredInventoryUpdateItemids_args args) throws org.apache.thrift.TException {
6277
        getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
6278
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
6279
        return result;
6280
      }
6281
    }
6282
 
6821 amar.kumar 6283
    private static class updateItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemStockPurchaseParams_args> {
6284
      public updateItemStockPurchaseParams() {
6285
        super("updateItemStockPurchaseParams");
6286
      }
6287
 
6288
      protected updateItemStockPurchaseParams_args getEmptyArgsInstance() {
6289
        return new updateItemStockPurchaseParams_args();
6290
      }
6291
 
6292
      protected updateItemStockPurchaseParams_result getResult(I iface, updateItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
6293
        updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
6294
        iface.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel);
6295
        return result;
6296
      }
6297
    }
6298
 
6299
    private static class getItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStockPurchaseParams_args> {
6300
      public getItemStockPurchaseParams() {
6301
        super("getItemStockPurchaseParams");
6302
      }
6303
 
6304
      protected getItemStockPurchaseParams_args getEmptyArgsInstance() {
6305
        return new getItemStockPurchaseParams_args();
6306
      }
6307
 
6308
      protected getItemStockPurchaseParams_result getResult(I iface, getItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
6309
        getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
6310
        result.success = iface.getItemStockPurchaseParams(args.itemId);
6311
        return result;
6312
      }
6313
    }
6314
 
6315
    private static class addOosStatusForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOosStatusForItem_args> {
6316
      public addOosStatusForItem() {
6317
        super("addOosStatusForItem");
6318
      }
6319
 
6320
      protected addOosStatusForItem_args getEmptyArgsInstance() {
6321
        return new addOosStatusForItem_args();
6322
      }
6323
 
6324
      protected addOosStatusForItem_result getResult(I iface, addOosStatusForItem_args args) throws org.apache.thrift.TException {
6325
        addOosStatusForItem_result result = new addOosStatusForItem_result();
6326
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
6327
        return result;
6328
      }
6329
    }
6330
 
6832 amar.kumar 6331
    private static class getOosStatusesForXDaysForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOosStatusesForXDaysForItem_args> {
6332
      public getOosStatusesForXDaysForItem() {
6333
        super("getOosStatusesForXDaysForItem");
6334
      }
6335
 
6336
      protected getOosStatusesForXDaysForItem_args getEmptyArgsInstance() {
6337
        return new getOosStatusesForXDaysForItem_args();
6338
      }
6339
 
6340
      protected getOosStatusesForXDaysForItem_result getResult(I iface, getOosStatusesForXDaysForItem_args args) throws org.apache.thrift.TException {
6341
        getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
9665 rajveer 6342
        result.success = iface.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days);
6832 amar.kumar 6343
        return result;
6344
      }
6345
    }
6346
 
10126 amar.kumar 6347
    private static class getOosStatusesForXDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOosStatusesForXDays_args> {
6348
      public getOosStatusesForXDays() {
6349
        super("getOosStatusesForXDays");
6350
      }
6351
 
6352
      protected getOosStatusesForXDays_args getEmptyArgsInstance() {
6353
        return new getOosStatusesForXDays_args();
6354
      }
6355
 
6356
      protected getOosStatusesForXDays_result getResult(I iface, getOosStatusesForXDays_args args) throws org.apache.thrift.TException {
6357
        getOosStatusesForXDays_result result = new getOosStatusesForXDays_result();
6358
        result.success = iface.getOosStatusesForXDays(args.sourceId, args.days);
6359
        return result;
6360
      }
6361
    }
6362
 
6363
    private static class getAllVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemPricing_args> {
6364
      public getAllVendorItemPricing() {
6365
        super("getAllVendorItemPricing");
6366
      }
6367
 
6368
      protected getAllVendorItemPricing_args getEmptyArgsInstance() {
6369
        return new getAllVendorItemPricing_args();
6370
      }
6371
 
6372
      protected getAllVendorItemPricing_result getResult(I iface, getAllVendorItemPricing_args args) throws org.apache.thrift.TException {
6373
        getAllVendorItemPricing_result result = new getAllVendorItemPricing_result();
6374
        result.success = iface.getAllVendorItemPricing(args.itemId, args.vendorId);
6375
        return result;
6376
      }
6377
    }
6378
 
6857 amar.kumar 6379
    private static class getNonZeroItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonZeroItemStockPurchaseParams_args> {
6380
      public getNonZeroItemStockPurchaseParams() {
6381
        super("getNonZeroItemStockPurchaseParams");
6382
      }
6383
 
6384
      protected getNonZeroItemStockPurchaseParams_args getEmptyArgsInstance() {
6385
        return new getNonZeroItemStockPurchaseParams_args();
6386
      }
6387
 
6388
      protected getNonZeroItemStockPurchaseParams_result getResult(I iface, getNonZeroItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
6389
        getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
6390
        result.success = iface.getNonZeroItemStockPurchaseParams();
6391
        return result;
6392
      }
6393
    }
6394
 
7149 amar.kumar 6395
    private static class getBillableInventoryAndPendingOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBillableInventoryAndPendingOrders_args> {
6396
      public getBillableInventoryAndPendingOrders() {
6397
        super("getBillableInventoryAndPendingOrders");
6398
      }
6399
 
6400
      protected getBillableInventoryAndPendingOrders_args getEmptyArgsInstance() {
6401
        return new getBillableInventoryAndPendingOrders_args();
6402
      }
6403
 
6404
      protected getBillableInventoryAndPendingOrders_result getResult(I iface, getBillableInventoryAndPendingOrders_args args) throws org.apache.thrift.TException {
6405
        getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
6406
        result.success = iface.getBillableInventoryAndPendingOrders();
6407
        return result;
6408
      }
6409
    }
6410
 
7281 kshitij.so 6411
    private static class getWarehouseName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseName_args> {
6412
      public getWarehouseName() {
6413
        super("getWarehouseName");
6414
      }
6415
 
6416
      protected getWarehouseName_args getEmptyArgsInstance() {
6417
        return new getWarehouseName_args();
6418
      }
6419
 
6420
      protected getWarehouseName_result getResult(I iface, getWarehouseName_args args) throws org.apache.thrift.TException {
6421
        getWarehouseName_result result = new getWarehouseName_result();
6422
        result.success = iface.getWarehouseName(args.warehouse_id);
6423
        return result;
6424
      }
6425
    }
6426
 
6427
    private static class getAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonInventoryForItem_args> {
6428
      public getAmazonInventoryForItem() {
6429
        super("getAmazonInventoryForItem");
6430
      }
6431
 
6432
      protected getAmazonInventoryForItem_args getEmptyArgsInstance() {
6433
        return new getAmazonInventoryForItem_args();
6434
      }
6435
 
6436
      protected getAmazonInventoryForItem_result getResult(I iface, getAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
6437
        getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
6438
        result.success = iface.getAmazonInventoryForItem(args.item_id);
6439
        return result;
6440
      }
6441
    }
6442
 
6443
    private static class getAllAmazonInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonInventory_args> {
6444
      public getAllAmazonInventory() {
6445
        super("getAllAmazonInventory");
6446
      }
6447
 
6448
      protected getAllAmazonInventory_args getEmptyArgsInstance() {
6449
        return new getAllAmazonInventory_args();
6450
      }
6451
 
6452
      protected getAllAmazonInventory_result getResult(I iface, getAllAmazonInventory_args args) throws org.apache.thrift.TException {
6453
        getAllAmazonInventory_result result = new getAllAmazonInventory_result();
6454
        result.success = iface.getAllAmazonInventory();
6455
        return result;
6456
      }
6457
    }
6458
 
6459
    private static class addOrUpdateAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonInventoryForItem_args> {
6460
      public addOrUpdateAmazonInventoryForItem() {
6461
        super("addOrUpdateAmazonInventoryForItem");
6462
      }
6463
 
6464
      protected addOrUpdateAmazonInventoryForItem_args getEmptyArgsInstance() {
6465
        return new addOrUpdateAmazonInventoryForItem_args();
6466
      }
6467
 
6468
      protected addOrUpdateAmazonInventoryForItem_result getResult(I iface, addOrUpdateAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
6469
        addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
10450 vikram.rag 6470
        iface.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot, args.time);
7281 kshitij.so 6471
        return result;
6472
      }
6473
    }
6474
 
7972 amar.kumar 6475
    private static class getLastNdaySaleForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLastNdaySaleForItem_args> {
6476
      public getLastNdaySaleForItem() {
6477
        super("getLastNdaySaleForItem");
6478
      }
6479
 
6480
      protected getLastNdaySaleForItem_args getEmptyArgsInstance() {
6481
        return new getLastNdaySaleForItem_args();
6482
      }
6483
 
6484
      protected getLastNdaySaleForItem_result getResult(I iface, getLastNdaySaleForItem_args args) throws org.apache.thrift.TException {
6485
        getLastNdaySaleForItem_result result = new getLastNdaySaleForItem_result();
6486
        result.success = iface.getLastNdaySaleForItem(args.itemId, args.numberOfDays);
6487
        return result;
6488
      }
6489
    }
6490
 
8282 kshitij.so 6491
    private static class addOrUpdateAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonFbaInventory_args> {
6492
      public addOrUpdateAmazonFbaInventory() {
6493
        super("addOrUpdateAmazonFbaInventory");
6494
      }
6495
 
6496
      protected addOrUpdateAmazonFbaInventory_args getEmptyArgsInstance() {
6497
        return new addOrUpdateAmazonFbaInventory_args();
6498
      }
6499
 
6500
      protected addOrUpdateAmazonFbaInventory_result getResult(I iface, addOrUpdateAmazonFbaInventory_args args) throws org.apache.thrift.TException {
6501
        addOrUpdateAmazonFbaInventory_result result = new addOrUpdateAmazonFbaInventory_result();
6502
        iface.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot);
6503
        return result;
6504
      }
6505
    }
6506
 
8182 amar.kumar 6507
    private static class addUpdateHoldInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUpdateHoldInventory_args> {
6508
      public addUpdateHoldInventory() {
6509
        super("addUpdateHoldInventory");
6510
      }
6511
 
6512
      protected addUpdateHoldInventory_args getEmptyArgsInstance() {
6513
        return new addUpdateHoldInventory_args();
6514
      }
6515
 
6516
      protected addUpdateHoldInventory_result getResult(I iface, addUpdateHoldInventory_args args) throws org.apache.thrift.TException {
6517
        addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
9762 amar.kumar 6518
        try {
6519
          iface.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source);
6520
        } catch (InventoryServiceException cex) {
6521
          result.cex = cex;
6522
        }
8182 amar.kumar 6523
        return result;
6524
      }
6525
    }
6526
 
8282 kshitij.so 6527
    private static class getAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonFbaItemInventory_args> {
6528
      public getAmazonFbaItemInventory() {
6529
        super("getAmazonFbaItemInventory");
6530
      }
6531
 
6532
      protected getAmazonFbaItemInventory_args getEmptyArgsInstance() {
6533
        return new getAmazonFbaItemInventory_args();
6534
      }
6535
 
6536
      protected getAmazonFbaItemInventory_result getResult(I iface, getAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
6537
        getAmazonFbaItemInventory_result result = new getAmazonFbaItemInventory_result();
6538
        result.success = iface.getAmazonFbaItemInventory(args.itemId);
6539
        return result;
6540
      }
6541
    }
6542
 
8363 vikram.rag 6543
    private static class getAllAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonFbaItemInventory_args> {
6544
      public getAllAmazonFbaItemInventory() {
6545
        super("getAllAmazonFbaItemInventory");
8282 kshitij.so 6546
      }
6547
 
8363 vikram.rag 6548
      protected getAllAmazonFbaItemInventory_args getEmptyArgsInstance() {
6549
        return new getAllAmazonFbaItemInventory_args();
8282 kshitij.so 6550
      }
6551
 
8363 vikram.rag 6552
      protected getAllAmazonFbaItemInventory_result getResult(I iface, getAllAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
6553
        getAllAmazonFbaItemInventory_result result = new getAllAmazonFbaItemInventory_result();
6554
        result.success = iface.getAllAmazonFbaItemInventory();
8282 kshitij.so 6555
        return result;
6556
      }
6557
    }
6558
 
8363 vikram.rag 6559
    private static class getOursGoodWarehouseIdsForLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOursGoodWarehouseIdsForLocation_args> {
6560
      public getOursGoodWarehouseIdsForLocation() {
6561
        super("getOursGoodWarehouseIdsForLocation");
6562
      }
6563
 
6564
      protected getOursGoodWarehouseIdsForLocation_args getEmptyArgsInstance() {
6565
        return new getOursGoodWarehouseIdsForLocation_args();
6566
      }
6567
 
6568
      protected getOursGoodWarehouseIdsForLocation_result getResult(I iface, getOursGoodWarehouseIdsForLocation_args args) throws org.apache.thrift.TException {
6569
        getOursGoodWarehouseIdsForLocation_result result = new getOursGoodWarehouseIdsForLocation_result();
6570
        result.success = iface.getOursGoodWarehouseIdsForLocation(args.state_id);
6571
        return result;
6572
      }
6573
    }
6574
 
8958 vikram.rag 6575
    private static class getHoldInventoryDetailForItemForWarehouseIdExceptSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args> {
6576
      public getHoldInventoryDetailForItemForWarehouseIdExceptSource() {
6577
        super("getHoldInventoryDetailForItemForWarehouseIdExceptSource");
6578
      }
6579
 
6580
      protected getHoldInventoryDetailForItemForWarehouseIdExceptSource_args getEmptyArgsInstance() {
6581
        return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args();
6582
      }
6583
 
6584
      protected getHoldInventoryDetailForItemForWarehouseIdExceptSource_result getResult(I iface, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args args) throws org.apache.thrift.TException {
6585
        getHoldInventoryDetailForItemForWarehouseIdExceptSource_result result = new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result();
6586
        result.success = iface.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source);
6587
        result.setSuccessIsSet(true);
6588
        return result;
6589
      }
6590
    }
6591
 
9404 vikram.rag 6592
    private static class getSnapdealInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealInventoryForItem_args> {
6593
      public getSnapdealInventoryForItem() {
6594
        super("getSnapdealInventoryForItem");
6595
      }
6596
 
6597
      protected getSnapdealInventoryForItem_args getEmptyArgsInstance() {
6598
        return new getSnapdealInventoryForItem_args();
6599
      }
6600
 
6601
      protected getSnapdealInventoryForItem_result getResult(I iface, getSnapdealInventoryForItem_args args) throws org.apache.thrift.TException {
6602
        getSnapdealInventoryForItem_result result = new getSnapdealInventoryForItem_result();
6603
        result.success = iface.getSnapdealInventoryForItem(args.item_id);
6604
        return result;
6605
      }
6606
    }
6607
 
6608
    private static class addOrUpdateSnapdealInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateSnapdealInventoryForItem_args> {
6609
      public addOrUpdateSnapdealInventoryForItem() {
6610
        super("addOrUpdateSnapdealInventoryForItem");
6611
      }
6612
 
6613
      protected addOrUpdateSnapdealInventoryForItem_args getEmptyArgsInstance() {
6614
        return new addOrUpdateSnapdealInventoryForItem_args();
6615
      }
6616
 
6617
      protected addOrUpdateSnapdealInventoryForItem_result getResult(I iface, addOrUpdateSnapdealInventoryForItem_args args) throws org.apache.thrift.TException {
6618
        addOrUpdateSnapdealInventoryForItem_result result = new addOrUpdateSnapdealInventoryForItem_result();
6619
        iface.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem);
6620
        return result;
6621
      }
6622
    }
6623
 
6624
    private static class getNlcForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNlcForWarehouse_args> {
6625
      public getNlcForWarehouse() {
6626
        super("getNlcForWarehouse");
6627
      }
6628
 
6629
      protected getNlcForWarehouse_args getEmptyArgsInstance() {
6630
        return new getNlcForWarehouse_args();
6631
      }
6632
 
6633
      protected getNlcForWarehouse_result getResult(I iface, getNlcForWarehouse_args args) throws org.apache.thrift.TException {
6634
        getNlcForWarehouse_result result = new getNlcForWarehouse_result();
6635
        result.success = iface.getNlcForWarehouse(args.warehouse_id, args.item_id);
6636
        result.setSuccessIsSet(true);
6637
        return result;
6638
      }
6639
    }
6640
 
9640 amar.kumar 6641
    private static class getHeldInventoryMapForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHeldInventoryMapForItem_args> {
6642
      public getHeldInventoryMapForItem() {
6643
        super("getHeldInventoryMapForItem");
6644
      }
6645
 
6646
      protected getHeldInventoryMapForItem_args getEmptyArgsInstance() {
6647
        return new getHeldInventoryMapForItem_args();
6648
      }
6649
 
6650
      protected getHeldInventoryMapForItem_result getResult(I iface, getHeldInventoryMapForItem_args args) throws org.apache.thrift.TException {
6651
        getHeldInventoryMapForItem_result result = new getHeldInventoryMapForItem_result();
6652
        result.success = iface.getHeldInventoryMapForItem(args.item_id, args.warehouse_id);
6653
        return result;
6654
      }
6655
    }
6656
 
9482 vikram.rag 6657
    private static class addOrUpdateAllAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAllAmazonFbaInventory_args> {
6658
      public addOrUpdateAllAmazonFbaInventory() {
6659
        super("addOrUpdateAllAmazonFbaInventory");
6660
      }
6661
 
6662
      protected addOrUpdateAllAmazonFbaInventory_args getEmptyArgsInstance() {
6663
        return new addOrUpdateAllAmazonFbaInventory_args();
6664
      }
6665
 
6666
      protected addOrUpdateAllAmazonFbaInventory_result getResult(I iface, addOrUpdateAllAmazonFbaInventory_args args) throws org.apache.thrift.TException {
6667
        addOrUpdateAllAmazonFbaInventory_result result = new addOrUpdateAllAmazonFbaInventory_result();
6668
        iface.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot);
6669
        return result;
6670
      }
6671
    }
6672
 
9495 vikram.rag 6673
    private static class addOrUpdateAllSnapdealInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAllSnapdealInventory_args> {
6674
      public addOrUpdateAllSnapdealInventory() {
6675
        super("addOrUpdateAllSnapdealInventory");
6676
      }
6677
 
6678
      protected addOrUpdateAllSnapdealInventory_args getEmptyArgsInstance() {
6679
        return new addOrUpdateAllSnapdealInventory_args();
6680
      }
6681
 
6682
      protected addOrUpdateAllSnapdealInventory_result getResult(I iface, addOrUpdateAllSnapdealInventory_args args) throws org.apache.thrift.TException {
6683
        addOrUpdateAllSnapdealInventory_result result = new addOrUpdateAllSnapdealInventory_result();
6684
        iface.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot);
6685
        return result;
6686
      }
6687
    }
6688
 
6689
    private static class getSnapdealInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealInventorySnapshot_args> {
6690
      public getSnapdealInventorySnapshot() {
6691
        super("getSnapdealInventorySnapshot");
6692
      }
6693
 
6694
      protected getSnapdealInventorySnapshot_args getEmptyArgsInstance() {
6695
        return new getSnapdealInventorySnapshot_args();
6696
      }
6697
 
6698
      protected getSnapdealInventorySnapshot_result getResult(I iface, getSnapdealInventorySnapshot_args args) throws org.apache.thrift.TException {
6699
        getSnapdealInventorySnapshot_result result = new getSnapdealInventorySnapshot_result();
6700
        result.success = iface.getSnapdealInventorySnapshot();
6701
        return result;
6702
      }
6703
    }
6704
 
9761 amar.kumar 6705
    private static class getHoldInventoryDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHoldInventoryDetails_args> {
6706
      public getHoldInventoryDetails() {
6707
        super("getHoldInventoryDetails");
6708
      }
6709
 
6710
      protected getHoldInventoryDetails_args getEmptyArgsInstance() {
6711
        return new getHoldInventoryDetails_args();
6712
      }
6713
 
6714
      protected getHoldInventoryDetails_result getResult(I iface, getHoldInventoryDetails_args args) throws org.apache.thrift.TException {
6715
        getHoldInventoryDetails_result result = new getHoldInventoryDetails_result();
6716
        result.success = iface.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source);
6717
        return result;
6718
      }
6719
    }
6720
 
10050 vikram.rag 6721
    private static class addOrUpdateFlipkartInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateFlipkartInventorySnapshot_args> {
6722
      public addOrUpdateFlipkartInventorySnapshot() {
6723
        super("addOrUpdateFlipkartInventorySnapshot");
6724
      }
6725
 
6726
      protected addOrUpdateFlipkartInventorySnapshot_args getEmptyArgsInstance() {
6727
        return new addOrUpdateFlipkartInventorySnapshot_args();
6728
      }
6729
 
6730
      protected addOrUpdateFlipkartInventorySnapshot_result getResult(I iface, addOrUpdateFlipkartInventorySnapshot_args args) throws org.apache.thrift.TException {
6731
        addOrUpdateFlipkartInventorySnapshot_result result = new addOrUpdateFlipkartInventorySnapshot_result();
10450 vikram.rag 6732
        iface.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot, args.time);
10050 vikram.rag 6733
        return result;
6734
      }
6735
    }
6736
 
6737
    private static class getFlipkartInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartInventorySnapshot_args> {
6738
      public getFlipkartInventorySnapshot() {
6739
        super("getFlipkartInventorySnapshot");
6740
      }
6741
 
6742
      protected getFlipkartInventorySnapshot_args getEmptyArgsInstance() {
6743
        return new getFlipkartInventorySnapshot_args();
6744
      }
6745
 
6746
      protected getFlipkartInventorySnapshot_result getResult(I iface, getFlipkartInventorySnapshot_args args) throws org.apache.thrift.TException {
6747
        getFlipkartInventorySnapshot_result result = new getFlipkartInventorySnapshot_result();
6748
        result.success = iface.getFlipkartInventorySnapshot();
6749
        return result;
6750
      }
6751
    }
6752
 
10097 kshitij.so 6753
    private static class getFlipkartlInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartlInventoryForItem_args> {
6754
      public getFlipkartlInventoryForItem() {
6755
        super("getFlipkartlInventoryForItem");
6756
      }
6757
 
6758
      protected getFlipkartlInventoryForItem_args getEmptyArgsInstance() {
6759
        return new getFlipkartlInventoryForItem_args();
6760
      }
6761
 
6762
      protected getFlipkartlInventoryForItem_result getResult(I iface, getFlipkartlInventoryForItem_args args) throws org.apache.thrift.TException {
6763
        getFlipkartlInventoryForItem_result result = new getFlipkartlInventoryForItem_result();
6764
        result.success = iface.getFlipkartlInventoryForItem(args.item_id);
6765
        return result;
6766
      }
6767
    }
6768
 
10485 vikram.rag 6769
    private static class getStateMaster<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStateMaster_args> {
6770
      public getStateMaster() {
6771
        super("getStateMaster");
6772
      }
6773
 
6774
      protected getStateMaster_args getEmptyArgsInstance() {
6775
        return new getStateMaster_args();
6776
      }
6777
 
6778
      protected getStateMaster_result getResult(I iface, getStateMaster_args args) throws org.apache.thrift.TException {
6779
        getStateMaster_result result = new getStateMaster_result();
6780
        result.success = iface.getStateMaster();
6781
        return result;
6782
      }
6783
    }
6784
 
10546 vikram.rag 6785
    private static class updateSnapdealStockAtEOD<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateSnapdealStockAtEOD_args> {
6786
      public updateSnapdealStockAtEOD() {
6787
        super("updateSnapdealStockAtEOD");
6788
      }
6789
 
6790
      protected updateSnapdealStockAtEOD_args getEmptyArgsInstance() {
6791
        return new updateSnapdealStockAtEOD_args();
6792
      }
6793
 
6794
      protected updateSnapdealStockAtEOD_result getResult(I iface, updateSnapdealStockAtEOD_args args) throws org.apache.thrift.TException {
6795
        updateSnapdealStockAtEOD_result result = new updateSnapdealStockAtEOD_result();
6796
        iface.updateSnapdealStockAtEOD(args.allsnapdealstock);
6797
        return result;
6798
      }
6799
    }
6800
 
6801
    private static class updateFlipkartStockAtEOD<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateFlipkartStockAtEOD_args> {
6802
      public updateFlipkartStockAtEOD() {
6803
        super("updateFlipkartStockAtEOD");
6804
      }
6805
 
6806
      protected updateFlipkartStockAtEOD_args getEmptyArgsInstance() {
6807
        return new updateFlipkartStockAtEOD_args();
6808
      }
6809
 
6810
      protected updateFlipkartStockAtEOD_result getResult(I iface, updateFlipkartStockAtEOD_args args) throws org.apache.thrift.TException {
6811
        updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
6812
        iface.updateFlipkartStockAtEOD(args.allflipkartstock);
6813
        return result;
6814
      }
6815
    }
6816
 
12363 kshitij.so 6817
    private static class getWanNlcForSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWanNlcForSource_args> {
6818
      public getWanNlcForSource() {
6819
        super("getWanNlcForSource");
6820
      }
6821
 
6822
      protected getWanNlcForSource_args getEmptyArgsInstance() {
6823
        return new getWanNlcForSource_args();
6824
      }
6825
 
6826
      protected getWanNlcForSource_result getResult(I iface, getWanNlcForSource_args args) throws org.apache.thrift.TException {
6827
        getWanNlcForSource_result result = new getWanNlcForSource_result();
6828
        result.success = iface.getWanNlcForSource(args.item_id, args.source);
6829
        result.setSuccessIsSet(true);
6830
        return result;
6831
      }
6832
    }
6833
 
6834
    private static class getAllAvailableAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAvailableAmazonFbaItemInventory_args> {
6835
      public getAllAvailableAmazonFbaItemInventory() {
6836
        super("getAllAvailableAmazonFbaItemInventory");
6837
      }
6838
 
6839
      protected getAllAvailableAmazonFbaItemInventory_args getEmptyArgsInstance() {
6840
        return new getAllAvailableAmazonFbaItemInventory_args();
6841
      }
6842
 
6843
      protected getAllAvailableAmazonFbaItemInventory_result getResult(I iface, getAllAvailableAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
6844
        getAllAvailableAmazonFbaItemInventory_result result = new getAllAvailableAmazonFbaItemInventory_result();
6845
        result.success = iface.getAllAvailableAmazonFbaItemInventory();
6846
        return result;
6847
      }
6848
    }
6849
 
17990 kshitij.so 6850
    private static class updateItemAvailabilityForItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemAvailabilityForItemIds_args> {
6851
      public updateItemAvailabilityForItemIds() {
6852
        super("updateItemAvailabilityForItemIds");
6853
      }
6854
 
6855
      protected updateItemAvailabilityForItemIds_args getEmptyArgsInstance() {
6856
        return new updateItemAvailabilityForItemIds_args();
6857
      }
6858
 
6859
      protected updateItemAvailabilityForItemIds_result getResult(I iface, updateItemAvailabilityForItemIds_args args) throws org.apache.thrift.TException {
6860
        updateItemAvailabilityForItemIds_result result = new updateItemAvailabilityForItemIds_result();
6861
        result.success = iface.updateItemAvailabilityForItemIds(args.itemIds);
6862
        result.setSuccessIsSet(true);
6863
        return result;
6864
      }
6865
    }
6866
 
19247 kshitij.so 6867
    private static class addVendorItemPricingInBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricingInBulk_args> {
6868
      public addVendorItemPricingInBulk() {
6869
        super("addVendorItemPricingInBulk");
6870
      }
6871
 
6872
      protected addVendorItemPricingInBulk_args getEmptyArgsInstance() {
6873
        return new addVendorItemPricingInBulk_args();
6874
      }
6875
 
6876
      protected addVendorItemPricingInBulk_result getResult(I iface, addVendorItemPricingInBulk_args args) throws org.apache.thrift.TException {
6877
        addVendorItemPricingInBulk_result result = new addVendorItemPricingInBulk_result();
6878
        result.success = iface.addVendorItemPricingInBulk(args.vendorItemPricingList);
6879
        return result;
6880
      }
6881
    }
6882
 
6883
    private static class addInventoryInBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventoryInBulk_args> {
6884
      public addInventoryInBulk() {
6885
        super("addInventoryInBulk");
6886
      }
6887
 
6888
      protected addInventoryInBulk_args getEmptyArgsInstance() {
6889
        return new addInventoryInBulk_args();
6890
      }
6891
 
6892
      protected addInventoryInBulk_result getResult(I iface, addInventoryInBulk_args args) throws org.apache.thrift.TException {
6893
        addInventoryInBulk_result result = new addInventoryInBulk_result();
6894
        try {
6895
          iface.addInventoryInBulk(args.bulkInventoryList);
6896
        } catch (InventoryServiceException cex) {
6897
          result.cex = cex;
6898
        }
6899
        return result;
6900
      }
6901
    }
6902
 
5945 mandeep.dh 6903
  }
6904
 
6905
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6907
 
6908
    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);
6909
 
6910
    private Warehouse warehouse; // required
6911
 
6912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6914
      WAREHOUSE((short)1, "warehouse");
6915
 
6916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6917
 
6918
      static {
6919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6920
          byName.put(field.getFieldName(), field);
6921
        }
6922
      }
6923
 
6924
      /**
6925
       * Find the _Fields constant that matches fieldId, or null if its not found.
6926
       */
6927
      public static _Fields findByThriftId(int fieldId) {
6928
        switch(fieldId) {
6929
          case 1: // WAREHOUSE
6930
            return WAREHOUSE;
6931
          default:
6932
            return null;
6933
        }
6934
      }
6935
 
6936
      /**
6937
       * Find the _Fields constant that matches fieldId, throwing an exception
6938
       * if it is not found.
6939
       */
6940
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6941
        _Fields fields = findByThriftId(fieldId);
6942
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6943
        return fields;
6944
      }
6945
 
6946
      /**
6947
       * Find the _Fields constant that matches name, or null if its not found.
6948
       */
6949
      public static _Fields findByName(String name) {
6950
        return byName.get(name);
6951
      }
6952
 
6953
      private final short _thriftId;
6954
      private final String _fieldName;
6955
 
6956
      _Fields(short thriftId, String fieldName) {
6957
        _thriftId = thriftId;
6958
        _fieldName = fieldName;
6959
      }
6960
 
6961
      public short getThriftFieldId() {
6962
        return _thriftId;
6963
      }
6964
 
6965
      public String getFieldName() {
6966
        return _fieldName;
6967
      }
6968
    }
6969
 
6970
    // isset id assignments
6971
 
6972
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6973
    static {
6974
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6975
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6976
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
6977
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6978
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
6979
    }
6980
 
6981
    public addWarehouse_args() {
6982
    }
6983
 
6984
    public addWarehouse_args(
6985
      Warehouse warehouse)
6986
    {
6987
      this();
6988
      this.warehouse = warehouse;
6989
    }
6990
 
6991
    /**
6992
     * Performs a deep copy on <i>other</i>.
6993
     */
6994
    public addWarehouse_args(addWarehouse_args other) {
6995
      if (other.isSetWarehouse()) {
6996
        this.warehouse = new Warehouse(other.warehouse);
6997
      }
6998
    }
6999
 
7000
    public addWarehouse_args deepCopy() {
7001
      return new addWarehouse_args(this);
7002
    }
7003
 
7004
    @Override
7005
    public void clear() {
7006
      this.warehouse = null;
7007
    }
7008
 
7009
    public Warehouse getWarehouse() {
7010
      return this.warehouse;
7011
    }
7012
 
7013
    public void setWarehouse(Warehouse warehouse) {
7014
      this.warehouse = warehouse;
7015
    }
7016
 
7017
    public void unsetWarehouse() {
7018
      this.warehouse = null;
7019
    }
7020
 
7021
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
7022
    public boolean isSetWarehouse() {
7023
      return this.warehouse != null;
7024
    }
7025
 
7026
    public void setWarehouseIsSet(boolean value) {
7027
      if (!value) {
7028
        this.warehouse = null;
7029
      }
7030
    }
7031
 
7032
    public void setFieldValue(_Fields field, Object value) {
7033
      switch (field) {
7034
      case WAREHOUSE:
7035
        if (value == null) {
7036
          unsetWarehouse();
7037
        } else {
7038
          setWarehouse((Warehouse)value);
7039
        }
7040
        break;
7041
 
7042
      }
7043
    }
7044
 
7045
    public Object getFieldValue(_Fields field) {
7046
      switch (field) {
7047
      case WAREHOUSE:
7048
        return getWarehouse();
7049
 
7050
      }
7051
      throw new IllegalStateException();
7052
    }
7053
 
7054
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7055
    public boolean isSet(_Fields field) {
7056
      if (field == null) {
7057
        throw new IllegalArgumentException();
7058
      }
7059
 
7060
      switch (field) {
7061
      case WAREHOUSE:
7062
        return isSetWarehouse();
7063
      }
7064
      throw new IllegalStateException();
7065
    }
7066
 
7067
    @Override
7068
    public boolean equals(Object that) {
7069
      if (that == null)
7070
        return false;
7071
      if (that instanceof addWarehouse_args)
7072
        return this.equals((addWarehouse_args)that);
7073
      return false;
7074
    }
7075
 
7076
    public boolean equals(addWarehouse_args that) {
7077
      if (that == null)
7078
        return false;
7079
 
7080
      boolean this_present_warehouse = true && this.isSetWarehouse();
7081
      boolean that_present_warehouse = true && that.isSetWarehouse();
7082
      if (this_present_warehouse || that_present_warehouse) {
7083
        if (!(this_present_warehouse && that_present_warehouse))
7084
          return false;
7085
        if (!this.warehouse.equals(that.warehouse))
7086
          return false;
7087
      }
7088
 
7089
      return true;
7090
    }
7091
 
7092
    @Override
7093
    public int hashCode() {
7094
      return 0;
7095
    }
7096
 
7097
    public int compareTo(addWarehouse_args other) {
7098
      if (!getClass().equals(other.getClass())) {
7099
        return getClass().getName().compareTo(other.getClass().getName());
7100
      }
7101
 
7102
      int lastComparison = 0;
7103
      addWarehouse_args typedOther = (addWarehouse_args)other;
7104
 
7105
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
7106
      if (lastComparison != 0) {
7107
        return lastComparison;
7108
      }
7109
      if (isSetWarehouse()) {
7110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
7111
        if (lastComparison != 0) {
7112
          return lastComparison;
7113
        }
7114
      }
7115
      return 0;
7116
    }
7117
 
7118
    public _Fields fieldForId(int fieldId) {
7119
      return _Fields.findByThriftId(fieldId);
7120
    }
7121
 
7122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7123
      org.apache.thrift.protocol.TField field;
7124
      iprot.readStructBegin();
7125
      while (true)
7126
      {
7127
        field = iprot.readFieldBegin();
7128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7129
          break;
7130
        }
7131
        switch (field.id) {
7132
          case 1: // WAREHOUSE
7133
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7134
              this.warehouse = new Warehouse();
7135
              this.warehouse.read(iprot);
7136
            } else { 
7137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7138
            }
7139
            break;
7140
          default:
7141
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7142
        }
7143
        iprot.readFieldEnd();
7144
      }
7145
      iprot.readStructEnd();
7146
      validate();
7147
    }
7148
 
7149
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7150
      validate();
7151
 
7152
      oprot.writeStructBegin(STRUCT_DESC);
7153
      if (this.warehouse != null) {
7154
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
7155
        this.warehouse.write(oprot);
7156
        oprot.writeFieldEnd();
7157
      }
7158
      oprot.writeFieldStop();
7159
      oprot.writeStructEnd();
7160
    }
7161
 
7162
    @Override
7163
    public String toString() {
7164
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
7165
      boolean first = true;
7166
 
7167
      sb.append("warehouse:");
7168
      if (this.warehouse == null) {
7169
        sb.append("null");
7170
      } else {
7171
        sb.append(this.warehouse);
7172
      }
7173
      first = false;
7174
      sb.append(")");
7175
      return sb.toString();
7176
    }
7177
 
7178
    public void validate() throws org.apache.thrift.TException {
7179
      // check for required fields
7180
    }
7181
 
7182
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7183
      try {
7184
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7185
      } catch (org.apache.thrift.TException te) {
7186
        throw new java.io.IOException(te);
7187
      }
7188
    }
7189
 
7190
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7191
      try {
7192
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7193
      } catch (org.apache.thrift.TException te) {
7194
        throw new java.io.IOException(te);
7195
      }
7196
    }
7197
 
7198
  }
7199
 
7200
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
7201
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
7202
 
7203
    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);
7204
    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);
7205
 
7206
    private long success; // required
7207
    private InventoryServiceException cex; // required
7208
 
7209
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7210
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7211
      SUCCESS((short)0, "success"),
7212
      CEX((short)1, "cex");
7213
 
7214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7215
 
7216
      static {
7217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7218
          byName.put(field.getFieldName(), field);
7219
        }
7220
      }
7221
 
7222
      /**
7223
       * Find the _Fields constant that matches fieldId, or null if its not found.
7224
       */
7225
      public static _Fields findByThriftId(int fieldId) {
7226
        switch(fieldId) {
7227
          case 0: // SUCCESS
7228
            return SUCCESS;
7229
          case 1: // CEX
7230
            return CEX;
7231
          default:
7232
            return null;
7233
        }
7234
      }
7235
 
7236
      /**
7237
       * Find the _Fields constant that matches fieldId, throwing an exception
7238
       * if it is not found.
7239
       */
7240
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7241
        _Fields fields = findByThriftId(fieldId);
7242
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7243
        return fields;
7244
      }
7245
 
7246
      /**
7247
       * Find the _Fields constant that matches name, or null if its not found.
7248
       */
7249
      public static _Fields findByName(String name) {
7250
        return byName.get(name);
7251
      }
7252
 
7253
      private final short _thriftId;
7254
      private final String _fieldName;
7255
 
7256
      _Fields(short thriftId, String fieldName) {
7257
        _thriftId = thriftId;
7258
        _fieldName = fieldName;
7259
      }
7260
 
7261
      public short getThriftFieldId() {
7262
        return _thriftId;
7263
      }
7264
 
7265
      public String getFieldName() {
7266
        return _fieldName;
7267
      }
7268
    }
7269
 
7270
    // isset id assignments
7271
    private static final int __SUCCESS_ISSET_ID = 0;
7272
    private BitSet __isset_bit_vector = new BitSet(1);
7273
 
7274
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7275
    static {
7276
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7277
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7278
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7279
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7280
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7281
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7282
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
7283
    }
7284
 
7285
    public addWarehouse_result() {
7286
    }
7287
 
7288
    public addWarehouse_result(
7289
      long success,
7290
      InventoryServiceException cex)
7291
    {
7292
      this();
7293
      this.success = success;
7294
      setSuccessIsSet(true);
7295
      this.cex = cex;
7296
    }
7297
 
7298
    /**
7299
     * Performs a deep copy on <i>other</i>.
7300
     */
7301
    public addWarehouse_result(addWarehouse_result other) {
7302
      __isset_bit_vector.clear();
7303
      __isset_bit_vector.or(other.__isset_bit_vector);
7304
      this.success = other.success;
7305
      if (other.isSetCex()) {
7306
        this.cex = new InventoryServiceException(other.cex);
7307
      }
7308
    }
7309
 
7310
    public addWarehouse_result deepCopy() {
7311
      return new addWarehouse_result(this);
7312
    }
7313
 
7314
    @Override
7315
    public void clear() {
7316
      setSuccessIsSet(false);
7317
      this.success = 0;
7318
      this.cex = null;
7319
    }
7320
 
7321
    public long getSuccess() {
7322
      return this.success;
7323
    }
7324
 
7325
    public void setSuccess(long success) {
7326
      this.success = success;
7327
      setSuccessIsSet(true);
7328
    }
7329
 
7330
    public void unsetSuccess() {
7331
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7332
    }
7333
 
7334
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7335
    public boolean isSetSuccess() {
7336
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7337
    }
7338
 
7339
    public void setSuccessIsSet(boolean value) {
7340
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
7341
    }
7342
 
7343
    public InventoryServiceException getCex() {
7344
      return this.cex;
7345
    }
7346
 
7347
    public void setCex(InventoryServiceException cex) {
7348
      this.cex = cex;
7349
    }
7350
 
7351
    public void unsetCex() {
7352
      this.cex = null;
7353
    }
7354
 
7355
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7356
    public boolean isSetCex() {
7357
      return this.cex != null;
7358
    }
7359
 
7360
    public void setCexIsSet(boolean value) {
7361
      if (!value) {
7362
        this.cex = null;
7363
      }
7364
    }
7365
 
7366
    public void setFieldValue(_Fields field, Object value) {
7367
      switch (field) {
7368
      case SUCCESS:
7369
        if (value == null) {
7370
          unsetSuccess();
7371
        } else {
7372
          setSuccess((Long)value);
7373
        }
7374
        break;
7375
 
7376
      case CEX:
7377
        if (value == null) {
7378
          unsetCex();
7379
        } else {
7380
          setCex((InventoryServiceException)value);
7381
        }
7382
        break;
7383
 
7384
      }
7385
    }
7386
 
7387
    public Object getFieldValue(_Fields field) {
7388
      switch (field) {
7389
      case SUCCESS:
7390
        return Long.valueOf(getSuccess());
7391
 
7392
      case CEX:
7393
        return getCex();
7394
 
7395
      }
7396
      throw new IllegalStateException();
7397
    }
7398
 
7399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7400
    public boolean isSet(_Fields field) {
7401
      if (field == null) {
7402
        throw new IllegalArgumentException();
7403
      }
7404
 
7405
      switch (field) {
7406
      case SUCCESS:
7407
        return isSetSuccess();
7408
      case CEX:
7409
        return isSetCex();
7410
      }
7411
      throw new IllegalStateException();
7412
    }
7413
 
7414
    @Override
7415
    public boolean equals(Object that) {
7416
      if (that == null)
7417
        return false;
7418
      if (that instanceof addWarehouse_result)
7419
        return this.equals((addWarehouse_result)that);
7420
      return false;
7421
    }
7422
 
7423
    public boolean equals(addWarehouse_result that) {
7424
      if (that == null)
7425
        return false;
7426
 
7427
      boolean this_present_success = true;
7428
      boolean that_present_success = true;
7429
      if (this_present_success || that_present_success) {
7430
        if (!(this_present_success && that_present_success))
7431
          return false;
7432
        if (this.success != that.success)
7433
          return false;
7434
      }
7435
 
7436
      boolean this_present_cex = true && this.isSetCex();
7437
      boolean that_present_cex = true && that.isSetCex();
7438
      if (this_present_cex || that_present_cex) {
7439
        if (!(this_present_cex && that_present_cex))
7440
          return false;
7441
        if (!this.cex.equals(that.cex))
7442
          return false;
7443
      }
7444
 
7445
      return true;
7446
    }
7447
 
7448
    @Override
7449
    public int hashCode() {
7450
      return 0;
7451
    }
7452
 
7453
    public int compareTo(addWarehouse_result other) {
7454
      if (!getClass().equals(other.getClass())) {
7455
        return getClass().getName().compareTo(other.getClass().getName());
7456
      }
7457
 
7458
      int lastComparison = 0;
7459
      addWarehouse_result typedOther = (addWarehouse_result)other;
7460
 
7461
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7462
      if (lastComparison != 0) {
7463
        return lastComparison;
7464
      }
7465
      if (isSetSuccess()) {
7466
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7467
        if (lastComparison != 0) {
7468
          return lastComparison;
7469
        }
7470
      }
7471
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7472
      if (lastComparison != 0) {
7473
        return lastComparison;
7474
      }
7475
      if (isSetCex()) {
7476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7477
        if (lastComparison != 0) {
7478
          return lastComparison;
7479
        }
7480
      }
7481
      return 0;
7482
    }
7483
 
7484
    public _Fields fieldForId(int fieldId) {
7485
      return _Fields.findByThriftId(fieldId);
7486
    }
7487
 
7488
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7489
      org.apache.thrift.protocol.TField field;
7490
      iprot.readStructBegin();
7491
      while (true)
7492
      {
7493
        field = iprot.readFieldBegin();
7494
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7495
          break;
7496
        }
7497
        switch (field.id) {
7498
          case 0: // SUCCESS
7499
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7500
              this.success = iprot.readI64();
7501
              setSuccessIsSet(true);
7502
            } else { 
7503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7504
            }
7505
            break;
7506
          case 1: // CEX
7507
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7508
              this.cex = new InventoryServiceException();
7509
              this.cex.read(iprot);
7510
            } else { 
7511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7512
            }
7513
            break;
7514
          default:
7515
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7516
        }
7517
        iprot.readFieldEnd();
7518
      }
7519
      iprot.readStructEnd();
7520
      validate();
7521
    }
7522
 
7523
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7524
      oprot.writeStructBegin(STRUCT_DESC);
7525
 
7526
      if (this.isSetSuccess()) {
7527
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7528
        oprot.writeI64(this.success);
7529
        oprot.writeFieldEnd();
7530
      } else if (this.isSetCex()) {
7531
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7532
        this.cex.write(oprot);
7533
        oprot.writeFieldEnd();
7534
      }
7535
      oprot.writeFieldStop();
7536
      oprot.writeStructEnd();
7537
    }
7538
 
7539
    @Override
7540
    public String toString() {
7541
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
7542
      boolean first = true;
7543
 
7544
      sb.append("success:");
7545
      sb.append(this.success);
7546
      first = false;
7547
      if (!first) sb.append(", ");
7548
      sb.append("cex:");
7549
      if (this.cex == null) {
7550
        sb.append("null");
7551
      } else {
7552
        sb.append(this.cex);
7553
      }
7554
      first = false;
7555
      sb.append(")");
7556
      return sb.toString();
7557
    }
7558
 
7559
    public void validate() throws org.apache.thrift.TException {
7560
      // check for required fields
7561
    }
7562
 
7563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7564
      try {
7565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7566
      } catch (org.apache.thrift.TException te) {
7567
        throw new java.io.IOException(te);
7568
      }
7569
    }
7570
 
7571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7572
      try {
7573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7574
      } catch (org.apache.thrift.TException te) {
7575
        throw new java.io.IOException(te);
7576
      }
7577
    }
7578
 
7579
  }
7580
 
7581
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
7582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
7583
 
7584
    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);
7585
 
7586
    private Vendor vendor; // required
7587
 
7588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7590
      VENDOR((short)1, "vendor");
7591
 
7592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7593
 
7594
      static {
7595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7596
          byName.put(field.getFieldName(), field);
7597
        }
7598
      }
7599
 
7600
      /**
7601
       * Find the _Fields constant that matches fieldId, or null if its not found.
7602
       */
7603
      public static _Fields findByThriftId(int fieldId) {
7604
        switch(fieldId) {
7605
          case 1: // VENDOR
7606
            return VENDOR;
7607
          default:
7608
            return null;
7609
        }
7610
      }
7611
 
7612
      /**
7613
       * Find the _Fields constant that matches fieldId, throwing an exception
7614
       * if it is not found.
7615
       */
7616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7617
        _Fields fields = findByThriftId(fieldId);
7618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7619
        return fields;
7620
      }
7621
 
7622
      /**
7623
       * Find the _Fields constant that matches name, or null if its not found.
7624
       */
7625
      public static _Fields findByName(String name) {
7626
        return byName.get(name);
7627
      }
7628
 
7629
      private final short _thriftId;
7630
      private final String _fieldName;
7631
 
7632
      _Fields(short thriftId, String fieldName) {
7633
        _thriftId = thriftId;
7634
        _fieldName = fieldName;
7635
      }
7636
 
7637
      public short getThriftFieldId() {
7638
        return _thriftId;
7639
      }
7640
 
7641
      public String getFieldName() {
7642
        return _fieldName;
7643
      }
7644
    }
7645
 
7646
    // isset id assignments
7647
 
7648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7649
    static {
7650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7651
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7652
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
7653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
7655
    }
7656
 
7657
    public addVendor_args() {
7658
    }
7659
 
7660
    public addVendor_args(
7661
      Vendor vendor)
7662
    {
7663
      this();
7664
      this.vendor = vendor;
7665
    }
7666
 
7667
    /**
7668
     * Performs a deep copy on <i>other</i>.
7669
     */
7670
    public addVendor_args(addVendor_args other) {
7671
      if (other.isSetVendor()) {
7672
        this.vendor = new Vendor(other.vendor);
7673
      }
7674
    }
7675
 
7676
    public addVendor_args deepCopy() {
7677
      return new addVendor_args(this);
7678
    }
7679
 
7680
    @Override
7681
    public void clear() {
7682
      this.vendor = null;
7683
    }
7684
 
7685
    public Vendor getVendor() {
7686
      return this.vendor;
7687
    }
7688
 
7689
    public void setVendor(Vendor vendor) {
7690
      this.vendor = vendor;
7691
    }
7692
 
7693
    public void unsetVendor() {
7694
      this.vendor = null;
7695
    }
7696
 
7697
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
7698
    public boolean isSetVendor() {
7699
      return this.vendor != null;
7700
    }
7701
 
7702
    public void setVendorIsSet(boolean value) {
7703
      if (!value) {
7704
        this.vendor = null;
7705
      }
7706
    }
7707
 
7708
    public void setFieldValue(_Fields field, Object value) {
7709
      switch (field) {
7710
      case VENDOR:
7711
        if (value == null) {
7712
          unsetVendor();
7713
        } else {
7714
          setVendor((Vendor)value);
7715
        }
7716
        break;
7717
 
7718
      }
7719
    }
7720
 
7721
    public Object getFieldValue(_Fields field) {
7722
      switch (field) {
7723
      case VENDOR:
7724
        return getVendor();
7725
 
7726
      }
7727
      throw new IllegalStateException();
7728
    }
7729
 
7730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7731
    public boolean isSet(_Fields field) {
7732
      if (field == null) {
7733
        throw new IllegalArgumentException();
7734
      }
7735
 
7736
      switch (field) {
7737
      case VENDOR:
7738
        return isSetVendor();
7739
      }
7740
      throw new IllegalStateException();
7741
    }
7742
 
7743
    @Override
7744
    public boolean equals(Object that) {
7745
      if (that == null)
7746
        return false;
7747
      if (that instanceof addVendor_args)
7748
        return this.equals((addVendor_args)that);
7749
      return false;
7750
    }
7751
 
7752
    public boolean equals(addVendor_args that) {
7753
      if (that == null)
7754
        return false;
7755
 
7756
      boolean this_present_vendor = true && this.isSetVendor();
7757
      boolean that_present_vendor = true && that.isSetVendor();
7758
      if (this_present_vendor || that_present_vendor) {
7759
        if (!(this_present_vendor && that_present_vendor))
7760
          return false;
7761
        if (!this.vendor.equals(that.vendor))
7762
          return false;
7763
      }
7764
 
7765
      return true;
7766
    }
7767
 
7768
    @Override
7769
    public int hashCode() {
7770
      return 0;
7771
    }
7772
 
7773
    public int compareTo(addVendor_args other) {
7774
      if (!getClass().equals(other.getClass())) {
7775
        return getClass().getName().compareTo(other.getClass().getName());
7776
      }
7777
 
7778
      int lastComparison = 0;
7779
      addVendor_args typedOther = (addVendor_args)other;
7780
 
7781
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
7782
      if (lastComparison != 0) {
7783
        return lastComparison;
7784
      }
7785
      if (isSetVendor()) {
7786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
7787
        if (lastComparison != 0) {
7788
          return lastComparison;
7789
        }
7790
      }
7791
      return 0;
7792
    }
7793
 
7794
    public _Fields fieldForId(int fieldId) {
7795
      return _Fields.findByThriftId(fieldId);
7796
    }
7797
 
7798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7799
      org.apache.thrift.protocol.TField field;
7800
      iprot.readStructBegin();
7801
      while (true)
7802
      {
7803
        field = iprot.readFieldBegin();
7804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7805
          break;
7806
        }
7807
        switch (field.id) {
7808
          case 1: // VENDOR
7809
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7810
              this.vendor = new Vendor();
7811
              this.vendor.read(iprot);
7812
            } else { 
7813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7814
            }
7815
            break;
7816
          default:
7817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7818
        }
7819
        iprot.readFieldEnd();
7820
      }
7821
      iprot.readStructEnd();
7822
      validate();
7823
    }
7824
 
7825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7826
      validate();
7827
 
7828
      oprot.writeStructBegin(STRUCT_DESC);
7829
      if (this.vendor != null) {
7830
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
7831
        this.vendor.write(oprot);
7832
        oprot.writeFieldEnd();
7833
      }
7834
      oprot.writeFieldStop();
7835
      oprot.writeStructEnd();
7836
    }
7837
 
7838
    @Override
7839
    public String toString() {
7840
      StringBuilder sb = new StringBuilder("addVendor_args(");
7841
      boolean first = true;
7842
 
7843
      sb.append("vendor:");
7844
      if (this.vendor == null) {
7845
        sb.append("null");
7846
      } else {
7847
        sb.append(this.vendor);
7848
      }
7849
      first = false;
7850
      sb.append(")");
7851
      return sb.toString();
7852
    }
7853
 
7854
    public void validate() throws org.apache.thrift.TException {
7855
      // check for required fields
7856
    }
7857
 
7858
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7859
      try {
7860
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7861
      } catch (org.apache.thrift.TException te) {
7862
        throw new java.io.IOException(te);
7863
      }
7864
    }
7865
 
7866
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7867
      try {
7868
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7869
      } catch (org.apache.thrift.TException te) {
7870
        throw new java.io.IOException(te);
7871
      }
7872
    }
7873
 
7874
  }
7875
 
7876
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
7877
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
7878
 
7879
    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);
7880
    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);
7881
 
7882
    private long success; // required
7883
    private InventoryServiceException cex; // required
7884
 
7885
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7886
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7887
      SUCCESS((short)0, "success"),
7888
      CEX((short)1, "cex");
7889
 
7890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7891
 
7892
      static {
7893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7894
          byName.put(field.getFieldName(), field);
7895
        }
7896
      }
7897
 
7898
      /**
7899
       * Find the _Fields constant that matches fieldId, or null if its not found.
7900
       */
7901
      public static _Fields findByThriftId(int fieldId) {
7902
        switch(fieldId) {
7903
          case 0: // SUCCESS
7904
            return SUCCESS;
7905
          case 1: // CEX
7906
            return CEX;
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 __SUCCESS_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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7955
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7957
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7958
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
7959
    }
7960
 
7961
    public addVendor_result() {
7962
    }
7963
 
7964
    public addVendor_result(
7965
      long success,
7966
      InventoryServiceException cex)
7967
    {
7968
      this();
7969
      this.success = success;
7970
      setSuccessIsSet(true);
7971
      this.cex = cex;
7972
    }
7973
 
7974
    /**
7975
     * Performs a deep copy on <i>other</i>.
7976
     */
7977
    public addVendor_result(addVendor_result other) {
7978
      __isset_bit_vector.clear();
7979
      __isset_bit_vector.or(other.__isset_bit_vector);
7980
      this.success = other.success;
7981
      if (other.isSetCex()) {
7982
        this.cex = new InventoryServiceException(other.cex);
7983
      }
7984
    }
7985
 
7986
    public addVendor_result deepCopy() {
7987
      return new addVendor_result(this);
7988
    }
7989
 
7990
    @Override
7991
    public void clear() {
7992
      setSuccessIsSet(false);
7993
      this.success = 0;
7994
      this.cex = null;
7995
    }
7996
 
7997
    public long getSuccess() {
7998
      return this.success;
7999
    }
8000
 
8001
    public void setSuccess(long success) {
8002
      this.success = success;
8003
      setSuccessIsSet(true);
8004
    }
8005
 
8006
    public void unsetSuccess() {
8007
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8008
    }
8009
 
8010
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8011
    public boolean isSetSuccess() {
8012
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8013
    }
8014
 
8015
    public void setSuccessIsSet(boolean value) {
8016
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8017
    }
8018
 
8019
    public InventoryServiceException getCex() {
8020
      return this.cex;
8021
    }
8022
 
8023
    public void setCex(InventoryServiceException cex) {
8024
      this.cex = cex;
8025
    }
8026
 
8027
    public void unsetCex() {
8028
      this.cex = null;
8029
    }
8030
 
8031
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8032
    public boolean isSetCex() {
8033
      return this.cex != null;
8034
    }
8035
 
8036
    public void setCexIsSet(boolean value) {
8037
      if (!value) {
8038
        this.cex = null;
8039
      }
8040
    }
8041
 
8042
    public void setFieldValue(_Fields field, Object value) {
8043
      switch (field) {
8044
      case SUCCESS:
8045
        if (value == null) {
8046
          unsetSuccess();
8047
        } else {
8048
          setSuccess((Long)value);
8049
        }
8050
        break;
8051
 
8052
      case CEX:
8053
        if (value == null) {
8054
          unsetCex();
8055
        } else {
8056
          setCex((InventoryServiceException)value);
8057
        }
8058
        break;
8059
 
8060
      }
8061
    }
8062
 
8063
    public Object getFieldValue(_Fields field) {
8064
      switch (field) {
8065
      case SUCCESS:
8066
        return Long.valueOf(getSuccess());
8067
 
8068
      case CEX:
8069
        return getCex();
8070
 
8071
      }
8072
      throw new IllegalStateException();
8073
    }
8074
 
8075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8076
    public boolean isSet(_Fields field) {
8077
      if (field == null) {
8078
        throw new IllegalArgumentException();
8079
      }
8080
 
8081
      switch (field) {
8082
      case SUCCESS:
8083
        return isSetSuccess();
8084
      case CEX:
8085
        return isSetCex();
8086
      }
8087
      throw new IllegalStateException();
8088
    }
8089
 
8090
    @Override
8091
    public boolean equals(Object that) {
8092
      if (that == null)
8093
        return false;
8094
      if (that instanceof addVendor_result)
8095
        return this.equals((addVendor_result)that);
8096
      return false;
8097
    }
8098
 
8099
    public boolean equals(addVendor_result that) {
8100
      if (that == null)
8101
        return false;
8102
 
8103
      boolean this_present_success = true;
8104
      boolean that_present_success = true;
8105
      if (this_present_success || that_present_success) {
8106
        if (!(this_present_success && that_present_success))
8107
          return false;
8108
        if (this.success != that.success)
8109
          return false;
8110
      }
8111
 
8112
      boolean this_present_cex = true && this.isSetCex();
8113
      boolean that_present_cex = true && that.isSetCex();
8114
      if (this_present_cex || that_present_cex) {
8115
        if (!(this_present_cex && that_present_cex))
8116
          return false;
8117
        if (!this.cex.equals(that.cex))
8118
          return false;
8119
      }
8120
 
8121
      return true;
8122
    }
8123
 
8124
    @Override
8125
    public int hashCode() {
8126
      return 0;
8127
    }
8128
 
8129
    public int compareTo(addVendor_result other) {
8130
      if (!getClass().equals(other.getClass())) {
8131
        return getClass().getName().compareTo(other.getClass().getName());
8132
      }
8133
 
8134
      int lastComparison = 0;
8135
      addVendor_result typedOther = (addVendor_result)other;
8136
 
8137
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8138
      if (lastComparison != 0) {
8139
        return lastComparison;
8140
      }
8141
      if (isSetSuccess()) {
8142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8143
        if (lastComparison != 0) {
8144
          return lastComparison;
8145
        }
8146
      }
8147
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8148
      if (lastComparison != 0) {
8149
        return lastComparison;
8150
      }
8151
      if (isSetCex()) {
8152
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8153
        if (lastComparison != 0) {
8154
          return lastComparison;
8155
        }
8156
      }
8157
      return 0;
8158
    }
8159
 
8160
    public _Fields fieldForId(int fieldId) {
8161
      return _Fields.findByThriftId(fieldId);
8162
    }
8163
 
8164
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8165
      org.apache.thrift.protocol.TField field;
8166
      iprot.readStructBegin();
8167
      while (true)
8168
      {
8169
        field = iprot.readFieldBegin();
8170
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8171
          break;
8172
        }
8173
        switch (field.id) {
8174
          case 0: // SUCCESS
8175
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8176
              this.success = iprot.readI64();
8177
              setSuccessIsSet(true);
8178
            } else { 
8179
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8180
            }
8181
            break;
8182
          case 1: // CEX
8183
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8184
              this.cex = new InventoryServiceException();
8185
              this.cex.read(iprot);
8186
            } else { 
8187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8188
            }
8189
            break;
8190
          default:
8191
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8192
        }
8193
        iprot.readFieldEnd();
8194
      }
8195
      iprot.readStructEnd();
8196
      validate();
8197
    }
8198
 
8199
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8200
      oprot.writeStructBegin(STRUCT_DESC);
8201
 
8202
      if (this.isSetSuccess()) {
8203
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8204
        oprot.writeI64(this.success);
8205
        oprot.writeFieldEnd();
8206
      } else if (this.isSetCex()) {
8207
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8208
        this.cex.write(oprot);
8209
        oprot.writeFieldEnd();
8210
      }
8211
      oprot.writeFieldStop();
8212
      oprot.writeStructEnd();
8213
    }
8214
 
8215
    @Override
8216
    public String toString() {
8217
      StringBuilder sb = new StringBuilder("addVendor_result(");
8218
      boolean first = true;
8219
 
8220
      sb.append("success:");
8221
      sb.append(this.success);
8222
      first = false;
8223
      if (!first) sb.append(", ");
8224
      sb.append("cex:");
8225
      if (this.cex == null) {
8226
        sb.append("null");
8227
      } else {
8228
        sb.append(this.cex);
8229
      }
8230
      first = false;
8231
      sb.append(")");
8232
      return sb.toString();
8233
    }
8234
 
8235
    public void validate() throws org.apache.thrift.TException {
8236
      // check for required fields
8237
    }
8238
 
8239
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8240
      try {
8241
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8242
      } catch (org.apache.thrift.TException te) {
8243
        throw new java.io.IOException(te);
8244
      }
8245
    }
8246
 
8247
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8248
      try {
8249
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8250
      } catch (org.apache.thrift.TException te) {
8251
        throw new java.io.IOException(te);
8252
      }
8253
    }
8254
 
8255
  }
8256
 
8257
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
8258
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
8259
 
8260
    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);
8261
    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);
8262
    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);
8263
 
8264
    private long warehouse_id; // required
8265
    private String timestamp; // required
8266
    private Map<String,Long> availability; // required
8267
 
8268
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8269
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8270
      WAREHOUSE_ID((short)1, "warehouse_id"),
8271
      TIMESTAMP((short)2, "timestamp"),
8272
      AVAILABILITY((short)3, "availability");
8273
 
8274
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8275
 
8276
      static {
8277
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8278
          byName.put(field.getFieldName(), field);
8279
        }
8280
      }
8281
 
8282
      /**
8283
       * Find the _Fields constant that matches fieldId, or null if its not found.
8284
       */
8285
      public static _Fields findByThriftId(int fieldId) {
8286
        switch(fieldId) {
8287
          case 1: // WAREHOUSE_ID
8288
            return WAREHOUSE_ID;
8289
          case 2: // TIMESTAMP
8290
            return TIMESTAMP;
8291
          case 3: // AVAILABILITY
8292
            return AVAILABILITY;
8293
          default:
8294
            return null;
8295
        }
8296
      }
8297
 
8298
      /**
8299
       * Find the _Fields constant that matches fieldId, throwing an exception
8300
       * if it is not found.
8301
       */
8302
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8303
        _Fields fields = findByThriftId(fieldId);
8304
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8305
        return fields;
8306
      }
8307
 
8308
      /**
8309
       * Find the _Fields constant that matches name, or null if its not found.
8310
       */
8311
      public static _Fields findByName(String name) {
8312
        return byName.get(name);
8313
      }
8314
 
8315
      private final short _thriftId;
8316
      private final String _fieldName;
8317
 
8318
      _Fields(short thriftId, String fieldName) {
8319
        _thriftId = thriftId;
8320
        _fieldName = fieldName;
8321
      }
8322
 
8323
      public short getThriftFieldId() {
8324
        return _thriftId;
8325
      }
8326
 
8327
      public String getFieldName() {
8328
        return _fieldName;
8329
      }
8330
    }
8331
 
8332
    // isset id assignments
8333
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8334
    private BitSet __isset_bit_vector = new BitSet(1);
8335
 
8336
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8337
    static {
8338
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8339
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8340
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8341
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8342
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8343
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8344
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8345
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8346
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
8347
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8348
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
8349
    }
8350
 
8351
    public updateInventoryHistory_args() {
8352
    }
8353
 
8354
    public updateInventoryHistory_args(
8355
      long warehouse_id,
8356
      String timestamp,
8357
      Map<String,Long> availability)
8358
    {
8359
      this();
8360
      this.warehouse_id = warehouse_id;
8361
      setWarehouse_idIsSet(true);
8362
      this.timestamp = timestamp;
8363
      this.availability = availability;
8364
    }
8365
 
8366
    /**
8367
     * Performs a deep copy on <i>other</i>.
8368
     */
8369
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
8370
      __isset_bit_vector.clear();
8371
      __isset_bit_vector.or(other.__isset_bit_vector);
8372
      this.warehouse_id = other.warehouse_id;
8373
      if (other.isSetTimestamp()) {
8374
        this.timestamp = other.timestamp;
8375
      }
8376
      if (other.isSetAvailability()) {
8377
        Map<String,Long> __this__availability = new HashMap<String,Long>();
8378
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
8379
 
8380
          String other_element_key = other_element.getKey();
8381
          Long other_element_value = other_element.getValue();
8382
 
8383
          String __this__availability_copy_key = other_element_key;
8384
 
8385
          Long __this__availability_copy_value = other_element_value;
8386
 
8387
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
8388
        }
8389
        this.availability = __this__availability;
8390
      }
8391
    }
8392
 
8393
    public updateInventoryHistory_args deepCopy() {
8394
      return new updateInventoryHistory_args(this);
8395
    }
8396
 
8397
    @Override
8398
    public void clear() {
8399
      setWarehouse_idIsSet(false);
8400
      this.warehouse_id = 0;
8401
      this.timestamp = null;
8402
      this.availability = null;
8403
    }
8404
 
8405
    public long getWarehouse_id() {
8406
      return this.warehouse_id;
8407
    }
8408
 
8409
    public void setWarehouse_id(long warehouse_id) {
8410
      this.warehouse_id = warehouse_id;
8411
      setWarehouse_idIsSet(true);
8412
    }
8413
 
8414
    public void unsetWarehouse_id() {
8415
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8416
    }
8417
 
8418
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8419
    public boolean isSetWarehouse_id() {
8420
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8421
    }
8422
 
8423
    public void setWarehouse_idIsSet(boolean value) {
8424
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8425
    }
8426
 
8427
    public String getTimestamp() {
8428
      return this.timestamp;
8429
    }
8430
 
8431
    public void setTimestamp(String timestamp) {
8432
      this.timestamp = timestamp;
8433
    }
8434
 
8435
    public void unsetTimestamp() {
8436
      this.timestamp = null;
8437
    }
8438
 
8439
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
8440
    public boolean isSetTimestamp() {
8441
      return this.timestamp != null;
8442
    }
8443
 
8444
    public void setTimestampIsSet(boolean value) {
8445
      if (!value) {
8446
        this.timestamp = null;
8447
      }
8448
    }
8449
 
8450
    public int getAvailabilitySize() {
8451
      return (this.availability == null) ? 0 : this.availability.size();
8452
    }
8453
 
8454
    public void putToAvailability(String key, long val) {
8455
      if (this.availability == null) {
8456
        this.availability = new HashMap<String,Long>();
8457
      }
8458
      this.availability.put(key, val);
8459
    }
8460
 
8461
    public Map<String,Long> getAvailability() {
8462
      return this.availability;
8463
    }
8464
 
8465
    public void setAvailability(Map<String,Long> availability) {
8466
      this.availability = availability;
8467
    }
8468
 
8469
    public void unsetAvailability() {
8470
      this.availability = null;
8471
    }
8472
 
8473
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
8474
    public boolean isSetAvailability() {
8475
      return this.availability != null;
8476
    }
8477
 
8478
    public void setAvailabilityIsSet(boolean value) {
8479
      if (!value) {
8480
        this.availability = null;
8481
      }
8482
    }
8483
 
8484
    public void setFieldValue(_Fields field, Object value) {
8485
      switch (field) {
8486
      case WAREHOUSE_ID:
8487
        if (value == null) {
8488
          unsetWarehouse_id();
8489
        } else {
8490
          setWarehouse_id((Long)value);
8491
        }
8492
        break;
8493
 
8494
      case TIMESTAMP:
8495
        if (value == null) {
8496
          unsetTimestamp();
8497
        } else {
8498
          setTimestamp((String)value);
8499
        }
8500
        break;
8501
 
8502
      case AVAILABILITY:
8503
        if (value == null) {
8504
          unsetAvailability();
8505
        } else {
8506
          setAvailability((Map<String,Long>)value);
8507
        }
8508
        break;
8509
 
8510
      }
8511
    }
8512
 
8513
    public Object getFieldValue(_Fields field) {
8514
      switch (field) {
8515
      case WAREHOUSE_ID:
8516
        return Long.valueOf(getWarehouse_id());
8517
 
8518
      case TIMESTAMP:
8519
        return getTimestamp();
8520
 
8521
      case AVAILABILITY:
8522
        return getAvailability();
8523
 
8524
      }
8525
      throw new IllegalStateException();
8526
    }
8527
 
8528
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8529
    public boolean isSet(_Fields field) {
8530
      if (field == null) {
8531
        throw new IllegalArgumentException();
8532
      }
8533
 
8534
      switch (field) {
8535
      case WAREHOUSE_ID:
8536
        return isSetWarehouse_id();
8537
      case TIMESTAMP:
8538
        return isSetTimestamp();
8539
      case AVAILABILITY:
8540
        return isSetAvailability();
8541
      }
8542
      throw new IllegalStateException();
8543
    }
8544
 
8545
    @Override
8546
    public boolean equals(Object that) {
8547
      if (that == null)
8548
        return false;
8549
      if (that instanceof updateInventoryHistory_args)
8550
        return this.equals((updateInventoryHistory_args)that);
8551
      return false;
8552
    }
8553
 
8554
    public boolean equals(updateInventoryHistory_args that) {
8555
      if (that == null)
8556
        return false;
8557
 
8558
      boolean this_present_warehouse_id = true;
8559
      boolean that_present_warehouse_id = true;
8560
      if (this_present_warehouse_id || that_present_warehouse_id) {
8561
        if (!(this_present_warehouse_id && that_present_warehouse_id))
8562
          return false;
8563
        if (this.warehouse_id != that.warehouse_id)
8564
          return false;
8565
      }
8566
 
8567
      boolean this_present_timestamp = true && this.isSetTimestamp();
8568
      boolean that_present_timestamp = true && that.isSetTimestamp();
8569
      if (this_present_timestamp || that_present_timestamp) {
8570
        if (!(this_present_timestamp && that_present_timestamp))
8571
          return false;
8572
        if (!this.timestamp.equals(that.timestamp))
8573
          return false;
8574
      }
8575
 
8576
      boolean this_present_availability = true && this.isSetAvailability();
8577
      boolean that_present_availability = true && that.isSetAvailability();
8578
      if (this_present_availability || that_present_availability) {
8579
        if (!(this_present_availability && that_present_availability))
8580
          return false;
8581
        if (!this.availability.equals(that.availability))
8582
          return false;
8583
      }
8584
 
8585
      return true;
8586
    }
8587
 
8588
    @Override
8589
    public int hashCode() {
8590
      return 0;
8591
    }
8592
 
8593
    public int compareTo(updateInventoryHistory_args other) {
8594
      if (!getClass().equals(other.getClass())) {
8595
        return getClass().getName().compareTo(other.getClass().getName());
8596
      }
8597
 
8598
      int lastComparison = 0;
8599
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
8600
 
8601
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
8602
      if (lastComparison != 0) {
8603
        return lastComparison;
8604
      }
8605
      if (isSetWarehouse_id()) {
8606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
8607
        if (lastComparison != 0) {
8608
          return lastComparison;
8609
        }
8610
      }
8611
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
8612
      if (lastComparison != 0) {
8613
        return lastComparison;
8614
      }
8615
      if (isSetTimestamp()) {
8616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
8617
        if (lastComparison != 0) {
8618
          return lastComparison;
8619
        }
8620
      }
8621
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
8622
      if (lastComparison != 0) {
8623
        return lastComparison;
8624
      }
8625
      if (isSetAvailability()) {
8626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
8627
        if (lastComparison != 0) {
8628
          return lastComparison;
8629
        }
8630
      }
8631
      return 0;
8632
    }
8633
 
8634
    public _Fields fieldForId(int fieldId) {
8635
      return _Fields.findByThriftId(fieldId);
8636
    }
8637
 
8638
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8639
      org.apache.thrift.protocol.TField field;
8640
      iprot.readStructBegin();
8641
      while (true)
8642
      {
8643
        field = iprot.readFieldBegin();
8644
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8645
          break;
8646
        }
8647
        switch (field.id) {
8648
          case 1: // WAREHOUSE_ID
8649
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8650
              this.warehouse_id = iprot.readI64();
8651
              setWarehouse_idIsSet(true);
8652
            } else { 
8653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8654
            }
8655
            break;
8656
          case 2: // TIMESTAMP
8657
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8658
              this.timestamp = iprot.readString();
8659
            } else { 
8660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8661
            }
8662
            break;
8663
          case 3: // AVAILABILITY
8664
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8665
              {
8182 amar.kumar 8666
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
8667
                this.availability = new HashMap<String,Long>(2*_map15.size);
8668
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
5945 mandeep.dh 8669
                {
8182 amar.kumar 8670
                  String _key17; // required
8671
                  long _val18; // required
8672
                  _key17 = iprot.readString();
8673
                  _val18 = iprot.readI64();
8674
                  this.availability.put(_key17, _val18);
5945 mandeep.dh 8675
                }
8676
                iprot.readMapEnd();
8677
              }
8678
            } else { 
8679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8680
            }
8681
            break;
8682
          default:
8683
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8684
        }
8685
        iprot.readFieldEnd();
8686
      }
8687
      iprot.readStructEnd();
8688
      validate();
8689
    }
8690
 
8691
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8692
      validate();
8693
 
8694
      oprot.writeStructBegin(STRUCT_DESC);
8695
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8696
      oprot.writeI64(this.warehouse_id);
8697
      oprot.writeFieldEnd();
8698
      if (this.timestamp != null) {
8699
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
8700
        oprot.writeString(this.timestamp);
8701
        oprot.writeFieldEnd();
8702
      }
8703
      if (this.availability != null) {
8704
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
8705
        {
8706
          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 8707
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
5945 mandeep.dh 8708
          {
8182 amar.kumar 8709
            oprot.writeString(_iter19.getKey());
8710
            oprot.writeI64(_iter19.getValue());
5945 mandeep.dh 8711
          }
8712
          oprot.writeMapEnd();
8713
        }
8714
        oprot.writeFieldEnd();
8715
      }
8716
      oprot.writeFieldStop();
8717
      oprot.writeStructEnd();
8718
    }
8719
 
8720
    @Override
8721
    public String toString() {
8722
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
8723
      boolean first = true;
8724
 
8725
      sb.append("warehouse_id:");
8726
      sb.append(this.warehouse_id);
8727
      first = false;
8728
      if (!first) sb.append(", ");
8729
      sb.append("timestamp:");
8730
      if (this.timestamp == null) {
8731
        sb.append("null");
8732
      } else {
8733
        sb.append(this.timestamp);
8734
      }
8735
      first = false;
8736
      if (!first) sb.append(", ");
8737
      sb.append("availability:");
8738
      if (this.availability == null) {
8739
        sb.append("null");
8740
      } else {
8741
        sb.append(this.availability);
8742
      }
8743
      first = false;
8744
      sb.append(")");
8745
      return sb.toString();
8746
    }
8747
 
8748
    public void validate() throws org.apache.thrift.TException {
8749
      // check for required fields
8750
    }
8751
 
8752
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8753
      try {
8754
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8755
      } catch (org.apache.thrift.TException te) {
8756
        throw new java.io.IOException(te);
8757
      }
8758
    }
8759
 
8760
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8761
      try {
8762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8763
      } catch (org.apache.thrift.TException te) {
8764
        throw new java.io.IOException(te);
8765
      }
8766
    }
8767
 
8768
  }
8769
 
8770
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
8771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
8772
 
8773
    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);
8774
 
8775
    private InventoryServiceException cex; // required
8776
 
8777
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8778
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8779
      CEX((short)1, "cex");
8780
 
8781
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8782
 
8783
      static {
8784
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8785
          byName.put(field.getFieldName(), field);
8786
        }
8787
      }
8788
 
8789
      /**
8790
       * Find the _Fields constant that matches fieldId, or null if its not found.
8791
       */
8792
      public static _Fields findByThriftId(int fieldId) {
8793
        switch(fieldId) {
8794
          case 1: // CEX
8795
            return CEX;
8796
          default:
8797
            return null;
8798
        }
8799
      }
8800
 
8801
      /**
8802
       * Find the _Fields constant that matches fieldId, throwing an exception
8803
       * if it is not found.
8804
       */
8805
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8806
        _Fields fields = findByThriftId(fieldId);
8807
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8808
        return fields;
8809
      }
8810
 
8811
      /**
8812
       * Find the _Fields constant that matches name, or null if its not found.
8813
       */
8814
      public static _Fields findByName(String name) {
8815
        return byName.get(name);
8816
      }
8817
 
8818
      private final short _thriftId;
8819
      private final String _fieldName;
8820
 
8821
      _Fields(short thriftId, String fieldName) {
8822
        _thriftId = thriftId;
8823
        _fieldName = fieldName;
8824
      }
8825
 
8826
      public short getThriftFieldId() {
8827
        return _thriftId;
8828
      }
8829
 
8830
      public String getFieldName() {
8831
        return _fieldName;
8832
      }
8833
    }
8834
 
8835
    // isset id assignments
8836
 
8837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8838
    static {
8839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8840
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
8844
    }
8845
 
8846
    public updateInventoryHistory_result() {
8847
    }
8848
 
8849
    public updateInventoryHistory_result(
8850
      InventoryServiceException cex)
8851
    {
8852
      this();
8853
      this.cex = cex;
8854
    }
8855
 
8856
    /**
8857
     * Performs a deep copy on <i>other</i>.
8858
     */
8859
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
8860
      if (other.isSetCex()) {
8861
        this.cex = new InventoryServiceException(other.cex);
8862
      }
8863
    }
8864
 
8865
    public updateInventoryHistory_result deepCopy() {
8866
      return new updateInventoryHistory_result(this);
8867
    }
8868
 
8869
    @Override
8870
    public void clear() {
8871
      this.cex = null;
8872
    }
8873
 
8874
    public InventoryServiceException getCex() {
8875
      return this.cex;
8876
    }
8877
 
8878
    public void setCex(InventoryServiceException cex) {
8879
      this.cex = cex;
8880
    }
8881
 
8882
    public void unsetCex() {
8883
      this.cex = null;
8884
    }
8885
 
8886
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8887
    public boolean isSetCex() {
8888
      return this.cex != null;
8889
    }
8890
 
8891
    public void setCexIsSet(boolean value) {
8892
      if (!value) {
8893
        this.cex = null;
8894
      }
8895
    }
8896
 
8897
    public void setFieldValue(_Fields field, Object value) {
8898
      switch (field) {
8899
      case CEX:
8900
        if (value == null) {
8901
          unsetCex();
8902
        } else {
8903
          setCex((InventoryServiceException)value);
8904
        }
8905
        break;
8906
 
8907
      }
8908
    }
8909
 
8910
    public Object getFieldValue(_Fields field) {
8911
      switch (field) {
8912
      case CEX:
8913
        return getCex();
8914
 
8915
      }
8916
      throw new IllegalStateException();
8917
    }
8918
 
8919
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8920
    public boolean isSet(_Fields field) {
8921
      if (field == null) {
8922
        throw new IllegalArgumentException();
8923
      }
8924
 
8925
      switch (field) {
8926
      case CEX:
8927
        return isSetCex();
8928
      }
8929
      throw new IllegalStateException();
8930
    }
8931
 
8932
    @Override
8933
    public boolean equals(Object that) {
8934
      if (that == null)
8935
        return false;
8936
      if (that instanceof updateInventoryHistory_result)
8937
        return this.equals((updateInventoryHistory_result)that);
8938
      return false;
8939
    }
8940
 
8941
    public boolean equals(updateInventoryHistory_result that) {
8942
      if (that == null)
8943
        return false;
8944
 
8945
      boolean this_present_cex = true && this.isSetCex();
8946
      boolean that_present_cex = true && that.isSetCex();
8947
      if (this_present_cex || that_present_cex) {
8948
        if (!(this_present_cex && that_present_cex))
8949
          return false;
8950
        if (!this.cex.equals(that.cex))
8951
          return false;
8952
      }
8953
 
8954
      return true;
8955
    }
8956
 
8957
    @Override
8958
    public int hashCode() {
8959
      return 0;
8960
    }
8961
 
8962
    public int compareTo(updateInventoryHistory_result other) {
8963
      if (!getClass().equals(other.getClass())) {
8964
        return getClass().getName().compareTo(other.getClass().getName());
8965
      }
8966
 
8967
      int lastComparison = 0;
8968
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
8969
 
8970
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8971
      if (lastComparison != 0) {
8972
        return lastComparison;
8973
      }
8974
      if (isSetCex()) {
8975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8976
        if (lastComparison != 0) {
8977
          return lastComparison;
8978
        }
8979
      }
8980
      return 0;
8981
    }
8982
 
8983
    public _Fields fieldForId(int fieldId) {
8984
      return _Fields.findByThriftId(fieldId);
8985
    }
8986
 
8987
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8988
      org.apache.thrift.protocol.TField field;
8989
      iprot.readStructBegin();
8990
      while (true)
8991
      {
8992
        field = iprot.readFieldBegin();
8993
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8994
          break;
8995
        }
8996
        switch (field.id) {
8997
          case 1: // CEX
8998
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8999
              this.cex = new InventoryServiceException();
9000
              this.cex.read(iprot);
9001
            } else { 
9002
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9003
            }
9004
            break;
9005
          default:
9006
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9007
        }
9008
        iprot.readFieldEnd();
9009
      }
9010
      iprot.readStructEnd();
9011
      validate();
9012
    }
9013
 
9014
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9015
      oprot.writeStructBegin(STRUCT_DESC);
9016
 
9017
      if (this.isSetCex()) {
9018
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9019
        this.cex.write(oprot);
9020
        oprot.writeFieldEnd();
9021
      }
9022
      oprot.writeFieldStop();
9023
      oprot.writeStructEnd();
9024
    }
9025
 
9026
    @Override
9027
    public String toString() {
9028
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
9029
      boolean first = true;
9030
 
9031
      sb.append("cex:");
9032
      if (this.cex == null) {
9033
        sb.append("null");
9034
      } else {
9035
        sb.append(this.cex);
9036
      }
9037
      first = false;
9038
      sb.append(")");
9039
      return sb.toString();
9040
    }
9041
 
9042
    public void validate() throws org.apache.thrift.TException {
9043
      // check for required fields
9044
    }
9045
 
9046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9047
      try {
9048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9049
      } catch (org.apache.thrift.TException te) {
9050
        throw new java.io.IOException(te);
9051
      }
9052
    }
9053
 
9054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9055
      try {
9056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9057
      } catch (org.apache.thrift.TException te) {
9058
        throw new java.io.IOException(te);
9059
      }
9060
    }
9061
 
9062
  }
9063
 
9064
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
9065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
9066
 
9067
    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);
9068
    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);
9069
    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);
9070
 
9071
    private long warehouse_id; // required
9072
    private String timestamp; // required
9073
    private Map<String,Long> availability; // required
9074
 
9075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9077
      WAREHOUSE_ID((short)1, "warehouse_id"),
9078
      TIMESTAMP((short)2, "timestamp"),
9079
      AVAILABILITY((short)3, "availability");
9080
 
9081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9082
 
9083
      static {
9084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9085
          byName.put(field.getFieldName(), field);
9086
        }
9087
      }
9088
 
9089
      /**
9090
       * Find the _Fields constant that matches fieldId, or null if its not found.
9091
       */
9092
      public static _Fields findByThriftId(int fieldId) {
9093
        switch(fieldId) {
9094
          case 1: // WAREHOUSE_ID
9095
            return WAREHOUSE_ID;
9096
          case 2: // TIMESTAMP
9097
            return TIMESTAMP;
9098
          case 3: // AVAILABILITY
9099
            return AVAILABILITY;
9100
          default:
9101
            return null;
9102
        }
9103
      }
9104
 
9105
      /**
9106
       * Find the _Fields constant that matches fieldId, throwing an exception
9107
       * if it is not found.
9108
       */
9109
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9110
        _Fields fields = findByThriftId(fieldId);
9111
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9112
        return fields;
9113
      }
9114
 
9115
      /**
9116
       * Find the _Fields constant that matches name, or null if its not found.
9117
       */
9118
      public static _Fields findByName(String name) {
9119
        return byName.get(name);
9120
      }
9121
 
9122
      private final short _thriftId;
9123
      private final String _fieldName;
9124
 
9125
      _Fields(short thriftId, String fieldName) {
9126
        _thriftId = thriftId;
9127
        _fieldName = fieldName;
9128
      }
9129
 
9130
      public short getThriftFieldId() {
9131
        return _thriftId;
9132
      }
9133
 
9134
      public String getFieldName() {
9135
        return _fieldName;
9136
      }
9137
    }
9138
 
9139
    // isset id assignments
9140
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
9141
    private BitSet __isset_bit_vector = new BitSet(1);
9142
 
9143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9144
    static {
9145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9146
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9148
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9149
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9150
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9151
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
9152
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
9153
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9154
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9155
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
9156
    }
9157
 
9158
    public updateInventory_args() {
9159
    }
9160
 
9161
    public updateInventory_args(
9162
      long warehouse_id,
9163
      String timestamp,
9164
      Map<String,Long> availability)
9165
    {
9166
      this();
9167
      this.warehouse_id = warehouse_id;
9168
      setWarehouse_idIsSet(true);
9169
      this.timestamp = timestamp;
9170
      this.availability = availability;
9171
    }
9172
 
9173
    /**
9174
     * Performs a deep copy on <i>other</i>.
9175
     */
9176
    public updateInventory_args(updateInventory_args other) {
9177
      __isset_bit_vector.clear();
9178
      __isset_bit_vector.or(other.__isset_bit_vector);
9179
      this.warehouse_id = other.warehouse_id;
9180
      if (other.isSetTimestamp()) {
9181
        this.timestamp = other.timestamp;
9182
      }
9183
      if (other.isSetAvailability()) {
9184
        Map<String,Long> __this__availability = new HashMap<String,Long>();
9185
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
9186
 
9187
          String other_element_key = other_element.getKey();
9188
          Long other_element_value = other_element.getValue();
9189
 
9190
          String __this__availability_copy_key = other_element_key;
9191
 
9192
          Long __this__availability_copy_value = other_element_value;
9193
 
9194
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
9195
        }
9196
        this.availability = __this__availability;
9197
      }
9198
    }
9199
 
9200
    public updateInventory_args deepCopy() {
9201
      return new updateInventory_args(this);
9202
    }
9203
 
9204
    @Override
9205
    public void clear() {
9206
      setWarehouse_idIsSet(false);
9207
      this.warehouse_id = 0;
9208
      this.timestamp = null;
9209
      this.availability = null;
9210
    }
9211
 
9212
    public long getWarehouse_id() {
9213
      return this.warehouse_id;
9214
    }
9215
 
9216
    public void setWarehouse_id(long warehouse_id) {
9217
      this.warehouse_id = warehouse_id;
9218
      setWarehouse_idIsSet(true);
9219
    }
9220
 
9221
    public void unsetWarehouse_id() {
9222
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
9223
    }
9224
 
9225
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
9226
    public boolean isSetWarehouse_id() {
9227
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
9228
    }
9229
 
9230
    public void setWarehouse_idIsSet(boolean value) {
9231
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
9232
    }
9233
 
9234
    public String getTimestamp() {
9235
      return this.timestamp;
9236
    }
9237
 
9238
    public void setTimestamp(String timestamp) {
9239
      this.timestamp = timestamp;
9240
    }
9241
 
9242
    public void unsetTimestamp() {
9243
      this.timestamp = null;
9244
    }
9245
 
9246
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
9247
    public boolean isSetTimestamp() {
9248
      return this.timestamp != null;
9249
    }
9250
 
9251
    public void setTimestampIsSet(boolean value) {
9252
      if (!value) {
9253
        this.timestamp = null;
9254
      }
9255
    }
9256
 
9257
    public int getAvailabilitySize() {
9258
      return (this.availability == null) ? 0 : this.availability.size();
9259
    }
9260
 
9261
    public void putToAvailability(String key, long val) {
9262
      if (this.availability == null) {
9263
        this.availability = new HashMap<String,Long>();
9264
      }
9265
      this.availability.put(key, val);
9266
    }
9267
 
9268
    public Map<String,Long> getAvailability() {
9269
      return this.availability;
9270
    }
9271
 
9272
    public void setAvailability(Map<String,Long> availability) {
9273
      this.availability = availability;
9274
    }
9275
 
9276
    public void unsetAvailability() {
9277
      this.availability = null;
9278
    }
9279
 
9280
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
9281
    public boolean isSetAvailability() {
9282
      return this.availability != null;
9283
    }
9284
 
9285
    public void setAvailabilityIsSet(boolean value) {
9286
      if (!value) {
9287
        this.availability = null;
9288
      }
9289
    }
9290
 
9291
    public void setFieldValue(_Fields field, Object value) {
9292
      switch (field) {
9293
      case WAREHOUSE_ID:
9294
        if (value == null) {
9295
          unsetWarehouse_id();
9296
        } else {
9297
          setWarehouse_id((Long)value);
9298
        }
9299
        break;
9300
 
9301
      case TIMESTAMP:
9302
        if (value == null) {
9303
          unsetTimestamp();
9304
        } else {
9305
          setTimestamp((String)value);
9306
        }
9307
        break;
9308
 
9309
      case AVAILABILITY:
9310
        if (value == null) {
9311
          unsetAvailability();
9312
        } else {
9313
          setAvailability((Map<String,Long>)value);
9314
        }
9315
        break;
9316
 
9317
      }
9318
    }
9319
 
9320
    public Object getFieldValue(_Fields field) {
9321
      switch (field) {
9322
      case WAREHOUSE_ID:
9323
        return Long.valueOf(getWarehouse_id());
9324
 
9325
      case TIMESTAMP:
9326
        return getTimestamp();
9327
 
9328
      case AVAILABILITY:
9329
        return getAvailability();
9330
 
9331
      }
9332
      throw new IllegalStateException();
9333
    }
9334
 
9335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9336
    public boolean isSet(_Fields field) {
9337
      if (field == null) {
9338
        throw new IllegalArgumentException();
9339
      }
9340
 
9341
      switch (field) {
9342
      case WAREHOUSE_ID:
9343
        return isSetWarehouse_id();
9344
      case TIMESTAMP:
9345
        return isSetTimestamp();
9346
      case AVAILABILITY:
9347
        return isSetAvailability();
9348
      }
9349
      throw new IllegalStateException();
9350
    }
9351
 
9352
    @Override
9353
    public boolean equals(Object that) {
9354
      if (that == null)
9355
        return false;
9356
      if (that instanceof updateInventory_args)
9357
        return this.equals((updateInventory_args)that);
9358
      return false;
9359
    }
9360
 
9361
    public boolean equals(updateInventory_args that) {
9362
      if (that == null)
9363
        return false;
9364
 
9365
      boolean this_present_warehouse_id = true;
9366
      boolean that_present_warehouse_id = true;
9367
      if (this_present_warehouse_id || that_present_warehouse_id) {
9368
        if (!(this_present_warehouse_id && that_present_warehouse_id))
9369
          return false;
9370
        if (this.warehouse_id != that.warehouse_id)
9371
          return false;
9372
      }
9373
 
9374
      boolean this_present_timestamp = true && this.isSetTimestamp();
9375
      boolean that_present_timestamp = true && that.isSetTimestamp();
9376
      if (this_present_timestamp || that_present_timestamp) {
9377
        if (!(this_present_timestamp && that_present_timestamp))
9378
          return false;
9379
        if (!this.timestamp.equals(that.timestamp))
9380
          return false;
9381
      }
9382
 
9383
      boolean this_present_availability = true && this.isSetAvailability();
9384
      boolean that_present_availability = true && that.isSetAvailability();
9385
      if (this_present_availability || that_present_availability) {
9386
        if (!(this_present_availability && that_present_availability))
9387
          return false;
9388
        if (!this.availability.equals(that.availability))
9389
          return false;
9390
      }
9391
 
9392
      return true;
9393
    }
9394
 
9395
    @Override
9396
    public int hashCode() {
9397
      return 0;
9398
    }
9399
 
9400
    public int compareTo(updateInventory_args other) {
9401
      if (!getClass().equals(other.getClass())) {
9402
        return getClass().getName().compareTo(other.getClass().getName());
9403
      }
9404
 
9405
      int lastComparison = 0;
9406
      updateInventory_args typedOther = (updateInventory_args)other;
9407
 
9408
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
9409
      if (lastComparison != 0) {
9410
        return lastComparison;
9411
      }
9412
      if (isSetWarehouse_id()) {
9413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
9414
        if (lastComparison != 0) {
9415
          return lastComparison;
9416
        }
9417
      }
9418
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
9419
      if (lastComparison != 0) {
9420
        return lastComparison;
9421
      }
9422
      if (isSetTimestamp()) {
9423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
9424
        if (lastComparison != 0) {
9425
          return lastComparison;
9426
        }
9427
      }
9428
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
9429
      if (lastComparison != 0) {
9430
        return lastComparison;
9431
      }
9432
      if (isSetAvailability()) {
9433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
9434
        if (lastComparison != 0) {
9435
          return lastComparison;
9436
        }
9437
      }
9438
      return 0;
9439
    }
9440
 
9441
    public _Fields fieldForId(int fieldId) {
9442
      return _Fields.findByThriftId(fieldId);
9443
    }
9444
 
9445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9446
      org.apache.thrift.protocol.TField field;
9447
      iprot.readStructBegin();
9448
      while (true)
9449
      {
9450
        field = iprot.readFieldBegin();
9451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9452
          break;
9453
        }
9454
        switch (field.id) {
9455
          case 1: // WAREHOUSE_ID
9456
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9457
              this.warehouse_id = iprot.readI64();
9458
              setWarehouse_idIsSet(true);
9459
            } else { 
9460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9461
            }
9462
            break;
9463
          case 2: // TIMESTAMP
9464
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9465
              this.timestamp = iprot.readString();
9466
            } else { 
9467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9468
            }
9469
            break;
9470
          case 3: // AVAILABILITY
9471
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9472
              {
8182 amar.kumar 9473
                org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin();
9474
                this.availability = new HashMap<String,Long>(2*_map20.size);
9475
                for (int _i21 = 0; _i21 < _map20.size; ++_i21)
5945 mandeep.dh 9476
                {
8182 amar.kumar 9477
                  String _key22; // required
9478
                  long _val23; // required
9479
                  _key22 = iprot.readString();
9480
                  _val23 = iprot.readI64();
9481
                  this.availability.put(_key22, _val23);
5945 mandeep.dh 9482
                }
9483
                iprot.readMapEnd();
9484
              }
9485
            } else { 
9486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9487
            }
9488
            break;
9489
          default:
9490
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9491
        }
9492
        iprot.readFieldEnd();
9493
      }
9494
      iprot.readStructEnd();
9495
      validate();
9496
    }
9497
 
9498
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9499
      validate();
9500
 
9501
      oprot.writeStructBegin(STRUCT_DESC);
9502
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9503
      oprot.writeI64(this.warehouse_id);
9504
      oprot.writeFieldEnd();
9505
      if (this.timestamp != null) {
9506
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
9507
        oprot.writeString(this.timestamp);
9508
        oprot.writeFieldEnd();
9509
      }
9510
      if (this.availability != null) {
9511
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
9512
        {
9513
          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 9514
          for (Map.Entry<String, Long> _iter24 : this.availability.entrySet())
5945 mandeep.dh 9515
          {
8182 amar.kumar 9516
            oprot.writeString(_iter24.getKey());
9517
            oprot.writeI64(_iter24.getValue());
5945 mandeep.dh 9518
          }
9519
          oprot.writeMapEnd();
9520
        }
9521
        oprot.writeFieldEnd();
9522
      }
9523
      oprot.writeFieldStop();
9524
      oprot.writeStructEnd();
9525
    }
9526
 
9527
    @Override
9528
    public String toString() {
9529
      StringBuilder sb = new StringBuilder("updateInventory_args(");
9530
      boolean first = true;
9531
 
9532
      sb.append("warehouse_id:");
9533
      sb.append(this.warehouse_id);
9534
      first = false;
9535
      if (!first) sb.append(", ");
9536
      sb.append("timestamp:");
9537
      if (this.timestamp == null) {
9538
        sb.append("null");
9539
      } else {
9540
        sb.append(this.timestamp);
9541
      }
9542
      first = false;
9543
      if (!first) sb.append(", ");
9544
      sb.append("availability:");
9545
      if (this.availability == null) {
9546
        sb.append("null");
9547
      } else {
9548
        sb.append(this.availability);
9549
      }
9550
      first = false;
9551
      sb.append(")");
9552
      return sb.toString();
9553
    }
9554
 
9555
    public void validate() throws org.apache.thrift.TException {
9556
      // check for required fields
9557
    }
9558
 
9559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9560
      try {
9561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9562
      } catch (org.apache.thrift.TException te) {
9563
        throw new java.io.IOException(te);
9564
      }
9565
    }
9566
 
9567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9568
      try {
9569
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9570
        __isset_bit_vector = new BitSet(1);
9571
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9572
      } catch (org.apache.thrift.TException te) {
9573
        throw new java.io.IOException(te);
9574
      }
9575
    }
9576
 
9577
  }
9578
 
9579
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
9580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
9581
 
9582
    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);
9583
 
9584
    private InventoryServiceException cex; // required
9585
 
9586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9588
      CEX((short)1, "cex");
9589
 
9590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9591
 
9592
      static {
9593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9594
          byName.put(field.getFieldName(), field);
9595
        }
9596
      }
9597
 
9598
      /**
9599
       * Find the _Fields constant that matches fieldId, or null if its not found.
9600
       */
9601
      public static _Fields findByThriftId(int fieldId) {
9602
        switch(fieldId) {
9603
          case 1: // CEX
9604
            return CEX;
9605
          default:
9606
            return null;
9607
        }
9608
      }
9609
 
9610
      /**
9611
       * Find the _Fields constant that matches fieldId, throwing an exception
9612
       * if it is not found.
9613
       */
9614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9615
        _Fields fields = findByThriftId(fieldId);
9616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9617
        return fields;
9618
      }
9619
 
9620
      /**
9621
       * Find the _Fields constant that matches name, or null if its not found.
9622
       */
9623
      public static _Fields findByName(String name) {
9624
        return byName.get(name);
9625
      }
9626
 
9627
      private final short _thriftId;
9628
      private final String _fieldName;
9629
 
9630
      _Fields(short thriftId, String fieldName) {
9631
        _thriftId = thriftId;
9632
        _fieldName = fieldName;
9633
      }
9634
 
9635
      public short getThriftFieldId() {
9636
        return _thriftId;
9637
      }
9638
 
9639
      public String getFieldName() {
9640
        return _fieldName;
9641
      }
9642
    }
9643
 
9644
    // isset id assignments
9645
 
9646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9647
    static {
9648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9649
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
9653
    }
9654
 
9655
    public updateInventory_result() {
9656
    }
9657
 
9658
    public updateInventory_result(
9659
      InventoryServiceException cex)
9660
    {
9661
      this();
9662
      this.cex = cex;
9663
    }
9664
 
9665
    /**
9666
     * Performs a deep copy on <i>other</i>.
9667
     */
9668
    public updateInventory_result(updateInventory_result other) {
9669
      if (other.isSetCex()) {
9670
        this.cex = new InventoryServiceException(other.cex);
9671
      }
9672
    }
9673
 
9674
    public updateInventory_result deepCopy() {
9675
      return new updateInventory_result(this);
9676
    }
9677
 
9678
    @Override
9679
    public void clear() {
9680
      this.cex = null;
9681
    }
9682
 
9683
    public InventoryServiceException getCex() {
9684
      return this.cex;
9685
    }
9686
 
9687
    public void setCex(InventoryServiceException cex) {
9688
      this.cex = cex;
9689
    }
9690
 
9691
    public void unsetCex() {
9692
      this.cex = null;
9693
    }
9694
 
9695
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9696
    public boolean isSetCex() {
9697
      return this.cex != null;
9698
    }
9699
 
9700
    public void setCexIsSet(boolean value) {
9701
      if (!value) {
9702
        this.cex = null;
9703
      }
9704
    }
9705
 
9706
    public void setFieldValue(_Fields field, Object value) {
9707
      switch (field) {
9708
      case CEX:
9709
        if (value == null) {
9710
          unsetCex();
9711
        } else {
9712
          setCex((InventoryServiceException)value);
9713
        }
9714
        break;
9715
 
9716
      }
9717
    }
9718
 
9719
    public Object getFieldValue(_Fields field) {
9720
      switch (field) {
9721
      case CEX:
9722
        return getCex();
9723
 
9724
      }
9725
      throw new IllegalStateException();
9726
    }
9727
 
9728
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9729
    public boolean isSet(_Fields field) {
9730
      if (field == null) {
9731
        throw new IllegalArgumentException();
9732
      }
9733
 
9734
      switch (field) {
9735
      case CEX:
9736
        return isSetCex();
9737
      }
9738
      throw new IllegalStateException();
9739
    }
9740
 
9741
    @Override
9742
    public boolean equals(Object that) {
9743
      if (that == null)
9744
        return false;
9745
      if (that instanceof updateInventory_result)
9746
        return this.equals((updateInventory_result)that);
9747
      return false;
9748
    }
9749
 
9750
    public boolean equals(updateInventory_result that) {
9751
      if (that == null)
9752
        return false;
9753
 
9754
      boolean this_present_cex = true && this.isSetCex();
9755
      boolean that_present_cex = true && that.isSetCex();
9756
      if (this_present_cex || that_present_cex) {
9757
        if (!(this_present_cex && that_present_cex))
9758
          return false;
9759
        if (!this.cex.equals(that.cex))
9760
          return false;
9761
      }
9762
 
9763
      return true;
9764
    }
9765
 
9766
    @Override
9767
    public int hashCode() {
9768
      return 0;
9769
    }
9770
 
9771
    public int compareTo(updateInventory_result other) {
9772
      if (!getClass().equals(other.getClass())) {
9773
        return getClass().getName().compareTo(other.getClass().getName());
9774
      }
9775
 
9776
      int lastComparison = 0;
9777
      updateInventory_result typedOther = (updateInventory_result)other;
9778
 
9779
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9780
      if (lastComparison != 0) {
9781
        return lastComparison;
9782
      }
9783
      if (isSetCex()) {
9784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9785
        if (lastComparison != 0) {
9786
          return lastComparison;
9787
        }
9788
      }
9789
      return 0;
9790
    }
9791
 
9792
    public _Fields fieldForId(int fieldId) {
9793
      return _Fields.findByThriftId(fieldId);
9794
    }
9795
 
9796
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9797
      org.apache.thrift.protocol.TField field;
9798
      iprot.readStructBegin();
9799
      while (true)
9800
      {
9801
        field = iprot.readFieldBegin();
9802
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9803
          break;
9804
        }
9805
        switch (field.id) {
9806
          case 1: // CEX
9807
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9808
              this.cex = new InventoryServiceException();
9809
              this.cex.read(iprot);
9810
            } else { 
9811
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9812
            }
9813
            break;
9814
          default:
9815
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9816
        }
9817
        iprot.readFieldEnd();
9818
      }
9819
      iprot.readStructEnd();
9820
      validate();
9821
    }
9822
 
9823
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9824
      oprot.writeStructBegin(STRUCT_DESC);
9825
 
9826
      if (this.isSetCex()) {
9827
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9828
        this.cex.write(oprot);
9829
        oprot.writeFieldEnd();
9830
      }
9831
      oprot.writeFieldStop();
9832
      oprot.writeStructEnd();
9833
    }
9834
 
9835
    @Override
9836
    public String toString() {
9837
      StringBuilder sb = new StringBuilder("updateInventory_result(");
9838
      boolean first = true;
9839
 
9840
      sb.append("cex:");
9841
      if (this.cex == null) {
9842
        sb.append("null");
9843
      } else {
9844
        sb.append(this.cex);
9845
      }
9846
      first = false;
9847
      sb.append(")");
9848
      return sb.toString();
9849
    }
9850
 
9851
    public void validate() throws org.apache.thrift.TException {
9852
      // check for required fields
9853
    }
9854
 
9855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9856
      try {
9857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9858
      } catch (org.apache.thrift.TException te) {
9859
        throw new java.io.IOException(te);
9860
      }
9861
    }
9862
 
9863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9864
      try {
9865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9866
      } catch (org.apache.thrift.TException te) {
9867
        throw new java.io.IOException(te);
9868
      }
9869
    }
9870
 
9871
  }
9872
 
9873
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
9874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
9875
 
9876
    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);
9877
    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);
9878
    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);
9879
 
9880
    private long itemId; // required
9881
    private long warehouseId; // required
9882
    private long quantity; // required
9883
 
9884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9886
      ITEM_ID((short)1, "itemId"),
9887
      WAREHOUSE_ID((short)2, "warehouseId"),
9888
      QUANTITY((short)3, "quantity");
9889
 
9890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9891
 
9892
      static {
9893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9894
          byName.put(field.getFieldName(), field);
9895
        }
9896
      }
9897
 
9898
      /**
9899
       * Find the _Fields constant that matches fieldId, or null if its not found.
9900
       */
9901
      public static _Fields findByThriftId(int fieldId) {
9902
        switch(fieldId) {
9903
          case 1: // ITEM_ID
9904
            return ITEM_ID;
9905
          case 2: // WAREHOUSE_ID
9906
            return WAREHOUSE_ID;
9907
          case 3: // QUANTITY
9908
            return QUANTITY;
9909
          default:
9910
            return null;
9911
        }
9912
      }
9913
 
9914
      /**
9915
       * Find the _Fields constant that matches fieldId, throwing an exception
9916
       * if it is not found.
9917
       */
9918
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9919
        _Fields fields = findByThriftId(fieldId);
9920
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9921
        return fields;
9922
      }
9923
 
9924
      /**
9925
       * Find the _Fields constant that matches name, or null if its not found.
9926
       */
9927
      public static _Fields findByName(String name) {
9928
        return byName.get(name);
9929
      }
9930
 
9931
      private final short _thriftId;
9932
      private final String _fieldName;
9933
 
9934
      _Fields(short thriftId, String fieldName) {
9935
        _thriftId = thriftId;
9936
        _fieldName = fieldName;
9937
      }
9938
 
9939
      public short getThriftFieldId() {
9940
        return _thriftId;
9941
      }
9942
 
9943
      public String getFieldName() {
9944
        return _fieldName;
9945
      }
9946
    }
9947
 
9948
    // isset id assignments
9949
    private static final int __ITEMID_ISSET_ID = 0;
9950
    private static final int __WAREHOUSEID_ISSET_ID = 1;
9951
    private static final int __QUANTITY_ISSET_ID = 2;
9952
    private BitSet __isset_bit_vector = new BitSet(3);
9953
 
9954
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9955
    static {
9956
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9957
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9959
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9961
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
9965
    }
9966
 
9967
    public addInventory_args() {
9968
    }
9969
 
9970
    public addInventory_args(
9971
      long itemId,
9972
      long warehouseId,
9973
      long quantity)
9974
    {
9975
      this();
9976
      this.itemId = itemId;
9977
      setItemIdIsSet(true);
9978
      this.warehouseId = warehouseId;
9979
      setWarehouseIdIsSet(true);
9980
      this.quantity = quantity;
9981
      setQuantityIsSet(true);
9982
    }
9983
 
9984
    /**
9985
     * Performs a deep copy on <i>other</i>.
9986
     */
9987
    public addInventory_args(addInventory_args other) {
9988
      __isset_bit_vector.clear();
9989
      __isset_bit_vector.or(other.__isset_bit_vector);
9990
      this.itemId = other.itemId;
9991
      this.warehouseId = other.warehouseId;
9992
      this.quantity = other.quantity;
9993
    }
9994
 
9995
    public addInventory_args deepCopy() {
9996
      return new addInventory_args(this);
9997
    }
9998
 
9999
    @Override
10000
    public void clear() {
10001
      setItemIdIsSet(false);
10002
      this.itemId = 0;
10003
      setWarehouseIdIsSet(false);
10004
      this.warehouseId = 0;
10005
      setQuantityIsSet(false);
10006
      this.quantity = 0;
10007
    }
10008
 
10009
    public long getItemId() {
10010
      return this.itemId;
10011
    }
10012
 
10013
    public void setItemId(long itemId) {
10014
      this.itemId = itemId;
10015
      setItemIdIsSet(true);
10016
    }
10017
 
10018
    public void unsetItemId() {
10019
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
10020
    }
10021
 
10022
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
10023
    public boolean isSetItemId() {
10024
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
10025
    }
10026
 
10027
    public void setItemIdIsSet(boolean value) {
10028
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
10029
    }
10030
 
10031
    public long getWarehouseId() {
10032
      return this.warehouseId;
10033
    }
10034
 
10035
    public void setWarehouseId(long warehouseId) {
10036
      this.warehouseId = warehouseId;
10037
      setWarehouseIdIsSet(true);
10038
    }
10039
 
10040
    public void unsetWarehouseId() {
10041
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
10042
    }
10043
 
10044
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
10045
    public boolean isSetWarehouseId() {
10046
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
10047
    }
10048
 
10049
    public void setWarehouseIdIsSet(boolean value) {
10050
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
10051
    }
10052
 
10053
    public long getQuantity() {
10054
      return this.quantity;
10055
    }
10056
 
10057
    public void setQuantity(long quantity) {
10058
      this.quantity = quantity;
10059
      setQuantityIsSet(true);
10060
    }
10061
 
10062
    public void unsetQuantity() {
10063
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
10064
    }
10065
 
10066
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
10067
    public boolean isSetQuantity() {
10068
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
10069
    }
10070
 
10071
    public void setQuantityIsSet(boolean value) {
10072
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
10073
    }
10074
 
10075
    public void setFieldValue(_Fields field, Object value) {
10076
      switch (field) {
10077
      case ITEM_ID:
10078
        if (value == null) {
10079
          unsetItemId();
10080
        } else {
10081
          setItemId((Long)value);
10082
        }
10083
        break;
10084
 
10085
      case WAREHOUSE_ID:
10086
        if (value == null) {
10087
          unsetWarehouseId();
10088
        } else {
10089
          setWarehouseId((Long)value);
10090
        }
10091
        break;
10092
 
10093
      case QUANTITY:
10094
        if (value == null) {
10095
          unsetQuantity();
10096
        } else {
10097
          setQuantity((Long)value);
10098
        }
10099
        break;
10100
 
10101
      }
10102
    }
10103
 
10104
    public Object getFieldValue(_Fields field) {
10105
      switch (field) {
10106
      case ITEM_ID:
10107
        return Long.valueOf(getItemId());
10108
 
10109
      case WAREHOUSE_ID:
10110
        return Long.valueOf(getWarehouseId());
10111
 
10112
      case QUANTITY:
10113
        return Long.valueOf(getQuantity());
10114
 
10115
      }
10116
      throw new IllegalStateException();
10117
    }
10118
 
10119
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10120
    public boolean isSet(_Fields field) {
10121
      if (field == null) {
10122
        throw new IllegalArgumentException();
10123
      }
10124
 
10125
      switch (field) {
10126
      case ITEM_ID:
10127
        return isSetItemId();
10128
      case WAREHOUSE_ID:
10129
        return isSetWarehouseId();
10130
      case QUANTITY:
10131
        return isSetQuantity();
10132
      }
10133
      throw new IllegalStateException();
10134
    }
10135
 
10136
    @Override
10137
    public boolean equals(Object that) {
10138
      if (that == null)
10139
        return false;
10140
      if (that instanceof addInventory_args)
10141
        return this.equals((addInventory_args)that);
10142
      return false;
10143
    }
10144
 
10145
    public boolean equals(addInventory_args that) {
10146
      if (that == null)
10147
        return false;
10148
 
10149
      boolean this_present_itemId = true;
10150
      boolean that_present_itemId = true;
10151
      if (this_present_itemId || that_present_itemId) {
10152
        if (!(this_present_itemId && that_present_itemId))
10153
          return false;
10154
        if (this.itemId != that.itemId)
10155
          return false;
10156
      }
10157
 
10158
      boolean this_present_warehouseId = true;
10159
      boolean that_present_warehouseId = true;
10160
      if (this_present_warehouseId || that_present_warehouseId) {
10161
        if (!(this_present_warehouseId && that_present_warehouseId))
10162
          return false;
10163
        if (this.warehouseId != that.warehouseId)
10164
          return false;
10165
      }
10166
 
10167
      boolean this_present_quantity = true;
10168
      boolean that_present_quantity = true;
10169
      if (this_present_quantity || that_present_quantity) {
10170
        if (!(this_present_quantity && that_present_quantity))
10171
          return false;
10172
        if (this.quantity != that.quantity)
10173
          return false;
10174
      }
10175
 
10176
      return true;
10177
    }
10178
 
10179
    @Override
10180
    public int hashCode() {
10181
      return 0;
10182
    }
10183
 
10184
    public int compareTo(addInventory_args other) {
10185
      if (!getClass().equals(other.getClass())) {
10186
        return getClass().getName().compareTo(other.getClass().getName());
10187
      }
10188
 
10189
      int lastComparison = 0;
10190
      addInventory_args typedOther = (addInventory_args)other;
10191
 
10192
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
10193
      if (lastComparison != 0) {
10194
        return lastComparison;
10195
      }
10196
      if (isSetItemId()) {
10197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
10198
        if (lastComparison != 0) {
10199
          return lastComparison;
10200
        }
10201
      }
10202
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
10203
      if (lastComparison != 0) {
10204
        return lastComparison;
10205
      }
10206
      if (isSetWarehouseId()) {
10207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
10208
        if (lastComparison != 0) {
10209
          return lastComparison;
10210
        }
10211
      }
10212
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
10213
      if (lastComparison != 0) {
10214
        return lastComparison;
10215
      }
10216
      if (isSetQuantity()) {
10217
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
10218
        if (lastComparison != 0) {
10219
          return lastComparison;
10220
        }
10221
      }
10222
      return 0;
10223
    }
10224
 
10225
    public _Fields fieldForId(int fieldId) {
10226
      return _Fields.findByThriftId(fieldId);
10227
    }
10228
 
10229
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10230
      org.apache.thrift.protocol.TField field;
10231
      iprot.readStructBegin();
10232
      while (true)
10233
      {
10234
        field = iprot.readFieldBegin();
10235
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10236
          break;
10237
        }
10238
        switch (field.id) {
10239
          case 1: // ITEM_ID
10240
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10241
              this.itemId = iprot.readI64();
10242
              setItemIdIsSet(true);
10243
            } else { 
10244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10245
            }
10246
            break;
10247
          case 2: // WAREHOUSE_ID
10248
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10249
              this.warehouseId = iprot.readI64();
10250
              setWarehouseIdIsSet(true);
10251
            } else { 
10252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10253
            }
10254
            break;
10255
          case 3: // QUANTITY
10256
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10257
              this.quantity = iprot.readI64();
10258
              setQuantityIsSet(true);
10259
            } else { 
10260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10261
            }
10262
            break;
10263
          default:
10264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10265
        }
10266
        iprot.readFieldEnd();
10267
      }
10268
      iprot.readStructEnd();
10269
      validate();
10270
    }
10271
 
10272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10273
      validate();
10274
 
10275
      oprot.writeStructBegin(STRUCT_DESC);
10276
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
10277
      oprot.writeI64(this.itemId);
10278
      oprot.writeFieldEnd();
10279
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10280
      oprot.writeI64(this.warehouseId);
10281
      oprot.writeFieldEnd();
10282
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
10283
      oprot.writeI64(this.quantity);
10284
      oprot.writeFieldEnd();
10285
      oprot.writeFieldStop();
10286
      oprot.writeStructEnd();
10287
    }
10288
 
10289
    @Override
10290
    public String toString() {
10291
      StringBuilder sb = new StringBuilder("addInventory_args(");
10292
      boolean first = true;
10293
 
10294
      sb.append("itemId:");
10295
      sb.append(this.itemId);
10296
      first = false;
10297
      if (!first) sb.append(", ");
10298
      sb.append("warehouseId:");
10299
      sb.append(this.warehouseId);
10300
      first = false;
10301
      if (!first) sb.append(", ");
10302
      sb.append("quantity:");
10303
      sb.append(this.quantity);
10304
      first = false;
10305
      sb.append(")");
10306
      return sb.toString();
10307
    }
10308
 
10309
    public void validate() throws org.apache.thrift.TException {
10310
      // check for required fields
10311
    }
10312
 
10313
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10314
      try {
10315
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10316
      } catch (org.apache.thrift.TException te) {
10317
        throw new java.io.IOException(te);
10318
      }
10319
    }
10320
 
10321
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10322
      try {
10323
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10324
        __isset_bit_vector = new BitSet(1);
10325
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10326
      } catch (org.apache.thrift.TException te) {
10327
        throw new java.io.IOException(te);
10328
      }
10329
    }
10330
 
10331
  }
10332
 
10333
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
10334
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
10335
 
10336
    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);
10337
 
10338
    private InventoryServiceException cex; // required
10339
 
10340
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10341
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10342
      CEX((short)1, "cex");
10343
 
10344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10345
 
10346
      static {
10347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10348
          byName.put(field.getFieldName(), field);
10349
        }
10350
      }
10351
 
10352
      /**
10353
       * Find the _Fields constant that matches fieldId, or null if its not found.
10354
       */
10355
      public static _Fields findByThriftId(int fieldId) {
10356
        switch(fieldId) {
10357
          case 1: // CEX
10358
            return CEX;
10359
          default:
10360
            return null;
10361
        }
10362
      }
10363
 
10364
      /**
10365
       * Find the _Fields constant that matches fieldId, throwing an exception
10366
       * if it is not found.
10367
       */
10368
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10369
        _Fields fields = findByThriftId(fieldId);
10370
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10371
        return fields;
10372
      }
10373
 
10374
      /**
10375
       * Find the _Fields constant that matches name, or null if its not found.
10376
       */
10377
      public static _Fields findByName(String name) {
10378
        return byName.get(name);
10379
      }
10380
 
10381
      private final short _thriftId;
10382
      private final String _fieldName;
10383
 
10384
      _Fields(short thriftId, String fieldName) {
10385
        _thriftId = thriftId;
10386
        _fieldName = fieldName;
10387
      }
10388
 
10389
      public short getThriftFieldId() {
10390
        return _thriftId;
10391
      }
10392
 
10393
      public String getFieldName() {
10394
        return _fieldName;
10395
      }
10396
    }
10397
 
10398
    // isset id assignments
10399
 
10400
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10401
    static {
10402
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10403
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10405
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10406
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
10407
    }
10408
 
10409
    public addInventory_result() {
10410
    }
10411
 
10412
    public addInventory_result(
10413
      InventoryServiceException cex)
10414
    {
10415
      this();
10416
      this.cex = cex;
10417
    }
10418
 
10419
    /**
10420
     * Performs a deep copy on <i>other</i>.
10421
     */
10422
    public addInventory_result(addInventory_result other) {
10423
      if (other.isSetCex()) {
10424
        this.cex = new InventoryServiceException(other.cex);
10425
      }
10426
    }
10427
 
10428
    public addInventory_result deepCopy() {
10429
      return new addInventory_result(this);
10430
    }
10431
 
10432
    @Override
10433
    public void clear() {
10434
      this.cex = null;
10435
    }
10436
 
10437
    public InventoryServiceException getCex() {
10438
      return this.cex;
10439
    }
10440
 
10441
    public void setCex(InventoryServiceException cex) {
10442
      this.cex = cex;
10443
    }
10444
 
10445
    public void unsetCex() {
10446
      this.cex = null;
10447
    }
10448
 
10449
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10450
    public boolean isSetCex() {
10451
      return this.cex != null;
10452
    }
10453
 
10454
    public void setCexIsSet(boolean value) {
10455
      if (!value) {
10456
        this.cex = null;
10457
      }
10458
    }
10459
 
10460
    public void setFieldValue(_Fields field, Object value) {
10461
      switch (field) {
10462
      case CEX:
10463
        if (value == null) {
10464
          unsetCex();
10465
        } else {
10466
          setCex((InventoryServiceException)value);
10467
        }
10468
        break;
10469
 
10470
      }
10471
    }
10472
 
10473
    public Object getFieldValue(_Fields field) {
10474
      switch (field) {
10475
      case CEX:
10476
        return getCex();
10477
 
10478
      }
10479
      throw new IllegalStateException();
10480
    }
10481
 
10482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10483
    public boolean isSet(_Fields field) {
10484
      if (field == null) {
10485
        throw new IllegalArgumentException();
10486
      }
10487
 
10488
      switch (field) {
10489
      case CEX:
10490
        return isSetCex();
10491
      }
10492
      throw new IllegalStateException();
10493
    }
10494
 
10495
    @Override
10496
    public boolean equals(Object that) {
10497
      if (that == null)
10498
        return false;
10499
      if (that instanceof addInventory_result)
10500
        return this.equals((addInventory_result)that);
10501
      return false;
10502
    }
10503
 
10504
    public boolean equals(addInventory_result that) {
10505
      if (that == null)
10506
        return false;
10507
 
10508
      boolean this_present_cex = true && this.isSetCex();
10509
      boolean that_present_cex = true && that.isSetCex();
10510
      if (this_present_cex || that_present_cex) {
10511
        if (!(this_present_cex && that_present_cex))
10512
          return false;
10513
        if (!this.cex.equals(that.cex))
10514
          return false;
10515
      }
10516
 
10517
      return true;
10518
    }
10519
 
10520
    @Override
10521
    public int hashCode() {
10522
      return 0;
10523
    }
10524
 
10525
    public int compareTo(addInventory_result other) {
10526
      if (!getClass().equals(other.getClass())) {
10527
        return getClass().getName().compareTo(other.getClass().getName());
10528
      }
10529
 
10530
      int lastComparison = 0;
10531
      addInventory_result typedOther = (addInventory_result)other;
10532
 
10533
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10534
      if (lastComparison != 0) {
10535
        return lastComparison;
10536
      }
10537
      if (isSetCex()) {
10538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10539
        if (lastComparison != 0) {
10540
          return lastComparison;
10541
        }
10542
      }
10543
      return 0;
10544
    }
10545
 
10546
    public _Fields fieldForId(int fieldId) {
10547
      return _Fields.findByThriftId(fieldId);
10548
    }
10549
 
10550
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10551
      org.apache.thrift.protocol.TField field;
10552
      iprot.readStructBegin();
10553
      while (true)
10554
      {
10555
        field = iprot.readFieldBegin();
10556
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10557
          break;
10558
        }
10559
        switch (field.id) {
10560
          case 1: // CEX
10561
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10562
              this.cex = new InventoryServiceException();
10563
              this.cex.read(iprot);
10564
            } else { 
10565
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10566
            }
10567
            break;
10568
          default:
10569
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10570
        }
10571
        iprot.readFieldEnd();
10572
      }
10573
      iprot.readStructEnd();
10574
      validate();
10575
    }
10576
 
10577
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10578
      oprot.writeStructBegin(STRUCT_DESC);
10579
 
10580
      if (this.isSetCex()) {
10581
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10582
        this.cex.write(oprot);
10583
        oprot.writeFieldEnd();
10584
      }
10585
      oprot.writeFieldStop();
10586
      oprot.writeStructEnd();
10587
    }
10588
 
10589
    @Override
10590
    public String toString() {
10591
      StringBuilder sb = new StringBuilder("addInventory_result(");
10592
      boolean first = true;
10593
 
10594
      sb.append("cex:");
10595
      if (this.cex == null) {
10596
        sb.append("null");
10597
      } else {
10598
        sb.append(this.cex);
10599
      }
10600
      first = false;
10601
      sb.append(")");
10602
      return sb.toString();
10603
    }
10604
 
10605
    public void validate() throws org.apache.thrift.TException {
10606
      // check for required fields
10607
    }
10608
 
10609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10610
      try {
10611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10612
      } catch (org.apache.thrift.TException te) {
10613
        throw new java.io.IOException(te);
10614
      }
10615
    }
10616
 
10617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10618
      try {
10619
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10620
      } catch (org.apache.thrift.TException te) {
10621
        throw new java.io.IOException(te);
10622
      }
10623
    }
10624
 
10625
  }
10626
 
10627
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
10628
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
10629
 
10630
    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);
10631
 
10632
    private long warehouse_id; // required
10633
 
10634
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10635
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10636
      WAREHOUSE_ID((short)1, "warehouse_id");
10637
 
10638
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10639
 
10640
      static {
10641
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10642
          byName.put(field.getFieldName(), field);
10643
        }
10644
      }
10645
 
10646
      /**
10647
       * Find the _Fields constant that matches fieldId, or null if its not found.
10648
       */
10649
      public static _Fields findByThriftId(int fieldId) {
10650
        switch(fieldId) {
10651
          case 1: // WAREHOUSE_ID
10652
            return WAREHOUSE_ID;
10653
          default:
10654
            return null;
10655
        }
10656
      }
10657
 
10658
      /**
10659
       * Find the _Fields constant that matches fieldId, throwing an exception
10660
       * if it is not found.
10661
       */
10662
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10663
        _Fields fields = findByThriftId(fieldId);
10664
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10665
        return fields;
10666
      }
10667
 
10668
      /**
10669
       * Find the _Fields constant that matches name, or null if its not found.
10670
       */
10671
      public static _Fields findByName(String name) {
10672
        return byName.get(name);
10673
      }
10674
 
10675
      private final short _thriftId;
10676
      private final String _fieldName;
10677
 
10678
      _Fields(short thriftId, String fieldName) {
10679
        _thriftId = thriftId;
10680
        _fieldName = fieldName;
10681
      }
10682
 
10683
      public short getThriftFieldId() {
10684
        return _thriftId;
10685
      }
10686
 
10687
      public String getFieldName() {
10688
        return _fieldName;
10689
      }
10690
    }
10691
 
10692
    // isset id assignments
10693
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
10694
    private BitSet __isset_bit_vector = new BitSet(1);
10695
 
10696
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10697
    static {
10698
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10699
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10700
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10701
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10702
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
10703
    }
10704
 
10705
    public retireWarehouse_args() {
10706
    }
10707
 
10708
    public retireWarehouse_args(
10709
      long warehouse_id)
10710
    {
10711
      this();
10712
      this.warehouse_id = warehouse_id;
10713
      setWarehouse_idIsSet(true);
10714
    }
10715
 
10716
    /**
10717
     * Performs a deep copy on <i>other</i>.
10718
     */
10719
    public retireWarehouse_args(retireWarehouse_args other) {
10720
      __isset_bit_vector.clear();
10721
      __isset_bit_vector.or(other.__isset_bit_vector);
10722
      this.warehouse_id = other.warehouse_id;
10723
    }
10724
 
10725
    public retireWarehouse_args deepCopy() {
10726
      return new retireWarehouse_args(this);
10727
    }
10728
 
10729
    @Override
10730
    public void clear() {
10731
      setWarehouse_idIsSet(false);
10732
      this.warehouse_id = 0;
10733
    }
10734
 
10735
    public long getWarehouse_id() {
10736
      return this.warehouse_id;
10737
    }
10738
 
10739
    public void setWarehouse_id(long warehouse_id) {
10740
      this.warehouse_id = warehouse_id;
10741
      setWarehouse_idIsSet(true);
10742
    }
10743
 
10744
    public void unsetWarehouse_id() {
10745
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
10746
    }
10747
 
10748
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
10749
    public boolean isSetWarehouse_id() {
10750
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
10751
    }
10752
 
10753
    public void setWarehouse_idIsSet(boolean value) {
10754
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
10755
    }
10756
 
10757
    public void setFieldValue(_Fields field, Object value) {
10758
      switch (field) {
10759
      case WAREHOUSE_ID:
10760
        if (value == null) {
10761
          unsetWarehouse_id();
10762
        } else {
10763
          setWarehouse_id((Long)value);
10764
        }
10765
        break;
10766
 
10767
      }
10768
    }
10769
 
10770
    public Object getFieldValue(_Fields field) {
10771
      switch (field) {
10772
      case WAREHOUSE_ID:
10773
        return Long.valueOf(getWarehouse_id());
10774
 
10775
      }
10776
      throw new IllegalStateException();
10777
    }
10778
 
10779
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10780
    public boolean isSet(_Fields field) {
10781
      if (field == null) {
10782
        throw new IllegalArgumentException();
10783
      }
10784
 
10785
      switch (field) {
10786
      case WAREHOUSE_ID:
10787
        return isSetWarehouse_id();
10788
      }
10789
      throw new IllegalStateException();
10790
    }
10791
 
10792
    @Override
10793
    public boolean equals(Object that) {
10794
      if (that == null)
10795
        return false;
10796
      if (that instanceof retireWarehouse_args)
10797
        return this.equals((retireWarehouse_args)that);
10798
      return false;
10799
    }
10800
 
10801
    public boolean equals(retireWarehouse_args that) {
10802
      if (that == null)
10803
        return false;
10804
 
10805
      boolean this_present_warehouse_id = true;
10806
      boolean that_present_warehouse_id = true;
10807
      if (this_present_warehouse_id || that_present_warehouse_id) {
10808
        if (!(this_present_warehouse_id && that_present_warehouse_id))
10809
          return false;
10810
        if (this.warehouse_id != that.warehouse_id)
10811
          return false;
10812
      }
10813
 
10814
      return true;
10815
    }
10816
 
10817
    @Override
10818
    public int hashCode() {
10819
      return 0;
10820
    }
10821
 
10822
    public int compareTo(retireWarehouse_args other) {
10823
      if (!getClass().equals(other.getClass())) {
10824
        return getClass().getName().compareTo(other.getClass().getName());
10825
      }
10826
 
10827
      int lastComparison = 0;
10828
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
10829
 
10830
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
10831
      if (lastComparison != 0) {
10832
        return lastComparison;
10833
      }
10834
      if (isSetWarehouse_id()) {
10835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
10836
        if (lastComparison != 0) {
10837
          return lastComparison;
10838
        }
10839
      }
10840
      return 0;
10841
    }
10842
 
10843
    public _Fields fieldForId(int fieldId) {
10844
      return _Fields.findByThriftId(fieldId);
10845
    }
10846
 
10847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10848
      org.apache.thrift.protocol.TField field;
10849
      iprot.readStructBegin();
10850
      while (true)
10851
      {
10852
        field = iprot.readFieldBegin();
10853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10854
          break;
10855
        }
10856
        switch (field.id) {
10857
          case 1: // WAREHOUSE_ID
10858
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10859
              this.warehouse_id = iprot.readI64();
10860
              setWarehouse_idIsSet(true);
10861
            } else { 
10862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10863
            }
10864
            break;
10865
          default:
10866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10867
        }
10868
        iprot.readFieldEnd();
10869
      }
10870
      iprot.readStructEnd();
10871
      validate();
10872
    }
10873
 
10874
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10875
      validate();
10876
 
10877
      oprot.writeStructBegin(STRUCT_DESC);
10878
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10879
      oprot.writeI64(this.warehouse_id);
10880
      oprot.writeFieldEnd();
10881
      oprot.writeFieldStop();
10882
      oprot.writeStructEnd();
10883
    }
10884
 
10885
    @Override
10886
    public String toString() {
10887
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
10888
      boolean first = true;
10889
 
10890
      sb.append("warehouse_id:");
10891
      sb.append(this.warehouse_id);
10892
      first = false;
10893
      sb.append(")");
10894
      return sb.toString();
10895
    }
10896
 
10897
    public void validate() throws org.apache.thrift.TException {
10898
      // check for required fields
10899
    }
10900
 
10901
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10902
      try {
10903
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10904
      } catch (org.apache.thrift.TException te) {
10905
        throw new java.io.IOException(te);
10906
      }
10907
    }
10908
 
10909
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10910
      try {
10911
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10912
        __isset_bit_vector = new BitSet(1);
10913
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10914
      } catch (org.apache.thrift.TException te) {
10915
        throw new java.io.IOException(te);
10916
      }
10917
    }
10918
 
10919
  }
10920
 
10921
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
10922
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
10923
 
10924
    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);
10925
 
10926
    private InventoryServiceException cex; // required
10927
 
10928
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10929
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10930
      CEX((short)1, "cex");
10931
 
10932
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10933
 
10934
      static {
10935
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10936
          byName.put(field.getFieldName(), field);
10937
        }
10938
      }
10939
 
10940
      /**
10941
       * Find the _Fields constant that matches fieldId, or null if its not found.
10942
       */
10943
      public static _Fields findByThriftId(int fieldId) {
10944
        switch(fieldId) {
10945
          case 1: // CEX
10946
            return CEX;
10947
          default:
10948
            return null;
10949
        }
10950
      }
10951
 
10952
      /**
10953
       * Find the _Fields constant that matches fieldId, throwing an exception
10954
       * if it is not found.
10955
       */
10956
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10957
        _Fields fields = findByThriftId(fieldId);
10958
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10959
        return fields;
10960
      }
10961
 
10962
      /**
10963
       * Find the _Fields constant that matches name, or null if its not found.
10964
       */
10965
      public static _Fields findByName(String name) {
10966
        return byName.get(name);
10967
      }
10968
 
10969
      private final short _thriftId;
10970
      private final String _fieldName;
10971
 
10972
      _Fields(short thriftId, String fieldName) {
10973
        _thriftId = thriftId;
10974
        _fieldName = fieldName;
10975
      }
10976
 
10977
      public short getThriftFieldId() {
10978
        return _thriftId;
10979
      }
10980
 
10981
      public String getFieldName() {
10982
        return _fieldName;
10983
      }
10984
    }
10985
 
10986
    // isset id assignments
10987
 
10988
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10989
    static {
10990
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10991
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10992
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10993
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10994
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
10995
    }
10996
 
10997
    public retireWarehouse_result() {
10998
    }
10999
 
11000
    public retireWarehouse_result(
11001
      InventoryServiceException cex)
11002
    {
11003
      this();
11004
      this.cex = cex;
11005
    }
11006
 
11007
    /**
11008
     * Performs a deep copy on <i>other</i>.
11009
     */
11010
    public retireWarehouse_result(retireWarehouse_result other) {
11011
      if (other.isSetCex()) {
11012
        this.cex = new InventoryServiceException(other.cex);
11013
      }
11014
    }
11015
 
11016
    public retireWarehouse_result deepCopy() {
11017
      return new retireWarehouse_result(this);
11018
    }
11019
 
11020
    @Override
11021
    public void clear() {
11022
      this.cex = null;
11023
    }
11024
 
11025
    public InventoryServiceException getCex() {
11026
      return this.cex;
11027
    }
11028
 
11029
    public void setCex(InventoryServiceException cex) {
11030
      this.cex = cex;
11031
    }
11032
 
11033
    public void unsetCex() {
11034
      this.cex = null;
11035
    }
11036
 
11037
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11038
    public boolean isSetCex() {
11039
      return this.cex != null;
11040
    }
11041
 
11042
    public void setCexIsSet(boolean value) {
11043
      if (!value) {
11044
        this.cex = null;
11045
      }
11046
    }
11047
 
11048
    public void setFieldValue(_Fields field, Object value) {
11049
      switch (field) {
11050
      case CEX:
11051
        if (value == null) {
11052
          unsetCex();
11053
        } else {
11054
          setCex((InventoryServiceException)value);
11055
        }
11056
        break;
11057
 
11058
      }
11059
    }
11060
 
11061
    public Object getFieldValue(_Fields field) {
11062
      switch (field) {
11063
      case CEX:
11064
        return getCex();
11065
 
11066
      }
11067
      throw new IllegalStateException();
11068
    }
11069
 
11070
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11071
    public boolean isSet(_Fields field) {
11072
      if (field == null) {
11073
        throw new IllegalArgumentException();
11074
      }
11075
 
11076
      switch (field) {
11077
      case CEX:
11078
        return isSetCex();
11079
      }
11080
      throw new IllegalStateException();
11081
    }
11082
 
11083
    @Override
11084
    public boolean equals(Object that) {
11085
      if (that == null)
11086
        return false;
11087
      if (that instanceof retireWarehouse_result)
11088
        return this.equals((retireWarehouse_result)that);
11089
      return false;
11090
    }
11091
 
11092
    public boolean equals(retireWarehouse_result that) {
11093
      if (that == null)
11094
        return false;
11095
 
11096
      boolean this_present_cex = true && this.isSetCex();
11097
      boolean that_present_cex = true && that.isSetCex();
11098
      if (this_present_cex || that_present_cex) {
11099
        if (!(this_present_cex && that_present_cex))
11100
          return false;
11101
        if (!this.cex.equals(that.cex))
11102
          return false;
11103
      }
11104
 
11105
      return true;
11106
    }
11107
 
11108
    @Override
11109
    public int hashCode() {
11110
      return 0;
11111
    }
11112
 
11113
    public int compareTo(retireWarehouse_result other) {
11114
      if (!getClass().equals(other.getClass())) {
11115
        return getClass().getName().compareTo(other.getClass().getName());
11116
      }
11117
 
11118
      int lastComparison = 0;
11119
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
11120
 
11121
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11122
      if (lastComparison != 0) {
11123
        return lastComparison;
11124
      }
11125
      if (isSetCex()) {
11126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11127
        if (lastComparison != 0) {
11128
          return lastComparison;
11129
        }
11130
      }
11131
      return 0;
11132
    }
11133
 
11134
    public _Fields fieldForId(int fieldId) {
11135
      return _Fields.findByThriftId(fieldId);
11136
    }
11137
 
11138
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11139
      org.apache.thrift.protocol.TField field;
11140
      iprot.readStructBegin();
11141
      while (true)
11142
      {
11143
        field = iprot.readFieldBegin();
11144
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11145
          break;
11146
        }
11147
        switch (field.id) {
11148
          case 1: // CEX
11149
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11150
              this.cex = new InventoryServiceException();
11151
              this.cex.read(iprot);
11152
            } else { 
11153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11154
            }
11155
            break;
11156
          default:
11157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11158
        }
11159
        iprot.readFieldEnd();
11160
      }
11161
      iprot.readStructEnd();
11162
      validate();
11163
    }
11164
 
11165
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11166
      oprot.writeStructBegin(STRUCT_DESC);
11167
 
11168
      if (this.isSetCex()) {
11169
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11170
        this.cex.write(oprot);
11171
        oprot.writeFieldEnd();
11172
      }
11173
      oprot.writeFieldStop();
11174
      oprot.writeStructEnd();
11175
    }
11176
 
11177
    @Override
11178
    public String toString() {
11179
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
11180
      boolean first = true;
11181
 
11182
      sb.append("cex:");
11183
      if (this.cex == null) {
11184
        sb.append("null");
11185
      } else {
11186
        sb.append(this.cex);
11187
      }
11188
      first = false;
11189
      sb.append(")");
11190
      return sb.toString();
11191
    }
11192
 
11193
    public void validate() throws org.apache.thrift.TException {
11194
      // check for required fields
11195
    }
11196
 
11197
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11198
      try {
11199
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11200
      } catch (org.apache.thrift.TException te) {
11201
        throw new java.io.IOException(te);
11202
      }
11203
    }
11204
 
11205
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11206
      try {
11207
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11208
      } catch (org.apache.thrift.TException te) {
11209
        throw new java.io.IOException(te);
11210
      }
11211
    }
11212
 
11213
  }
11214
 
11215
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
11216
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
11217
 
11218
    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);
11219
 
11220
    private long item_id; // required
11221
 
11222
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11223
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11224
      ITEM_ID((short)1, "item_id");
11225
 
11226
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11227
 
11228
      static {
11229
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11230
          byName.put(field.getFieldName(), field);
11231
        }
11232
      }
11233
 
11234
      /**
11235
       * Find the _Fields constant that matches fieldId, or null if its not found.
11236
       */
11237
      public static _Fields findByThriftId(int fieldId) {
11238
        switch(fieldId) {
11239
          case 1: // ITEM_ID
11240
            return ITEM_ID;
11241
          default:
11242
            return null;
11243
        }
11244
      }
11245
 
11246
      /**
11247
       * Find the _Fields constant that matches fieldId, throwing an exception
11248
       * if it is not found.
11249
       */
11250
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11251
        _Fields fields = findByThriftId(fieldId);
11252
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11253
        return fields;
11254
      }
11255
 
11256
      /**
11257
       * Find the _Fields constant that matches name, or null if its not found.
11258
       */
11259
      public static _Fields findByName(String name) {
11260
        return byName.get(name);
11261
      }
11262
 
11263
      private final short _thriftId;
11264
      private final String _fieldName;
11265
 
11266
      _Fields(short thriftId, String fieldName) {
11267
        _thriftId = thriftId;
11268
        _fieldName = fieldName;
11269
      }
11270
 
11271
      public short getThriftFieldId() {
11272
        return _thriftId;
11273
      }
11274
 
11275
      public String getFieldName() {
11276
        return _fieldName;
11277
      }
11278
    }
11279
 
11280
    // isset id assignments
11281
    private static final int __ITEM_ID_ISSET_ID = 0;
11282
    private BitSet __isset_bit_vector = new BitSet(1);
11283
 
11284
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11285
    static {
11286
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11287
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11288
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11289
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11290
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
11291
    }
11292
 
11293
    public getItemInventoryByItemId_args() {
11294
    }
11295
 
11296
    public getItemInventoryByItemId_args(
11297
      long item_id)
11298
    {
11299
      this();
11300
      this.item_id = item_id;
11301
      setItem_idIsSet(true);
11302
    }
11303
 
11304
    /**
11305
     * Performs a deep copy on <i>other</i>.
11306
     */
11307
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
11308
      __isset_bit_vector.clear();
11309
      __isset_bit_vector.or(other.__isset_bit_vector);
11310
      this.item_id = other.item_id;
11311
    }
11312
 
11313
    public getItemInventoryByItemId_args deepCopy() {
11314
      return new getItemInventoryByItemId_args(this);
11315
    }
11316
 
11317
    @Override
11318
    public void clear() {
11319
      setItem_idIsSet(false);
11320
      this.item_id = 0;
11321
    }
11322
 
11323
    public long getItem_id() {
11324
      return this.item_id;
11325
    }
11326
 
11327
    public void setItem_id(long item_id) {
11328
      this.item_id = item_id;
11329
      setItem_idIsSet(true);
11330
    }
11331
 
11332
    public void unsetItem_id() {
11333
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
11334
    }
11335
 
11336
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
11337
    public boolean isSetItem_id() {
11338
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
11339
    }
11340
 
11341
    public void setItem_idIsSet(boolean value) {
11342
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
11343
    }
11344
 
11345
    public void setFieldValue(_Fields field, Object value) {
11346
      switch (field) {
11347
      case ITEM_ID:
11348
        if (value == null) {
11349
          unsetItem_id();
11350
        } else {
11351
          setItem_id((Long)value);
11352
        }
11353
        break;
11354
 
11355
      }
11356
    }
11357
 
11358
    public Object getFieldValue(_Fields field) {
11359
      switch (field) {
11360
      case ITEM_ID:
11361
        return Long.valueOf(getItem_id());
11362
 
11363
      }
11364
      throw new IllegalStateException();
11365
    }
11366
 
11367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11368
    public boolean isSet(_Fields field) {
11369
      if (field == null) {
11370
        throw new IllegalArgumentException();
11371
      }
11372
 
11373
      switch (field) {
11374
      case ITEM_ID:
11375
        return isSetItem_id();
11376
      }
11377
      throw new IllegalStateException();
11378
    }
11379
 
11380
    @Override
11381
    public boolean equals(Object that) {
11382
      if (that == null)
11383
        return false;
11384
      if (that instanceof getItemInventoryByItemId_args)
11385
        return this.equals((getItemInventoryByItemId_args)that);
11386
      return false;
11387
    }
11388
 
11389
    public boolean equals(getItemInventoryByItemId_args that) {
11390
      if (that == null)
11391
        return false;
11392
 
11393
      boolean this_present_item_id = true;
11394
      boolean that_present_item_id = true;
11395
      if (this_present_item_id || that_present_item_id) {
11396
        if (!(this_present_item_id && that_present_item_id))
11397
          return false;
11398
        if (this.item_id != that.item_id)
11399
          return false;
11400
      }
11401
 
11402
      return true;
11403
    }
11404
 
11405
    @Override
11406
    public int hashCode() {
11407
      return 0;
11408
    }
11409
 
11410
    public int compareTo(getItemInventoryByItemId_args other) {
11411
      if (!getClass().equals(other.getClass())) {
11412
        return getClass().getName().compareTo(other.getClass().getName());
11413
      }
11414
 
11415
      int lastComparison = 0;
11416
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
11417
 
11418
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
11419
      if (lastComparison != 0) {
11420
        return lastComparison;
11421
      }
11422
      if (isSetItem_id()) {
11423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
11424
        if (lastComparison != 0) {
11425
          return lastComparison;
11426
        }
11427
      }
11428
      return 0;
11429
    }
11430
 
11431
    public _Fields fieldForId(int fieldId) {
11432
      return _Fields.findByThriftId(fieldId);
11433
    }
11434
 
11435
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11436
      org.apache.thrift.protocol.TField field;
11437
      iprot.readStructBegin();
11438
      while (true)
11439
      {
11440
        field = iprot.readFieldBegin();
11441
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11442
          break;
11443
        }
11444
        switch (field.id) {
11445
          case 1: // ITEM_ID
11446
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11447
              this.item_id = iprot.readI64();
11448
              setItem_idIsSet(true);
11449
            } else { 
11450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11451
            }
11452
            break;
11453
          default:
11454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11455
        }
11456
        iprot.readFieldEnd();
11457
      }
11458
      iprot.readStructEnd();
11459
      validate();
11460
    }
11461
 
11462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11463
      validate();
11464
 
11465
      oprot.writeStructBegin(STRUCT_DESC);
11466
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
11467
      oprot.writeI64(this.item_id);
11468
      oprot.writeFieldEnd();
11469
      oprot.writeFieldStop();
11470
      oprot.writeStructEnd();
11471
    }
11472
 
11473
    @Override
11474
    public String toString() {
11475
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
11476
      boolean first = true;
11477
 
11478
      sb.append("item_id:");
11479
      sb.append(this.item_id);
11480
      first = false;
11481
      sb.append(")");
11482
      return sb.toString();
11483
    }
11484
 
11485
    public void validate() throws org.apache.thrift.TException {
11486
      // check for required fields
11487
    }
11488
 
11489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11490
      try {
11491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11492
      } catch (org.apache.thrift.TException te) {
11493
        throw new java.io.IOException(te);
11494
      }
11495
    }
11496
 
11497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11498
      try {
11499
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11500
        __isset_bit_vector = new BitSet(1);
11501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11502
      } catch (org.apache.thrift.TException te) {
11503
        throw new java.io.IOException(te);
11504
      }
11505
    }
11506
 
11507
  }
11508
 
11509
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
11510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
11511
 
11512
    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);
11513
    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);
11514
 
11515
    private ItemInventory success; // required
11516
    private InventoryServiceException cex; // required
11517
 
11518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11520
      SUCCESS((short)0, "success"),
11521
      CEX((short)1, "cex");
11522
 
11523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11524
 
11525
      static {
11526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11527
          byName.put(field.getFieldName(), field);
11528
        }
11529
      }
11530
 
11531
      /**
11532
       * Find the _Fields constant that matches fieldId, or null if its not found.
11533
       */
11534
      public static _Fields findByThriftId(int fieldId) {
11535
        switch(fieldId) {
11536
          case 0: // SUCCESS
11537
            return SUCCESS;
11538
          case 1: // CEX
11539
            return CEX;
11540
          default:
11541
            return null;
11542
        }
11543
      }
11544
 
11545
      /**
11546
       * Find the _Fields constant that matches fieldId, throwing an exception
11547
       * if it is not found.
11548
       */
11549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11550
        _Fields fields = findByThriftId(fieldId);
11551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11552
        return fields;
11553
      }
11554
 
11555
      /**
11556
       * Find the _Fields constant that matches name, or null if its not found.
11557
       */
11558
      public static _Fields findByName(String name) {
11559
        return byName.get(name);
11560
      }
11561
 
11562
      private final short _thriftId;
11563
      private final String _fieldName;
11564
 
11565
      _Fields(short thriftId, String fieldName) {
11566
        _thriftId = thriftId;
11567
        _fieldName = fieldName;
11568
      }
11569
 
11570
      public short getThriftFieldId() {
11571
        return _thriftId;
11572
      }
11573
 
11574
      public String getFieldName() {
11575
        return _fieldName;
11576
      }
11577
    }
11578
 
11579
    // isset id assignments
11580
 
11581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11582
    static {
11583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11584
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11585
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
11586
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
11590
    }
11591
 
11592
    public getItemInventoryByItemId_result() {
11593
    }
11594
 
11595
    public getItemInventoryByItemId_result(
11596
      ItemInventory success,
11597
      InventoryServiceException cex)
11598
    {
11599
      this();
11600
      this.success = success;
11601
      this.cex = cex;
11602
    }
11603
 
11604
    /**
11605
     * Performs a deep copy on <i>other</i>.
11606
     */
11607
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
11608
      if (other.isSetSuccess()) {
11609
        this.success = new ItemInventory(other.success);
11610
      }
11611
      if (other.isSetCex()) {
11612
        this.cex = new InventoryServiceException(other.cex);
11613
      }
11614
    }
11615
 
11616
    public getItemInventoryByItemId_result deepCopy() {
11617
      return new getItemInventoryByItemId_result(this);
11618
    }
11619
 
11620
    @Override
11621
    public void clear() {
11622
      this.success = null;
11623
      this.cex = null;
11624
    }
11625
 
11626
    public ItemInventory getSuccess() {
11627
      return this.success;
11628
    }
11629
 
11630
    public void setSuccess(ItemInventory success) {
11631
      this.success = success;
11632
    }
11633
 
11634
    public void unsetSuccess() {
11635
      this.success = null;
11636
    }
11637
 
11638
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11639
    public boolean isSetSuccess() {
11640
      return this.success != null;
11641
    }
11642
 
11643
    public void setSuccessIsSet(boolean value) {
11644
      if (!value) {
11645
        this.success = null;
11646
      }
11647
    }
11648
 
11649
    public InventoryServiceException getCex() {
11650
      return this.cex;
11651
    }
11652
 
11653
    public void setCex(InventoryServiceException cex) {
11654
      this.cex = cex;
11655
    }
11656
 
11657
    public void unsetCex() {
11658
      this.cex = null;
11659
    }
11660
 
11661
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11662
    public boolean isSetCex() {
11663
      return this.cex != null;
11664
    }
11665
 
11666
    public void setCexIsSet(boolean value) {
11667
      if (!value) {
11668
        this.cex = null;
11669
      }
11670
    }
11671
 
11672
    public void setFieldValue(_Fields field, Object value) {
11673
      switch (field) {
11674
      case SUCCESS:
11675
        if (value == null) {
11676
          unsetSuccess();
11677
        } else {
11678
          setSuccess((ItemInventory)value);
11679
        }
11680
        break;
11681
 
11682
      case CEX:
11683
        if (value == null) {
11684
          unsetCex();
11685
        } else {
11686
          setCex((InventoryServiceException)value);
11687
        }
11688
        break;
11689
 
11690
      }
11691
    }
11692
 
11693
    public Object getFieldValue(_Fields field) {
11694
      switch (field) {
11695
      case SUCCESS:
11696
        return getSuccess();
11697
 
11698
      case CEX:
11699
        return getCex();
11700
 
11701
      }
11702
      throw new IllegalStateException();
11703
    }
11704
 
11705
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11706
    public boolean isSet(_Fields field) {
11707
      if (field == null) {
11708
        throw new IllegalArgumentException();
11709
      }
11710
 
11711
      switch (field) {
11712
      case SUCCESS:
11713
        return isSetSuccess();
11714
      case CEX:
11715
        return isSetCex();
11716
      }
11717
      throw new IllegalStateException();
11718
    }
11719
 
11720
    @Override
11721
    public boolean equals(Object that) {
11722
      if (that == null)
11723
        return false;
11724
      if (that instanceof getItemInventoryByItemId_result)
11725
        return this.equals((getItemInventoryByItemId_result)that);
11726
      return false;
11727
    }
11728
 
11729
    public boolean equals(getItemInventoryByItemId_result that) {
11730
      if (that == null)
11731
        return false;
11732
 
11733
      boolean this_present_success = true && this.isSetSuccess();
11734
      boolean that_present_success = true && that.isSetSuccess();
11735
      if (this_present_success || that_present_success) {
11736
        if (!(this_present_success && that_present_success))
11737
          return false;
11738
        if (!this.success.equals(that.success))
11739
          return false;
11740
      }
11741
 
11742
      boolean this_present_cex = true && this.isSetCex();
11743
      boolean that_present_cex = true && that.isSetCex();
11744
      if (this_present_cex || that_present_cex) {
11745
        if (!(this_present_cex && that_present_cex))
11746
          return false;
11747
        if (!this.cex.equals(that.cex))
11748
          return false;
11749
      }
11750
 
11751
      return true;
11752
    }
11753
 
11754
    @Override
11755
    public int hashCode() {
11756
      return 0;
11757
    }
11758
 
11759
    public int compareTo(getItemInventoryByItemId_result other) {
11760
      if (!getClass().equals(other.getClass())) {
11761
        return getClass().getName().compareTo(other.getClass().getName());
11762
      }
11763
 
11764
      int lastComparison = 0;
11765
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
11766
 
11767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11768
      if (lastComparison != 0) {
11769
        return lastComparison;
11770
      }
11771
      if (isSetSuccess()) {
11772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11773
        if (lastComparison != 0) {
11774
          return lastComparison;
11775
        }
11776
      }
11777
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11778
      if (lastComparison != 0) {
11779
        return lastComparison;
11780
      }
11781
      if (isSetCex()) {
11782
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11783
        if (lastComparison != 0) {
11784
          return lastComparison;
11785
        }
11786
      }
11787
      return 0;
11788
    }
11789
 
11790
    public _Fields fieldForId(int fieldId) {
11791
      return _Fields.findByThriftId(fieldId);
11792
    }
11793
 
11794
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11795
      org.apache.thrift.protocol.TField field;
11796
      iprot.readStructBegin();
11797
      while (true)
11798
      {
11799
        field = iprot.readFieldBegin();
11800
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11801
          break;
11802
        }
11803
        switch (field.id) {
11804
          case 0: // SUCCESS
11805
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11806
              this.success = new ItemInventory();
11807
              this.success.read(iprot);
11808
            } else { 
11809
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11810
            }
11811
            break;
11812
          case 1: // CEX
11813
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11814
              this.cex = new InventoryServiceException();
11815
              this.cex.read(iprot);
11816
            } else { 
11817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11818
            }
11819
            break;
11820
          default:
11821
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11822
        }
11823
        iprot.readFieldEnd();
11824
      }
11825
      iprot.readStructEnd();
11826
      validate();
11827
    }
11828
 
11829
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11830
      oprot.writeStructBegin(STRUCT_DESC);
11831
 
11832
      if (this.isSetSuccess()) {
11833
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11834
        this.success.write(oprot);
11835
        oprot.writeFieldEnd();
11836
      } else if (this.isSetCex()) {
11837
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11838
        this.cex.write(oprot);
11839
        oprot.writeFieldEnd();
11840
      }
11841
      oprot.writeFieldStop();
11842
      oprot.writeStructEnd();
11843
    }
11844
 
11845
    @Override
11846
    public String toString() {
11847
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
11848
      boolean first = true;
11849
 
11850
      sb.append("success:");
11851
      if (this.success == null) {
11852
        sb.append("null");
11853
      } else {
11854
        sb.append(this.success);
11855
      }
11856
      first = false;
11857
      if (!first) sb.append(", ");
11858
      sb.append("cex:");
11859
      if (this.cex == null) {
11860
        sb.append("null");
11861
      } else {
11862
        sb.append(this.cex);
11863
      }
11864
      first = false;
11865
      sb.append(")");
11866
      return sb.toString();
11867
    }
11868
 
11869
    public void validate() throws org.apache.thrift.TException {
11870
      // check for required fields
11871
    }
11872
 
11873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11874
      try {
11875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11876
      } catch (org.apache.thrift.TException te) {
11877
        throw new java.io.IOException(te);
11878
      }
11879
    }
11880
 
11881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11882
      try {
11883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11884
      } catch (org.apache.thrift.TException te) {
11885
        throw new java.io.IOException(te);
11886
      }
11887
    }
11888
 
11889
  }
11890
 
11891
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
11893
 
11894
    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);
11895
    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);
11896
 
11897
    private long warehouse_id; // required
11898
    private long item_id; // required
11899
 
11900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11902
      WAREHOUSE_ID((short)1, "warehouse_id"),
11903
      ITEM_ID((short)2, "item_id");
11904
 
11905
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11906
 
11907
      static {
11908
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11909
          byName.put(field.getFieldName(), field);
11910
        }
11911
      }
11912
 
11913
      /**
11914
       * Find the _Fields constant that matches fieldId, or null if its not found.
11915
       */
11916
      public static _Fields findByThriftId(int fieldId) {
11917
        switch(fieldId) {
11918
          case 1: // WAREHOUSE_ID
11919
            return WAREHOUSE_ID;
11920
          case 2: // ITEM_ID
11921
            return ITEM_ID;
11922
          default:
11923
            return null;
11924
        }
11925
      }
11926
 
11927
      /**
11928
       * Find the _Fields constant that matches fieldId, throwing an exception
11929
       * if it is not found.
11930
       */
11931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11932
        _Fields fields = findByThriftId(fieldId);
11933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11934
        return fields;
11935
      }
11936
 
11937
      /**
11938
       * Find the _Fields constant that matches name, or null if its not found.
11939
       */
11940
      public static _Fields findByName(String name) {
11941
        return byName.get(name);
11942
      }
11943
 
11944
      private final short _thriftId;
11945
      private final String _fieldName;
11946
 
11947
      _Fields(short thriftId, String fieldName) {
11948
        _thriftId = thriftId;
11949
        _fieldName = fieldName;
11950
      }
11951
 
11952
      public short getThriftFieldId() {
11953
        return _thriftId;
11954
      }
11955
 
11956
      public String getFieldName() {
11957
        return _fieldName;
11958
      }
11959
    }
11960
 
11961
    // isset id assignments
11962
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11963
    private static final int __ITEM_ID_ISSET_ID = 1;
11964
    private BitSet __isset_bit_vector = new BitSet(2);
11965
 
11966
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11967
    static {
11968
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11969
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11971
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
11975
    }
11976
 
11977
    public getItemAvailibilityAtWarehouse_args() {
11978
    }
11979
 
11980
    public getItemAvailibilityAtWarehouse_args(
11981
      long warehouse_id,
11982
      long item_id)
11983
    {
11984
      this();
11985
      this.warehouse_id = warehouse_id;
11986
      setWarehouse_idIsSet(true);
11987
      this.item_id = item_id;
11988
      setItem_idIsSet(true);
11989
    }
11990
 
11991
    /**
11992
     * Performs a deep copy on <i>other</i>.
11993
     */
11994
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
11995
      __isset_bit_vector.clear();
11996
      __isset_bit_vector.or(other.__isset_bit_vector);
11997
      this.warehouse_id = other.warehouse_id;
11998
      this.item_id = other.item_id;
11999
    }
12000
 
12001
    public getItemAvailibilityAtWarehouse_args deepCopy() {
12002
      return new getItemAvailibilityAtWarehouse_args(this);
12003
    }
12004
 
12005
    @Override
12006
    public void clear() {
12007
      setWarehouse_idIsSet(false);
12008
      this.warehouse_id = 0;
12009
      setItem_idIsSet(false);
12010
      this.item_id = 0;
12011
    }
12012
 
12013
    public long getWarehouse_id() {
12014
      return this.warehouse_id;
12015
    }
12016
 
12017
    public void setWarehouse_id(long warehouse_id) {
12018
      this.warehouse_id = warehouse_id;
12019
      setWarehouse_idIsSet(true);
12020
    }
12021
 
12022
    public void unsetWarehouse_id() {
12023
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
12024
    }
12025
 
12026
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
12027
    public boolean isSetWarehouse_id() {
12028
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12029
    }
12030
 
12031
    public void setWarehouse_idIsSet(boolean value) {
12032
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12033
    }
12034
 
12035
    public long getItem_id() {
12036
      return this.item_id;
12037
    }
12038
 
12039
    public void setItem_id(long item_id) {
12040
      this.item_id = item_id;
12041
      setItem_idIsSet(true);
12042
    }
12043
 
12044
    public void unsetItem_id() {
12045
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
12046
    }
12047
 
12048
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
12049
    public boolean isSetItem_id() {
12050
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
12051
    }
12052
 
12053
    public void setItem_idIsSet(boolean value) {
12054
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
12055
    }
12056
 
12057
    public void setFieldValue(_Fields field, Object value) {
12058
      switch (field) {
12059
      case WAREHOUSE_ID:
12060
        if (value == null) {
12061
          unsetWarehouse_id();
12062
        } else {
12063
          setWarehouse_id((Long)value);
12064
        }
12065
        break;
12066
 
12067
      case ITEM_ID:
12068
        if (value == null) {
12069
          unsetItem_id();
12070
        } else {
12071
          setItem_id((Long)value);
12072
        }
12073
        break;
12074
 
12075
      }
12076
    }
12077
 
12078
    public Object getFieldValue(_Fields field) {
12079
      switch (field) {
12080
      case WAREHOUSE_ID:
12081
        return Long.valueOf(getWarehouse_id());
12082
 
12083
      case ITEM_ID:
12084
        return Long.valueOf(getItem_id());
12085
 
12086
      }
12087
      throw new IllegalStateException();
12088
    }
12089
 
12090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12091
    public boolean isSet(_Fields field) {
12092
      if (field == null) {
12093
        throw new IllegalArgumentException();
12094
      }
12095
 
12096
      switch (field) {
12097
      case WAREHOUSE_ID:
12098
        return isSetWarehouse_id();
12099
      case ITEM_ID:
12100
        return isSetItem_id();
12101
      }
12102
      throw new IllegalStateException();
12103
    }
12104
 
12105
    @Override
12106
    public boolean equals(Object that) {
12107
      if (that == null)
12108
        return false;
12109
      if (that instanceof getItemAvailibilityAtWarehouse_args)
12110
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
12111
      return false;
12112
    }
12113
 
12114
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
12115
      if (that == null)
12116
        return false;
12117
 
12118
      boolean this_present_warehouse_id = true;
12119
      boolean that_present_warehouse_id = true;
12120
      if (this_present_warehouse_id || that_present_warehouse_id) {
12121
        if (!(this_present_warehouse_id && that_present_warehouse_id))
12122
          return false;
12123
        if (this.warehouse_id != that.warehouse_id)
12124
          return false;
12125
      }
12126
 
12127
      boolean this_present_item_id = true;
12128
      boolean that_present_item_id = true;
12129
      if (this_present_item_id || that_present_item_id) {
12130
        if (!(this_present_item_id && that_present_item_id))
12131
          return false;
12132
        if (this.item_id != that.item_id)
12133
          return false;
12134
      }
12135
 
12136
      return true;
12137
    }
12138
 
12139
    @Override
12140
    public int hashCode() {
12141
      return 0;
12142
    }
12143
 
12144
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
12145
      if (!getClass().equals(other.getClass())) {
12146
        return getClass().getName().compareTo(other.getClass().getName());
12147
      }
12148
 
12149
      int lastComparison = 0;
12150
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
12151
 
12152
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
12153
      if (lastComparison != 0) {
12154
        return lastComparison;
12155
      }
12156
      if (isSetWarehouse_id()) {
12157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
12158
        if (lastComparison != 0) {
12159
          return lastComparison;
12160
        }
12161
      }
12162
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
12163
      if (lastComparison != 0) {
12164
        return lastComparison;
12165
      }
12166
      if (isSetItem_id()) {
12167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
12168
        if (lastComparison != 0) {
12169
          return lastComparison;
12170
        }
12171
      }
12172
      return 0;
12173
    }
12174
 
12175
    public _Fields fieldForId(int fieldId) {
12176
      return _Fields.findByThriftId(fieldId);
12177
    }
12178
 
12179
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12180
      org.apache.thrift.protocol.TField field;
12181
      iprot.readStructBegin();
12182
      while (true)
12183
      {
12184
        field = iprot.readFieldBegin();
12185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12186
          break;
12187
        }
12188
        switch (field.id) {
12189
          case 1: // WAREHOUSE_ID
12190
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12191
              this.warehouse_id = iprot.readI64();
12192
              setWarehouse_idIsSet(true);
12193
            } else { 
12194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12195
            }
12196
            break;
12197
          case 2: // ITEM_ID
12198
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12199
              this.item_id = iprot.readI64();
12200
              setItem_idIsSet(true);
12201
            } else { 
12202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12203
            }
12204
            break;
12205
          default:
12206
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12207
        }
12208
        iprot.readFieldEnd();
12209
      }
12210
      iprot.readStructEnd();
12211
      validate();
12212
    }
12213
 
12214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12215
      validate();
12216
 
12217
      oprot.writeStructBegin(STRUCT_DESC);
12218
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12219
      oprot.writeI64(this.warehouse_id);
12220
      oprot.writeFieldEnd();
12221
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
12222
      oprot.writeI64(this.item_id);
12223
      oprot.writeFieldEnd();
12224
      oprot.writeFieldStop();
12225
      oprot.writeStructEnd();
12226
    }
12227
 
12228
    @Override
12229
    public String toString() {
12230
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
12231
      boolean first = true;
12232
 
12233
      sb.append("warehouse_id:");
12234
      sb.append(this.warehouse_id);
12235
      first = false;
12236
      if (!first) sb.append(", ");
12237
      sb.append("item_id:");
12238
      sb.append(this.item_id);
12239
      first = false;
12240
      sb.append(")");
12241
      return sb.toString();
12242
    }
12243
 
12244
    public void validate() throws org.apache.thrift.TException {
12245
      // check for required fields
12246
    }
12247
 
12248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12249
      try {
12250
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12251
      } catch (org.apache.thrift.TException te) {
12252
        throw new java.io.IOException(te);
12253
      }
12254
    }
12255
 
12256
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12257
      try {
12258
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12259
        __isset_bit_vector = new BitSet(1);
12260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12261
      } catch (org.apache.thrift.TException te) {
12262
        throw new java.io.IOException(te);
12263
      }
12264
    }
12265
 
12266
  }
12267
 
12268
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
12269
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
12270
 
12271
    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);
12272
    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);
12273
 
12274
    private long success; // required
12275
    private InventoryServiceException cex; // required
12276
 
12277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12279
      SUCCESS((short)0, "success"),
12280
      CEX((short)1, "cex");
12281
 
12282
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12283
 
12284
      static {
12285
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12286
          byName.put(field.getFieldName(), field);
12287
        }
12288
      }
12289
 
12290
      /**
12291
       * Find the _Fields constant that matches fieldId, or null if its not found.
12292
       */
12293
      public static _Fields findByThriftId(int fieldId) {
12294
        switch(fieldId) {
12295
          case 0: // SUCCESS
12296
            return SUCCESS;
12297
          case 1: // CEX
12298
            return CEX;
12299
          default:
12300
            return null;
12301
        }
12302
      }
12303
 
12304
      /**
12305
       * Find the _Fields constant that matches fieldId, throwing an exception
12306
       * if it is not found.
12307
       */
12308
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12309
        _Fields fields = findByThriftId(fieldId);
12310
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12311
        return fields;
12312
      }
12313
 
12314
      /**
12315
       * Find the _Fields constant that matches name, or null if its not found.
12316
       */
12317
      public static _Fields findByName(String name) {
12318
        return byName.get(name);
12319
      }
12320
 
12321
      private final short _thriftId;
12322
      private final String _fieldName;
12323
 
12324
      _Fields(short thriftId, String fieldName) {
12325
        _thriftId = thriftId;
12326
        _fieldName = fieldName;
12327
      }
12328
 
12329
      public short getThriftFieldId() {
12330
        return _thriftId;
12331
      }
12332
 
12333
      public String getFieldName() {
12334
        return _fieldName;
12335
      }
12336
    }
12337
 
12338
    // isset id assignments
12339
    private static final int __SUCCESS_ISSET_ID = 0;
12340
    private BitSet __isset_bit_vector = new BitSet(1);
12341
 
12342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12343
    static {
12344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12345
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12346
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12347
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12348
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12349
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12350
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
12351
    }
12352
 
12353
    public getItemAvailibilityAtWarehouse_result() {
12354
    }
12355
 
12356
    public getItemAvailibilityAtWarehouse_result(
12357
      long success,
12358
      InventoryServiceException cex)
12359
    {
12360
      this();
12361
      this.success = success;
12362
      setSuccessIsSet(true);
12363
      this.cex = cex;
12364
    }
12365
 
12366
    /**
12367
     * Performs a deep copy on <i>other</i>.
12368
     */
12369
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
12370
      __isset_bit_vector.clear();
12371
      __isset_bit_vector.or(other.__isset_bit_vector);
12372
      this.success = other.success;
12373
      if (other.isSetCex()) {
12374
        this.cex = new InventoryServiceException(other.cex);
12375
      }
12376
    }
12377
 
12378
    public getItemAvailibilityAtWarehouse_result deepCopy() {
12379
      return new getItemAvailibilityAtWarehouse_result(this);
12380
    }
12381
 
12382
    @Override
12383
    public void clear() {
12384
      setSuccessIsSet(false);
12385
      this.success = 0;
12386
      this.cex = null;
12387
    }
12388
 
12389
    public long getSuccess() {
12390
      return this.success;
12391
    }
12392
 
12393
    public void setSuccess(long success) {
12394
      this.success = success;
12395
      setSuccessIsSet(true);
12396
    }
12397
 
12398
    public void unsetSuccess() {
12399
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12400
    }
12401
 
12402
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12403
    public boolean isSetSuccess() {
12404
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12405
    }
12406
 
12407
    public void setSuccessIsSet(boolean value) {
12408
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12409
    }
12410
 
12411
    public InventoryServiceException getCex() {
12412
      return this.cex;
12413
    }
12414
 
12415
    public void setCex(InventoryServiceException cex) {
12416
      this.cex = cex;
12417
    }
12418
 
12419
    public void unsetCex() {
12420
      this.cex = null;
12421
    }
12422
 
12423
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12424
    public boolean isSetCex() {
12425
      return this.cex != null;
12426
    }
12427
 
12428
    public void setCexIsSet(boolean value) {
12429
      if (!value) {
12430
        this.cex = null;
12431
      }
12432
    }
12433
 
12434
    public void setFieldValue(_Fields field, Object value) {
12435
      switch (field) {
12436
      case SUCCESS:
12437
        if (value == null) {
12438
          unsetSuccess();
12439
        } else {
12440
          setSuccess((Long)value);
12441
        }
12442
        break;
12443
 
12444
      case CEX:
12445
        if (value == null) {
12446
          unsetCex();
12447
        } else {
12448
          setCex((InventoryServiceException)value);
12449
        }
12450
        break;
12451
 
12452
      }
12453
    }
12454
 
12455
    public Object getFieldValue(_Fields field) {
12456
      switch (field) {
12457
      case SUCCESS:
12458
        return Long.valueOf(getSuccess());
12459
 
12460
      case CEX:
12461
        return getCex();
12462
 
12463
      }
12464
      throw new IllegalStateException();
12465
    }
12466
 
12467
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12468
    public boolean isSet(_Fields field) {
12469
      if (field == null) {
12470
        throw new IllegalArgumentException();
12471
      }
12472
 
12473
      switch (field) {
12474
      case SUCCESS:
12475
        return isSetSuccess();
12476
      case CEX:
12477
        return isSetCex();
12478
      }
12479
      throw new IllegalStateException();
12480
    }
12481
 
12482
    @Override
12483
    public boolean equals(Object that) {
12484
      if (that == null)
12485
        return false;
12486
      if (that instanceof getItemAvailibilityAtWarehouse_result)
12487
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
12488
      return false;
12489
    }
12490
 
12491
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
12492
      if (that == null)
12493
        return false;
12494
 
12495
      boolean this_present_success = true;
12496
      boolean that_present_success = true;
12497
      if (this_present_success || that_present_success) {
12498
        if (!(this_present_success && that_present_success))
12499
          return false;
12500
        if (this.success != that.success)
12501
          return false;
12502
      }
12503
 
12504
      boolean this_present_cex = true && this.isSetCex();
12505
      boolean that_present_cex = true && that.isSetCex();
12506
      if (this_present_cex || that_present_cex) {
12507
        if (!(this_present_cex && that_present_cex))
12508
          return false;
12509
        if (!this.cex.equals(that.cex))
12510
          return false;
12511
      }
12512
 
12513
      return true;
12514
    }
12515
 
12516
    @Override
12517
    public int hashCode() {
12518
      return 0;
12519
    }
12520
 
12521
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
12522
      if (!getClass().equals(other.getClass())) {
12523
        return getClass().getName().compareTo(other.getClass().getName());
12524
      }
12525
 
12526
      int lastComparison = 0;
12527
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
12528
 
12529
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12530
      if (lastComparison != 0) {
12531
        return lastComparison;
12532
      }
12533
      if (isSetSuccess()) {
12534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12535
        if (lastComparison != 0) {
12536
          return lastComparison;
12537
        }
12538
      }
12539
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12540
      if (lastComparison != 0) {
12541
        return lastComparison;
12542
      }
12543
      if (isSetCex()) {
12544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12545
        if (lastComparison != 0) {
12546
          return lastComparison;
12547
        }
12548
      }
12549
      return 0;
12550
    }
12551
 
12552
    public _Fields fieldForId(int fieldId) {
12553
      return _Fields.findByThriftId(fieldId);
12554
    }
12555
 
12556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12557
      org.apache.thrift.protocol.TField field;
12558
      iprot.readStructBegin();
12559
      while (true)
12560
      {
12561
        field = iprot.readFieldBegin();
12562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12563
          break;
12564
        }
12565
        switch (field.id) {
12566
          case 0: // SUCCESS
12567
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12568
              this.success = iprot.readI64();
12569
              setSuccessIsSet(true);
12570
            } else { 
12571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12572
            }
12573
            break;
12574
          case 1: // CEX
12575
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12576
              this.cex = new InventoryServiceException();
12577
              this.cex.read(iprot);
12578
            } else { 
12579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12580
            }
12581
            break;
12582
          default:
12583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12584
        }
12585
        iprot.readFieldEnd();
12586
      }
12587
      iprot.readStructEnd();
12588
      validate();
12589
    }
12590
 
12591
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12592
      oprot.writeStructBegin(STRUCT_DESC);
12593
 
12594
      if (this.isSetSuccess()) {
12595
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12596
        oprot.writeI64(this.success);
12597
        oprot.writeFieldEnd();
12598
      } else if (this.isSetCex()) {
12599
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12600
        this.cex.write(oprot);
12601
        oprot.writeFieldEnd();
12602
      }
12603
      oprot.writeFieldStop();
12604
      oprot.writeStructEnd();
12605
    }
12606
 
12607
    @Override
12608
    public String toString() {
12609
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
12610
      boolean first = true;
12611
 
12612
      sb.append("success:");
12613
      sb.append(this.success);
12614
      first = false;
12615
      if (!first) sb.append(", ");
12616
      sb.append("cex:");
12617
      if (this.cex == null) {
12618
        sb.append("null");
12619
      } else {
12620
        sb.append(this.cex);
12621
      }
12622
      first = false;
12623
      sb.append(")");
12624
      return sb.toString();
12625
    }
12626
 
12627
    public void validate() throws org.apache.thrift.TException {
12628
      // check for required fields
12629
    }
12630
 
12631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12632
      try {
12633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12634
      } catch (org.apache.thrift.TException te) {
12635
        throw new java.io.IOException(te);
12636
      }
12637
    }
12638
 
12639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12640
      try {
12641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12642
      } catch (org.apache.thrift.TException te) {
12643
        throw new java.io.IOException(te);
12644
      }
12645
    }
12646
 
12647
  }
12648
 
12649
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
12650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
12651
 
12652
    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 12653
    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 12654
 
12655
    private long itemId; // required
5978 rajveer 12656
    private long sourceId; // required
5945 mandeep.dh 12657
 
12658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 12660
      ITEM_ID((short)1, "itemId"),
12661
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 12662
 
12663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12664
 
12665
      static {
12666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12667
          byName.put(field.getFieldName(), field);
12668
        }
12669
      }
12670
 
12671
      /**
12672
       * Find the _Fields constant that matches fieldId, or null if its not found.
12673
       */
12674
      public static _Fields findByThriftId(int fieldId) {
12675
        switch(fieldId) {
12676
          case 1: // ITEM_ID
12677
            return ITEM_ID;
5978 rajveer 12678
          case 2: // SOURCE_ID
12679
            return SOURCE_ID;
5945 mandeep.dh 12680
          default:
12681
            return null;
12682
        }
12683
      }
12684
 
12685
      /**
12686
       * Find the _Fields constant that matches fieldId, throwing an exception
12687
       * if it is not found.
12688
       */
12689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12690
        _Fields fields = findByThriftId(fieldId);
12691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12692
        return fields;
12693
      }
12694
 
12695
      /**
12696
       * Find the _Fields constant that matches name, or null if its not found.
12697
       */
12698
      public static _Fields findByName(String name) {
12699
        return byName.get(name);
12700
      }
12701
 
12702
      private final short _thriftId;
12703
      private final String _fieldName;
12704
 
12705
      _Fields(short thriftId, String fieldName) {
12706
        _thriftId = thriftId;
12707
        _fieldName = fieldName;
12708
      }
12709
 
12710
      public short getThriftFieldId() {
12711
        return _thriftId;
12712
      }
12713
 
12714
      public String getFieldName() {
12715
        return _fieldName;
12716
      }
12717
    }
12718
 
12719
    // isset id assignments
12720
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 12721
    private static final int __SOURCEID_ISSET_ID = 1;
12722
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 12723
 
12724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12725
    static {
12726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12727
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 12729
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 12731
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12732
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
12733
    }
12734
 
12735
    public getItemAvailabilityAtLocation_args() {
12736
    }
12737
 
12738
    public getItemAvailabilityAtLocation_args(
5978 rajveer 12739
      long itemId,
12740
      long sourceId)
5945 mandeep.dh 12741
    {
12742
      this();
12743
      this.itemId = itemId;
12744
      setItemIdIsSet(true);
5978 rajveer 12745
      this.sourceId = sourceId;
12746
      setSourceIdIsSet(true);
5945 mandeep.dh 12747
    }
12748
 
12749
    /**
12750
     * Performs a deep copy on <i>other</i>.
12751
     */
12752
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
12753
      __isset_bit_vector.clear();
12754
      __isset_bit_vector.or(other.__isset_bit_vector);
12755
      this.itemId = other.itemId;
5978 rajveer 12756
      this.sourceId = other.sourceId;
5945 mandeep.dh 12757
    }
12758
 
12759
    public getItemAvailabilityAtLocation_args deepCopy() {
12760
      return new getItemAvailabilityAtLocation_args(this);
12761
    }
12762
 
12763
    @Override
12764
    public void clear() {
12765
      setItemIdIsSet(false);
12766
      this.itemId = 0;
5978 rajveer 12767
      setSourceIdIsSet(false);
12768
      this.sourceId = 0;
5945 mandeep.dh 12769
    }
12770
 
12771
    public long getItemId() {
12772
      return this.itemId;
12773
    }
12774
 
12775
    public void setItemId(long itemId) {
12776
      this.itemId = itemId;
12777
      setItemIdIsSet(true);
12778
    }
12779
 
12780
    public void unsetItemId() {
12781
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
12782
    }
12783
 
12784
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
12785
    public boolean isSetItemId() {
12786
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
12787
    }
12788
 
12789
    public void setItemIdIsSet(boolean value) {
12790
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
12791
    }
12792
 
5978 rajveer 12793
    public long getSourceId() {
12794
      return this.sourceId;
12795
    }
12796
 
12797
    public void setSourceId(long sourceId) {
12798
      this.sourceId = sourceId;
12799
      setSourceIdIsSet(true);
12800
    }
12801
 
12802
    public void unsetSourceId() {
12803
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
12804
    }
12805
 
12806
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
12807
    public boolean isSetSourceId() {
12808
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
12809
    }
12810
 
12811
    public void setSourceIdIsSet(boolean value) {
12812
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
12813
    }
12814
 
5945 mandeep.dh 12815
    public void setFieldValue(_Fields field, Object value) {
12816
      switch (field) {
12817
      case ITEM_ID:
12818
        if (value == null) {
12819
          unsetItemId();
12820
        } else {
12821
          setItemId((Long)value);
12822
        }
12823
        break;
12824
 
5978 rajveer 12825
      case SOURCE_ID:
12826
        if (value == null) {
12827
          unsetSourceId();
12828
        } else {
12829
          setSourceId((Long)value);
12830
        }
12831
        break;
12832
 
5945 mandeep.dh 12833
      }
12834
    }
12835
 
12836
    public Object getFieldValue(_Fields field) {
12837
      switch (field) {
12838
      case ITEM_ID:
12839
        return Long.valueOf(getItemId());
12840
 
5978 rajveer 12841
      case SOURCE_ID:
12842
        return Long.valueOf(getSourceId());
12843
 
5945 mandeep.dh 12844
      }
12845
      throw new IllegalStateException();
12846
    }
12847
 
12848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12849
    public boolean isSet(_Fields field) {
12850
      if (field == null) {
12851
        throw new IllegalArgumentException();
12852
      }
12853
 
12854
      switch (field) {
12855
      case ITEM_ID:
12856
        return isSetItemId();
5978 rajveer 12857
      case SOURCE_ID:
12858
        return isSetSourceId();
5945 mandeep.dh 12859
      }
12860
      throw new IllegalStateException();
12861
    }
12862
 
12863
    @Override
12864
    public boolean equals(Object that) {
12865
      if (that == null)
12866
        return false;
12867
      if (that instanceof getItemAvailabilityAtLocation_args)
12868
        return this.equals((getItemAvailabilityAtLocation_args)that);
12869
      return false;
12870
    }
12871
 
12872
    public boolean equals(getItemAvailabilityAtLocation_args that) {
12873
      if (that == null)
12874
        return false;
12875
 
12876
      boolean this_present_itemId = true;
12877
      boolean that_present_itemId = true;
12878
      if (this_present_itemId || that_present_itemId) {
12879
        if (!(this_present_itemId && that_present_itemId))
12880
          return false;
12881
        if (this.itemId != that.itemId)
12882
          return false;
12883
      }
12884
 
5978 rajveer 12885
      boolean this_present_sourceId = true;
12886
      boolean that_present_sourceId = true;
12887
      if (this_present_sourceId || that_present_sourceId) {
12888
        if (!(this_present_sourceId && that_present_sourceId))
12889
          return false;
12890
        if (this.sourceId != that.sourceId)
12891
          return false;
12892
      }
12893
 
5945 mandeep.dh 12894
      return true;
12895
    }
12896
 
12897
    @Override
12898
    public int hashCode() {
12899
      return 0;
12900
    }
12901
 
12902
    public int compareTo(getItemAvailabilityAtLocation_args other) {
12903
      if (!getClass().equals(other.getClass())) {
12904
        return getClass().getName().compareTo(other.getClass().getName());
12905
      }
12906
 
12907
      int lastComparison = 0;
12908
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
12909
 
12910
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
12911
      if (lastComparison != 0) {
12912
        return lastComparison;
12913
      }
12914
      if (isSetItemId()) {
12915
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
12916
        if (lastComparison != 0) {
12917
          return lastComparison;
12918
        }
12919
      }
5978 rajveer 12920
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
12921
      if (lastComparison != 0) {
12922
        return lastComparison;
12923
      }
12924
      if (isSetSourceId()) {
12925
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
12926
        if (lastComparison != 0) {
12927
          return lastComparison;
12928
        }
12929
      }
5945 mandeep.dh 12930
      return 0;
12931
    }
12932
 
12933
    public _Fields fieldForId(int fieldId) {
12934
      return _Fields.findByThriftId(fieldId);
12935
    }
12936
 
12937
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12938
      org.apache.thrift.protocol.TField field;
12939
      iprot.readStructBegin();
12940
      while (true)
12941
      {
12942
        field = iprot.readFieldBegin();
12943
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12944
          break;
12945
        }
12946
        switch (field.id) {
12947
          case 1: // ITEM_ID
12948
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12949
              this.itemId = iprot.readI64();
12950
              setItemIdIsSet(true);
12951
            } else { 
12952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12953
            }
12954
            break;
5978 rajveer 12955
          case 2: // SOURCE_ID
12956
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12957
              this.sourceId = iprot.readI64();
12958
              setSourceIdIsSet(true);
12959
            } else { 
12960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12961
            }
12962
            break;
5945 mandeep.dh 12963
          default:
12964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12965
        }
12966
        iprot.readFieldEnd();
12967
      }
12968
      iprot.readStructEnd();
12969
      validate();
12970
    }
12971
 
12972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12973
      validate();
12974
 
12975
      oprot.writeStructBegin(STRUCT_DESC);
12976
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
12977
      oprot.writeI64(this.itemId);
12978
      oprot.writeFieldEnd();
5978 rajveer 12979
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
12980
      oprot.writeI64(this.sourceId);
12981
      oprot.writeFieldEnd();
5945 mandeep.dh 12982
      oprot.writeFieldStop();
12983
      oprot.writeStructEnd();
12984
    }
12985
 
12986
    @Override
12987
    public String toString() {
12988
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
12989
      boolean first = true;
12990
 
12991
      sb.append("itemId:");
12992
      sb.append(this.itemId);
12993
      first = false;
5978 rajveer 12994
      if (!first) sb.append(", ");
12995
      sb.append("sourceId:");
12996
      sb.append(this.sourceId);
12997
      first = false;
5945 mandeep.dh 12998
      sb.append(")");
12999
      return sb.toString();
13000
    }
13001
 
13002
    public void validate() throws org.apache.thrift.TException {
13003
      // check for required fields
13004
    }
13005
 
13006
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13007
      try {
13008
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13009
      } catch (org.apache.thrift.TException te) {
13010
        throw new java.io.IOException(te);
13011
      }
13012
    }
13013
 
13014
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13015
      try {
13016
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13017
      } catch (org.apache.thrift.TException te) {
13018
        throw new java.io.IOException(te);
13019
      }
13020
    }
13021
 
13022
  }
13023
 
13024
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
13025
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
13026
 
13027
    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);
13028
    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);
13029
 
13030
    private List<Long> success; // required
13031
    private InventoryServiceException isex; // required
13032
 
13033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13035
      SUCCESS((short)0, "success"),
13036
      ISEX((short)1, "isex");
13037
 
13038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13039
 
13040
      static {
13041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13042
          byName.put(field.getFieldName(), field);
13043
        }
13044
      }
13045
 
13046
      /**
13047
       * Find the _Fields constant that matches fieldId, or null if its not found.
13048
       */
13049
      public static _Fields findByThriftId(int fieldId) {
13050
        switch(fieldId) {
13051
          case 0: // SUCCESS
13052
            return SUCCESS;
13053
          case 1: // ISEX
13054
            return ISEX;
13055
          default:
13056
            return null;
13057
        }
13058
      }
13059
 
13060
      /**
13061
       * Find the _Fields constant that matches fieldId, throwing an exception
13062
       * if it is not found.
13063
       */
13064
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13065
        _Fields fields = findByThriftId(fieldId);
13066
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13067
        return fields;
13068
      }
13069
 
13070
      /**
13071
       * Find the _Fields constant that matches name, or null if its not found.
13072
       */
13073
      public static _Fields findByName(String name) {
13074
        return byName.get(name);
13075
      }
13076
 
13077
      private final short _thriftId;
13078
      private final String _fieldName;
13079
 
13080
      _Fields(short thriftId, String fieldName) {
13081
        _thriftId = thriftId;
13082
        _fieldName = fieldName;
13083
      }
13084
 
13085
      public short getThriftFieldId() {
13086
        return _thriftId;
13087
      }
13088
 
13089
      public String getFieldName() {
13090
        return _fieldName;
13091
      }
13092
    }
13093
 
13094
    // isset id assignments
13095
 
13096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13097
    static {
13098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13099
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13100
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13101
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13102
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13103
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13104
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13105
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
13106
    }
13107
 
13108
    public getItemAvailabilityAtLocation_result() {
13109
    }
13110
 
13111
    public getItemAvailabilityAtLocation_result(
13112
      List<Long> success,
13113
      InventoryServiceException isex)
13114
    {
13115
      this();
13116
      this.success = success;
13117
      this.isex = isex;
13118
    }
13119
 
13120
    /**
13121
     * Performs a deep copy on <i>other</i>.
13122
     */
13123
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
13124
      if (other.isSetSuccess()) {
13125
        List<Long> __this__success = new ArrayList<Long>();
13126
        for (Long other_element : other.success) {
13127
          __this__success.add(other_element);
13128
        }
13129
        this.success = __this__success;
13130
      }
13131
      if (other.isSetIsex()) {
13132
        this.isex = new InventoryServiceException(other.isex);
13133
      }
13134
    }
13135
 
13136
    public getItemAvailabilityAtLocation_result deepCopy() {
13137
      return new getItemAvailabilityAtLocation_result(this);
13138
    }
13139
 
13140
    @Override
13141
    public void clear() {
13142
      this.success = null;
13143
      this.isex = null;
13144
    }
13145
 
13146
    public int getSuccessSize() {
13147
      return (this.success == null) ? 0 : this.success.size();
13148
    }
13149
 
13150
    public java.util.Iterator<Long> getSuccessIterator() {
13151
      return (this.success == null) ? null : this.success.iterator();
13152
    }
13153
 
13154
    public void addToSuccess(long elem) {
13155
      if (this.success == null) {
13156
        this.success = new ArrayList<Long>();
13157
      }
13158
      this.success.add(elem);
13159
    }
13160
 
13161
    public List<Long> getSuccess() {
13162
      return this.success;
13163
    }
13164
 
13165
    public void setSuccess(List<Long> success) {
13166
      this.success = success;
13167
    }
13168
 
13169
    public void unsetSuccess() {
13170
      this.success = null;
13171
    }
13172
 
13173
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13174
    public boolean isSetSuccess() {
13175
      return this.success != null;
13176
    }
13177
 
13178
    public void setSuccessIsSet(boolean value) {
13179
      if (!value) {
13180
        this.success = null;
13181
      }
13182
    }
13183
 
13184
    public InventoryServiceException getIsex() {
13185
      return this.isex;
13186
    }
13187
 
13188
    public void setIsex(InventoryServiceException isex) {
13189
      this.isex = isex;
13190
    }
13191
 
13192
    public void unsetIsex() {
13193
      this.isex = null;
13194
    }
13195
 
13196
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
13197
    public boolean isSetIsex() {
13198
      return this.isex != null;
13199
    }
13200
 
13201
    public void setIsexIsSet(boolean value) {
13202
      if (!value) {
13203
        this.isex = null;
13204
      }
13205
    }
13206
 
13207
    public void setFieldValue(_Fields field, Object value) {
13208
      switch (field) {
13209
      case SUCCESS:
13210
        if (value == null) {
13211
          unsetSuccess();
13212
        } else {
13213
          setSuccess((List<Long>)value);
13214
        }
13215
        break;
13216
 
13217
      case ISEX:
13218
        if (value == null) {
13219
          unsetIsex();
13220
        } else {
13221
          setIsex((InventoryServiceException)value);
13222
        }
13223
        break;
13224
 
13225
      }
13226
    }
13227
 
13228
    public Object getFieldValue(_Fields field) {
13229
      switch (field) {
13230
      case SUCCESS:
13231
        return getSuccess();
13232
 
13233
      case ISEX:
13234
        return getIsex();
13235
 
13236
      }
13237
      throw new IllegalStateException();
13238
    }
13239
 
13240
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13241
    public boolean isSet(_Fields field) {
13242
      if (field == null) {
13243
        throw new IllegalArgumentException();
13244
      }
13245
 
13246
      switch (field) {
13247
      case SUCCESS:
13248
        return isSetSuccess();
13249
      case ISEX:
13250
        return isSetIsex();
13251
      }
13252
      throw new IllegalStateException();
13253
    }
13254
 
13255
    @Override
13256
    public boolean equals(Object that) {
13257
      if (that == null)
13258
        return false;
13259
      if (that instanceof getItemAvailabilityAtLocation_result)
13260
        return this.equals((getItemAvailabilityAtLocation_result)that);
13261
      return false;
13262
    }
13263
 
13264
    public boolean equals(getItemAvailabilityAtLocation_result that) {
13265
      if (that == null)
13266
        return false;
13267
 
13268
      boolean this_present_success = true && this.isSetSuccess();
13269
      boolean that_present_success = true && that.isSetSuccess();
13270
      if (this_present_success || that_present_success) {
13271
        if (!(this_present_success && that_present_success))
13272
          return false;
13273
        if (!this.success.equals(that.success))
13274
          return false;
13275
      }
13276
 
13277
      boolean this_present_isex = true && this.isSetIsex();
13278
      boolean that_present_isex = true && that.isSetIsex();
13279
      if (this_present_isex || that_present_isex) {
13280
        if (!(this_present_isex && that_present_isex))
13281
          return false;
13282
        if (!this.isex.equals(that.isex))
13283
          return false;
13284
      }
13285
 
13286
      return true;
13287
    }
13288
 
13289
    @Override
13290
    public int hashCode() {
13291
      return 0;
13292
    }
13293
 
13294
    public int compareTo(getItemAvailabilityAtLocation_result other) {
13295
      if (!getClass().equals(other.getClass())) {
13296
        return getClass().getName().compareTo(other.getClass().getName());
13297
      }
13298
 
13299
      int lastComparison = 0;
13300
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
13301
 
13302
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13303
      if (lastComparison != 0) {
13304
        return lastComparison;
13305
      }
13306
      if (isSetSuccess()) {
13307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13308
        if (lastComparison != 0) {
13309
          return lastComparison;
13310
        }
13311
      }
13312
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
13313
      if (lastComparison != 0) {
13314
        return lastComparison;
13315
      }
13316
      if (isSetIsex()) {
13317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
13318
        if (lastComparison != 0) {
13319
          return lastComparison;
13320
        }
13321
      }
13322
      return 0;
13323
    }
13324
 
13325
    public _Fields fieldForId(int fieldId) {
13326
      return _Fields.findByThriftId(fieldId);
13327
    }
13328
 
13329
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13330
      org.apache.thrift.protocol.TField field;
13331
      iprot.readStructBegin();
13332
      while (true)
13333
      {
13334
        field = iprot.readFieldBegin();
13335
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13336
          break;
13337
        }
13338
        switch (field.id) {
13339
          case 0: // SUCCESS
13340
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13341
              {
8182 amar.kumar 13342
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
13343
                this.success = new ArrayList<Long>(_list25.size);
13344
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
5945 mandeep.dh 13345
                {
8182 amar.kumar 13346
                  long _elem27; // required
13347
                  _elem27 = iprot.readI64();
13348
                  this.success.add(_elem27);
5945 mandeep.dh 13349
                }
13350
                iprot.readListEnd();
13351
              }
13352
            } else { 
13353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13354
            }
13355
            break;
13356
          case 1: // ISEX
13357
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13358
              this.isex = new InventoryServiceException();
13359
              this.isex.read(iprot);
13360
            } else { 
13361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13362
            }
13363
            break;
13364
          default:
13365
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13366
        }
13367
        iprot.readFieldEnd();
13368
      }
13369
      iprot.readStructEnd();
13370
      validate();
13371
    }
13372
 
13373
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13374
      oprot.writeStructBegin(STRUCT_DESC);
13375
 
13376
      if (this.isSetSuccess()) {
13377
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13378
        {
13379
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 13380
          for (long _iter28 : this.success)
5945 mandeep.dh 13381
          {
8182 amar.kumar 13382
            oprot.writeI64(_iter28);
5945 mandeep.dh 13383
          }
13384
          oprot.writeListEnd();
13385
        }
13386
        oprot.writeFieldEnd();
13387
      } else if (this.isSetIsex()) {
13388
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
13389
        this.isex.write(oprot);
13390
        oprot.writeFieldEnd();
13391
      }
13392
      oprot.writeFieldStop();
13393
      oprot.writeStructEnd();
13394
    }
13395
 
13396
    @Override
13397
    public String toString() {
13398
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
13399
      boolean first = true;
13400
 
13401
      sb.append("success:");
13402
      if (this.success == null) {
13403
        sb.append("null");
13404
      } else {
13405
        sb.append(this.success);
13406
      }
13407
      first = false;
13408
      if (!first) sb.append(", ");
13409
      sb.append("isex:");
13410
      if (this.isex == null) {
13411
        sb.append("null");
13412
      } else {
13413
        sb.append(this.isex);
13414
      }
13415
      first = false;
13416
      sb.append(")");
13417
      return sb.toString();
13418
    }
13419
 
13420
    public void validate() throws org.apache.thrift.TException {
13421
      // check for required fields
13422
    }
13423
 
13424
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13425
      try {
13426
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13427
      } catch (org.apache.thrift.TException te) {
13428
        throw new java.io.IOException(te);
13429
      }
13430
    }
13431
 
13432
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13433
      try {
13434
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13435
      } catch (org.apache.thrift.TException te) {
13436
        throw new java.io.IOException(te);
13437
      }
13438
    }
13439
 
13440
  }
13441
 
13442
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
13443
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
13444
 
13445
    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);
13446
 
13447
    private boolean isActive; // required
13448
 
13449
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13450
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13451
      IS_ACTIVE((short)1, "isActive");
13452
 
13453
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13454
 
13455
      static {
13456
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13457
          byName.put(field.getFieldName(), field);
13458
        }
13459
      }
13460
 
13461
      /**
13462
       * Find the _Fields constant that matches fieldId, or null if its not found.
13463
       */
13464
      public static _Fields findByThriftId(int fieldId) {
13465
        switch(fieldId) {
13466
          case 1: // IS_ACTIVE
13467
            return IS_ACTIVE;
13468
          default:
13469
            return null;
13470
        }
13471
      }
13472
 
13473
      /**
13474
       * Find the _Fields constant that matches fieldId, throwing an exception
13475
       * if it is not found.
13476
       */
13477
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13478
        _Fields fields = findByThriftId(fieldId);
13479
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13480
        return fields;
13481
      }
13482
 
13483
      /**
13484
       * Find the _Fields constant that matches name, or null if its not found.
13485
       */
13486
      public static _Fields findByName(String name) {
13487
        return byName.get(name);
13488
      }
13489
 
13490
      private final short _thriftId;
13491
      private final String _fieldName;
13492
 
13493
      _Fields(short thriftId, String fieldName) {
13494
        _thriftId = thriftId;
13495
        _fieldName = fieldName;
13496
      }
13497
 
13498
      public short getThriftFieldId() {
13499
        return _thriftId;
13500
      }
13501
 
13502
      public String getFieldName() {
13503
        return _fieldName;
13504
      }
13505
    }
13506
 
13507
    // isset id assignments
13508
    private static final int __ISACTIVE_ISSET_ID = 0;
13509
    private BitSet __isset_bit_vector = new BitSet(1);
13510
 
13511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13512
    static {
13513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13514
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
13518
    }
13519
 
13520
    public getAllWarehouses_args() {
13521
    }
13522
 
13523
    public getAllWarehouses_args(
13524
      boolean isActive)
13525
    {
13526
      this();
13527
      this.isActive = isActive;
13528
      setIsActiveIsSet(true);
13529
    }
13530
 
13531
    /**
13532
     * Performs a deep copy on <i>other</i>.
13533
     */
13534
    public getAllWarehouses_args(getAllWarehouses_args other) {
13535
      __isset_bit_vector.clear();
13536
      __isset_bit_vector.or(other.__isset_bit_vector);
13537
      this.isActive = other.isActive;
13538
    }
13539
 
13540
    public getAllWarehouses_args deepCopy() {
13541
      return new getAllWarehouses_args(this);
13542
    }
13543
 
13544
    @Override
13545
    public void clear() {
13546
      setIsActiveIsSet(false);
13547
      this.isActive = false;
13548
    }
13549
 
13550
    public boolean isIsActive() {
13551
      return this.isActive;
13552
    }
13553
 
13554
    public void setIsActive(boolean isActive) {
13555
      this.isActive = isActive;
13556
      setIsActiveIsSet(true);
13557
    }
13558
 
13559
    public void unsetIsActive() {
13560
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
13561
    }
13562
 
13563
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
13564
    public boolean isSetIsActive() {
13565
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
13566
    }
13567
 
13568
    public void setIsActiveIsSet(boolean value) {
13569
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
13570
    }
13571
 
13572
    public void setFieldValue(_Fields field, Object value) {
13573
      switch (field) {
13574
      case IS_ACTIVE:
13575
        if (value == null) {
13576
          unsetIsActive();
13577
        } else {
13578
          setIsActive((Boolean)value);
13579
        }
13580
        break;
13581
 
13582
      }
13583
    }
13584
 
13585
    public Object getFieldValue(_Fields field) {
13586
      switch (field) {
13587
      case IS_ACTIVE:
13588
        return Boolean.valueOf(isIsActive());
13589
 
13590
      }
13591
      throw new IllegalStateException();
13592
    }
13593
 
13594
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13595
    public boolean isSet(_Fields field) {
13596
      if (field == null) {
13597
        throw new IllegalArgumentException();
13598
      }
13599
 
13600
      switch (field) {
13601
      case IS_ACTIVE:
13602
        return isSetIsActive();
13603
      }
13604
      throw new IllegalStateException();
13605
    }
13606
 
13607
    @Override
13608
    public boolean equals(Object that) {
13609
      if (that == null)
13610
        return false;
13611
      if (that instanceof getAllWarehouses_args)
13612
        return this.equals((getAllWarehouses_args)that);
13613
      return false;
13614
    }
13615
 
13616
    public boolean equals(getAllWarehouses_args that) {
13617
      if (that == null)
13618
        return false;
13619
 
13620
      boolean this_present_isActive = true;
13621
      boolean that_present_isActive = true;
13622
      if (this_present_isActive || that_present_isActive) {
13623
        if (!(this_present_isActive && that_present_isActive))
13624
          return false;
13625
        if (this.isActive != that.isActive)
13626
          return false;
13627
      }
13628
 
13629
      return true;
13630
    }
13631
 
13632
    @Override
13633
    public int hashCode() {
13634
      return 0;
13635
    }
13636
 
13637
    public int compareTo(getAllWarehouses_args other) {
13638
      if (!getClass().equals(other.getClass())) {
13639
        return getClass().getName().compareTo(other.getClass().getName());
13640
      }
13641
 
13642
      int lastComparison = 0;
13643
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
13644
 
13645
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
13646
      if (lastComparison != 0) {
13647
        return lastComparison;
13648
      }
13649
      if (isSetIsActive()) {
13650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
13651
        if (lastComparison != 0) {
13652
          return lastComparison;
13653
        }
13654
      }
13655
      return 0;
13656
    }
13657
 
13658
    public _Fields fieldForId(int fieldId) {
13659
      return _Fields.findByThriftId(fieldId);
13660
    }
13661
 
13662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13663
      org.apache.thrift.protocol.TField field;
13664
      iprot.readStructBegin();
13665
      while (true)
13666
      {
13667
        field = iprot.readFieldBegin();
13668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13669
          break;
13670
        }
13671
        switch (field.id) {
13672
          case 1: // IS_ACTIVE
13673
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13674
              this.isActive = iprot.readBool();
13675
              setIsActiveIsSet(true);
13676
            } else { 
13677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13678
            }
13679
            break;
13680
          default:
13681
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13682
        }
13683
        iprot.readFieldEnd();
13684
      }
13685
      iprot.readStructEnd();
13686
      validate();
13687
    }
13688
 
13689
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13690
      validate();
13691
 
13692
      oprot.writeStructBegin(STRUCT_DESC);
13693
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
13694
      oprot.writeBool(this.isActive);
13695
      oprot.writeFieldEnd();
13696
      oprot.writeFieldStop();
13697
      oprot.writeStructEnd();
13698
    }
13699
 
13700
    @Override
13701
    public String toString() {
13702
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
13703
      boolean first = true;
13704
 
13705
      sb.append("isActive:");
13706
      sb.append(this.isActive);
13707
      first = false;
13708
      sb.append(")");
13709
      return sb.toString();
13710
    }
13711
 
13712
    public void validate() throws org.apache.thrift.TException {
13713
      // check for required fields
13714
    }
13715
 
13716
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13717
      try {
13718
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13719
      } catch (org.apache.thrift.TException te) {
13720
        throw new java.io.IOException(te);
13721
      }
13722
    }
13723
 
13724
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13725
      try {
7968 amar.kumar 13726
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13727
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 13728
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13729
      } catch (org.apache.thrift.TException te) {
13730
        throw new java.io.IOException(te);
13731
      }
13732
    }
13733
 
13734
  }
13735
 
13736
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
13737
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
13738
 
13739
    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);
13740
    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);
13741
 
13742
    private List<Warehouse> success; // required
13743
    private InventoryServiceException cex; // required
13744
 
13745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13747
      SUCCESS((short)0, "success"),
13748
      CEX((short)1, "cex");
13749
 
13750
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13751
 
13752
      static {
13753
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13754
          byName.put(field.getFieldName(), field);
13755
        }
13756
      }
13757
 
13758
      /**
13759
       * Find the _Fields constant that matches fieldId, or null if its not found.
13760
       */
13761
      public static _Fields findByThriftId(int fieldId) {
13762
        switch(fieldId) {
13763
          case 0: // SUCCESS
13764
            return SUCCESS;
13765
          case 1: // CEX
13766
            return CEX;
13767
          default:
13768
            return null;
13769
        }
13770
      }
13771
 
13772
      /**
13773
       * Find the _Fields constant that matches fieldId, throwing an exception
13774
       * if it is not found.
13775
       */
13776
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13777
        _Fields fields = findByThriftId(fieldId);
13778
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13779
        return fields;
13780
      }
13781
 
13782
      /**
13783
       * Find the _Fields constant that matches name, or null if its not found.
13784
       */
13785
      public static _Fields findByName(String name) {
13786
        return byName.get(name);
13787
      }
13788
 
13789
      private final short _thriftId;
13790
      private final String _fieldName;
13791
 
13792
      _Fields(short thriftId, String fieldName) {
13793
        _thriftId = thriftId;
13794
        _fieldName = fieldName;
13795
      }
13796
 
13797
      public short getThriftFieldId() {
13798
        return _thriftId;
13799
      }
13800
 
13801
      public String getFieldName() {
13802
        return _fieldName;
13803
      }
13804
    }
13805
 
13806
    // isset id assignments
13807
 
13808
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13809
    static {
13810
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13811
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13812
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13813
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
13814
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13815
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
13818
    }
13819
 
13820
    public getAllWarehouses_result() {
13821
    }
13822
 
13823
    public getAllWarehouses_result(
13824
      List<Warehouse> success,
13825
      InventoryServiceException cex)
13826
    {
13827
      this();
13828
      this.success = success;
13829
      this.cex = cex;
13830
    }
13831
 
13832
    /**
13833
     * Performs a deep copy on <i>other</i>.
13834
     */
13835
    public getAllWarehouses_result(getAllWarehouses_result other) {
13836
      if (other.isSetSuccess()) {
13837
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
13838
        for (Warehouse other_element : other.success) {
13839
          __this__success.add(new Warehouse(other_element));
13840
        }
13841
        this.success = __this__success;
13842
      }
13843
      if (other.isSetCex()) {
13844
        this.cex = new InventoryServiceException(other.cex);
13845
      }
13846
    }
13847
 
13848
    public getAllWarehouses_result deepCopy() {
13849
      return new getAllWarehouses_result(this);
13850
    }
13851
 
13852
    @Override
13853
    public void clear() {
13854
      this.success = null;
13855
      this.cex = null;
13856
    }
13857
 
13858
    public int getSuccessSize() {
13859
      return (this.success == null) ? 0 : this.success.size();
13860
    }
13861
 
13862
    public java.util.Iterator<Warehouse> getSuccessIterator() {
13863
      return (this.success == null) ? null : this.success.iterator();
13864
    }
13865
 
13866
    public void addToSuccess(Warehouse elem) {
13867
      if (this.success == null) {
13868
        this.success = new ArrayList<Warehouse>();
13869
      }
13870
      this.success.add(elem);
13871
    }
13872
 
13873
    public List<Warehouse> getSuccess() {
13874
      return this.success;
13875
    }
13876
 
13877
    public void setSuccess(List<Warehouse> success) {
13878
      this.success = success;
13879
    }
13880
 
13881
    public void unsetSuccess() {
13882
      this.success = null;
13883
    }
13884
 
13885
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13886
    public boolean isSetSuccess() {
13887
      return this.success != null;
13888
    }
13889
 
13890
    public void setSuccessIsSet(boolean value) {
13891
      if (!value) {
13892
        this.success = null;
13893
      }
13894
    }
13895
 
13896
    public InventoryServiceException getCex() {
13897
      return this.cex;
13898
    }
13899
 
13900
    public void setCex(InventoryServiceException cex) {
13901
      this.cex = cex;
13902
    }
13903
 
13904
    public void unsetCex() {
13905
      this.cex = null;
13906
    }
13907
 
13908
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
13909
    public boolean isSetCex() {
13910
      return this.cex != null;
13911
    }
13912
 
13913
    public void setCexIsSet(boolean value) {
13914
      if (!value) {
13915
        this.cex = null;
13916
      }
13917
    }
13918
 
13919
    public void setFieldValue(_Fields field, Object value) {
13920
      switch (field) {
13921
      case SUCCESS:
13922
        if (value == null) {
13923
          unsetSuccess();
13924
        } else {
13925
          setSuccess((List<Warehouse>)value);
13926
        }
13927
        break;
13928
 
13929
      case CEX:
13930
        if (value == null) {
13931
          unsetCex();
13932
        } else {
13933
          setCex((InventoryServiceException)value);
13934
        }
13935
        break;
13936
 
13937
      }
13938
    }
13939
 
13940
    public Object getFieldValue(_Fields field) {
13941
      switch (field) {
13942
      case SUCCESS:
13943
        return getSuccess();
13944
 
13945
      case CEX:
13946
        return getCex();
13947
 
13948
      }
13949
      throw new IllegalStateException();
13950
    }
13951
 
13952
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13953
    public boolean isSet(_Fields field) {
13954
      if (field == null) {
13955
        throw new IllegalArgumentException();
13956
      }
13957
 
13958
      switch (field) {
13959
      case SUCCESS:
13960
        return isSetSuccess();
13961
      case CEX:
13962
        return isSetCex();
13963
      }
13964
      throw new IllegalStateException();
13965
    }
13966
 
13967
    @Override
13968
    public boolean equals(Object that) {
13969
      if (that == null)
13970
        return false;
13971
      if (that instanceof getAllWarehouses_result)
13972
        return this.equals((getAllWarehouses_result)that);
13973
      return false;
13974
    }
13975
 
13976
    public boolean equals(getAllWarehouses_result that) {
13977
      if (that == null)
13978
        return false;
13979
 
13980
      boolean this_present_success = true && this.isSetSuccess();
13981
      boolean that_present_success = true && that.isSetSuccess();
13982
      if (this_present_success || that_present_success) {
13983
        if (!(this_present_success && that_present_success))
13984
          return false;
13985
        if (!this.success.equals(that.success))
13986
          return false;
13987
      }
13988
 
13989
      boolean this_present_cex = true && this.isSetCex();
13990
      boolean that_present_cex = true && that.isSetCex();
13991
      if (this_present_cex || that_present_cex) {
13992
        if (!(this_present_cex && that_present_cex))
13993
          return false;
13994
        if (!this.cex.equals(that.cex))
13995
          return false;
13996
      }
13997
 
13998
      return true;
13999
    }
14000
 
14001
    @Override
14002
    public int hashCode() {
14003
      return 0;
14004
    }
14005
 
14006
    public int compareTo(getAllWarehouses_result other) {
14007
      if (!getClass().equals(other.getClass())) {
14008
        return getClass().getName().compareTo(other.getClass().getName());
14009
      }
14010
 
14011
      int lastComparison = 0;
14012
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
14013
 
14014
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14015
      if (lastComparison != 0) {
14016
        return lastComparison;
14017
      }
14018
      if (isSetSuccess()) {
14019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14020
        if (lastComparison != 0) {
14021
          return lastComparison;
14022
        }
14023
      }
14024
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14025
      if (lastComparison != 0) {
14026
        return lastComparison;
14027
      }
14028
      if (isSetCex()) {
14029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14030
        if (lastComparison != 0) {
14031
          return lastComparison;
14032
        }
14033
      }
14034
      return 0;
14035
    }
14036
 
14037
    public _Fields fieldForId(int fieldId) {
14038
      return _Fields.findByThriftId(fieldId);
14039
    }
14040
 
14041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14042
      org.apache.thrift.protocol.TField field;
14043
      iprot.readStructBegin();
14044
      while (true)
14045
      {
14046
        field = iprot.readFieldBegin();
14047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14048
          break;
14049
        }
14050
        switch (field.id) {
14051
          case 0: // SUCCESS
14052
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14053
              {
8182 amar.kumar 14054
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
14055
                this.success = new ArrayList<Warehouse>(_list29.size);
14056
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
5945 mandeep.dh 14057
                {
8182 amar.kumar 14058
                  Warehouse _elem31; // required
14059
                  _elem31 = new Warehouse();
14060
                  _elem31.read(iprot);
14061
                  this.success.add(_elem31);
5945 mandeep.dh 14062
                }
14063
                iprot.readListEnd();
14064
              }
14065
            } else { 
14066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14067
            }
14068
            break;
14069
          case 1: // CEX
14070
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14071
              this.cex = new InventoryServiceException();
14072
              this.cex.read(iprot);
14073
            } else { 
14074
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14075
            }
14076
            break;
14077
          default:
14078
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14079
        }
14080
        iprot.readFieldEnd();
14081
      }
14082
      iprot.readStructEnd();
14083
      validate();
14084
    }
14085
 
14086
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14087
      oprot.writeStructBegin(STRUCT_DESC);
14088
 
14089
      if (this.isSetSuccess()) {
14090
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14091
        {
14092
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 14093
          for (Warehouse _iter32 : this.success)
5945 mandeep.dh 14094
          {
8182 amar.kumar 14095
            _iter32.write(oprot);
5945 mandeep.dh 14096
          }
14097
          oprot.writeListEnd();
14098
        }
14099
        oprot.writeFieldEnd();
14100
      } else if (this.isSetCex()) {
14101
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14102
        this.cex.write(oprot);
14103
        oprot.writeFieldEnd();
14104
      }
14105
      oprot.writeFieldStop();
14106
      oprot.writeStructEnd();
14107
    }
14108
 
14109
    @Override
14110
    public String toString() {
14111
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
14112
      boolean first = true;
14113
 
14114
      sb.append("success:");
14115
      if (this.success == null) {
14116
        sb.append("null");
14117
      } else {
14118
        sb.append(this.success);
14119
      }
14120
      first = false;
14121
      if (!first) sb.append(", ");
14122
      sb.append("cex:");
14123
      if (this.cex == null) {
14124
        sb.append("null");
14125
      } else {
14126
        sb.append(this.cex);
14127
      }
14128
      first = false;
14129
      sb.append(")");
14130
      return sb.toString();
14131
    }
14132
 
14133
    public void validate() throws org.apache.thrift.TException {
14134
      // check for required fields
14135
    }
14136
 
14137
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14138
      try {
14139
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14140
      } catch (org.apache.thrift.TException te) {
14141
        throw new java.io.IOException(te);
14142
      }
14143
    }
14144
 
14145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14146
      try {
14147
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14148
      } catch (org.apache.thrift.TException te) {
14149
        throw new java.io.IOException(te);
14150
      }
14151
    }
14152
 
14153
  }
14154
 
14155
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
14156
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
14157
 
14158
    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);
14159
 
14160
    private long warehouse_id; // required
14161
 
14162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14164
      WAREHOUSE_ID((short)1, "warehouse_id");
14165
 
14166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14167
 
14168
      static {
14169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14170
          byName.put(field.getFieldName(), field);
14171
        }
14172
      }
14173
 
14174
      /**
14175
       * Find the _Fields constant that matches fieldId, or null if its not found.
14176
       */
14177
      public static _Fields findByThriftId(int fieldId) {
14178
        switch(fieldId) {
14179
          case 1: // WAREHOUSE_ID
14180
            return WAREHOUSE_ID;
14181
          default:
14182
            return null;
14183
        }
14184
      }
14185
 
14186
      /**
14187
       * Find the _Fields constant that matches fieldId, throwing an exception
14188
       * if it is not found.
14189
       */
14190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14191
        _Fields fields = findByThriftId(fieldId);
14192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14193
        return fields;
14194
      }
14195
 
14196
      /**
14197
       * Find the _Fields constant that matches name, or null if its not found.
14198
       */
14199
      public static _Fields findByName(String name) {
14200
        return byName.get(name);
14201
      }
14202
 
14203
      private final short _thriftId;
14204
      private final String _fieldName;
14205
 
14206
      _Fields(short thriftId, String fieldName) {
14207
        _thriftId = thriftId;
14208
        _fieldName = fieldName;
14209
      }
14210
 
14211
      public short getThriftFieldId() {
14212
        return _thriftId;
14213
      }
14214
 
14215
      public String getFieldName() {
14216
        return _fieldName;
14217
      }
14218
    }
14219
 
14220
    // isset id assignments
14221
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
14222
    private BitSet __isset_bit_vector = new BitSet(1);
14223
 
14224
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14225
    static {
14226
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14227
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
14231
    }
14232
 
14233
    public getWarehouse_args() {
14234
    }
14235
 
14236
    public getWarehouse_args(
14237
      long warehouse_id)
14238
    {
14239
      this();
14240
      this.warehouse_id = warehouse_id;
14241
      setWarehouse_idIsSet(true);
14242
    }
14243
 
14244
    /**
14245
     * Performs a deep copy on <i>other</i>.
14246
     */
14247
    public getWarehouse_args(getWarehouse_args other) {
14248
      __isset_bit_vector.clear();
14249
      __isset_bit_vector.or(other.__isset_bit_vector);
14250
      this.warehouse_id = other.warehouse_id;
14251
    }
14252
 
14253
    public getWarehouse_args deepCopy() {
14254
      return new getWarehouse_args(this);
14255
    }
14256
 
14257
    @Override
14258
    public void clear() {
14259
      setWarehouse_idIsSet(false);
14260
      this.warehouse_id = 0;
14261
    }
14262
 
14263
    public long getWarehouse_id() {
14264
      return this.warehouse_id;
14265
    }
14266
 
14267
    public void setWarehouse_id(long warehouse_id) {
14268
      this.warehouse_id = warehouse_id;
14269
      setWarehouse_idIsSet(true);
14270
    }
14271
 
14272
    public void unsetWarehouse_id() {
14273
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
14274
    }
14275
 
14276
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
14277
    public boolean isSetWarehouse_id() {
14278
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
14279
    }
14280
 
14281
    public void setWarehouse_idIsSet(boolean value) {
14282
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
14283
    }
14284
 
14285
    public void setFieldValue(_Fields field, Object value) {
14286
      switch (field) {
14287
      case WAREHOUSE_ID:
14288
        if (value == null) {
14289
          unsetWarehouse_id();
14290
        } else {
14291
          setWarehouse_id((Long)value);
14292
        }
14293
        break;
14294
 
14295
      }
14296
    }
14297
 
14298
    public Object getFieldValue(_Fields field) {
14299
      switch (field) {
14300
      case WAREHOUSE_ID:
14301
        return Long.valueOf(getWarehouse_id());
14302
 
14303
      }
14304
      throw new IllegalStateException();
14305
    }
14306
 
14307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14308
    public boolean isSet(_Fields field) {
14309
      if (field == null) {
14310
        throw new IllegalArgumentException();
14311
      }
14312
 
14313
      switch (field) {
14314
      case WAREHOUSE_ID:
14315
        return isSetWarehouse_id();
14316
      }
14317
      throw new IllegalStateException();
14318
    }
14319
 
14320
    @Override
14321
    public boolean equals(Object that) {
14322
      if (that == null)
14323
        return false;
14324
      if (that instanceof getWarehouse_args)
14325
        return this.equals((getWarehouse_args)that);
14326
      return false;
14327
    }
14328
 
14329
    public boolean equals(getWarehouse_args that) {
14330
      if (that == null)
14331
        return false;
14332
 
14333
      boolean this_present_warehouse_id = true;
14334
      boolean that_present_warehouse_id = true;
14335
      if (this_present_warehouse_id || that_present_warehouse_id) {
14336
        if (!(this_present_warehouse_id && that_present_warehouse_id))
14337
          return false;
14338
        if (this.warehouse_id != that.warehouse_id)
14339
          return false;
14340
      }
14341
 
14342
      return true;
14343
    }
14344
 
14345
    @Override
14346
    public int hashCode() {
14347
      return 0;
14348
    }
14349
 
14350
    public int compareTo(getWarehouse_args other) {
14351
      if (!getClass().equals(other.getClass())) {
14352
        return getClass().getName().compareTo(other.getClass().getName());
14353
      }
14354
 
14355
      int lastComparison = 0;
14356
      getWarehouse_args typedOther = (getWarehouse_args)other;
14357
 
14358
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
14359
      if (lastComparison != 0) {
14360
        return lastComparison;
14361
      }
14362
      if (isSetWarehouse_id()) {
14363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
14364
        if (lastComparison != 0) {
14365
          return lastComparison;
14366
        }
14367
      }
14368
      return 0;
14369
    }
14370
 
14371
    public _Fields fieldForId(int fieldId) {
14372
      return _Fields.findByThriftId(fieldId);
14373
    }
14374
 
14375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14376
      org.apache.thrift.protocol.TField field;
14377
      iprot.readStructBegin();
14378
      while (true)
14379
      {
14380
        field = iprot.readFieldBegin();
14381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14382
          break;
14383
        }
14384
        switch (field.id) {
14385
          case 1: // WAREHOUSE_ID
14386
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14387
              this.warehouse_id = iprot.readI64();
14388
              setWarehouse_idIsSet(true);
14389
            } else { 
14390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14391
            }
14392
            break;
14393
          default:
14394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14395
        }
14396
        iprot.readFieldEnd();
14397
      }
14398
      iprot.readStructEnd();
14399
      validate();
14400
    }
14401
 
14402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14403
      validate();
14404
 
14405
      oprot.writeStructBegin(STRUCT_DESC);
14406
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14407
      oprot.writeI64(this.warehouse_id);
14408
      oprot.writeFieldEnd();
14409
      oprot.writeFieldStop();
14410
      oprot.writeStructEnd();
14411
    }
14412
 
14413
    @Override
14414
    public String toString() {
14415
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
14416
      boolean first = true;
14417
 
14418
      sb.append("warehouse_id:");
14419
      sb.append(this.warehouse_id);
14420
      first = false;
14421
      sb.append(")");
14422
      return sb.toString();
14423
    }
14424
 
14425
    public void validate() throws org.apache.thrift.TException {
14426
      // check for required fields
14427
    }
14428
 
14429
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14430
      try {
14431
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14432
      } catch (org.apache.thrift.TException te) {
14433
        throw new java.io.IOException(te);
14434
      }
14435
    }
14436
 
14437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14438
      try {
14439
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14440
        __isset_bit_vector = new BitSet(1);
14441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14442
      } catch (org.apache.thrift.TException te) {
14443
        throw new java.io.IOException(te);
14444
      }
14445
    }
14446
 
14447
  }
14448
 
14449
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
14450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
14451
 
14452
    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);
14453
    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);
14454
 
14455
    private Warehouse success; // required
14456
    private InventoryServiceException cex; // required
14457
 
14458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14460
      SUCCESS((short)0, "success"),
14461
      CEX((short)1, "cex");
14462
 
14463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14464
 
14465
      static {
14466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14467
          byName.put(field.getFieldName(), field);
14468
        }
14469
      }
14470
 
14471
      /**
14472
       * Find the _Fields constant that matches fieldId, or null if its not found.
14473
       */
14474
      public static _Fields findByThriftId(int fieldId) {
14475
        switch(fieldId) {
14476
          case 0: // SUCCESS
14477
            return SUCCESS;
14478
          case 1: // CEX
14479
            return CEX;
14480
          default:
14481
            return null;
14482
        }
14483
      }
14484
 
14485
      /**
14486
       * Find the _Fields constant that matches fieldId, throwing an exception
14487
       * if it is not found.
14488
       */
14489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14490
        _Fields fields = findByThriftId(fieldId);
14491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14492
        return fields;
14493
      }
14494
 
14495
      /**
14496
       * Find the _Fields constant that matches name, or null if its not found.
14497
       */
14498
      public static _Fields findByName(String name) {
14499
        return byName.get(name);
14500
      }
14501
 
14502
      private final short _thriftId;
14503
      private final String _fieldName;
14504
 
14505
      _Fields(short thriftId, String fieldName) {
14506
        _thriftId = thriftId;
14507
        _fieldName = fieldName;
14508
      }
14509
 
14510
      public short getThriftFieldId() {
14511
        return _thriftId;
14512
      }
14513
 
14514
      public String getFieldName() {
14515
        return _fieldName;
14516
      }
14517
    }
14518
 
14519
    // isset id assignments
14520
 
14521
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14522
    static {
14523
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14524
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14525
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
14526
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14528
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14529
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
14530
    }
14531
 
14532
    public getWarehouse_result() {
14533
    }
14534
 
14535
    public getWarehouse_result(
14536
      Warehouse success,
14537
      InventoryServiceException cex)
14538
    {
14539
      this();
14540
      this.success = success;
14541
      this.cex = cex;
14542
    }
14543
 
14544
    /**
14545
     * Performs a deep copy on <i>other</i>.
14546
     */
14547
    public getWarehouse_result(getWarehouse_result other) {
14548
      if (other.isSetSuccess()) {
14549
        this.success = new Warehouse(other.success);
14550
      }
14551
      if (other.isSetCex()) {
14552
        this.cex = new InventoryServiceException(other.cex);
14553
      }
14554
    }
14555
 
14556
    public getWarehouse_result deepCopy() {
14557
      return new getWarehouse_result(this);
14558
    }
14559
 
14560
    @Override
14561
    public void clear() {
14562
      this.success = null;
14563
      this.cex = null;
14564
    }
14565
 
14566
    public Warehouse getSuccess() {
14567
      return this.success;
14568
    }
14569
 
14570
    public void setSuccess(Warehouse success) {
14571
      this.success = success;
14572
    }
14573
 
14574
    public void unsetSuccess() {
14575
      this.success = null;
14576
    }
14577
 
14578
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14579
    public boolean isSetSuccess() {
14580
      return this.success != null;
14581
    }
14582
 
14583
    public void setSuccessIsSet(boolean value) {
14584
      if (!value) {
14585
        this.success = null;
14586
      }
14587
    }
14588
 
14589
    public InventoryServiceException getCex() {
14590
      return this.cex;
14591
    }
14592
 
14593
    public void setCex(InventoryServiceException cex) {
14594
      this.cex = cex;
14595
    }
14596
 
14597
    public void unsetCex() {
14598
      this.cex = null;
14599
    }
14600
 
14601
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
14602
    public boolean isSetCex() {
14603
      return this.cex != null;
14604
    }
14605
 
14606
    public void setCexIsSet(boolean value) {
14607
      if (!value) {
14608
        this.cex = null;
14609
      }
14610
    }
14611
 
14612
    public void setFieldValue(_Fields field, Object value) {
14613
      switch (field) {
14614
      case SUCCESS:
14615
        if (value == null) {
14616
          unsetSuccess();
14617
        } else {
14618
          setSuccess((Warehouse)value);
14619
        }
14620
        break;
14621
 
14622
      case CEX:
14623
        if (value == null) {
14624
          unsetCex();
14625
        } else {
14626
          setCex((InventoryServiceException)value);
14627
        }
14628
        break;
14629
 
14630
      }
14631
    }
14632
 
14633
    public Object getFieldValue(_Fields field) {
14634
      switch (field) {
14635
      case SUCCESS:
14636
        return getSuccess();
14637
 
14638
      case CEX:
14639
        return getCex();
14640
 
14641
      }
14642
      throw new IllegalStateException();
14643
    }
14644
 
14645
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14646
    public boolean isSet(_Fields field) {
14647
      if (field == null) {
14648
        throw new IllegalArgumentException();
14649
      }
14650
 
14651
      switch (field) {
14652
      case SUCCESS:
14653
        return isSetSuccess();
14654
      case CEX:
14655
        return isSetCex();
14656
      }
14657
      throw new IllegalStateException();
14658
    }
14659
 
14660
    @Override
14661
    public boolean equals(Object that) {
14662
      if (that == null)
14663
        return false;
14664
      if (that instanceof getWarehouse_result)
14665
        return this.equals((getWarehouse_result)that);
14666
      return false;
14667
    }
14668
 
14669
    public boolean equals(getWarehouse_result that) {
14670
      if (that == null)
14671
        return false;
14672
 
14673
      boolean this_present_success = true && this.isSetSuccess();
14674
      boolean that_present_success = true && that.isSetSuccess();
14675
      if (this_present_success || that_present_success) {
14676
        if (!(this_present_success && that_present_success))
14677
          return false;
14678
        if (!this.success.equals(that.success))
14679
          return false;
14680
      }
14681
 
14682
      boolean this_present_cex = true && this.isSetCex();
14683
      boolean that_present_cex = true && that.isSetCex();
14684
      if (this_present_cex || that_present_cex) {
14685
        if (!(this_present_cex && that_present_cex))
14686
          return false;
14687
        if (!this.cex.equals(that.cex))
14688
          return false;
14689
      }
14690
 
14691
      return true;
14692
    }
14693
 
14694
    @Override
14695
    public int hashCode() {
14696
      return 0;
14697
    }
14698
 
14699
    public int compareTo(getWarehouse_result other) {
14700
      if (!getClass().equals(other.getClass())) {
14701
        return getClass().getName().compareTo(other.getClass().getName());
14702
      }
14703
 
14704
      int lastComparison = 0;
14705
      getWarehouse_result typedOther = (getWarehouse_result)other;
14706
 
14707
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14708
      if (lastComparison != 0) {
14709
        return lastComparison;
14710
      }
14711
      if (isSetSuccess()) {
14712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14713
        if (lastComparison != 0) {
14714
          return lastComparison;
14715
        }
14716
      }
14717
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
14718
      if (lastComparison != 0) {
14719
        return lastComparison;
14720
      }
14721
      if (isSetCex()) {
14722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
14723
        if (lastComparison != 0) {
14724
          return lastComparison;
14725
        }
14726
      }
14727
      return 0;
14728
    }
14729
 
14730
    public _Fields fieldForId(int fieldId) {
14731
      return _Fields.findByThriftId(fieldId);
14732
    }
14733
 
14734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14735
      org.apache.thrift.protocol.TField field;
14736
      iprot.readStructBegin();
14737
      while (true)
14738
      {
14739
        field = iprot.readFieldBegin();
14740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14741
          break;
14742
        }
14743
        switch (field.id) {
14744
          case 0: // SUCCESS
14745
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14746
              this.success = new Warehouse();
14747
              this.success.read(iprot);
14748
            } else { 
14749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14750
            }
14751
            break;
14752
          case 1: // CEX
14753
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14754
              this.cex = new InventoryServiceException();
14755
              this.cex.read(iprot);
14756
            } else { 
14757
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14758
            }
14759
            break;
14760
          default:
14761
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14762
        }
14763
        iprot.readFieldEnd();
14764
      }
14765
      iprot.readStructEnd();
14766
      validate();
14767
    }
14768
 
14769
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14770
      oprot.writeStructBegin(STRUCT_DESC);
14771
 
14772
      if (this.isSetSuccess()) {
14773
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14774
        this.success.write(oprot);
14775
        oprot.writeFieldEnd();
14776
      } else if (this.isSetCex()) {
14777
        oprot.writeFieldBegin(CEX_FIELD_DESC);
14778
        this.cex.write(oprot);
14779
        oprot.writeFieldEnd();
14780
      }
14781
      oprot.writeFieldStop();
14782
      oprot.writeStructEnd();
14783
    }
14784
 
14785
    @Override
14786
    public String toString() {
14787
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
14788
      boolean first = true;
14789
 
14790
      sb.append("success:");
14791
      if (this.success == null) {
14792
        sb.append("null");
14793
      } else {
14794
        sb.append(this.success);
14795
      }
14796
      first = false;
14797
      if (!first) sb.append(", ");
14798
      sb.append("cex:");
14799
      if (this.cex == null) {
14800
        sb.append("null");
14801
      } else {
14802
        sb.append(this.cex);
14803
      }
14804
      first = false;
14805
      sb.append(")");
14806
      return sb.toString();
14807
    }
14808
 
14809
    public void validate() throws org.apache.thrift.TException {
14810
      // check for required fields
14811
    }
14812
 
14813
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14814
      try {
14815
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14816
      } catch (org.apache.thrift.TException te) {
14817
        throw new java.io.IOException(te);
14818
      }
14819
    }
14820
 
14821
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14822
      try {
14823
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14824
      } catch (org.apache.thrift.TException te) {
14825
        throw new java.io.IOException(te);
14826
      }
14827
    }
14828
 
14829
  }
14830
 
14831
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
14832
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
14833
 
14834
    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);
14835
 
14836
    private long warehouse_id; // required
14837
 
14838
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14839
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14840
      WAREHOUSE_ID((short)1, "warehouse_id");
14841
 
14842
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14843
 
14844
      static {
14845
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14846
          byName.put(field.getFieldName(), field);
14847
        }
14848
      }
14849
 
14850
      /**
14851
       * Find the _Fields constant that matches fieldId, or null if its not found.
14852
       */
14853
      public static _Fields findByThriftId(int fieldId) {
14854
        switch(fieldId) {
14855
          case 1: // WAREHOUSE_ID
14856
            return WAREHOUSE_ID;
14857
          default:
14858
            return null;
14859
        }
14860
      }
14861
 
14862
      /**
14863
       * Find the _Fields constant that matches fieldId, throwing an exception
14864
       * if it is not found.
14865
       */
14866
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14867
        _Fields fields = findByThriftId(fieldId);
14868
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14869
        return fields;
14870
      }
14871
 
14872
      /**
14873
       * Find the _Fields constant that matches name, or null if its not found.
14874
       */
14875
      public static _Fields findByName(String name) {
14876
        return byName.get(name);
14877
      }
14878
 
14879
      private final short _thriftId;
14880
      private final String _fieldName;
14881
 
14882
      _Fields(short thriftId, String fieldName) {
14883
        _thriftId = thriftId;
14884
        _fieldName = fieldName;
14885
      }
14886
 
14887
      public short getThriftFieldId() {
14888
        return _thriftId;
14889
      }
14890
 
14891
      public String getFieldName() {
14892
        return _fieldName;
14893
      }
14894
    }
14895
 
14896
    // isset id assignments
14897
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
14898
    private BitSet __isset_bit_vector = new BitSet(1);
14899
 
14900
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14901
    static {
14902
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14903
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14904
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14905
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14906
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
14907
    }
14908
 
14909
    public getAllItemsForWarehouse_args() {
14910
    }
14911
 
14912
    public getAllItemsForWarehouse_args(
14913
      long warehouse_id)
14914
    {
14915
      this();
14916
      this.warehouse_id = warehouse_id;
14917
      setWarehouse_idIsSet(true);
14918
    }
14919
 
14920
    /**
14921
     * Performs a deep copy on <i>other</i>.
14922
     */
14923
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
14924
      __isset_bit_vector.clear();
14925
      __isset_bit_vector.or(other.__isset_bit_vector);
14926
      this.warehouse_id = other.warehouse_id;
14927
    }
14928
 
14929
    public getAllItemsForWarehouse_args deepCopy() {
14930
      return new getAllItemsForWarehouse_args(this);
14931
    }
14932
 
14933
    @Override
14934
    public void clear() {
14935
      setWarehouse_idIsSet(false);
14936
      this.warehouse_id = 0;
14937
    }
14938
 
14939
    public long getWarehouse_id() {
14940
      return this.warehouse_id;
14941
    }
14942
 
14943
    public void setWarehouse_id(long warehouse_id) {
14944
      this.warehouse_id = warehouse_id;
14945
      setWarehouse_idIsSet(true);
14946
    }
14947
 
14948
    public void unsetWarehouse_id() {
14949
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
14950
    }
14951
 
14952
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
14953
    public boolean isSetWarehouse_id() {
14954
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
14955
    }
14956
 
14957
    public void setWarehouse_idIsSet(boolean value) {
14958
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
14959
    }
14960
 
14961
    public void setFieldValue(_Fields field, Object value) {
14962
      switch (field) {
14963
      case WAREHOUSE_ID:
14964
        if (value == null) {
14965
          unsetWarehouse_id();
14966
        } else {
14967
          setWarehouse_id((Long)value);
14968
        }
14969
        break;
14970
 
14971
      }
14972
    }
14973
 
14974
    public Object getFieldValue(_Fields field) {
14975
      switch (field) {
14976
      case WAREHOUSE_ID:
14977
        return Long.valueOf(getWarehouse_id());
14978
 
14979
      }
14980
      throw new IllegalStateException();
14981
    }
14982
 
14983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14984
    public boolean isSet(_Fields field) {
14985
      if (field == null) {
14986
        throw new IllegalArgumentException();
14987
      }
14988
 
14989
      switch (field) {
14990
      case WAREHOUSE_ID:
14991
        return isSetWarehouse_id();
14992
      }
14993
      throw new IllegalStateException();
14994
    }
14995
 
14996
    @Override
14997
    public boolean equals(Object that) {
14998
      if (that == null)
14999
        return false;
15000
      if (that instanceof getAllItemsForWarehouse_args)
15001
        return this.equals((getAllItemsForWarehouse_args)that);
15002
      return false;
15003
    }
15004
 
15005
    public boolean equals(getAllItemsForWarehouse_args that) {
15006
      if (that == null)
15007
        return false;
15008
 
15009
      boolean this_present_warehouse_id = true;
15010
      boolean that_present_warehouse_id = true;
15011
      if (this_present_warehouse_id || that_present_warehouse_id) {
15012
        if (!(this_present_warehouse_id && that_present_warehouse_id))
15013
          return false;
15014
        if (this.warehouse_id != that.warehouse_id)
15015
          return false;
15016
      }
15017
 
15018
      return true;
15019
    }
15020
 
15021
    @Override
15022
    public int hashCode() {
15023
      return 0;
15024
    }
15025
 
15026
    public int compareTo(getAllItemsForWarehouse_args other) {
15027
      if (!getClass().equals(other.getClass())) {
15028
        return getClass().getName().compareTo(other.getClass().getName());
15029
      }
15030
 
15031
      int lastComparison = 0;
15032
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
15033
 
15034
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
15035
      if (lastComparison != 0) {
15036
        return lastComparison;
15037
      }
15038
      if (isSetWarehouse_id()) {
15039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
15040
        if (lastComparison != 0) {
15041
          return lastComparison;
15042
        }
15043
      }
15044
      return 0;
15045
    }
15046
 
15047
    public _Fields fieldForId(int fieldId) {
15048
      return _Fields.findByThriftId(fieldId);
15049
    }
15050
 
15051
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15052
      org.apache.thrift.protocol.TField field;
15053
      iprot.readStructBegin();
15054
      while (true)
15055
      {
15056
        field = iprot.readFieldBegin();
15057
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15058
          break;
15059
        }
15060
        switch (field.id) {
15061
          case 1: // WAREHOUSE_ID
15062
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15063
              this.warehouse_id = iprot.readI64();
15064
              setWarehouse_idIsSet(true);
15065
            } else { 
15066
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15067
            }
15068
            break;
15069
          default:
15070
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15071
        }
15072
        iprot.readFieldEnd();
15073
      }
15074
      iprot.readStructEnd();
15075
      validate();
15076
    }
15077
 
15078
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15079
      validate();
15080
 
15081
      oprot.writeStructBegin(STRUCT_DESC);
15082
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15083
      oprot.writeI64(this.warehouse_id);
15084
      oprot.writeFieldEnd();
15085
      oprot.writeFieldStop();
15086
      oprot.writeStructEnd();
15087
    }
15088
 
15089
    @Override
15090
    public String toString() {
15091
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
15092
      boolean first = true;
15093
 
15094
      sb.append("warehouse_id:");
15095
      sb.append(this.warehouse_id);
15096
      first = false;
15097
      sb.append(")");
15098
      return sb.toString();
15099
    }
15100
 
15101
    public void validate() throws org.apache.thrift.TException {
15102
      // check for required fields
15103
    }
15104
 
15105
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15106
      try {
15107
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15108
      } catch (org.apache.thrift.TException te) {
15109
        throw new java.io.IOException(te);
15110
      }
15111
    }
15112
 
15113
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15114
      try {
15115
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15116
        __isset_bit_vector = new BitSet(1);
15117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15118
      } catch (org.apache.thrift.TException te) {
15119
        throw new java.io.IOException(te);
15120
      }
15121
    }
15122
 
15123
  }
15124
 
15125
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
15126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
15127
 
15128
    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);
15129
    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);
15130
 
15131
    private List<Long> success; // required
15132
    private InventoryServiceException cex; // required
15133
 
15134
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15135
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15136
      SUCCESS((short)0, "success"),
15137
      CEX((short)1, "cex");
15138
 
15139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15140
 
15141
      static {
15142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15143
          byName.put(field.getFieldName(), field);
15144
        }
15145
      }
15146
 
15147
      /**
15148
       * Find the _Fields constant that matches fieldId, or null if its not found.
15149
       */
15150
      public static _Fields findByThriftId(int fieldId) {
15151
        switch(fieldId) {
15152
          case 0: // SUCCESS
15153
            return SUCCESS;
15154
          case 1: // CEX
15155
            return CEX;
15156
          default:
15157
            return null;
15158
        }
15159
      }
15160
 
15161
      /**
15162
       * Find the _Fields constant that matches fieldId, throwing an exception
15163
       * if it is not found.
15164
       */
15165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15166
        _Fields fields = findByThriftId(fieldId);
15167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15168
        return fields;
15169
      }
15170
 
15171
      /**
15172
       * Find the _Fields constant that matches name, or null if its not found.
15173
       */
15174
      public static _Fields findByName(String name) {
15175
        return byName.get(name);
15176
      }
15177
 
15178
      private final short _thriftId;
15179
      private final String _fieldName;
15180
 
15181
      _Fields(short thriftId, String fieldName) {
15182
        _thriftId = thriftId;
15183
        _fieldName = fieldName;
15184
      }
15185
 
15186
      public short getThriftFieldId() {
15187
        return _thriftId;
15188
      }
15189
 
15190
      public String getFieldName() {
15191
        return _fieldName;
15192
      }
15193
    }
15194
 
15195
    // isset id assignments
15196
 
15197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15198
    static {
15199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15200
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15201
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15202
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
15203
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15204
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15205
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15206
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
15207
    }
15208
 
15209
    public getAllItemsForWarehouse_result() {
15210
    }
15211
 
15212
    public getAllItemsForWarehouse_result(
15213
      List<Long> success,
15214
      InventoryServiceException cex)
15215
    {
15216
      this();
15217
      this.success = success;
15218
      this.cex = cex;
15219
    }
15220
 
15221
    /**
15222
     * Performs a deep copy on <i>other</i>.
15223
     */
15224
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
15225
      if (other.isSetSuccess()) {
15226
        List<Long> __this__success = new ArrayList<Long>();
15227
        for (Long other_element : other.success) {
15228
          __this__success.add(other_element);
15229
        }
15230
        this.success = __this__success;
15231
      }
15232
      if (other.isSetCex()) {
15233
        this.cex = new InventoryServiceException(other.cex);
15234
      }
15235
    }
15236
 
15237
    public getAllItemsForWarehouse_result deepCopy() {
15238
      return new getAllItemsForWarehouse_result(this);
15239
    }
15240
 
15241
    @Override
15242
    public void clear() {
15243
      this.success = null;
15244
      this.cex = null;
15245
    }
15246
 
15247
    public int getSuccessSize() {
15248
      return (this.success == null) ? 0 : this.success.size();
15249
    }
15250
 
15251
    public java.util.Iterator<Long> getSuccessIterator() {
15252
      return (this.success == null) ? null : this.success.iterator();
15253
    }
15254
 
15255
    public void addToSuccess(long elem) {
15256
      if (this.success == null) {
15257
        this.success = new ArrayList<Long>();
15258
      }
15259
      this.success.add(elem);
15260
    }
15261
 
15262
    public List<Long> getSuccess() {
15263
      return this.success;
15264
    }
15265
 
15266
    public void setSuccess(List<Long> success) {
15267
      this.success = success;
15268
    }
15269
 
15270
    public void unsetSuccess() {
15271
      this.success = null;
15272
    }
15273
 
15274
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15275
    public boolean isSetSuccess() {
15276
      return this.success != null;
15277
    }
15278
 
15279
    public void setSuccessIsSet(boolean value) {
15280
      if (!value) {
15281
        this.success = null;
15282
      }
15283
    }
15284
 
15285
    public InventoryServiceException getCex() {
15286
      return this.cex;
15287
    }
15288
 
15289
    public void setCex(InventoryServiceException cex) {
15290
      this.cex = cex;
15291
    }
15292
 
15293
    public void unsetCex() {
15294
      this.cex = null;
15295
    }
15296
 
15297
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15298
    public boolean isSetCex() {
15299
      return this.cex != null;
15300
    }
15301
 
15302
    public void setCexIsSet(boolean value) {
15303
      if (!value) {
15304
        this.cex = null;
15305
      }
15306
    }
15307
 
15308
    public void setFieldValue(_Fields field, Object value) {
15309
      switch (field) {
15310
      case SUCCESS:
15311
        if (value == null) {
15312
          unsetSuccess();
15313
        } else {
15314
          setSuccess((List<Long>)value);
15315
        }
15316
        break;
15317
 
15318
      case CEX:
15319
        if (value == null) {
15320
          unsetCex();
15321
        } else {
15322
          setCex((InventoryServiceException)value);
15323
        }
15324
        break;
15325
 
15326
      }
15327
    }
15328
 
15329
    public Object getFieldValue(_Fields field) {
15330
      switch (field) {
15331
      case SUCCESS:
15332
        return getSuccess();
15333
 
15334
      case CEX:
15335
        return getCex();
15336
 
15337
      }
15338
      throw new IllegalStateException();
15339
    }
15340
 
15341
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15342
    public boolean isSet(_Fields field) {
15343
      if (field == null) {
15344
        throw new IllegalArgumentException();
15345
      }
15346
 
15347
      switch (field) {
15348
      case SUCCESS:
15349
        return isSetSuccess();
15350
      case CEX:
15351
        return isSetCex();
15352
      }
15353
      throw new IllegalStateException();
15354
    }
15355
 
15356
    @Override
15357
    public boolean equals(Object that) {
15358
      if (that == null)
15359
        return false;
15360
      if (that instanceof getAllItemsForWarehouse_result)
15361
        return this.equals((getAllItemsForWarehouse_result)that);
15362
      return false;
15363
    }
15364
 
15365
    public boolean equals(getAllItemsForWarehouse_result that) {
15366
      if (that == null)
15367
        return false;
15368
 
15369
      boolean this_present_success = true && this.isSetSuccess();
15370
      boolean that_present_success = true && that.isSetSuccess();
15371
      if (this_present_success || that_present_success) {
15372
        if (!(this_present_success && that_present_success))
15373
          return false;
15374
        if (!this.success.equals(that.success))
15375
          return false;
15376
      }
15377
 
15378
      boolean this_present_cex = true && this.isSetCex();
15379
      boolean that_present_cex = true && that.isSetCex();
15380
      if (this_present_cex || that_present_cex) {
15381
        if (!(this_present_cex && that_present_cex))
15382
          return false;
15383
        if (!this.cex.equals(that.cex))
15384
          return false;
15385
      }
15386
 
15387
      return true;
15388
    }
15389
 
15390
    @Override
15391
    public int hashCode() {
15392
      return 0;
15393
    }
15394
 
15395
    public int compareTo(getAllItemsForWarehouse_result other) {
15396
      if (!getClass().equals(other.getClass())) {
15397
        return getClass().getName().compareTo(other.getClass().getName());
15398
      }
15399
 
15400
      int lastComparison = 0;
15401
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
15402
 
15403
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15404
      if (lastComparison != 0) {
15405
        return lastComparison;
15406
      }
15407
      if (isSetSuccess()) {
15408
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15409
        if (lastComparison != 0) {
15410
          return lastComparison;
15411
        }
15412
      }
15413
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15414
      if (lastComparison != 0) {
15415
        return lastComparison;
15416
      }
15417
      if (isSetCex()) {
15418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15419
        if (lastComparison != 0) {
15420
          return lastComparison;
15421
        }
15422
      }
15423
      return 0;
15424
    }
15425
 
15426
    public _Fields fieldForId(int fieldId) {
15427
      return _Fields.findByThriftId(fieldId);
15428
    }
15429
 
15430
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15431
      org.apache.thrift.protocol.TField field;
15432
      iprot.readStructBegin();
15433
      while (true)
15434
      {
15435
        field = iprot.readFieldBegin();
15436
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15437
          break;
15438
        }
15439
        switch (field.id) {
15440
          case 0: // SUCCESS
15441
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15442
              {
8182 amar.kumar 15443
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
15444
                this.success = new ArrayList<Long>(_list33.size);
15445
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
5945 mandeep.dh 15446
                {
8182 amar.kumar 15447
                  long _elem35; // required
15448
                  _elem35 = iprot.readI64();
15449
                  this.success.add(_elem35);
5945 mandeep.dh 15450
                }
15451
                iprot.readListEnd();
15452
              }
15453
            } else { 
15454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15455
            }
15456
            break;
15457
          case 1: // CEX
15458
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15459
              this.cex = new InventoryServiceException();
15460
              this.cex.read(iprot);
15461
            } else { 
15462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15463
            }
15464
            break;
15465
          default:
15466
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15467
        }
15468
        iprot.readFieldEnd();
15469
      }
15470
      iprot.readStructEnd();
15471
      validate();
15472
    }
15473
 
15474
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15475
      oprot.writeStructBegin(STRUCT_DESC);
15476
 
15477
      if (this.isSetSuccess()) {
15478
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15479
        {
15480
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 15481
          for (long _iter36 : this.success)
5945 mandeep.dh 15482
          {
8182 amar.kumar 15483
            oprot.writeI64(_iter36);
5945 mandeep.dh 15484
          }
15485
          oprot.writeListEnd();
15486
        }
15487
        oprot.writeFieldEnd();
15488
      } else if (this.isSetCex()) {
15489
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15490
        this.cex.write(oprot);
15491
        oprot.writeFieldEnd();
15492
      }
15493
      oprot.writeFieldStop();
15494
      oprot.writeStructEnd();
15495
    }
15496
 
15497
    @Override
15498
    public String toString() {
15499
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
15500
      boolean first = true;
15501
 
15502
      sb.append("success:");
15503
      if (this.success == null) {
15504
        sb.append("null");
15505
      } else {
15506
        sb.append(this.success);
15507
      }
15508
      first = false;
15509
      if (!first) sb.append(", ");
15510
      sb.append("cex:");
15511
      if (this.cex == null) {
15512
        sb.append("null");
15513
      } else {
15514
        sb.append(this.cex);
15515
      }
15516
      first = false;
15517
      sb.append(")");
15518
      return sb.toString();
15519
    }
15520
 
15521
    public void validate() throws org.apache.thrift.TException {
15522
      // check for required fields
15523
    }
15524
 
15525
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15526
      try {
15527
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15528
      } catch (org.apache.thrift.TException te) {
15529
        throw new java.io.IOException(te);
15530
      }
15531
    }
15532
 
15533
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15534
      try {
15535
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15536
      } catch (org.apache.thrift.TException te) {
15537
        throw new java.io.IOException(te);
15538
      }
15539
    }
15540
 
15541
  }
15542
 
5967 rajveer 15543
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
15544
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
15545
 
15546
    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);
15547
    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);
15548
    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);
15549
    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);
15550
 
15551
    private long itemId; // required
15552
    private long warehouseId; // required
15553
    private long sourceId; // required
15554
    private long orderId; // required
15555
 
15556
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15557
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15558
      ITEM_ID((short)1, "itemId"),
15559
      WAREHOUSE_ID((short)2, "warehouseId"),
15560
      SOURCE_ID((short)3, "sourceId"),
15561
      ORDER_ID((short)4, "orderId");
15562
 
15563
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15564
 
15565
      static {
15566
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15567
          byName.put(field.getFieldName(), field);
15568
        }
15569
      }
15570
 
15571
      /**
15572
       * Find the _Fields constant that matches fieldId, or null if its not found.
15573
       */
15574
      public static _Fields findByThriftId(int fieldId) {
15575
        switch(fieldId) {
15576
          case 1: // ITEM_ID
15577
            return ITEM_ID;
15578
          case 2: // WAREHOUSE_ID
15579
            return WAREHOUSE_ID;
15580
          case 3: // SOURCE_ID
15581
            return SOURCE_ID;
15582
          case 4: // ORDER_ID
15583
            return ORDER_ID;
15584
          default:
15585
            return null;
15586
        }
15587
      }
15588
 
15589
      /**
15590
       * Find the _Fields constant that matches fieldId, throwing an exception
15591
       * if it is not found.
15592
       */
15593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15594
        _Fields fields = findByThriftId(fieldId);
15595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15596
        return fields;
15597
      }
15598
 
15599
      /**
15600
       * Find the _Fields constant that matches name, or null if its not found.
15601
       */
15602
      public static _Fields findByName(String name) {
15603
        return byName.get(name);
15604
      }
15605
 
15606
      private final short _thriftId;
15607
      private final String _fieldName;
15608
 
15609
      _Fields(short thriftId, String fieldName) {
15610
        _thriftId = thriftId;
15611
        _fieldName = fieldName;
15612
      }
15613
 
15614
      public short getThriftFieldId() {
15615
        return _thriftId;
15616
      }
15617
 
15618
      public String getFieldName() {
15619
        return _fieldName;
15620
      }
15621
    }
15622
 
15623
    // isset id assignments
15624
    private static final int __ITEMID_ISSET_ID = 0;
15625
    private static final int __WAREHOUSEID_ISSET_ID = 1;
15626
    private static final int __SOURCEID_ISSET_ID = 2;
15627
    private static final int __ORDERID_ISSET_ID = 3;
15628
    private BitSet __isset_bit_vector = new BitSet(4);
15629
 
15630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15631
    static {
15632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15633
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15635
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15637
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15639
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15640
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15641
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15642
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
15643
    }
15644
 
15645
    public isOrderBillable_args() {
15646
    }
15647
 
15648
    public isOrderBillable_args(
15649
      long itemId,
15650
      long warehouseId,
15651
      long sourceId,
15652
      long orderId)
15653
    {
15654
      this();
15655
      this.itemId = itemId;
15656
      setItemIdIsSet(true);
15657
      this.warehouseId = warehouseId;
15658
      setWarehouseIdIsSet(true);
15659
      this.sourceId = sourceId;
15660
      setSourceIdIsSet(true);
15661
      this.orderId = orderId;
15662
      setOrderIdIsSet(true);
15663
    }
15664
 
15665
    /**
15666
     * Performs a deep copy on <i>other</i>.
15667
     */
15668
    public isOrderBillable_args(isOrderBillable_args other) {
15669
      __isset_bit_vector.clear();
15670
      __isset_bit_vector.or(other.__isset_bit_vector);
15671
      this.itemId = other.itemId;
15672
      this.warehouseId = other.warehouseId;
15673
      this.sourceId = other.sourceId;
15674
      this.orderId = other.orderId;
15675
    }
15676
 
15677
    public isOrderBillable_args deepCopy() {
15678
      return new isOrderBillable_args(this);
15679
    }
15680
 
15681
    @Override
15682
    public void clear() {
15683
      setItemIdIsSet(false);
15684
      this.itemId = 0;
15685
      setWarehouseIdIsSet(false);
15686
      this.warehouseId = 0;
15687
      setSourceIdIsSet(false);
15688
      this.sourceId = 0;
15689
      setOrderIdIsSet(false);
15690
      this.orderId = 0;
15691
    }
15692
 
15693
    public long getItemId() {
15694
      return this.itemId;
15695
    }
15696
 
15697
    public void setItemId(long itemId) {
15698
      this.itemId = itemId;
15699
      setItemIdIsSet(true);
15700
    }
15701
 
15702
    public void unsetItemId() {
15703
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15704
    }
15705
 
15706
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15707
    public boolean isSetItemId() {
15708
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15709
    }
15710
 
15711
    public void setItemIdIsSet(boolean value) {
15712
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15713
    }
15714
 
15715
    public long getWarehouseId() {
15716
      return this.warehouseId;
15717
    }
15718
 
15719
    public void setWarehouseId(long warehouseId) {
15720
      this.warehouseId = warehouseId;
15721
      setWarehouseIdIsSet(true);
15722
    }
15723
 
15724
    public void unsetWarehouseId() {
15725
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
15726
    }
15727
 
15728
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
15729
    public boolean isSetWarehouseId() {
15730
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
15731
    }
15732
 
15733
    public void setWarehouseIdIsSet(boolean value) {
15734
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
15735
    }
15736
 
15737
    public long getSourceId() {
15738
      return this.sourceId;
15739
    }
15740
 
15741
    public void setSourceId(long sourceId) {
15742
      this.sourceId = sourceId;
15743
      setSourceIdIsSet(true);
15744
    }
15745
 
15746
    public void unsetSourceId() {
15747
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
15748
    }
15749
 
15750
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
15751
    public boolean isSetSourceId() {
15752
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
15753
    }
15754
 
15755
    public void setSourceIdIsSet(boolean value) {
15756
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
15757
    }
15758
 
15759
    public long getOrderId() {
15760
      return this.orderId;
15761
    }
15762
 
15763
    public void setOrderId(long orderId) {
15764
      this.orderId = orderId;
15765
      setOrderIdIsSet(true);
15766
    }
15767
 
15768
    public void unsetOrderId() {
15769
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
15770
    }
15771
 
15772
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
15773
    public boolean isSetOrderId() {
15774
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
15775
    }
15776
 
15777
    public void setOrderIdIsSet(boolean value) {
15778
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
15779
    }
15780
 
15781
    public void setFieldValue(_Fields field, Object value) {
15782
      switch (field) {
15783
      case ITEM_ID:
15784
        if (value == null) {
15785
          unsetItemId();
15786
        } else {
15787
          setItemId((Long)value);
15788
        }
15789
        break;
15790
 
15791
      case WAREHOUSE_ID:
15792
        if (value == null) {
15793
          unsetWarehouseId();
15794
        } else {
15795
          setWarehouseId((Long)value);
15796
        }
15797
        break;
15798
 
15799
      case SOURCE_ID:
15800
        if (value == null) {
15801
          unsetSourceId();
15802
        } else {
15803
          setSourceId((Long)value);
15804
        }
15805
        break;
15806
 
15807
      case ORDER_ID:
15808
        if (value == null) {
15809
          unsetOrderId();
15810
        } else {
15811
          setOrderId((Long)value);
15812
        }
15813
        break;
15814
 
15815
      }
15816
    }
15817
 
15818
    public Object getFieldValue(_Fields field) {
15819
      switch (field) {
15820
      case ITEM_ID:
15821
        return Long.valueOf(getItemId());
15822
 
15823
      case WAREHOUSE_ID:
15824
        return Long.valueOf(getWarehouseId());
15825
 
15826
      case SOURCE_ID:
15827
        return Long.valueOf(getSourceId());
15828
 
15829
      case ORDER_ID:
15830
        return Long.valueOf(getOrderId());
15831
 
15832
      }
15833
      throw new IllegalStateException();
15834
    }
15835
 
15836
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15837
    public boolean isSet(_Fields field) {
15838
      if (field == null) {
15839
        throw new IllegalArgumentException();
15840
      }
15841
 
15842
      switch (field) {
15843
      case ITEM_ID:
15844
        return isSetItemId();
15845
      case WAREHOUSE_ID:
15846
        return isSetWarehouseId();
15847
      case SOURCE_ID:
15848
        return isSetSourceId();
15849
      case ORDER_ID:
15850
        return isSetOrderId();
15851
      }
15852
      throw new IllegalStateException();
15853
    }
15854
 
15855
    @Override
15856
    public boolean equals(Object that) {
15857
      if (that == null)
15858
        return false;
15859
      if (that instanceof isOrderBillable_args)
15860
        return this.equals((isOrderBillable_args)that);
15861
      return false;
15862
    }
15863
 
15864
    public boolean equals(isOrderBillable_args that) {
15865
      if (that == null)
15866
        return false;
15867
 
15868
      boolean this_present_itemId = true;
15869
      boolean that_present_itemId = true;
15870
      if (this_present_itemId || that_present_itemId) {
15871
        if (!(this_present_itemId && that_present_itemId))
15872
          return false;
15873
        if (this.itemId != that.itemId)
15874
          return false;
15875
      }
15876
 
15877
      boolean this_present_warehouseId = true;
15878
      boolean that_present_warehouseId = true;
15879
      if (this_present_warehouseId || that_present_warehouseId) {
15880
        if (!(this_present_warehouseId && that_present_warehouseId))
15881
          return false;
15882
        if (this.warehouseId != that.warehouseId)
15883
          return false;
15884
      }
15885
 
15886
      boolean this_present_sourceId = true;
15887
      boolean that_present_sourceId = true;
15888
      if (this_present_sourceId || that_present_sourceId) {
15889
        if (!(this_present_sourceId && that_present_sourceId))
15890
          return false;
15891
        if (this.sourceId != that.sourceId)
15892
          return false;
15893
      }
15894
 
15895
      boolean this_present_orderId = true;
15896
      boolean that_present_orderId = true;
15897
      if (this_present_orderId || that_present_orderId) {
15898
        if (!(this_present_orderId && that_present_orderId))
15899
          return false;
15900
        if (this.orderId != that.orderId)
15901
          return false;
15902
      }
15903
 
15904
      return true;
15905
    }
15906
 
15907
    @Override
15908
    public int hashCode() {
15909
      return 0;
15910
    }
15911
 
15912
    public int compareTo(isOrderBillable_args other) {
15913
      if (!getClass().equals(other.getClass())) {
15914
        return getClass().getName().compareTo(other.getClass().getName());
15915
      }
15916
 
15917
      int lastComparison = 0;
15918
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
15919
 
15920
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15921
      if (lastComparison != 0) {
15922
        return lastComparison;
15923
      }
15924
      if (isSetItemId()) {
15925
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15926
        if (lastComparison != 0) {
15927
          return lastComparison;
15928
        }
15929
      }
15930
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
15931
      if (lastComparison != 0) {
15932
        return lastComparison;
15933
      }
15934
      if (isSetWarehouseId()) {
15935
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
15936
        if (lastComparison != 0) {
15937
          return lastComparison;
15938
        }
15939
      }
15940
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
15941
      if (lastComparison != 0) {
15942
        return lastComparison;
15943
      }
15944
      if (isSetSourceId()) {
15945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
15946
        if (lastComparison != 0) {
15947
          return lastComparison;
15948
        }
15949
      }
15950
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
15951
      if (lastComparison != 0) {
15952
        return lastComparison;
15953
      }
15954
      if (isSetOrderId()) {
15955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
15956
        if (lastComparison != 0) {
15957
          return lastComparison;
15958
        }
15959
      }
15960
      return 0;
15961
    }
15962
 
15963
    public _Fields fieldForId(int fieldId) {
15964
      return _Fields.findByThriftId(fieldId);
15965
    }
15966
 
15967
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15968
      org.apache.thrift.protocol.TField field;
15969
      iprot.readStructBegin();
15970
      while (true)
15971
      {
15972
        field = iprot.readFieldBegin();
15973
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15974
          break;
15975
        }
15976
        switch (field.id) {
15977
          case 1: // ITEM_ID
15978
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15979
              this.itemId = iprot.readI64();
15980
              setItemIdIsSet(true);
15981
            } else { 
15982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15983
            }
15984
            break;
15985
          case 2: // WAREHOUSE_ID
15986
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15987
              this.warehouseId = iprot.readI64();
15988
              setWarehouseIdIsSet(true);
15989
            } else { 
15990
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15991
            }
15992
            break;
15993
          case 3: // SOURCE_ID
15994
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15995
              this.sourceId = iprot.readI64();
15996
              setSourceIdIsSet(true);
15997
            } else { 
15998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15999
            }
16000
            break;
16001
          case 4: // ORDER_ID
16002
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16003
              this.orderId = iprot.readI64();
16004
              setOrderIdIsSet(true);
16005
            } else { 
16006
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16007
            }
16008
            break;
16009
          default:
16010
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16011
        }
16012
        iprot.readFieldEnd();
16013
      }
16014
      iprot.readStructEnd();
16015
      validate();
16016
    }
16017
 
16018
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16019
      validate();
16020
 
16021
      oprot.writeStructBegin(STRUCT_DESC);
16022
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16023
      oprot.writeI64(this.itemId);
16024
      oprot.writeFieldEnd();
16025
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
16026
      oprot.writeI64(this.warehouseId);
16027
      oprot.writeFieldEnd();
16028
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
16029
      oprot.writeI64(this.sourceId);
16030
      oprot.writeFieldEnd();
16031
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
16032
      oprot.writeI64(this.orderId);
16033
      oprot.writeFieldEnd();
16034
      oprot.writeFieldStop();
16035
      oprot.writeStructEnd();
16036
    }
16037
 
16038
    @Override
16039
    public String toString() {
16040
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
16041
      boolean first = true;
16042
 
16043
      sb.append("itemId:");
16044
      sb.append(this.itemId);
16045
      first = false;
16046
      if (!first) sb.append(", ");
16047
      sb.append("warehouseId:");
16048
      sb.append(this.warehouseId);
16049
      first = false;
16050
      if (!first) sb.append(", ");
16051
      sb.append("sourceId:");
16052
      sb.append(this.sourceId);
16053
      first = false;
16054
      if (!first) sb.append(", ");
16055
      sb.append("orderId:");
16056
      sb.append(this.orderId);
16057
      first = false;
16058
      sb.append(")");
16059
      return sb.toString();
16060
    }
16061
 
16062
    public void validate() throws org.apache.thrift.TException {
16063
      // check for required fields
16064
    }
16065
 
16066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16067
      try {
16068
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16069
      } catch (org.apache.thrift.TException te) {
16070
        throw new java.io.IOException(te);
16071
      }
16072
    }
16073
 
16074
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16075
      try {
16076
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16077
      } catch (org.apache.thrift.TException te) {
16078
        throw new java.io.IOException(te);
16079
      }
16080
    }
16081
 
16082
  }
16083
 
16084
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
16085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
16086
 
16087
    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);
16088
 
16089
    private boolean success; // required
16090
 
16091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16092
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16093
      SUCCESS((short)0, "success");
16094
 
16095
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16096
 
16097
      static {
16098
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16099
          byName.put(field.getFieldName(), field);
16100
        }
16101
      }
16102
 
16103
      /**
16104
       * Find the _Fields constant that matches fieldId, or null if its not found.
16105
       */
16106
      public static _Fields findByThriftId(int fieldId) {
16107
        switch(fieldId) {
16108
          case 0: // SUCCESS
16109
            return SUCCESS;
16110
          default:
16111
            return null;
16112
        }
16113
      }
16114
 
16115
      /**
16116
       * Find the _Fields constant that matches fieldId, throwing an exception
16117
       * if it is not found.
16118
       */
16119
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16120
        _Fields fields = findByThriftId(fieldId);
16121
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16122
        return fields;
16123
      }
16124
 
16125
      /**
16126
       * Find the _Fields constant that matches name, or null if its not found.
16127
       */
16128
      public static _Fields findByName(String name) {
16129
        return byName.get(name);
16130
      }
16131
 
16132
      private final short _thriftId;
16133
      private final String _fieldName;
16134
 
16135
      _Fields(short thriftId, String fieldName) {
16136
        _thriftId = thriftId;
16137
        _fieldName = fieldName;
16138
      }
16139
 
16140
      public short getThriftFieldId() {
16141
        return _thriftId;
16142
      }
16143
 
16144
      public String getFieldName() {
16145
        return _fieldName;
16146
      }
16147
    }
16148
 
16149
    // isset id assignments
16150
    private static final int __SUCCESS_ISSET_ID = 0;
16151
    private BitSet __isset_bit_vector = new BitSet(1);
16152
 
16153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16154
    static {
16155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16156
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16158
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16159
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
16160
    }
16161
 
16162
    public isOrderBillable_result() {
16163
    }
16164
 
16165
    public isOrderBillable_result(
16166
      boolean success)
16167
    {
16168
      this();
16169
      this.success = success;
16170
      setSuccessIsSet(true);
16171
    }
16172
 
16173
    /**
16174
     * Performs a deep copy on <i>other</i>.
16175
     */
16176
    public isOrderBillable_result(isOrderBillable_result other) {
16177
      __isset_bit_vector.clear();
16178
      __isset_bit_vector.or(other.__isset_bit_vector);
16179
      this.success = other.success;
16180
    }
16181
 
16182
    public isOrderBillable_result deepCopy() {
16183
      return new isOrderBillable_result(this);
16184
    }
16185
 
16186
    @Override
16187
    public void clear() {
16188
      setSuccessIsSet(false);
16189
      this.success = false;
16190
    }
16191
 
16192
    public boolean isSuccess() {
16193
      return this.success;
16194
    }
16195
 
16196
    public void setSuccess(boolean success) {
16197
      this.success = success;
16198
      setSuccessIsSet(true);
16199
    }
16200
 
16201
    public void unsetSuccess() {
16202
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16203
    }
16204
 
16205
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16206
    public boolean isSetSuccess() {
16207
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16208
    }
16209
 
16210
    public void setSuccessIsSet(boolean value) {
16211
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16212
    }
16213
 
16214
    public void setFieldValue(_Fields field, Object value) {
16215
      switch (field) {
16216
      case SUCCESS:
16217
        if (value == null) {
16218
          unsetSuccess();
16219
        } else {
16220
          setSuccess((Boolean)value);
16221
        }
16222
        break;
16223
 
16224
      }
16225
    }
16226
 
16227
    public Object getFieldValue(_Fields field) {
16228
      switch (field) {
16229
      case SUCCESS:
16230
        return Boolean.valueOf(isSuccess());
16231
 
16232
      }
16233
      throw new IllegalStateException();
16234
    }
16235
 
16236
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16237
    public boolean isSet(_Fields field) {
16238
      if (field == null) {
16239
        throw new IllegalArgumentException();
16240
      }
16241
 
16242
      switch (field) {
16243
      case SUCCESS:
16244
        return isSetSuccess();
16245
      }
16246
      throw new IllegalStateException();
16247
    }
16248
 
16249
    @Override
16250
    public boolean equals(Object that) {
16251
      if (that == null)
16252
        return false;
16253
      if (that instanceof isOrderBillable_result)
16254
        return this.equals((isOrderBillable_result)that);
16255
      return false;
16256
    }
16257
 
16258
    public boolean equals(isOrderBillable_result that) {
16259
      if (that == null)
16260
        return false;
16261
 
16262
      boolean this_present_success = true;
16263
      boolean that_present_success = true;
16264
      if (this_present_success || that_present_success) {
16265
        if (!(this_present_success && that_present_success))
16266
          return false;
16267
        if (this.success != that.success)
16268
          return false;
16269
      }
16270
 
16271
      return true;
16272
    }
16273
 
16274
    @Override
16275
    public int hashCode() {
16276
      return 0;
16277
    }
16278
 
16279
    public int compareTo(isOrderBillable_result other) {
16280
      if (!getClass().equals(other.getClass())) {
16281
        return getClass().getName().compareTo(other.getClass().getName());
16282
      }
16283
 
16284
      int lastComparison = 0;
16285
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
16286
 
16287
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16288
      if (lastComparison != 0) {
16289
        return lastComparison;
16290
      }
16291
      if (isSetSuccess()) {
16292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16293
        if (lastComparison != 0) {
16294
          return lastComparison;
16295
        }
16296
      }
16297
      return 0;
16298
    }
16299
 
16300
    public _Fields fieldForId(int fieldId) {
16301
      return _Fields.findByThriftId(fieldId);
16302
    }
16303
 
16304
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16305
      org.apache.thrift.protocol.TField field;
16306
      iprot.readStructBegin();
16307
      while (true)
16308
      {
16309
        field = iprot.readFieldBegin();
16310
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16311
          break;
16312
        }
16313
        switch (field.id) {
16314
          case 0: // SUCCESS
16315
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16316
              this.success = iprot.readBool();
16317
              setSuccessIsSet(true);
16318
            } else { 
16319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16320
            }
16321
            break;
16322
          default:
16323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16324
        }
16325
        iprot.readFieldEnd();
16326
      }
16327
      iprot.readStructEnd();
16328
      validate();
16329
    }
16330
 
16331
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16332
      oprot.writeStructBegin(STRUCT_DESC);
16333
 
16334
      if (this.isSetSuccess()) {
16335
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16336
        oprot.writeBool(this.success);
16337
        oprot.writeFieldEnd();
16338
      }
16339
      oprot.writeFieldStop();
16340
      oprot.writeStructEnd();
16341
    }
16342
 
16343
    @Override
16344
    public String toString() {
16345
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
16346
      boolean first = true;
16347
 
16348
      sb.append("success:");
16349
      sb.append(this.success);
16350
      first = false;
16351
      sb.append(")");
16352
      return sb.toString();
16353
    }
16354
 
16355
    public void validate() throws org.apache.thrift.TException {
16356
      // check for required fields
16357
    }
16358
 
16359
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16360
      try {
16361
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16362
      } catch (org.apache.thrift.TException te) {
16363
        throw new java.io.IOException(te);
16364
      }
16365
    }
16366
 
16367
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16368
      try {
16369
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16370
      } catch (org.apache.thrift.TException te) {
16371
        throw new java.io.IOException(te);
16372
      }
16373
    }
16374
 
16375
  }
16376
 
5945 mandeep.dh 16377
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
16378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
16379
 
16380
    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);
16381
    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 16382
    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);
16383
    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);
16384
    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);
16385
    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);
16386
    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 16387
 
16388
    private long itemId; // required
16389
    private long warehouseId; // required
5967 rajveer 16390
    private long sourceId; // required
16391
    private long orderId; // required
16392
    private long createdTimestamp; // required
16393
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 16394
    private double quantity; // required
16395
 
16396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16397
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16398
      ITEM_ID((short)1, "itemId"),
16399
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 16400
      SOURCE_ID((short)3, "sourceId"),
16401
      ORDER_ID((short)4, "orderId"),
16402
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
16403
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
16404
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 16405
 
16406
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16407
 
16408
      static {
16409
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16410
          byName.put(field.getFieldName(), field);
16411
        }
16412
      }
16413
 
16414
      /**
16415
       * Find the _Fields constant that matches fieldId, or null if its not found.
16416
       */
16417
      public static _Fields findByThriftId(int fieldId) {
16418
        switch(fieldId) {
16419
          case 1: // ITEM_ID
16420
            return ITEM_ID;
16421
          case 2: // WAREHOUSE_ID
16422
            return WAREHOUSE_ID;
5967 rajveer 16423
          case 3: // SOURCE_ID
16424
            return SOURCE_ID;
16425
          case 4: // ORDER_ID
16426
            return ORDER_ID;
16427
          case 5: // CREATED_TIMESTAMP
16428
            return CREATED_TIMESTAMP;
16429
          case 6: // PROMISED_SHIPPING_TIMESTAMP
16430
            return PROMISED_SHIPPING_TIMESTAMP;
16431
          case 7: // QUANTITY
5945 mandeep.dh 16432
            return QUANTITY;
16433
          default:
16434
            return null;
16435
        }
16436
      }
16437
 
16438
      /**
16439
       * Find the _Fields constant that matches fieldId, throwing an exception
16440
       * if it is not found.
16441
       */
16442
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16443
        _Fields fields = findByThriftId(fieldId);
16444
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16445
        return fields;
16446
      }
16447
 
16448
      /**
16449
       * Find the _Fields constant that matches name, or null if its not found.
16450
       */
16451
      public static _Fields findByName(String name) {
16452
        return byName.get(name);
16453
      }
16454
 
16455
      private final short _thriftId;
16456
      private final String _fieldName;
16457
 
16458
      _Fields(short thriftId, String fieldName) {
16459
        _thriftId = thriftId;
16460
        _fieldName = fieldName;
16461
      }
16462
 
16463
      public short getThriftFieldId() {
16464
        return _thriftId;
16465
      }
16466
 
16467
      public String getFieldName() {
16468
        return _fieldName;
16469
      }
16470
    }
16471
 
16472
    // isset id assignments
16473
    private static final int __ITEMID_ISSET_ID = 0;
16474
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 16475
    private static final int __SOURCEID_ISSET_ID = 2;
16476
    private static final int __ORDERID_ISSET_ID = 3;
16477
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
16478
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
16479
    private static final int __QUANTITY_ISSET_ID = 6;
16480
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 16481
 
16482
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16483
    static {
16484
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16485
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16486
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16487
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 16489
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16490
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16491
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16492
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16493
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16495
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 16497
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16498
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
16499
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16500
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
16501
    }
16502
 
16503
    public reserveItemInWarehouse_args() {
16504
    }
16505
 
16506
    public reserveItemInWarehouse_args(
16507
      long itemId,
16508
      long warehouseId,
5967 rajveer 16509
      long sourceId,
16510
      long orderId,
16511
      long createdTimestamp,
16512
      long promisedShippingTimestamp,
5945 mandeep.dh 16513
      double quantity)
16514
    {
16515
      this();
16516
      this.itemId = itemId;
16517
      setItemIdIsSet(true);
16518
      this.warehouseId = warehouseId;
16519
      setWarehouseIdIsSet(true);
5967 rajveer 16520
      this.sourceId = sourceId;
16521
      setSourceIdIsSet(true);
16522
      this.orderId = orderId;
16523
      setOrderIdIsSet(true);
16524
      this.createdTimestamp = createdTimestamp;
16525
      setCreatedTimestampIsSet(true);
16526
      this.promisedShippingTimestamp = promisedShippingTimestamp;
16527
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 16528
      this.quantity = quantity;
16529
      setQuantityIsSet(true);
16530
    }
16531
 
16532
    /**
16533
     * Performs a deep copy on <i>other</i>.
16534
     */
16535
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
16536
      __isset_bit_vector.clear();
16537
      __isset_bit_vector.or(other.__isset_bit_vector);
16538
      this.itemId = other.itemId;
16539
      this.warehouseId = other.warehouseId;
5967 rajveer 16540
      this.sourceId = other.sourceId;
16541
      this.orderId = other.orderId;
16542
      this.createdTimestamp = other.createdTimestamp;
16543
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 16544
      this.quantity = other.quantity;
16545
    }
16546
 
16547
    public reserveItemInWarehouse_args deepCopy() {
16548
      return new reserveItemInWarehouse_args(this);
16549
    }
16550
 
16551
    @Override
16552
    public void clear() {
16553
      setItemIdIsSet(false);
16554
      this.itemId = 0;
16555
      setWarehouseIdIsSet(false);
16556
      this.warehouseId = 0;
5967 rajveer 16557
      setSourceIdIsSet(false);
16558
      this.sourceId = 0;
16559
      setOrderIdIsSet(false);
16560
      this.orderId = 0;
16561
      setCreatedTimestampIsSet(false);
16562
      this.createdTimestamp = 0;
16563
      setPromisedShippingTimestampIsSet(false);
16564
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 16565
      setQuantityIsSet(false);
16566
      this.quantity = 0.0;
16567
    }
16568
 
16569
    public long getItemId() {
16570
      return this.itemId;
16571
    }
16572
 
16573
    public void setItemId(long itemId) {
16574
      this.itemId = itemId;
16575
      setItemIdIsSet(true);
16576
    }
16577
 
16578
    public void unsetItemId() {
16579
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
16580
    }
16581
 
16582
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
16583
    public boolean isSetItemId() {
16584
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
16585
    }
16586
 
16587
    public void setItemIdIsSet(boolean value) {
16588
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
16589
    }
16590
 
16591
    public long getWarehouseId() {
16592
      return this.warehouseId;
16593
    }
16594
 
16595
    public void setWarehouseId(long warehouseId) {
16596
      this.warehouseId = warehouseId;
16597
      setWarehouseIdIsSet(true);
16598
    }
16599
 
16600
    public void unsetWarehouseId() {
16601
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
16602
    }
16603
 
16604
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
16605
    public boolean isSetWarehouseId() {
16606
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
16607
    }
16608
 
16609
    public void setWarehouseIdIsSet(boolean value) {
16610
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
16611
    }
16612
 
5967 rajveer 16613
    public long getSourceId() {
16614
      return this.sourceId;
16615
    }
16616
 
16617
    public void setSourceId(long sourceId) {
16618
      this.sourceId = sourceId;
16619
      setSourceIdIsSet(true);
16620
    }
16621
 
16622
    public void unsetSourceId() {
16623
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
16624
    }
16625
 
16626
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
16627
    public boolean isSetSourceId() {
16628
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
16629
    }
16630
 
16631
    public void setSourceIdIsSet(boolean value) {
16632
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
16633
    }
16634
 
16635
    public long getOrderId() {
16636
      return this.orderId;
16637
    }
16638
 
16639
    public void setOrderId(long orderId) {
16640
      this.orderId = orderId;
16641
      setOrderIdIsSet(true);
16642
    }
16643
 
16644
    public void unsetOrderId() {
16645
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
16646
    }
16647
 
16648
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
16649
    public boolean isSetOrderId() {
16650
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
16651
    }
16652
 
16653
    public void setOrderIdIsSet(boolean value) {
16654
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
16655
    }
16656
 
16657
    public long getCreatedTimestamp() {
16658
      return this.createdTimestamp;
16659
    }
16660
 
16661
    public void setCreatedTimestamp(long createdTimestamp) {
16662
      this.createdTimestamp = createdTimestamp;
16663
      setCreatedTimestampIsSet(true);
16664
    }
16665
 
16666
    public void unsetCreatedTimestamp() {
16667
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
16668
    }
16669
 
16670
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
16671
    public boolean isSetCreatedTimestamp() {
16672
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
16673
    }
16674
 
16675
    public void setCreatedTimestampIsSet(boolean value) {
16676
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
16677
    }
16678
 
16679
    public long getPromisedShippingTimestamp() {
16680
      return this.promisedShippingTimestamp;
16681
    }
16682
 
16683
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
16684
      this.promisedShippingTimestamp = promisedShippingTimestamp;
16685
      setPromisedShippingTimestampIsSet(true);
16686
    }
16687
 
16688
    public void unsetPromisedShippingTimestamp() {
16689
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
16690
    }
16691
 
16692
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
16693
    public boolean isSetPromisedShippingTimestamp() {
16694
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
16695
    }
16696
 
16697
    public void setPromisedShippingTimestampIsSet(boolean value) {
16698
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
16699
    }
16700
 
5945 mandeep.dh 16701
    public double getQuantity() {
16702
      return this.quantity;
16703
    }
16704
 
16705
    public void setQuantity(double quantity) {
16706
      this.quantity = quantity;
16707
      setQuantityIsSet(true);
16708
    }
16709
 
16710
    public void unsetQuantity() {
16711
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
16712
    }
16713
 
16714
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
16715
    public boolean isSetQuantity() {
16716
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
16717
    }
16718
 
16719
    public void setQuantityIsSet(boolean value) {
16720
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
16721
    }
16722
 
16723
    public void setFieldValue(_Fields field, Object value) {
16724
      switch (field) {
16725
      case ITEM_ID:
16726
        if (value == null) {
16727
          unsetItemId();
16728
        } else {
16729
          setItemId((Long)value);
16730
        }
16731
        break;
16732
 
16733
      case WAREHOUSE_ID:
16734
        if (value == null) {
16735
          unsetWarehouseId();
16736
        } else {
16737
          setWarehouseId((Long)value);
16738
        }
16739
        break;
16740
 
5967 rajveer 16741
      case SOURCE_ID:
16742
        if (value == null) {
16743
          unsetSourceId();
16744
        } else {
16745
          setSourceId((Long)value);
16746
        }
16747
        break;
16748
 
16749
      case ORDER_ID:
16750
        if (value == null) {
16751
          unsetOrderId();
16752
        } else {
16753
          setOrderId((Long)value);
16754
        }
16755
        break;
16756
 
16757
      case CREATED_TIMESTAMP:
16758
        if (value == null) {
16759
          unsetCreatedTimestamp();
16760
        } else {
16761
          setCreatedTimestamp((Long)value);
16762
        }
16763
        break;
16764
 
16765
      case PROMISED_SHIPPING_TIMESTAMP:
16766
        if (value == null) {
16767
          unsetPromisedShippingTimestamp();
16768
        } else {
16769
          setPromisedShippingTimestamp((Long)value);
16770
        }
16771
        break;
16772
 
5945 mandeep.dh 16773
      case QUANTITY:
16774
        if (value == null) {
16775
          unsetQuantity();
16776
        } else {
16777
          setQuantity((Double)value);
16778
        }
16779
        break;
16780
 
16781
      }
16782
    }
16783
 
16784
    public Object getFieldValue(_Fields field) {
16785
      switch (field) {
16786
      case ITEM_ID:
16787
        return Long.valueOf(getItemId());
16788
 
16789
      case WAREHOUSE_ID:
16790
        return Long.valueOf(getWarehouseId());
16791
 
5967 rajveer 16792
      case SOURCE_ID:
16793
        return Long.valueOf(getSourceId());
16794
 
16795
      case ORDER_ID:
16796
        return Long.valueOf(getOrderId());
16797
 
16798
      case CREATED_TIMESTAMP:
16799
        return Long.valueOf(getCreatedTimestamp());
16800
 
16801
      case PROMISED_SHIPPING_TIMESTAMP:
16802
        return Long.valueOf(getPromisedShippingTimestamp());
16803
 
5945 mandeep.dh 16804
      case QUANTITY:
16805
        return Double.valueOf(getQuantity());
16806
 
16807
      }
16808
      throw new IllegalStateException();
16809
    }
16810
 
16811
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16812
    public boolean isSet(_Fields field) {
16813
      if (field == null) {
16814
        throw new IllegalArgumentException();
16815
      }
16816
 
16817
      switch (field) {
16818
      case ITEM_ID:
16819
        return isSetItemId();
16820
      case WAREHOUSE_ID:
16821
        return isSetWarehouseId();
5967 rajveer 16822
      case SOURCE_ID:
16823
        return isSetSourceId();
16824
      case ORDER_ID:
16825
        return isSetOrderId();
16826
      case CREATED_TIMESTAMP:
16827
        return isSetCreatedTimestamp();
16828
      case PROMISED_SHIPPING_TIMESTAMP:
16829
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 16830
      case QUANTITY:
16831
        return isSetQuantity();
16832
      }
16833
      throw new IllegalStateException();
16834
    }
16835
 
16836
    @Override
16837
    public boolean equals(Object that) {
16838
      if (that == null)
16839
        return false;
16840
      if (that instanceof reserveItemInWarehouse_args)
16841
        return this.equals((reserveItemInWarehouse_args)that);
16842
      return false;
16843
    }
16844
 
16845
    public boolean equals(reserveItemInWarehouse_args that) {
16846
      if (that == null)
16847
        return false;
16848
 
16849
      boolean this_present_itemId = true;
16850
      boolean that_present_itemId = true;
16851
      if (this_present_itemId || that_present_itemId) {
16852
        if (!(this_present_itemId && that_present_itemId))
16853
          return false;
16854
        if (this.itemId != that.itemId)
16855
          return false;
16856
      }
16857
 
16858
      boolean this_present_warehouseId = true;
16859
      boolean that_present_warehouseId = true;
16860
      if (this_present_warehouseId || that_present_warehouseId) {
16861
        if (!(this_present_warehouseId && that_present_warehouseId))
16862
          return false;
16863
        if (this.warehouseId != that.warehouseId)
16864
          return false;
16865
      }
16866
 
5967 rajveer 16867
      boolean this_present_sourceId = true;
16868
      boolean that_present_sourceId = true;
16869
      if (this_present_sourceId || that_present_sourceId) {
16870
        if (!(this_present_sourceId && that_present_sourceId))
16871
          return false;
16872
        if (this.sourceId != that.sourceId)
16873
          return false;
16874
      }
16875
 
16876
      boolean this_present_orderId = true;
16877
      boolean that_present_orderId = true;
16878
      if (this_present_orderId || that_present_orderId) {
16879
        if (!(this_present_orderId && that_present_orderId))
16880
          return false;
16881
        if (this.orderId != that.orderId)
16882
          return false;
16883
      }
16884
 
16885
      boolean this_present_createdTimestamp = true;
16886
      boolean that_present_createdTimestamp = true;
16887
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
16888
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
16889
          return false;
16890
        if (this.createdTimestamp != that.createdTimestamp)
16891
          return false;
16892
      }
16893
 
16894
      boolean this_present_promisedShippingTimestamp = true;
16895
      boolean that_present_promisedShippingTimestamp = true;
16896
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
16897
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
16898
          return false;
16899
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
16900
          return false;
16901
      }
16902
 
5945 mandeep.dh 16903
      boolean this_present_quantity = true;
16904
      boolean that_present_quantity = true;
16905
      if (this_present_quantity || that_present_quantity) {
16906
        if (!(this_present_quantity && that_present_quantity))
16907
          return false;
16908
        if (this.quantity != that.quantity)
16909
          return false;
16910
      }
16911
 
16912
      return true;
16913
    }
16914
 
16915
    @Override
16916
    public int hashCode() {
16917
      return 0;
16918
    }
16919
 
16920
    public int compareTo(reserveItemInWarehouse_args other) {
16921
      if (!getClass().equals(other.getClass())) {
16922
        return getClass().getName().compareTo(other.getClass().getName());
16923
      }
16924
 
16925
      int lastComparison = 0;
16926
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
16927
 
16928
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16929
      if (lastComparison != 0) {
16930
        return lastComparison;
16931
      }
16932
      if (isSetItemId()) {
16933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16934
        if (lastComparison != 0) {
16935
          return lastComparison;
16936
        }
16937
      }
16938
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
16939
      if (lastComparison != 0) {
16940
        return lastComparison;
16941
      }
16942
      if (isSetWarehouseId()) {
16943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
16944
        if (lastComparison != 0) {
16945
          return lastComparison;
16946
        }
16947
      }
5967 rajveer 16948
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
16949
      if (lastComparison != 0) {
16950
        return lastComparison;
16951
      }
16952
      if (isSetSourceId()) {
16953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
16954
        if (lastComparison != 0) {
16955
          return lastComparison;
16956
        }
16957
      }
16958
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
16959
      if (lastComparison != 0) {
16960
        return lastComparison;
16961
      }
16962
      if (isSetOrderId()) {
16963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
16964
        if (lastComparison != 0) {
16965
          return lastComparison;
16966
        }
16967
      }
16968
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
16969
      if (lastComparison != 0) {
16970
        return lastComparison;
16971
      }
16972
      if (isSetCreatedTimestamp()) {
16973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
16974
        if (lastComparison != 0) {
16975
          return lastComparison;
16976
        }
16977
      }
16978
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
16979
      if (lastComparison != 0) {
16980
        return lastComparison;
16981
      }
16982
      if (isSetPromisedShippingTimestamp()) {
16983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
16984
        if (lastComparison != 0) {
16985
          return lastComparison;
16986
        }
16987
      }
5945 mandeep.dh 16988
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
16989
      if (lastComparison != 0) {
16990
        return lastComparison;
16991
      }
16992
      if (isSetQuantity()) {
16993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
16994
        if (lastComparison != 0) {
16995
          return lastComparison;
16996
        }
16997
      }
16998
      return 0;
16999
    }
17000
 
17001
    public _Fields fieldForId(int fieldId) {
17002
      return _Fields.findByThriftId(fieldId);
17003
    }
17004
 
17005
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17006
      org.apache.thrift.protocol.TField field;
17007
      iprot.readStructBegin();
17008
      while (true)
17009
      {
17010
        field = iprot.readFieldBegin();
17011
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17012
          break;
17013
        }
17014
        switch (field.id) {
17015
          case 1: // ITEM_ID
17016
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17017
              this.itemId = iprot.readI64();
17018
              setItemIdIsSet(true);
17019
            } else { 
17020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17021
            }
17022
            break;
17023
          case 2: // WAREHOUSE_ID
17024
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17025
              this.warehouseId = iprot.readI64();
17026
              setWarehouseIdIsSet(true);
17027
            } else { 
17028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17029
            }
17030
            break;
5967 rajveer 17031
          case 3: // SOURCE_ID
17032
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17033
              this.sourceId = iprot.readI64();
17034
              setSourceIdIsSet(true);
17035
            } else { 
17036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17037
            }
17038
            break;
17039
          case 4: // ORDER_ID
17040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17041
              this.orderId = iprot.readI64();
17042
              setOrderIdIsSet(true);
17043
            } else { 
17044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17045
            }
17046
            break;
17047
          case 5: // CREATED_TIMESTAMP
17048
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17049
              this.createdTimestamp = iprot.readI64();
17050
              setCreatedTimestampIsSet(true);
17051
            } else { 
17052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17053
            }
17054
            break;
17055
          case 6: // PROMISED_SHIPPING_TIMESTAMP
17056
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17057
              this.promisedShippingTimestamp = iprot.readI64();
17058
              setPromisedShippingTimestampIsSet(true);
17059
            } else { 
17060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17061
            }
17062
            break;
17063
          case 7: // QUANTITY
5945 mandeep.dh 17064
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
17065
              this.quantity = iprot.readDouble();
17066
              setQuantityIsSet(true);
17067
            } else { 
17068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17069
            }
17070
            break;
17071
          default:
17072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17073
        }
17074
        iprot.readFieldEnd();
17075
      }
17076
      iprot.readStructEnd();
17077
      validate();
17078
    }
17079
 
17080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17081
      validate();
17082
 
17083
      oprot.writeStructBegin(STRUCT_DESC);
17084
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
17085
      oprot.writeI64(this.itemId);
17086
      oprot.writeFieldEnd();
17087
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
17088
      oprot.writeI64(this.warehouseId);
17089
      oprot.writeFieldEnd();
5967 rajveer 17090
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
17091
      oprot.writeI64(this.sourceId);
17092
      oprot.writeFieldEnd();
17093
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
17094
      oprot.writeI64(this.orderId);
17095
      oprot.writeFieldEnd();
17096
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
17097
      oprot.writeI64(this.createdTimestamp);
17098
      oprot.writeFieldEnd();
17099
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
17100
      oprot.writeI64(this.promisedShippingTimestamp);
17101
      oprot.writeFieldEnd();
5945 mandeep.dh 17102
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
17103
      oprot.writeDouble(this.quantity);
17104
      oprot.writeFieldEnd();
17105
      oprot.writeFieldStop();
17106
      oprot.writeStructEnd();
17107
    }
17108
 
17109
    @Override
17110
    public String toString() {
17111
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
17112
      boolean first = true;
17113
 
17114
      sb.append("itemId:");
17115
      sb.append(this.itemId);
17116
      first = false;
17117
      if (!first) sb.append(", ");
17118
      sb.append("warehouseId:");
17119
      sb.append(this.warehouseId);
17120
      first = false;
17121
      if (!first) sb.append(", ");
5967 rajveer 17122
      sb.append("sourceId:");
17123
      sb.append(this.sourceId);
17124
      first = false;
17125
      if (!first) sb.append(", ");
17126
      sb.append("orderId:");
17127
      sb.append(this.orderId);
17128
      first = false;
17129
      if (!first) sb.append(", ");
17130
      sb.append("createdTimestamp:");
17131
      sb.append(this.createdTimestamp);
17132
      first = false;
17133
      if (!first) sb.append(", ");
17134
      sb.append("promisedShippingTimestamp:");
17135
      sb.append(this.promisedShippingTimestamp);
17136
      first = false;
17137
      if (!first) sb.append(", ");
5945 mandeep.dh 17138
      sb.append("quantity:");
17139
      sb.append(this.quantity);
17140
      first = false;
17141
      sb.append(")");
17142
      return sb.toString();
17143
    }
17144
 
17145
    public void validate() throws org.apache.thrift.TException {
17146
      // check for required fields
17147
    }
17148
 
17149
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17150
      try {
17151
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17152
      } catch (org.apache.thrift.TException te) {
17153
        throw new java.io.IOException(te);
17154
      }
17155
    }
17156
 
17157
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17158
      try {
17159
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17160
      } catch (org.apache.thrift.TException te) {
17161
        throw new java.io.IOException(te);
17162
      }
17163
    }
17164
 
17165
  }
17166
 
17167
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
17168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
17169
 
17170
    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);
17171
    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);
17172
 
17173
    private boolean success; // required
17174
    private InventoryServiceException cex; // required
17175
 
17176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17178
      SUCCESS((short)0, "success"),
17179
      CEX((short)1, "cex");
17180
 
17181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17182
 
17183
      static {
17184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17185
          byName.put(field.getFieldName(), field);
17186
        }
17187
      }
17188
 
17189
      /**
17190
       * Find the _Fields constant that matches fieldId, or null if its not found.
17191
       */
17192
      public static _Fields findByThriftId(int fieldId) {
17193
        switch(fieldId) {
17194
          case 0: // SUCCESS
17195
            return SUCCESS;
17196
          case 1: // CEX
17197
            return CEX;
17198
          default:
17199
            return null;
17200
        }
17201
      }
17202
 
17203
      /**
17204
       * Find the _Fields constant that matches fieldId, throwing an exception
17205
       * if it is not found.
17206
       */
17207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17208
        _Fields fields = findByThriftId(fieldId);
17209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17210
        return fields;
17211
      }
17212
 
17213
      /**
17214
       * Find the _Fields constant that matches name, or null if its not found.
17215
       */
17216
      public static _Fields findByName(String name) {
17217
        return byName.get(name);
17218
      }
17219
 
17220
      private final short _thriftId;
17221
      private final String _fieldName;
17222
 
17223
      _Fields(short thriftId, String fieldName) {
17224
        _thriftId = thriftId;
17225
        _fieldName = fieldName;
17226
      }
17227
 
17228
      public short getThriftFieldId() {
17229
        return _thriftId;
17230
      }
17231
 
17232
      public String getFieldName() {
17233
        return _fieldName;
17234
      }
17235
    }
17236
 
17237
    // isset id assignments
17238
    private static final int __SUCCESS_ISSET_ID = 0;
17239
    private BitSet __isset_bit_vector = new BitSet(1);
17240
 
17241
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17242
    static {
17243
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17244
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17246
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17247
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17248
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17249
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
17250
    }
17251
 
17252
    public reserveItemInWarehouse_result() {
17253
    }
17254
 
17255
    public reserveItemInWarehouse_result(
17256
      boolean success,
17257
      InventoryServiceException cex)
17258
    {
17259
      this();
17260
      this.success = success;
17261
      setSuccessIsSet(true);
17262
      this.cex = cex;
17263
    }
17264
 
17265
    /**
17266
     * Performs a deep copy on <i>other</i>.
17267
     */
17268
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
17269
      __isset_bit_vector.clear();
17270
      __isset_bit_vector.or(other.__isset_bit_vector);
17271
      this.success = other.success;
17272
      if (other.isSetCex()) {
17273
        this.cex = new InventoryServiceException(other.cex);
17274
      }
17275
    }
17276
 
17277
    public reserveItemInWarehouse_result deepCopy() {
17278
      return new reserveItemInWarehouse_result(this);
17279
    }
17280
 
17281
    @Override
17282
    public void clear() {
17283
      setSuccessIsSet(false);
17284
      this.success = false;
17285
      this.cex = null;
17286
    }
17287
 
17288
    public boolean isSuccess() {
17289
      return this.success;
17290
    }
17291
 
17292
    public void setSuccess(boolean success) {
17293
      this.success = success;
17294
      setSuccessIsSet(true);
17295
    }
17296
 
17297
    public void unsetSuccess() {
17298
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17299
    }
17300
 
17301
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17302
    public boolean isSetSuccess() {
17303
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17304
    }
17305
 
17306
    public void setSuccessIsSet(boolean value) {
17307
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17308
    }
17309
 
17310
    public InventoryServiceException getCex() {
17311
      return this.cex;
17312
    }
17313
 
17314
    public void setCex(InventoryServiceException cex) {
17315
      this.cex = cex;
17316
    }
17317
 
17318
    public void unsetCex() {
17319
      this.cex = null;
17320
    }
17321
 
17322
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
17323
    public boolean isSetCex() {
17324
      return this.cex != null;
17325
    }
17326
 
17327
    public void setCexIsSet(boolean value) {
17328
      if (!value) {
17329
        this.cex = null;
17330
      }
17331
    }
17332
 
17333
    public void setFieldValue(_Fields field, Object value) {
17334
      switch (field) {
17335
      case SUCCESS:
17336
        if (value == null) {
17337
          unsetSuccess();
17338
        } else {
17339
          setSuccess((Boolean)value);
17340
        }
17341
        break;
17342
 
17343
      case CEX:
17344
        if (value == null) {
17345
          unsetCex();
17346
        } else {
17347
          setCex((InventoryServiceException)value);
17348
        }
17349
        break;
17350
 
17351
      }
17352
    }
17353
 
17354
    public Object getFieldValue(_Fields field) {
17355
      switch (field) {
17356
      case SUCCESS:
17357
        return Boolean.valueOf(isSuccess());
17358
 
17359
      case CEX:
17360
        return getCex();
17361
 
17362
      }
17363
      throw new IllegalStateException();
17364
    }
17365
 
17366
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17367
    public boolean isSet(_Fields field) {
17368
      if (field == null) {
17369
        throw new IllegalArgumentException();
17370
      }
17371
 
17372
      switch (field) {
17373
      case SUCCESS:
17374
        return isSetSuccess();
17375
      case CEX:
17376
        return isSetCex();
17377
      }
17378
      throw new IllegalStateException();
17379
    }
17380
 
17381
    @Override
17382
    public boolean equals(Object that) {
17383
      if (that == null)
17384
        return false;
17385
      if (that instanceof reserveItemInWarehouse_result)
17386
        return this.equals((reserveItemInWarehouse_result)that);
17387
      return false;
17388
    }
17389
 
17390
    public boolean equals(reserveItemInWarehouse_result that) {
17391
      if (that == null)
17392
        return false;
17393
 
17394
      boolean this_present_success = true;
17395
      boolean that_present_success = true;
17396
      if (this_present_success || that_present_success) {
17397
        if (!(this_present_success && that_present_success))
17398
          return false;
17399
        if (this.success != that.success)
17400
          return false;
17401
      }
17402
 
17403
      boolean this_present_cex = true && this.isSetCex();
17404
      boolean that_present_cex = true && that.isSetCex();
17405
      if (this_present_cex || that_present_cex) {
17406
        if (!(this_present_cex && that_present_cex))
17407
          return false;
17408
        if (!this.cex.equals(that.cex))
17409
          return false;
17410
      }
17411
 
17412
      return true;
17413
    }
17414
 
17415
    @Override
17416
    public int hashCode() {
17417
      return 0;
17418
    }
17419
 
17420
    public int compareTo(reserveItemInWarehouse_result other) {
17421
      if (!getClass().equals(other.getClass())) {
17422
        return getClass().getName().compareTo(other.getClass().getName());
17423
      }
17424
 
17425
      int lastComparison = 0;
17426
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
17427
 
17428
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17429
      if (lastComparison != 0) {
17430
        return lastComparison;
17431
      }
17432
      if (isSetSuccess()) {
17433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17434
        if (lastComparison != 0) {
17435
          return lastComparison;
17436
        }
17437
      }
17438
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17439
      if (lastComparison != 0) {
17440
        return lastComparison;
17441
      }
17442
      if (isSetCex()) {
17443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17444
        if (lastComparison != 0) {
17445
          return lastComparison;
17446
        }
17447
      }
17448
      return 0;
17449
    }
17450
 
17451
    public _Fields fieldForId(int fieldId) {
17452
      return _Fields.findByThriftId(fieldId);
17453
    }
17454
 
17455
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17456
      org.apache.thrift.protocol.TField field;
17457
      iprot.readStructBegin();
17458
      while (true)
17459
      {
17460
        field = iprot.readFieldBegin();
17461
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17462
          break;
17463
        }
17464
        switch (field.id) {
17465
          case 0: // SUCCESS
17466
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17467
              this.success = iprot.readBool();
17468
              setSuccessIsSet(true);
17469
            } else { 
17470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17471
            }
17472
            break;
17473
          case 1: // CEX
17474
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17475
              this.cex = new InventoryServiceException();
17476
              this.cex.read(iprot);
17477
            } else { 
17478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17479
            }
17480
            break;
17481
          default:
17482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17483
        }
17484
        iprot.readFieldEnd();
17485
      }
17486
      iprot.readStructEnd();
17487
      validate();
17488
    }
17489
 
17490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17491
      oprot.writeStructBegin(STRUCT_DESC);
17492
 
17493
      if (this.isSetSuccess()) {
17494
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17495
        oprot.writeBool(this.success);
17496
        oprot.writeFieldEnd();
17497
      } else if (this.isSetCex()) {
17498
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17499
        this.cex.write(oprot);
17500
        oprot.writeFieldEnd();
17501
      }
17502
      oprot.writeFieldStop();
17503
      oprot.writeStructEnd();
17504
    }
17505
 
17506
    @Override
17507
    public String toString() {
17508
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
17509
      boolean first = true;
17510
 
17511
      sb.append("success:");
17512
      sb.append(this.success);
17513
      first = false;
17514
      if (!first) sb.append(", ");
17515
      sb.append("cex:");
17516
      if (this.cex == null) {
17517
        sb.append("null");
17518
      } else {
17519
        sb.append(this.cex);
17520
      }
17521
      first = false;
17522
      sb.append(")");
17523
      return sb.toString();
17524
    }
17525
 
17526
    public void validate() throws org.apache.thrift.TException {
17527
      // check for required fields
17528
    }
17529
 
17530
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17531
      try {
17532
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17533
      } catch (org.apache.thrift.TException te) {
17534
        throw new java.io.IOException(te);
17535
      }
17536
    }
17537
 
17538
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17539
      try {
17540
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17541
      } catch (org.apache.thrift.TException te) {
17542
        throw new java.io.IOException(te);
17543
      }
17544
    }
17545
 
17546
  }
17547
 
7968 amar.kumar 17548
  public static class updateReservationForOrder_args implements org.apache.thrift.TBase<updateReservationForOrder_args, updateReservationForOrder_args._Fields>, java.io.Serializable, Cloneable   {
17549
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_args");
17550
 
17551
    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);
17552
    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);
17553
    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);
17554
    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);
17555
    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);
17556
    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);
17557
    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);
17558
 
17559
    private long itemId; // required
17560
    private long warehouseId; // required
17561
    private long sourceId; // required
17562
    private long orderId; // required
17563
    private long createdTimestamp; // required
17564
    private long promisedShippingTimestamp; // required
17565
    private double quantity; // required
17566
 
17567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17569
      ITEM_ID((short)1, "itemId"),
17570
      WAREHOUSE_ID((short)2, "warehouseId"),
17571
      SOURCE_ID((short)3, "sourceId"),
17572
      ORDER_ID((short)4, "orderId"),
17573
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
17574
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
17575
      QUANTITY((short)7, "quantity");
17576
 
17577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17578
 
17579
      static {
17580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17581
          byName.put(field.getFieldName(), field);
17582
        }
17583
      }
17584
 
17585
      /**
17586
       * Find the _Fields constant that matches fieldId, or null if its not found.
17587
       */
17588
      public static _Fields findByThriftId(int fieldId) {
17589
        switch(fieldId) {
17590
          case 1: // ITEM_ID
17591
            return ITEM_ID;
17592
          case 2: // WAREHOUSE_ID
17593
            return WAREHOUSE_ID;
17594
          case 3: // SOURCE_ID
17595
            return SOURCE_ID;
17596
          case 4: // ORDER_ID
17597
            return ORDER_ID;
17598
          case 5: // CREATED_TIMESTAMP
17599
            return CREATED_TIMESTAMP;
17600
          case 6: // PROMISED_SHIPPING_TIMESTAMP
17601
            return PROMISED_SHIPPING_TIMESTAMP;
17602
          case 7: // QUANTITY
17603
            return QUANTITY;
17604
          default:
17605
            return null;
17606
        }
17607
      }
17608
 
17609
      /**
17610
       * Find the _Fields constant that matches fieldId, throwing an exception
17611
       * if it is not found.
17612
       */
17613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17614
        _Fields fields = findByThriftId(fieldId);
17615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17616
        return fields;
17617
      }
17618
 
17619
      /**
17620
       * Find the _Fields constant that matches name, or null if its not found.
17621
       */
17622
      public static _Fields findByName(String name) {
17623
        return byName.get(name);
17624
      }
17625
 
17626
      private final short _thriftId;
17627
      private final String _fieldName;
17628
 
17629
      _Fields(short thriftId, String fieldName) {
17630
        _thriftId = thriftId;
17631
        _fieldName = fieldName;
17632
      }
17633
 
17634
      public short getThriftFieldId() {
17635
        return _thriftId;
17636
      }
17637
 
17638
      public String getFieldName() {
17639
        return _fieldName;
17640
      }
17641
    }
17642
 
17643
    // isset id assignments
17644
    private static final int __ITEMID_ISSET_ID = 0;
17645
    private static final int __WAREHOUSEID_ISSET_ID = 1;
17646
    private static final int __SOURCEID_ISSET_ID = 2;
17647
    private static final int __ORDERID_ISSET_ID = 3;
17648
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
17649
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
17650
    private static final int __QUANTITY_ISSET_ID = 6;
17651
    private BitSet __isset_bit_vector = new BitSet(7);
17652
 
17653
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17654
    static {
17655
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17656
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17657
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17658
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17660
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17662
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17663
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17664
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17665
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17666
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17668
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
17670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_args.class, metaDataMap);
17672
    }
17673
 
17674
    public updateReservationForOrder_args() {
17675
    }
17676
 
17677
    public updateReservationForOrder_args(
17678
      long itemId,
17679
      long warehouseId,
17680
      long sourceId,
17681
      long orderId,
17682
      long createdTimestamp,
17683
      long promisedShippingTimestamp,
17684
      double quantity)
17685
    {
17686
      this();
17687
      this.itemId = itemId;
17688
      setItemIdIsSet(true);
17689
      this.warehouseId = warehouseId;
17690
      setWarehouseIdIsSet(true);
17691
      this.sourceId = sourceId;
17692
      setSourceIdIsSet(true);
17693
      this.orderId = orderId;
17694
      setOrderIdIsSet(true);
17695
      this.createdTimestamp = createdTimestamp;
17696
      setCreatedTimestampIsSet(true);
17697
      this.promisedShippingTimestamp = promisedShippingTimestamp;
17698
      setPromisedShippingTimestampIsSet(true);
17699
      this.quantity = quantity;
17700
      setQuantityIsSet(true);
17701
    }
17702
 
17703
    /**
17704
     * Performs a deep copy on <i>other</i>.
17705
     */
17706
    public updateReservationForOrder_args(updateReservationForOrder_args other) {
17707
      __isset_bit_vector.clear();
17708
      __isset_bit_vector.or(other.__isset_bit_vector);
17709
      this.itemId = other.itemId;
17710
      this.warehouseId = other.warehouseId;
17711
      this.sourceId = other.sourceId;
17712
      this.orderId = other.orderId;
17713
      this.createdTimestamp = other.createdTimestamp;
17714
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
17715
      this.quantity = other.quantity;
17716
    }
17717
 
17718
    public updateReservationForOrder_args deepCopy() {
17719
      return new updateReservationForOrder_args(this);
17720
    }
17721
 
17722
    @Override
17723
    public void clear() {
17724
      setItemIdIsSet(false);
17725
      this.itemId = 0;
17726
      setWarehouseIdIsSet(false);
17727
      this.warehouseId = 0;
17728
      setSourceIdIsSet(false);
17729
      this.sourceId = 0;
17730
      setOrderIdIsSet(false);
17731
      this.orderId = 0;
17732
      setCreatedTimestampIsSet(false);
17733
      this.createdTimestamp = 0;
17734
      setPromisedShippingTimestampIsSet(false);
17735
      this.promisedShippingTimestamp = 0;
17736
      setQuantityIsSet(false);
17737
      this.quantity = 0.0;
17738
    }
17739
 
17740
    public long getItemId() {
17741
      return this.itemId;
17742
    }
17743
 
17744
    public void setItemId(long itemId) {
17745
      this.itemId = itemId;
17746
      setItemIdIsSet(true);
17747
    }
17748
 
17749
    public void unsetItemId() {
17750
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
17751
    }
17752
 
17753
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
17754
    public boolean isSetItemId() {
17755
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
17756
    }
17757
 
17758
    public void setItemIdIsSet(boolean value) {
17759
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
17760
    }
17761
 
17762
    public long getWarehouseId() {
17763
      return this.warehouseId;
17764
    }
17765
 
17766
    public void setWarehouseId(long warehouseId) {
17767
      this.warehouseId = warehouseId;
17768
      setWarehouseIdIsSet(true);
17769
    }
17770
 
17771
    public void unsetWarehouseId() {
17772
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
17773
    }
17774
 
17775
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
17776
    public boolean isSetWarehouseId() {
17777
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
17778
    }
17779
 
17780
    public void setWarehouseIdIsSet(boolean value) {
17781
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
17782
    }
17783
 
17784
    public long getSourceId() {
17785
      return this.sourceId;
17786
    }
17787
 
17788
    public void setSourceId(long sourceId) {
17789
      this.sourceId = sourceId;
17790
      setSourceIdIsSet(true);
17791
    }
17792
 
17793
    public void unsetSourceId() {
17794
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
17795
    }
17796
 
17797
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
17798
    public boolean isSetSourceId() {
17799
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
17800
    }
17801
 
17802
    public void setSourceIdIsSet(boolean value) {
17803
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
17804
    }
17805
 
17806
    public long getOrderId() {
17807
      return this.orderId;
17808
    }
17809
 
17810
    public void setOrderId(long orderId) {
17811
      this.orderId = orderId;
17812
      setOrderIdIsSet(true);
17813
    }
17814
 
17815
    public void unsetOrderId() {
17816
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
17817
    }
17818
 
17819
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
17820
    public boolean isSetOrderId() {
17821
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
17822
    }
17823
 
17824
    public void setOrderIdIsSet(boolean value) {
17825
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
17826
    }
17827
 
17828
    public long getCreatedTimestamp() {
17829
      return this.createdTimestamp;
17830
    }
17831
 
17832
    public void setCreatedTimestamp(long createdTimestamp) {
17833
      this.createdTimestamp = createdTimestamp;
17834
      setCreatedTimestampIsSet(true);
17835
    }
17836
 
17837
    public void unsetCreatedTimestamp() {
17838
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
17839
    }
17840
 
17841
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
17842
    public boolean isSetCreatedTimestamp() {
17843
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
17844
    }
17845
 
17846
    public void setCreatedTimestampIsSet(boolean value) {
17847
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
17848
    }
17849
 
17850
    public long getPromisedShippingTimestamp() {
17851
      return this.promisedShippingTimestamp;
17852
    }
17853
 
17854
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
17855
      this.promisedShippingTimestamp = promisedShippingTimestamp;
17856
      setPromisedShippingTimestampIsSet(true);
17857
    }
17858
 
17859
    public void unsetPromisedShippingTimestamp() {
17860
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
17861
    }
17862
 
17863
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
17864
    public boolean isSetPromisedShippingTimestamp() {
17865
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
17866
    }
17867
 
17868
    public void setPromisedShippingTimestampIsSet(boolean value) {
17869
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
17870
    }
17871
 
17872
    public double getQuantity() {
17873
      return this.quantity;
17874
    }
17875
 
17876
    public void setQuantity(double quantity) {
17877
      this.quantity = quantity;
17878
      setQuantityIsSet(true);
17879
    }
17880
 
17881
    public void unsetQuantity() {
17882
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
17883
    }
17884
 
17885
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
17886
    public boolean isSetQuantity() {
17887
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
17888
    }
17889
 
17890
    public void setQuantityIsSet(boolean value) {
17891
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
17892
    }
17893
 
17894
    public void setFieldValue(_Fields field, Object value) {
17895
      switch (field) {
17896
      case ITEM_ID:
17897
        if (value == null) {
17898
          unsetItemId();
17899
        } else {
17900
          setItemId((Long)value);
17901
        }
17902
        break;
17903
 
17904
      case WAREHOUSE_ID:
17905
        if (value == null) {
17906
          unsetWarehouseId();
17907
        } else {
17908
          setWarehouseId((Long)value);
17909
        }
17910
        break;
17911
 
17912
      case SOURCE_ID:
17913
        if (value == null) {
17914
          unsetSourceId();
17915
        } else {
17916
          setSourceId((Long)value);
17917
        }
17918
        break;
17919
 
17920
      case ORDER_ID:
17921
        if (value == null) {
17922
          unsetOrderId();
17923
        } else {
17924
          setOrderId((Long)value);
17925
        }
17926
        break;
17927
 
17928
      case CREATED_TIMESTAMP:
17929
        if (value == null) {
17930
          unsetCreatedTimestamp();
17931
        } else {
17932
          setCreatedTimestamp((Long)value);
17933
        }
17934
        break;
17935
 
17936
      case PROMISED_SHIPPING_TIMESTAMP:
17937
        if (value == null) {
17938
          unsetPromisedShippingTimestamp();
17939
        } else {
17940
          setPromisedShippingTimestamp((Long)value);
17941
        }
17942
        break;
17943
 
17944
      case QUANTITY:
17945
        if (value == null) {
17946
          unsetQuantity();
17947
        } else {
17948
          setQuantity((Double)value);
17949
        }
17950
        break;
17951
 
17952
      }
17953
    }
17954
 
17955
    public Object getFieldValue(_Fields field) {
17956
      switch (field) {
17957
      case ITEM_ID:
17958
        return Long.valueOf(getItemId());
17959
 
17960
      case WAREHOUSE_ID:
17961
        return Long.valueOf(getWarehouseId());
17962
 
17963
      case SOURCE_ID:
17964
        return Long.valueOf(getSourceId());
17965
 
17966
      case ORDER_ID:
17967
        return Long.valueOf(getOrderId());
17968
 
17969
      case CREATED_TIMESTAMP:
17970
        return Long.valueOf(getCreatedTimestamp());
17971
 
17972
      case PROMISED_SHIPPING_TIMESTAMP:
17973
        return Long.valueOf(getPromisedShippingTimestamp());
17974
 
17975
      case QUANTITY:
17976
        return Double.valueOf(getQuantity());
17977
 
17978
      }
17979
      throw new IllegalStateException();
17980
    }
17981
 
17982
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17983
    public boolean isSet(_Fields field) {
17984
      if (field == null) {
17985
        throw new IllegalArgumentException();
17986
      }
17987
 
17988
      switch (field) {
17989
      case ITEM_ID:
17990
        return isSetItemId();
17991
      case WAREHOUSE_ID:
17992
        return isSetWarehouseId();
17993
      case SOURCE_ID:
17994
        return isSetSourceId();
17995
      case ORDER_ID:
17996
        return isSetOrderId();
17997
      case CREATED_TIMESTAMP:
17998
        return isSetCreatedTimestamp();
17999
      case PROMISED_SHIPPING_TIMESTAMP:
18000
        return isSetPromisedShippingTimestamp();
18001
      case QUANTITY:
18002
        return isSetQuantity();
18003
      }
18004
      throw new IllegalStateException();
18005
    }
18006
 
18007
    @Override
18008
    public boolean equals(Object that) {
18009
      if (that == null)
18010
        return false;
18011
      if (that instanceof updateReservationForOrder_args)
18012
        return this.equals((updateReservationForOrder_args)that);
18013
      return false;
18014
    }
18015
 
18016
    public boolean equals(updateReservationForOrder_args that) {
18017
      if (that == null)
18018
        return false;
18019
 
18020
      boolean this_present_itemId = true;
18021
      boolean that_present_itemId = true;
18022
      if (this_present_itemId || that_present_itemId) {
18023
        if (!(this_present_itemId && that_present_itemId))
18024
          return false;
18025
        if (this.itemId != that.itemId)
18026
          return false;
18027
      }
18028
 
18029
      boolean this_present_warehouseId = true;
18030
      boolean that_present_warehouseId = true;
18031
      if (this_present_warehouseId || that_present_warehouseId) {
18032
        if (!(this_present_warehouseId && that_present_warehouseId))
18033
          return false;
18034
        if (this.warehouseId != that.warehouseId)
18035
          return false;
18036
      }
18037
 
18038
      boolean this_present_sourceId = true;
18039
      boolean that_present_sourceId = true;
18040
      if (this_present_sourceId || that_present_sourceId) {
18041
        if (!(this_present_sourceId && that_present_sourceId))
18042
          return false;
18043
        if (this.sourceId != that.sourceId)
18044
          return false;
18045
      }
18046
 
18047
      boolean this_present_orderId = true;
18048
      boolean that_present_orderId = true;
18049
      if (this_present_orderId || that_present_orderId) {
18050
        if (!(this_present_orderId && that_present_orderId))
18051
          return false;
18052
        if (this.orderId != that.orderId)
18053
          return false;
18054
      }
18055
 
18056
      boolean this_present_createdTimestamp = true;
18057
      boolean that_present_createdTimestamp = true;
18058
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
18059
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
18060
          return false;
18061
        if (this.createdTimestamp != that.createdTimestamp)
18062
          return false;
18063
      }
18064
 
18065
      boolean this_present_promisedShippingTimestamp = true;
18066
      boolean that_present_promisedShippingTimestamp = true;
18067
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
18068
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
18069
          return false;
18070
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
18071
          return false;
18072
      }
18073
 
18074
      boolean this_present_quantity = true;
18075
      boolean that_present_quantity = true;
18076
      if (this_present_quantity || that_present_quantity) {
18077
        if (!(this_present_quantity && that_present_quantity))
18078
          return false;
18079
        if (this.quantity != that.quantity)
18080
          return false;
18081
      }
18082
 
18083
      return true;
18084
    }
18085
 
18086
    @Override
18087
    public int hashCode() {
18088
      return 0;
18089
    }
18090
 
18091
    public int compareTo(updateReservationForOrder_args other) {
18092
      if (!getClass().equals(other.getClass())) {
18093
        return getClass().getName().compareTo(other.getClass().getName());
18094
      }
18095
 
18096
      int lastComparison = 0;
18097
      updateReservationForOrder_args typedOther = (updateReservationForOrder_args)other;
18098
 
18099
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
18100
      if (lastComparison != 0) {
18101
        return lastComparison;
18102
      }
18103
      if (isSetItemId()) {
18104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
18105
        if (lastComparison != 0) {
18106
          return lastComparison;
18107
        }
18108
      }
18109
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
18110
      if (lastComparison != 0) {
18111
        return lastComparison;
18112
      }
18113
      if (isSetWarehouseId()) {
18114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
18115
        if (lastComparison != 0) {
18116
          return lastComparison;
18117
        }
18118
      }
18119
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
18120
      if (lastComparison != 0) {
18121
        return lastComparison;
18122
      }
18123
      if (isSetSourceId()) {
18124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
18125
        if (lastComparison != 0) {
18126
          return lastComparison;
18127
        }
18128
      }
18129
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
18130
      if (lastComparison != 0) {
18131
        return lastComparison;
18132
      }
18133
      if (isSetOrderId()) {
18134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
18135
        if (lastComparison != 0) {
18136
          return lastComparison;
18137
        }
18138
      }
18139
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
18140
      if (lastComparison != 0) {
18141
        return lastComparison;
18142
      }
18143
      if (isSetCreatedTimestamp()) {
18144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
18145
        if (lastComparison != 0) {
18146
          return lastComparison;
18147
        }
18148
      }
18149
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
18150
      if (lastComparison != 0) {
18151
        return lastComparison;
18152
      }
18153
      if (isSetPromisedShippingTimestamp()) {
18154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
18155
        if (lastComparison != 0) {
18156
          return lastComparison;
18157
        }
18158
      }
18159
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
18160
      if (lastComparison != 0) {
18161
        return lastComparison;
18162
      }
18163
      if (isSetQuantity()) {
18164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
18165
        if (lastComparison != 0) {
18166
          return lastComparison;
18167
        }
18168
      }
18169
      return 0;
18170
    }
18171
 
18172
    public _Fields fieldForId(int fieldId) {
18173
      return _Fields.findByThriftId(fieldId);
18174
    }
18175
 
18176
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18177
      org.apache.thrift.protocol.TField field;
18178
      iprot.readStructBegin();
18179
      while (true)
18180
      {
18181
        field = iprot.readFieldBegin();
18182
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18183
          break;
18184
        }
18185
        switch (field.id) {
18186
          case 1: // ITEM_ID
18187
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18188
              this.itemId = iprot.readI64();
18189
              setItemIdIsSet(true);
18190
            } else { 
18191
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18192
            }
18193
            break;
18194
          case 2: // WAREHOUSE_ID
18195
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18196
              this.warehouseId = iprot.readI64();
18197
              setWarehouseIdIsSet(true);
18198
            } else { 
18199
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18200
            }
18201
            break;
18202
          case 3: // SOURCE_ID
18203
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18204
              this.sourceId = iprot.readI64();
18205
              setSourceIdIsSet(true);
18206
            } else { 
18207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18208
            }
18209
            break;
18210
          case 4: // ORDER_ID
18211
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18212
              this.orderId = iprot.readI64();
18213
              setOrderIdIsSet(true);
18214
            } else { 
18215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18216
            }
18217
            break;
18218
          case 5: // CREATED_TIMESTAMP
18219
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18220
              this.createdTimestamp = iprot.readI64();
18221
              setCreatedTimestampIsSet(true);
18222
            } else { 
18223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18224
            }
18225
            break;
18226
          case 6: // PROMISED_SHIPPING_TIMESTAMP
18227
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18228
              this.promisedShippingTimestamp = iprot.readI64();
18229
              setPromisedShippingTimestampIsSet(true);
18230
            } else { 
18231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18232
            }
18233
            break;
18234
          case 7: // QUANTITY
18235
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
18236
              this.quantity = iprot.readDouble();
18237
              setQuantityIsSet(true);
18238
            } else { 
18239
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18240
            }
18241
            break;
18242
          default:
18243
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18244
        }
18245
        iprot.readFieldEnd();
18246
      }
18247
      iprot.readStructEnd();
18248
      validate();
18249
    }
18250
 
18251
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18252
      validate();
18253
 
18254
      oprot.writeStructBegin(STRUCT_DESC);
18255
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
18256
      oprot.writeI64(this.itemId);
18257
      oprot.writeFieldEnd();
18258
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
18259
      oprot.writeI64(this.warehouseId);
18260
      oprot.writeFieldEnd();
18261
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
18262
      oprot.writeI64(this.sourceId);
18263
      oprot.writeFieldEnd();
18264
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
18265
      oprot.writeI64(this.orderId);
18266
      oprot.writeFieldEnd();
18267
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
18268
      oprot.writeI64(this.createdTimestamp);
18269
      oprot.writeFieldEnd();
18270
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
18271
      oprot.writeI64(this.promisedShippingTimestamp);
18272
      oprot.writeFieldEnd();
18273
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
18274
      oprot.writeDouble(this.quantity);
18275
      oprot.writeFieldEnd();
18276
      oprot.writeFieldStop();
18277
      oprot.writeStructEnd();
18278
    }
18279
 
18280
    @Override
18281
    public String toString() {
18282
      StringBuilder sb = new StringBuilder("updateReservationForOrder_args(");
18283
      boolean first = true;
18284
 
18285
      sb.append("itemId:");
18286
      sb.append(this.itemId);
18287
      first = false;
18288
      if (!first) sb.append(", ");
18289
      sb.append("warehouseId:");
18290
      sb.append(this.warehouseId);
18291
      first = false;
18292
      if (!first) sb.append(", ");
18293
      sb.append("sourceId:");
18294
      sb.append(this.sourceId);
18295
      first = false;
18296
      if (!first) sb.append(", ");
18297
      sb.append("orderId:");
18298
      sb.append(this.orderId);
18299
      first = false;
18300
      if (!first) sb.append(", ");
18301
      sb.append("createdTimestamp:");
18302
      sb.append(this.createdTimestamp);
18303
      first = false;
18304
      if (!first) sb.append(", ");
18305
      sb.append("promisedShippingTimestamp:");
18306
      sb.append(this.promisedShippingTimestamp);
18307
      first = false;
18308
      if (!first) sb.append(", ");
18309
      sb.append("quantity:");
18310
      sb.append(this.quantity);
18311
      first = false;
18312
      sb.append(")");
18313
      return sb.toString();
18314
    }
18315
 
18316
    public void validate() throws org.apache.thrift.TException {
18317
      // check for required fields
18318
    }
18319
 
18320
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18321
      try {
18322
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18323
      } catch (org.apache.thrift.TException te) {
18324
        throw new java.io.IOException(te);
18325
      }
18326
    }
18327
 
18328
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18329
      try {
18330
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18331
        __isset_bit_vector = new BitSet(1);
18332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18333
      } catch (org.apache.thrift.TException te) {
18334
        throw new java.io.IOException(te);
18335
      }
18336
    }
18337
 
18338
  }
18339
 
18340
  public static class updateReservationForOrder_result implements org.apache.thrift.TBase<updateReservationForOrder_result, updateReservationForOrder_result._Fields>, java.io.Serializable, Cloneable   {
18341
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateReservationForOrder_result");
18342
 
18343
    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);
18344
    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);
18345
 
18346
    private boolean success; // required
18347
    private InventoryServiceException cex; // required
18348
 
18349
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18350
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18351
      SUCCESS((short)0, "success"),
18352
      CEX((short)1, "cex");
18353
 
18354
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18355
 
18356
      static {
18357
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18358
          byName.put(field.getFieldName(), field);
18359
        }
18360
      }
18361
 
18362
      /**
18363
       * Find the _Fields constant that matches fieldId, or null if its not found.
18364
       */
18365
      public static _Fields findByThriftId(int fieldId) {
18366
        switch(fieldId) {
18367
          case 0: // SUCCESS
18368
            return SUCCESS;
18369
          case 1: // CEX
18370
            return CEX;
18371
          default:
18372
            return null;
18373
        }
18374
      }
18375
 
18376
      /**
18377
       * Find the _Fields constant that matches fieldId, throwing an exception
18378
       * if it is not found.
18379
       */
18380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18381
        _Fields fields = findByThriftId(fieldId);
18382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18383
        return fields;
18384
      }
18385
 
18386
      /**
18387
       * Find the _Fields constant that matches name, or null if its not found.
18388
       */
18389
      public static _Fields findByName(String name) {
18390
        return byName.get(name);
18391
      }
18392
 
18393
      private final short _thriftId;
18394
      private final String _fieldName;
18395
 
18396
      _Fields(short thriftId, String fieldName) {
18397
        _thriftId = thriftId;
18398
        _fieldName = fieldName;
18399
      }
18400
 
18401
      public short getThriftFieldId() {
18402
        return _thriftId;
18403
      }
18404
 
18405
      public String getFieldName() {
18406
        return _fieldName;
18407
      }
18408
    }
18409
 
18410
    // isset id assignments
18411
    private static final int __SUCCESS_ISSET_ID = 0;
18412
    private BitSet __isset_bit_vector = new BitSet(1);
18413
 
18414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18415
    static {
18416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18417
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18418
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18419
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18421
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18422
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateReservationForOrder_result.class, metaDataMap);
18423
    }
18424
 
18425
    public updateReservationForOrder_result() {
18426
    }
18427
 
18428
    public updateReservationForOrder_result(
18429
      boolean success,
18430
      InventoryServiceException cex)
18431
    {
18432
      this();
18433
      this.success = success;
18434
      setSuccessIsSet(true);
18435
      this.cex = cex;
18436
    }
18437
 
18438
    /**
18439
     * Performs a deep copy on <i>other</i>.
18440
     */
18441
    public updateReservationForOrder_result(updateReservationForOrder_result other) {
18442
      __isset_bit_vector.clear();
18443
      __isset_bit_vector.or(other.__isset_bit_vector);
18444
      this.success = other.success;
18445
      if (other.isSetCex()) {
18446
        this.cex = new InventoryServiceException(other.cex);
18447
      }
18448
    }
18449
 
18450
    public updateReservationForOrder_result deepCopy() {
18451
      return new updateReservationForOrder_result(this);
18452
    }
18453
 
18454
    @Override
18455
    public void clear() {
18456
      setSuccessIsSet(false);
18457
      this.success = false;
18458
      this.cex = null;
18459
    }
18460
 
18461
    public boolean isSuccess() {
18462
      return this.success;
18463
    }
18464
 
18465
    public void setSuccess(boolean success) {
18466
      this.success = success;
18467
      setSuccessIsSet(true);
18468
    }
18469
 
18470
    public void unsetSuccess() {
18471
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18472
    }
18473
 
18474
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18475
    public boolean isSetSuccess() {
18476
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18477
    }
18478
 
18479
    public void setSuccessIsSet(boolean value) {
18480
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18481
    }
18482
 
18483
    public InventoryServiceException getCex() {
18484
      return this.cex;
18485
    }
18486
 
18487
    public void setCex(InventoryServiceException cex) {
18488
      this.cex = cex;
18489
    }
18490
 
18491
    public void unsetCex() {
18492
      this.cex = null;
18493
    }
18494
 
18495
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
18496
    public boolean isSetCex() {
18497
      return this.cex != null;
18498
    }
18499
 
18500
    public void setCexIsSet(boolean value) {
18501
      if (!value) {
18502
        this.cex = null;
18503
      }
18504
    }
18505
 
18506
    public void setFieldValue(_Fields field, Object value) {
18507
      switch (field) {
18508
      case SUCCESS:
18509
        if (value == null) {
18510
          unsetSuccess();
18511
        } else {
18512
          setSuccess((Boolean)value);
18513
        }
18514
        break;
18515
 
18516
      case CEX:
18517
        if (value == null) {
18518
          unsetCex();
18519
        } else {
18520
          setCex((InventoryServiceException)value);
18521
        }
18522
        break;
18523
 
18524
      }
18525
    }
18526
 
18527
    public Object getFieldValue(_Fields field) {
18528
      switch (field) {
18529
      case SUCCESS:
18530
        return Boolean.valueOf(isSuccess());
18531
 
18532
      case CEX:
18533
        return getCex();
18534
 
18535
      }
18536
      throw new IllegalStateException();
18537
    }
18538
 
18539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18540
    public boolean isSet(_Fields field) {
18541
      if (field == null) {
18542
        throw new IllegalArgumentException();
18543
      }
18544
 
18545
      switch (field) {
18546
      case SUCCESS:
18547
        return isSetSuccess();
18548
      case CEX:
18549
        return isSetCex();
18550
      }
18551
      throw new IllegalStateException();
18552
    }
18553
 
18554
    @Override
18555
    public boolean equals(Object that) {
18556
      if (that == null)
18557
        return false;
18558
      if (that instanceof updateReservationForOrder_result)
18559
        return this.equals((updateReservationForOrder_result)that);
18560
      return false;
18561
    }
18562
 
18563
    public boolean equals(updateReservationForOrder_result that) {
18564
      if (that == null)
18565
        return false;
18566
 
18567
      boolean this_present_success = true;
18568
      boolean that_present_success = true;
18569
      if (this_present_success || that_present_success) {
18570
        if (!(this_present_success && that_present_success))
18571
          return false;
18572
        if (this.success != that.success)
18573
          return false;
18574
      }
18575
 
18576
      boolean this_present_cex = true && this.isSetCex();
18577
      boolean that_present_cex = true && that.isSetCex();
18578
      if (this_present_cex || that_present_cex) {
18579
        if (!(this_present_cex && that_present_cex))
18580
          return false;
18581
        if (!this.cex.equals(that.cex))
18582
          return false;
18583
      }
18584
 
18585
      return true;
18586
    }
18587
 
18588
    @Override
18589
    public int hashCode() {
18590
      return 0;
18591
    }
18592
 
18593
    public int compareTo(updateReservationForOrder_result other) {
18594
      if (!getClass().equals(other.getClass())) {
18595
        return getClass().getName().compareTo(other.getClass().getName());
18596
      }
18597
 
18598
      int lastComparison = 0;
18599
      updateReservationForOrder_result typedOther = (updateReservationForOrder_result)other;
18600
 
18601
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18602
      if (lastComparison != 0) {
18603
        return lastComparison;
18604
      }
18605
      if (isSetSuccess()) {
18606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18607
        if (lastComparison != 0) {
18608
          return lastComparison;
18609
        }
18610
      }
18611
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
18612
      if (lastComparison != 0) {
18613
        return lastComparison;
18614
      }
18615
      if (isSetCex()) {
18616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
18617
        if (lastComparison != 0) {
18618
          return lastComparison;
18619
        }
18620
      }
18621
      return 0;
18622
    }
18623
 
18624
    public _Fields fieldForId(int fieldId) {
18625
      return _Fields.findByThriftId(fieldId);
18626
    }
18627
 
18628
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18629
      org.apache.thrift.protocol.TField field;
18630
      iprot.readStructBegin();
18631
      while (true)
18632
      {
18633
        field = iprot.readFieldBegin();
18634
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18635
          break;
18636
        }
18637
        switch (field.id) {
18638
          case 0: // SUCCESS
18639
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18640
              this.success = iprot.readBool();
18641
              setSuccessIsSet(true);
18642
            } else { 
18643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18644
            }
18645
            break;
18646
          case 1: // CEX
18647
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18648
              this.cex = new InventoryServiceException();
18649
              this.cex.read(iprot);
18650
            } else { 
18651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18652
            }
18653
            break;
18654
          default:
18655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18656
        }
18657
        iprot.readFieldEnd();
18658
      }
18659
      iprot.readStructEnd();
18660
      validate();
18661
    }
18662
 
18663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18664
      oprot.writeStructBegin(STRUCT_DESC);
18665
 
18666
      if (this.isSetSuccess()) {
18667
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18668
        oprot.writeBool(this.success);
18669
        oprot.writeFieldEnd();
18670
      } else if (this.isSetCex()) {
18671
        oprot.writeFieldBegin(CEX_FIELD_DESC);
18672
        this.cex.write(oprot);
18673
        oprot.writeFieldEnd();
18674
      }
18675
      oprot.writeFieldStop();
18676
      oprot.writeStructEnd();
18677
    }
18678
 
18679
    @Override
18680
    public String toString() {
18681
      StringBuilder sb = new StringBuilder("updateReservationForOrder_result(");
18682
      boolean first = true;
18683
 
18684
      sb.append("success:");
18685
      sb.append(this.success);
18686
      first = false;
18687
      if (!first) sb.append(", ");
18688
      sb.append("cex:");
18689
      if (this.cex == null) {
18690
        sb.append("null");
18691
      } else {
18692
        sb.append(this.cex);
18693
      }
18694
      first = false;
18695
      sb.append(")");
18696
      return sb.toString();
18697
    }
18698
 
18699
    public void validate() throws org.apache.thrift.TException {
18700
      // check for required fields
18701
    }
18702
 
18703
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18704
      try {
18705
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18706
      } catch (org.apache.thrift.TException te) {
18707
        throw new java.io.IOException(te);
18708
      }
18709
    }
18710
 
18711
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18712
      try {
18713
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18714
      } catch (org.apache.thrift.TException te) {
18715
        throw new java.io.IOException(te);
18716
      }
18717
    }
18718
 
18719
  }
18720
 
5945 mandeep.dh 18721
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
18722
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
18723
 
18724
    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);
18725
    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 18726
    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);
18727
    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);
18728
    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 18729
 
18730
    private long itemId; // required
18731
    private long warehouseId; // required
5967 rajveer 18732
    private long sourceId; // required
18733
    private long orderId; // required
5945 mandeep.dh 18734
    private double quantity; // required
18735
 
18736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18738
      ITEM_ID((short)1, "itemId"),
18739
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 18740
      SOURCE_ID((short)3, "sourceId"),
18741
      ORDER_ID((short)4, "orderId"),
18742
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 18743
 
18744
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18745
 
18746
      static {
18747
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18748
          byName.put(field.getFieldName(), field);
18749
        }
18750
      }
18751
 
18752
      /**
18753
       * Find the _Fields constant that matches fieldId, or null if its not found.
18754
       */
18755
      public static _Fields findByThriftId(int fieldId) {
18756
        switch(fieldId) {
18757
          case 1: // ITEM_ID
18758
            return ITEM_ID;
18759
          case 2: // WAREHOUSE_ID
18760
            return WAREHOUSE_ID;
5967 rajveer 18761
          case 3: // SOURCE_ID
18762
            return SOURCE_ID;
18763
          case 4: // ORDER_ID
18764
            return ORDER_ID;
18765
          case 5: // QUANTITY
5945 mandeep.dh 18766
            return QUANTITY;
18767
          default:
18768
            return null;
18769
        }
18770
      }
18771
 
18772
      /**
18773
       * Find the _Fields constant that matches fieldId, throwing an exception
18774
       * if it is not found.
18775
       */
18776
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18777
        _Fields fields = findByThriftId(fieldId);
18778
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18779
        return fields;
18780
      }
18781
 
18782
      /**
18783
       * Find the _Fields constant that matches name, or null if its not found.
18784
       */
18785
      public static _Fields findByName(String name) {
18786
        return byName.get(name);
18787
      }
18788
 
18789
      private final short _thriftId;
18790
      private final String _fieldName;
18791
 
18792
      _Fields(short thriftId, String fieldName) {
18793
        _thriftId = thriftId;
18794
        _fieldName = fieldName;
18795
      }
18796
 
18797
      public short getThriftFieldId() {
18798
        return _thriftId;
18799
      }
18800
 
18801
      public String getFieldName() {
18802
        return _fieldName;
18803
      }
18804
    }
18805
 
18806
    // isset id assignments
18807
    private static final int __ITEMID_ISSET_ID = 0;
18808
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 18809
    private static final int __SOURCEID_ISSET_ID = 2;
18810
    private static final int __ORDERID_ISSET_ID = 3;
18811
    private static final int __QUANTITY_ISSET_ID = 4;
18812
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 18813
 
18814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18815
    static {
18816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18817
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18819
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 18821
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18823
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18824
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 18825
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18826
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
18827
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18828
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
18829
    }
18830
 
18831
    public reduceReservationCount_args() {
18832
    }
18833
 
18834
    public reduceReservationCount_args(
18835
      long itemId,
18836
      long warehouseId,
5967 rajveer 18837
      long sourceId,
18838
      long orderId,
5945 mandeep.dh 18839
      double quantity)
18840
    {
18841
      this();
18842
      this.itemId = itemId;
18843
      setItemIdIsSet(true);
18844
      this.warehouseId = warehouseId;
18845
      setWarehouseIdIsSet(true);
5967 rajveer 18846
      this.sourceId = sourceId;
18847
      setSourceIdIsSet(true);
18848
      this.orderId = orderId;
18849
      setOrderIdIsSet(true);
5945 mandeep.dh 18850
      this.quantity = quantity;
18851
      setQuantityIsSet(true);
18852
    }
18853
 
18854
    /**
18855
     * Performs a deep copy on <i>other</i>.
18856
     */
18857
    public reduceReservationCount_args(reduceReservationCount_args other) {
18858
      __isset_bit_vector.clear();
18859
      __isset_bit_vector.or(other.__isset_bit_vector);
18860
      this.itemId = other.itemId;
18861
      this.warehouseId = other.warehouseId;
5967 rajveer 18862
      this.sourceId = other.sourceId;
18863
      this.orderId = other.orderId;
5945 mandeep.dh 18864
      this.quantity = other.quantity;
18865
    }
18866
 
18867
    public reduceReservationCount_args deepCopy() {
18868
      return new reduceReservationCount_args(this);
18869
    }
18870
 
18871
    @Override
18872
    public void clear() {
18873
      setItemIdIsSet(false);
18874
      this.itemId = 0;
18875
      setWarehouseIdIsSet(false);
18876
      this.warehouseId = 0;
5967 rajveer 18877
      setSourceIdIsSet(false);
18878
      this.sourceId = 0;
18879
      setOrderIdIsSet(false);
18880
      this.orderId = 0;
5945 mandeep.dh 18881
      setQuantityIsSet(false);
18882
      this.quantity = 0.0;
18883
    }
18884
 
18885
    public long getItemId() {
18886
      return this.itemId;
18887
    }
18888
 
18889
    public void setItemId(long itemId) {
18890
      this.itemId = itemId;
18891
      setItemIdIsSet(true);
18892
    }
18893
 
18894
    public void unsetItemId() {
18895
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
18896
    }
18897
 
18898
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
18899
    public boolean isSetItemId() {
18900
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
18901
    }
18902
 
18903
    public void setItemIdIsSet(boolean value) {
18904
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
18905
    }
18906
 
18907
    public long getWarehouseId() {
18908
      return this.warehouseId;
18909
    }
18910
 
18911
    public void setWarehouseId(long warehouseId) {
18912
      this.warehouseId = warehouseId;
18913
      setWarehouseIdIsSet(true);
18914
    }
18915
 
18916
    public void unsetWarehouseId() {
18917
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
18918
    }
18919
 
18920
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
18921
    public boolean isSetWarehouseId() {
18922
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
18923
    }
18924
 
18925
    public void setWarehouseIdIsSet(boolean value) {
18926
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
18927
    }
18928
 
5967 rajveer 18929
    public long getSourceId() {
18930
      return this.sourceId;
18931
    }
18932
 
18933
    public void setSourceId(long sourceId) {
18934
      this.sourceId = sourceId;
18935
      setSourceIdIsSet(true);
18936
    }
18937
 
18938
    public void unsetSourceId() {
18939
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
18940
    }
18941
 
18942
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
18943
    public boolean isSetSourceId() {
18944
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
18945
    }
18946
 
18947
    public void setSourceIdIsSet(boolean value) {
18948
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
18949
    }
18950
 
18951
    public long getOrderId() {
18952
      return this.orderId;
18953
    }
18954
 
18955
    public void setOrderId(long orderId) {
18956
      this.orderId = orderId;
18957
      setOrderIdIsSet(true);
18958
    }
18959
 
18960
    public void unsetOrderId() {
18961
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
18962
    }
18963
 
18964
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
18965
    public boolean isSetOrderId() {
18966
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
18967
    }
18968
 
18969
    public void setOrderIdIsSet(boolean value) {
18970
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
18971
    }
18972
 
5945 mandeep.dh 18973
    public double getQuantity() {
18974
      return this.quantity;
18975
    }
18976
 
18977
    public void setQuantity(double quantity) {
18978
      this.quantity = quantity;
18979
      setQuantityIsSet(true);
18980
    }
18981
 
18982
    public void unsetQuantity() {
18983
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
18984
    }
18985
 
18986
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
18987
    public boolean isSetQuantity() {
18988
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
18989
    }
18990
 
18991
    public void setQuantityIsSet(boolean value) {
18992
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
18993
    }
18994
 
18995
    public void setFieldValue(_Fields field, Object value) {
18996
      switch (field) {
18997
      case ITEM_ID:
18998
        if (value == null) {
18999
          unsetItemId();
19000
        } else {
19001
          setItemId((Long)value);
19002
        }
19003
        break;
19004
 
19005
      case WAREHOUSE_ID:
19006
        if (value == null) {
19007
          unsetWarehouseId();
19008
        } else {
19009
          setWarehouseId((Long)value);
19010
        }
19011
        break;
19012
 
5967 rajveer 19013
      case SOURCE_ID:
19014
        if (value == null) {
19015
          unsetSourceId();
19016
        } else {
19017
          setSourceId((Long)value);
19018
        }
19019
        break;
19020
 
19021
      case ORDER_ID:
19022
        if (value == null) {
19023
          unsetOrderId();
19024
        } else {
19025
          setOrderId((Long)value);
19026
        }
19027
        break;
19028
 
5945 mandeep.dh 19029
      case QUANTITY:
19030
        if (value == null) {
19031
          unsetQuantity();
19032
        } else {
19033
          setQuantity((Double)value);
19034
        }
19035
        break;
19036
 
19037
      }
19038
    }
19039
 
19040
    public Object getFieldValue(_Fields field) {
19041
      switch (field) {
19042
      case ITEM_ID:
19043
        return Long.valueOf(getItemId());
19044
 
19045
      case WAREHOUSE_ID:
19046
        return Long.valueOf(getWarehouseId());
19047
 
5967 rajveer 19048
      case SOURCE_ID:
19049
        return Long.valueOf(getSourceId());
19050
 
19051
      case ORDER_ID:
19052
        return Long.valueOf(getOrderId());
19053
 
5945 mandeep.dh 19054
      case QUANTITY:
19055
        return Double.valueOf(getQuantity());
19056
 
19057
      }
19058
      throw new IllegalStateException();
19059
    }
19060
 
19061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19062
    public boolean isSet(_Fields field) {
19063
      if (field == null) {
19064
        throw new IllegalArgumentException();
19065
      }
19066
 
19067
      switch (field) {
19068
      case ITEM_ID:
19069
        return isSetItemId();
19070
      case WAREHOUSE_ID:
19071
        return isSetWarehouseId();
5967 rajveer 19072
      case SOURCE_ID:
19073
        return isSetSourceId();
19074
      case ORDER_ID:
19075
        return isSetOrderId();
5945 mandeep.dh 19076
      case QUANTITY:
19077
        return isSetQuantity();
19078
      }
19079
      throw new IllegalStateException();
19080
    }
19081
 
19082
    @Override
19083
    public boolean equals(Object that) {
19084
      if (that == null)
19085
        return false;
19086
      if (that instanceof reduceReservationCount_args)
19087
        return this.equals((reduceReservationCount_args)that);
19088
      return false;
19089
    }
19090
 
19091
    public boolean equals(reduceReservationCount_args that) {
19092
      if (that == null)
19093
        return false;
19094
 
19095
      boolean this_present_itemId = true;
19096
      boolean that_present_itemId = true;
19097
      if (this_present_itemId || that_present_itemId) {
19098
        if (!(this_present_itemId && that_present_itemId))
19099
          return false;
19100
        if (this.itemId != that.itemId)
19101
          return false;
19102
      }
19103
 
19104
      boolean this_present_warehouseId = true;
19105
      boolean that_present_warehouseId = true;
19106
      if (this_present_warehouseId || that_present_warehouseId) {
19107
        if (!(this_present_warehouseId && that_present_warehouseId))
19108
          return false;
19109
        if (this.warehouseId != that.warehouseId)
19110
          return false;
19111
      }
19112
 
5967 rajveer 19113
      boolean this_present_sourceId = true;
19114
      boolean that_present_sourceId = true;
19115
      if (this_present_sourceId || that_present_sourceId) {
19116
        if (!(this_present_sourceId && that_present_sourceId))
19117
          return false;
19118
        if (this.sourceId != that.sourceId)
19119
          return false;
19120
      }
19121
 
19122
      boolean this_present_orderId = true;
19123
      boolean that_present_orderId = true;
19124
      if (this_present_orderId || that_present_orderId) {
19125
        if (!(this_present_orderId && that_present_orderId))
19126
          return false;
19127
        if (this.orderId != that.orderId)
19128
          return false;
19129
      }
19130
 
5945 mandeep.dh 19131
      boolean this_present_quantity = true;
19132
      boolean that_present_quantity = true;
19133
      if (this_present_quantity || that_present_quantity) {
19134
        if (!(this_present_quantity && that_present_quantity))
19135
          return false;
19136
        if (this.quantity != that.quantity)
19137
          return false;
19138
      }
19139
 
19140
      return true;
19141
    }
19142
 
19143
    @Override
19144
    public int hashCode() {
19145
      return 0;
19146
    }
19147
 
19148
    public int compareTo(reduceReservationCount_args other) {
19149
      if (!getClass().equals(other.getClass())) {
19150
        return getClass().getName().compareTo(other.getClass().getName());
19151
      }
19152
 
19153
      int lastComparison = 0;
19154
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
19155
 
19156
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19157
      if (lastComparison != 0) {
19158
        return lastComparison;
19159
      }
19160
      if (isSetItemId()) {
19161
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19162
        if (lastComparison != 0) {
19163
          return lastComparison;
19164
        }
19165
      }
19166
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
19167
      if (lastComparison != 0) {
19168
        return lastComparison;
19169
      }
19170
      if (isSetWarehouseId()) {
19171
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
19172
        if (lastComparison != 0) {
19173
          return lastComparison;
19174
        }
19175
      }
5967 rajveer 19176
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
19177
      if (lastComparison != 0) {
19178
        return lastComparison;
19179
      }
19180
      if (isSetSourceId()) {
19181
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
19182
        if (lastComparison != 0) {
19183
          return lastComparison;
19184
        }
19185
      }
19186
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
19187
      if (lastComparison != 0) {
19188
        return lastComparison;
19189
      }
19190
      if (isSetOrderId()) {
19191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
19192
        if (lastComparison != 0) {
19193
          return lastComparison;
19194
        }
19195
      }
5945 mandeep.dh 19196
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
19197
      if (lastComparison != 0) {
19198
        return lastComparison;
19199
      }
19200
      if (isSetQuantity()) {
19201
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
19202
        if (lastComparison != 0) {
19203
          return lastComparison;
19204
        }
19205
      }
19206
      return 0;
19207
    }
19208
 
19209
    public _Fields fieldForId(int fieldId) {
19210
      return _Fields.findByThriftId(fieldId);
19211
    }
19212
 
19213
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19214
      org.apache.thrift.protocol.TField field;
19215
      iprot.readStructBegin();
19216
      while (true)
19217
      {
19218
        field = iprot.readFieldBegin();
19219
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19220
          break;
19221
        }
19222
        switch (field.id) {
19223
          case 1: // ITEM_ID
19224
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19225
              this.itemId = iprot.readI64();
19226
              setItemIdIsSet(true);
19227
            } else { 
19228
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19229
            }
19230
            break;
19231
          case 2: // WAREHOUSE_ID
19232
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19233
              this.warehouseId = iprot.readI64();
19234
              setWarehouseIdIsSet(true);
19235
            } else { 
19236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19237
            }
19238
            break;
5967 rajveer 19239
          case 3: // SOURCE_ID
19240
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19241
              this.sourceId = iprot.readI64();
19242
              setSourceIdIsSet(true);
19243
            } else { 
19244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19245
            }
19246
            break;
19247
          case 4: // ORDER_ID
19248
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19249
              this.orderId = iprot.readI64();
19250
              setOrderIdIsSet(true);
19251
            } else { 
19252
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19253
            }
19254
            break;
19255
          case 5: // QUANTITY
5945 mandeep.dh 19256
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
19257
              this.quantity = iprot.readDouble();
19258
              setQuantityIsSet(true);
19259
            } else { 
19260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19261
            }
19262
            break;
19263
          default:
19264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19265
        }
19266
        iprot.readFieldEnd();
19267
      }
19268
      iprot.readStructEnd();
19269
      validate();
19270
    }
19271
 
19272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19273
      validate();
19274
 
19275
      oprot.writeStructBegin(STRUCT_DESC);
19276
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
19277
      oprot.writeI64(this.itemId);
19278
      oprot.writeFieldEnd();
19279
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
19280
      oprot.writeI64(this.warehouseId);
19281
      oprot.writeFieldEnd();
5967 rajveer 19282
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
19283
      oprot.writeI64(this.sourceId);
19284
      oprot.writeFieldEnd();
19285
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
19286
      oprot.writeI64(this.orderId);
19287
      oprot.writeFieldEnd();
5945 mandeep.dh 19288
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
19289
      oprot.writeDouble(this.quantity);
19290
      oprot.writeFieldEnd();
19291
      oprot.writeFieldStop();
19292
      oprot.writeStructEnd();
19293
    }
19294
 
19295
    @Override
19296
    public String toString() {
19297
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
19298
      boolean first = true;
19299
 
19300
      sb.append("itemId:");
19301
      sb.append(this.itemId);
19302
      first = false;
19303
      if (!first) sb.append(", ");
19304
      sb.append("warehouseId:");
19305
      sb.append(this.warehouseId);
19306
      first = false;
19307
      if (!first) sb.append(", ");
5967 rajveer 19308
      sb.append("sourceId:");
19309
      sb.append(this.sourceId);
19310
      first = false;
19311
      if (!first) sb.append(", ");
19312
      sb.append("orderId:");
19313
      sb.append(this.orderId);
19314
      first = false;
19315
      if (!first) sb.append(", ");
5945 mandeep.dh 19316
      sb.append("quantity:");
19317
      sb.append(this.quantity);
19318
      first = false;
19319
      sb.append(")");
19320
      return sb.toString();
19321
    }
19322
 
19323
    public void validate() throws org.apache.thrift.TException {
19324
      // check for required fields
19325
    }
19326
 
19327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19328
      try {
19329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19330
      } catch (org.apache.thrift.TException te) {
19331
        throw new java.io.IOException(te);
19332
      }
19333
    }
19334
 
19335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19336
      try {
19337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19338
      } catch (org.apache.thrift.TException te) {
19339
        throw new java.io.IOException(te);
19340
      }
19341
    }
19342
 
19343
  }
19344
 
19345
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
19346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
19347
 
19348
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
19349
    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);
19350
 
19351
    private boolean success; // required
19352
    private InventoryServiceException cex; // required
19353
 
19354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19356
      SUCCESS((short)0, "success"),
19357
      CEX((short)1, "cex");
19358
 
19359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19360
 
19361
      static {
19362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19363
          byName.put(field.getFieldName(), field);
19364
        }
19365
      }
19366
 
19367
      /**
19368
       * Find the _Fields constant that matches fieldId, or null if its not found.
19369
       */
19370
      public static _Fields findByThriftId(int fieldId) {
19371
        switch(fieldId) {
19372
          case 0: // SUCCESS
19373
            return SUCCESS;
19374
          case 1: // CEX
19375
            return CEX;
19376
          default:
19377
            return null;
19378
        }
19379
      }
19380
 
19381
      /**
19382
       * Find the _Fields constant that matches fieldId, throwing an exception
19383
       * if it is not found.
19384
       */
19385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19386
        _Fields fields = findByThriftId(fieldId);
19387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19388
        return fields;
19389
      }
19390
 
19391
      /**
19392
       * Find the _Fields constant that matches name, or null if its not found.
19393
       */
19394
      public static _Fields findByName(String name) {
19395
        return byName.get(name);
19396
      }
19397
 
19398
      private final short _thriftId;
19399
      private final String _fieldName;
19400
 
19401
      _Fields(short thriftId, String fieldName) {
19402
        _thriftId = thriftId;
19403
        _fieldName = fieldName;
19404
      }
19405
 
19406
      public short getThriftFieldId() {
19407
        return _thriftId;
19408
      }
19409
 
19410
      public String getFieldName() {
19411
        return _fieldName;
19412
      }
19413
    }
19414
 
19415
    // isset id assignments
19416
    private static final int __SUCCESS_ISSET_ID = 0;
19417
    private BitSet __isset_bit_vector = new BitSet(1);
19418
 
19419
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19420
    static {
19421
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19422
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19424
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
19428
    }
19429
 
19430
    public reduceReservationCount_result() {
19431
    }
19432
 
19433
    public reduceReservationCount_result(
19434
      boolean success,
19435
      InventoryServiceException cex)
19436
    {
19437
      this();
19438
      this.success = success;
19439
      setSuccessIsSet(true);
19440
      this.cex = cex;
19441
    }
19442
 
19443
    /**
19444
     * Performs a deep copy on <i>other</i>.
19445
     */
19446
    public reduceReservationCount_result(reduceReservationCount_result other) {
19447
      __isset_bit_vector.clear();
19448
      __isset_bit_vector.or(other.__isset_bit_vector);
19449
      this.success = other.success;
19450
      if (other.isSetCex()) {
19451
        this.cex = new InventoryServiceException(other.cex);
19452
      }
19453
    }
19454
 
19455
    public reduceReservationCount_result deepCopy() {
19456
      return new reduceReservationCount_result(this);
19457
    }
19458
 
19459
    @Override
19460
    public void clear() {
19461
      setSuccessIsSet(false);
19462
      this.success = false;
19463
      this.cex = null;
19464
    }
19465
 
19466
    public boolean isSuccess() {
19467
      return this.success;
19468
    }
19469
 
19470
    public void setSuccess(boolean success) {
19471
      this.success = success;
19472
      setSuccessIsSet(true);
19473
    }
19474
 
19475
    public void unsetSuccess() {
19476
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
19477
    }
19478
 
19479
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19480
    public boolean isSetSuccess() {
19481
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
19482
    }
19483
 
19484
    public void setSuccessIsSet(boolean value) {
19485
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
19486
    }
19487
 
19488
    public InventoryServiceException getCex() {
19489
      return this.cex;
19490
    }
19491
 
19492
    public void setCex(InventoryServiceException cex) {
19493
      this.cex = cex;
19494
    }
19495
 
19496
    public void unsetCex() {
19497
      this.cex = null;
19498
    }
19499
 
19500
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19501
    public boolean isSetCex() {
19502
      return this.cex != null;
19503
    }
19504
 
19505
    public void setCexIsSet(boolean value) {
19506
      if (!value) {
19507
        this.cex = null;
19508
      }
19509
    }
19510
 
19511
    public void setFieldValue(_Fields field, Object value) {
19512
      switch (field) {
19513
      case SUCCESS:
19514
        if (value == null) {
19515
          unsetSuccess();
19516
        } else {
19517
          setSuccess((Boolean)value);
19518
        }
19519
        break;
19520
 
19521
      case CEX:
19522
        if (value == null) {
19523
          unsetCex();
19524
        } else {
19525
          setCex((InventoryServiceException)value);
19526
        }
19527
        break;
19528
 
19529
      }
19530
    }
19531
 
19532
    public Object getFieldValue(_Fields field) {
19533
      switch (field) {
19534
      case SUCCESS:
19535
        return Boolean.valueOf(isSuccess());
19536
 
19537
      case CEX:
19538
        return getCex();
19539
 
19540
      }
19541
      throw new IllegalStateException();
19542
    }
19543
 
19544
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19545
    public boolean isSet(_Fields field) {
19546
      if (field == null) {
19547
        throw new IllegalArgumentException();
19548
      }
19549
 
19550
      switch (field) {
19551
      case SUCCESS:
19552
        return isSetSuccess();
19553
      case CEX:
19554
        return isSetCex();
19555
      }
19556
      throw new IllegalStateException();
19557
    }
19558
 
19559
    @Override
19560
    public boolean equals(Object that) {
19561
      if (that == null)
19562
        return false;
19563
      if (that instanceof reduceReservationCount_result)
19564
        return this.equals((reduceReservationCount_result)that);
19565
      return false;
19566
    }
19567
 
19568
    public boolean equals(reduceReservationCount_result that) {
19569
      if (that == null)
19570
        return false;
19571
 
19572
      boolean this_present_success = true;
19573
      boolean that_present_success = true;
19574
      if (this_present_success || that_present_success) {
19575
        if (!(this_present_success && that_present_success))
19576
          return false;
19577
        if (this.success != that.success)
19578
          return false;
19579
      }
19580
 
19581
      boolean this_present_cex = true && this.isSetCex();
19582
      boolean that_present_cex = true && that.isSetCex();
19583
      if (this_present_cex || that_present_cex) {
19584
        if (!(this_present_cex && that_present_cex))
19585
          return false;
19586
        if (!this.cex.equals(that.cex))
19587
          return false;
19588
      }
19589
 
19590
      return true;
19591
    }
19592
 
19593
    @Override
19594
    public int hashCode() {
19595
      return 0;
19596
    }
19597
 
19598
    public int compareTo(reduceReservationCount_result other) {
19599
      if (!getClass().equals(other.getClass())) {
19600
        return getClass().getName().compareTo(other.getClass().getName());
19601
      }
19602
 
19603
      int lastComparison = 0;
19604
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
19605
 
19606
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19607
      if (lastComparison != 0) {
19608
        return lastComparison;
19609
      }
19610
      if (isSetSuccess()) {
19611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19612
        if (lastComparison != 0) {
19613
          return lastComparison;
19614
        }
19615
      }
19616
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
19617
      if (lastComparison != 0) {
19618
        return lastComparison;
19619
      }
19620
      if (isSetCex()) {
19621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
19622
        if (lastComparison != 0) {
19623
          return lastComparison;
19624
        }
19625
      }
19626
      return 0;
19627
    }
19628
 
19629
    public _Fields fieldForId(int fieldId) {
19630
      return _Fields.findByThriftId(fieldId);
19631
    }
19632
 
19633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19634
      org.apache.thrift.protocol.TField field;
19635
      iprot.readStructBegin();
19636
      while (true)
19637
      {
19638
        field = iprot.readFieldBegin();
19639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19640
          break;
19641
        }
19642
        switch (field.id) {
19643
          case 0: // SUCCESS
19644
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
19645
              this.success = iprot.readBool();
19646
              setSuccessIsSet(true);
19647
            } else { 
19648
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19649
            }
19650
            break;
19651
          case 1: // CEX
19652
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19653
              this.cex = new InventoryServiceException();
19654
              this.cex.read(iprot);
19655
            } else { 
19656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19657
            }
19658
            break;
19659
          default:
19660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19661
        }
19662
        iprot.readFieldEnd();
19663
      }
19664
      iprot.readStructEnd();
19665
      validate();
19666
    }
19667
 
19668
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19669
      oprot.writeStructBegin(STRUCT_DESC);
19670
 
19671
      if (this.isSetSuccess()) {
19672
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19673
        oprot.writeBool(this.success);
19674
        oprot.writeFieldEnd();
19675
      } else if (this.isSetCex()) {
19676
        oprot.writeFieldBegin(CEX_FIELD_DESC);
19677
        this.cex.write(oprot);
19678
        oprot.writeFieldEnd();
19679
      }
19680
      oprot.writeFieldStop();
19681
      oprot.writeStructEnd();
19682
    }
19683
 
19684
    @Override
19685
    public String toString() {
19686
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
19687
      boolean first = true;
19688
 
19689
      sb.append("success:");
19690
      sb.append(this.success);
19691
      first = false;
19692
      if (!first) sb.append(", ");
19693
      sb.append("cex:");
19694
      if (this.cex == null) {
19695
        sb.append("null");
19696
      } else {
19697
        sb.append(this.cex);
19698
      }
19699
      first = false;
19700
      sb.append(")");
19701
      return sb.toString();
19702
    }
19703
 
19704
    public void validate() throws org.apache.thrift.TException {
19705
      // check for required fields
19706
    }
19707
 
19708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19709
      try {
19710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19711
      } catch (org.apache.thrift.TException te) {
19712
        throw new java.io.IOException(te);
19713
      }
19714
    }
19715
 
19716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19717
      try {
19718
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19719
      } catch (org.apache.thrift.TException te) {
19720
        throw new java.io.IOException(te);
19721
      }
19722
    }
19723
 
19724
  }
19725
 
19726
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
19727
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
19728
 
19729
    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);
19730
    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);
19731
 
19732
    private long itemId; // required
19733
    private long vendorId; // required
19734
 
19735
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19736
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19737
      ITEM_ID((short)1, "itemId"),
19738
      VENDOR_ID((short)2, "vendorId");
19739
 
19740
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19741
 
19742
      static {
19743
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19744
          byName.put(field.getFieldName(), field);
19745
        }
19746
      }
19747
 
19748
      /**
19749
       * Find the _Fields constant that matches fieldId, or null if its not found.
19750
       */
19751
      public static _Fields findByThriftId(int fieldId) {
19752
        switch(fieldId) {
19753
          case 1: // ITEM_ID
19754
            return ITEM_ID;
19755
          case 2: // VENDOR_ID
19756
            return VENDOR_ID;
19757
          default:
19758
            return null;
19759
        }
19760
      }
19761
 
19762
      /**
19763
       * Find the _Fields constant that matches fieldId, throwing an exception
19764
       * if it is not found.
19765
       */
19766
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19767
        _Fields fields = findByThriftId(fieldId);
19768
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19769
        return fields;
19770
      }
19771
 
19772
      /**
19773
       * Find the _Fields constant that matches name, or null if its not found.
19774
       */
19775
      public static _Fields findByName(String name) {
19776
        return byName.get(name);
19777
      }
19778
 
19779
      private final short _thriftId;
19780
      private final String _fieldName;
19781
 
19782
      _Fields(short thriftId, String fieldName) {
19783
        _thriftId = thriftId;
19784
        _fieldName = fieldName;
19785
      }
19786
 
19787
      public short getThriftFieldId() {
19788
        return _thriftId;
19789
      }
19790
 
19791
      public String getFieldName() {
19792
        return _fieldName;
19793
      }
19794
    }
19795
 
19796
    // isset id assignments
19797
    private static final int __ITEMID_ISSET_ID = 0;
19798
    private static final int __VENDORID_ISSET_ID = 1;
19799
    private BitSet __isset_bit_vector = new BitSet(2);
19800
 
19801
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19802
    static {
19803
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19804
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19806
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
19810
    }
19811
 
19812
    public getItemPricing_args() {
19813
    }
19814
 
19815
    public getItemPricing_args(
19816
      long itemId,
19817
      long vendorId)
19818
    {
19819
      this();
19820
      this.itemId = itemId;
19821
      setItemIdIsSet(true);
19822
      this.vendorId = vendorId;
19823
      setVendorIdIsSet(true);
19824
    }
19825
 
19826
    /**
19827
     * Performs a deep copy on <i>other</i>.
19828
     */
19829
    public getItemPricing_args(getItemPricing_args other) {
19830
      __isset_bit_vector.clear();
19831
      __isset_bit_vector.or(other.__isset_bit_vector);
19832
      this.itemId = other.itemId;
19833
      this.vendorId = other.vendorId;
19834
    }
19835
 
19836
    public getItemPricing_args deepCopy() {
19837
      return new getItemPricing_args(this);
19838
    }
19839
 
19840
    @Override
19841
    public void clear() {
19842
      setItemIdIsSet(false);
19843
      this.itemId = 0;
19844
      setVendorIdIsSet(false);
19845
      this.vendorId = 0;
19846
    }
19847
 
19848
    public long getItemId() {
19849
      return this.itemId;
19850
    }
19851
 
19852
    public void setItemId(long itemId) {
19853
      this.itemId = itemId;
19854
      setItemIdIsSet(true);
19855
    }
19856
 
19857
    public void unsetItemId() {
19858
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
19859
    }
19860
 
19861
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
19862
    public boolean isSetItemId() {
19863
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
19864
    }
19865
 
19866
    public void setItemIdIsSet(boolean value) {
19867
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
19868
    }
19869
 
19870
    public long getVendorId() {
19871
      return this.vendorId;
19872
    }
19873
 
19874
    public void setVendorId(long vendorId) {
19875
      this.vendorId = vendorId;
19876
      setVendorIdIsSet(true);
19877
    }
19878
 
19879
    public void unsetVendorId() {
19880
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
19881
    }
19882
 
19883
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
19884
    public boolean isSetVendorId() {
19885
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
19886
    }
19887
 
19888
    public void setVendorIdIsSet(boolean value) {
19889
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
19890
    }
19891
 
19892
    public void setFieldValue(_Fields field, Object value) {
19893
      switch (field) {
19894
      case ITEM_ID:
19895
        if (value == null) {
19896
          unsetItemId();
19897
        } else {
19898
          setItemId((Long)value);
19899
        }
19900
        break;
19901
 
19902
      case VENDOR_ID:
19903
        if (value == null) {
19904
          unsetVendorId();
19905
        } else {
19906
          setVendorId((Long)value);
19907
        }
19908
        break;
19909
 
19910
      }
19911
    }
19912
 
19913
    public Object getFieldValue(_Fields field) {
19914
      switch (field) {
19915
      case ITEM_ID:
19916
        return Long.valueOf(getItemId());
19917
 
19918
      case VENDOR_ID:
19919
        return Long.valueOf(getVendorId());
19920
 
19921
      }
19922
      throw new IllegalStateException();
19923
    }
19924
 
19925
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19926
    public boolean isSet(_Fields field) {
19927
      if (field == null) {
19928
        throw new IllegalArgumentException();
19929
      }
19930
 
19931
      switch (field) {
19932
      case ITEM_ID:
19933
        return isSetItemId();
19934
      case VENDOR_ID:
19935
        return isSetVendorId();
19936
      }
19937
      throw new IllegalStateException();
19938
    }
19939
 
19940
    @Override
19941
    public boolean equals(Object that) {
19942
      if (that == null)
19943
        return false;
19944
      if (that instanceof getItemPricing_args)
19945
        return this.equals((getItemPricing_args)that);
19946
      return false;
19947
    }
19948
 
19949
    public boolean equals(getItemPricing_args that) {
19950
      if (that == null)
19951
        return false;
19952
 
19953
      boolean this_present_itemId = true;
19954
      boolean that_present_itemId = true;
19955
      if (this_present_itemId || that_present_itemId) {
19956
        if (!(this_present_itemId && that_present_itemId))
19957
          return false;
19958
        if (this.itemId != that.itemId)
19959
          return false;
19960
      }
19961
 
19962
      boolean this_present_vendorId = true;
19963
      boolean that_present_vendorId = true;
19964
      if (this_present_vendorId || that_present_vendorId) {
19965
        if (!(this_present_vendorId && that_present_vendorId))
19966
          return false;
19967
        if (this.vendorId != that.vendorId)
19968
          return false;
19969
      }
19970
 
19971
      return true;
19972
    }
19973
 
19974
    @Override
19975
    public int hashCode() {
19976
      return 0;
19977
    }
19978
 
19979
    public int compareTo(getItemPricing_args other) {
19980
      if (!getClass().equals(other.getClass())) {
19981
        return getClass().getName().compareTo(other.getClass().getName());
19982
      }
19983
 
19984
      int lastComparison = 0;
19985
      getItemPricing_args typedOther = (getItemPricing_args)other;
19986
 
19987
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
19988
      if (lastComparison != 0) {
19989
        return lastComparison;
19990
      }
19991
      if (isSetItemId()) {
19992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
19993
        if (lastComparison != 0) {
19994
          return lastComparison;
19995
        }
19996
      }
19997
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
19998
      if (lastComparison != 0) {
19999
        return lastComparison;
20000
      }
20001
      if (isSetVendorId()) {
20002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
20003
        if (lastComparison != 0) {
20004
          return lastComparison;
20005
        }
20006
      }
20007
      return 0;
20008
    }
20009
 
20010
    public _Fields fieldForId(int fieldId) {
20011
      return _Fields.findByThriftId(fieldId);
20012
    }
20013
 
20014
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20015
      org.apache.thrift.protocol.TField field;
20016
      iprot.readStructBegin();
20017
      while (true)
20018
      {
20019
        field = iprot.readFieldBegin();
20020
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20021
          break;
20022
        }
20023
        switch (field.id) {
20024
          case 1: // ITEM_ID
20025
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20026
              this.itemId = iprot.readI64();
20027
              setItemIdIsSet(true);
20028
            } else { 
20029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20030
            }
20031
            break;
20032
          case 2: // VENDOR_ID
20033
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20034
              this.vendorId = iprot.readI64();
20035
              setVendorIdIsSet(true);
20036
            } else { 
20037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20038
            }
20039
            break;
20040
          default:
20041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20042
        }
20043
        iprot.readFieldEnd();
20044
      }
20045
      iprot.readStructEnd();
20046
      validate();
20047
    }
20048
 
20049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20050
      validate();
20051
 
20052
      oprot.writeStructBegin(STRUCT_DESC);
20053
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
20054
      oprot.writeI64(this.itemId);
20055
      oprot.writeFieldEnd();
20056
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
20057
      oprot.writeI64(this.vendorId);
20058
      oprot.writeFieldEnd();
20059
      oprot.writeFieldStop();
20060
      oprot.writeStructEnd();
20061
    }
20062
 
20063
    @Override
20064
    public String toString() {
20065
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
20066
      boolean first = true;
20067
 
20068
      sb.append("itemId:");
20069
      sb.append(this.itemId);
20070
      first = false;
20071
      if (!first) sb.append(", ");
20072
      sb.append("vendorId:");
20073
      sb.append(this.vendorId);
20074
      first = false;
20075
      sb.append(")");
20076
      return sb.toString();
20077
    }
20078
 
20079
    public void validate() throws org.apache.thrift.TException {
20080
      // check for required fields
20081
    }
20082
 
20083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20084
      try {
20085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20086
      } catch (org.apache.thrift.TException te) {
20087
        throw new java.io.IOException(te);
20088
      }
20089
    }
20090
 
20091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20092
      try {
20093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20094
      } catch (org.apache.thrift.TException te) {
20095
        throw new java.io.IOException(te);
20096
      }
20097
    }
20098
 
20099
  }
20100
 
20101
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
20102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
20103
 
20104
    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);
20105
    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);
20106
 
20107
    private VendorItemPricing success; // required
20108
    private InventoryServiceException cex; // required
20109
 
20110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20112
      SUCCESS((short)0, "success"),
20113
      CEX((short)1, "cex");
20114
 
20115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20116
 
20117
      static {
20118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20119
          byName.put(field.getFieldName(), field);
20120
        }
20121
      }
20122
 
20123
      /**
20124
       * Find the _Fields constant that matches fieldId, or null if its not found.
20125
       */
20126
      public static _Fields findByThriftId(int fieldId) {
20127
        switch(fieldId) {
20128
          case 0: // SUCCESS
20129
            return SUCCESS;
20130
          case 1: // CEX
20131
            return CEX;
20132
          default:
20133
            return null;
20134
        }
20135
      }
20136
 
20137
      /**
20138
       * Find the _Fields constant that matches fieldId, throwing an exception
20139
       * if it is not found.
20140
       */
20141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20142
        _Fields fields = findByThriftId(fieldId);
20143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20144
        return fields;
20145
      }
20146
 
20147
      /**
20148
       * Find the _Fields constant that matches name, or null if its not found.
20149
       */
20150
      public static _Fields findByName(String name) {
20151
        return byName.get(name);
20152
      }
20153
 
20154
      private final short _thriftId;
20155
      private final String _fieldName;
20156
 
20157
      _Fields(short thriftId, String fieldName) {
20158
        _thriftId = thriftId;
20159
        _fieldName = fieldName;
20160
      }
20161
 
20162
      public short getThriftFieldId() {
20163
        return _thriftId;
20164
      }
20165
 
20166
      public String getFieldName() {
20167
        return _fieldName;
20168
      }
20169
    }
20170
 
20171
    // isset id assignments
20172
 
20173
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20174
    static {
20175
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20176
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20177
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
20178
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20179
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
20182
    }
20183
 
20184
    public getItemPricing_result() {
20185
    }
20186
 
20187
    public getItemPricing_result(
20188
      VendorItemPricing success,
20189
      InventoryServiceException cex)
20190
    {
20191
      this();
20192
      this.success = success;
20193
      this.cex = cex;
20194
    }
20195
 
20196
    /**
20197
     * Performs a deep copy on <i>other</i>.
20198
     */
20199
    public getItemPricing_result(getItemPricing_result other) {
20200
      if (other.isSetSuccess()) {
20201
        this.success = new VendorItemPricing(other.success);
20202
      }
20203
      if (other.isSetCex()) {
20204
        this.cex = new InventoryServiceException(other.cex);
20205
      }
20206
    }
20207
 
20208
    public getItemPricing_result deepCopy() {
20209
      return new getItemPricing_result(this);
20210
    }
20211
 
20212
    @Override
20213
    public void clear() {
20214
      this.success = null;
20215
      this.cex = null;
20216
    }
20217
 
20218
    public VendorItemPricing getSuccess() {
20219
      return this.success;
20220
    }
20221
 
20222
    public void setSuccess(VendorItemPricing success) {
20223
      this.success = success;
20224
    }
20225
 
20226
    public void unsetSuccess() {
20227
      this.success = null;
20228
    }
20229
 
20230
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20231
    public boolean isSetSuccess() {
20232
      return this.success != null;
20233
    }
20234
 
20235
    public void setSuccessIsSet(boolean value) {
20236
      if (!value) {
20237
        this.success = null;
20238
      }
20239
    }
20240
 
20241
    public InventoryServiceException getCex() {
20242
      return this.cex;
20243
    }
20244
 
20245
    public void setCex(InventoryServiceException cex) {
20246
      this.cex = cex;
20247
    }
20248
 
20249
    public void unsetCex() {
20250
      this.cex = null;
20251
    }
20252
 
20253
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
20254
    public boolean isSetCex() {
20255
      return this.cex != null;
20256
    }
20257
 
20258
    public void setCexIsSet(boolean value) {
20259
      if (!value) {
20260
        this.cex = null;
20261
      }
20262
    }
20263
 
20264
    public void setFieldValue(_Fields field, Object value) {
20265
      switch (field) {
20266
      case SUCCESS:
20267
        if (value == null) {
20268
          unsetSuccess();
20269
        } else {
20270
          setSuccess((VendorItemPricing)value);
20271
        }
20272
        break;
20273
 
20274
      case CEX:
20275
        if (value == null) {
20276
          unsetCex();
20277
        } else {
20278
          setCex((InventoryServiceException)value);
20279
        }
20280
        break;
20281
 
20282
      }
20283
    }
20284
 
20285
    public Object getFieldValue(_Fields field) {
20286
      switch (field) {
20287
      case SUCCESS:
20288
        return getSuccess();
20289
 
20290
      case CEX:
20291
        return getCex();
20292
 
20293
      }
20294
      throw new IllegalStateException();
20295
    }
20296
 
20297
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20298
    public boolean isSet(_Fields field) {
20299
      if (field == null) {
20300
        throw new IllegalArgumentException();
20301
      }
20302
 
20303
      switch (field) {
20304
      case SUCCESS:
20305
        return isSetSuccess();
20306
      case CEX:
20307
        return isSetCex();
20308
      }
20309
      throw new IllegalStateException();
20310
    }
20311
 
20312
    @Override
20313
    public boolean equals(Object that) {
20314
      if (that == null)
20315
        return false;
20316
      if (that instanceof getItemPricing_result)
20317
        return this.equals((getItemPricing_result)that);
20318
      return false;
20319
    }
20320
 
20321
    public boolean equals(getItemPricing_result that) {
20322
      if (that == null)
20323
        return false;
20324
 
20325
      boolean this_present_success = true && this.isSetSuccess();
20326
      boolean that_present_success = true && that.isSetSuccess();
20327
      if (this_present_success || that_present_success) {
20328
        if (!(this_present_success && that_present_success))
20329
          return false;
20330
        if (!this.success.equals(that.success))
20331
          return false;
20332
      }
20333
 
20334
      boolean this_present_cex = true && this.isSetCex();
20335
      boolean that_present_cex = true && that.isSetCex();
20336
      if (this_present_cex || that_present_cex) {
20337
        if (!(this_present_cex && that_present_cex))
20338
          return false;
20339
        if (!this.cex.equals(that.cex))
20340
          return false;
20341
      }
20342
 
20343
      return true;
20344
    }
20345
 
20346
    @Override
20347
    public int hashCode() {
20348
      return 0;
20349
    }
20350
 
20351
    public int compareTo(getItemPricing_result other) {
20352
      if (!getClass().equals(other.getClass())) {
20353
        return getClass().getName().compareTo(other.getClass().getName());
20354
      }
20355
 
20356
      int lastComparison = 0;
20357
      getItemPricing_result typedOther = (getItemPricing_result)other;
20358
 
20359
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20360
      if (lastComparison != 0) {
20361
        return lastComparison;
20362
      }
20363
      if (isSetSuccess()) {
20364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20365
        if (lastComparison != 0) {
20366
          return lastComparison;
20367
        }
20368
      }
20369
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
20370
      if (lastComparison != 0) {
20371
        return lastComparison;
20372
      }
20373
      if (isSetCex()) {
20374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
20375
        if (lastComparison != 0) {
20376
          return lastComparison;
20377
        }
20378
      }
20379
      return 0;
20380
    }
20381
 
20382
    public _Fields fieldForId(int fieldId) {
20383
      return _Fields.findByThriftId(fieldId);
20384
    }
20385
 
20386
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20387
      org.apache.thrift.protocol.TField field;
20388
      iprot.readStructBegin();
20389
      while (true)
20390
      {
20391
        field = iprot.readFieldBegin();
20392
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20393
          break;
20394
        }
20395
        switch (field.id) {
20396
          case 0: // SUCCESS
20397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20398
              this.success = new VendorItemPricing();
20399
              this.success.read(iprot);
20400
            } else { 
20401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20402
            }
20403
            break;
20404
          case 1: // CEX
20405
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20406
              this.cex = new InventoryServiceException();
20407
              this.cex.read(iprot);
20408
            } else { 
20409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20410
            }
20411
            break;
20412
          default:
20413
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20414
        }
20415
        iprot.readFieldEnd();
20416
      }
20417
      iprot.readStructEnd();
20418
      validate();
20419
    }
20420
 
20421
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20422
      oprot.writeStructBegin(STRUCT_DESC);
20423
 
20424
      if (this.isSetSuccess()) {
20425
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20426
        this.success.write(oprot);
20427
        oprot.writeFieldEnd();
20428
      } else if (this.isSetCex()) {
20429
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20430
        this.cex.write(oprot);
20431
        oprot.writeFieldEnd();
20432
      }
20433
      oprot.writeFieldStop();
20434
      oprot.writeStructEnd();
20435
    }
20436
 
20437
    @Override
20438
    public String toString() {
20439
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
20440
      boolean first = true;
20441
 
20442
      sb.append("success:");
20443
      if (this.success == null) {
20444
        sb.append("null");
20445
      } else {
20446
        sb.append(this.success);
20447
      }
20448
      first = false;
20449
      if (!first) sb.append(", ");
20450
      sb.append("cex:");
20451
      if (this.cex == null) {
20452
        sb.append("null");
20453
      } else {
20454
        sb.append(this.cex);
20455
      }
20456
      first = false;
20457
      sb.append(")");
20458
      return sb.toString();
20459
    }
20460
 
20461
    public void validate() throws org.apache.thrift.TException {
20462
      // check for required fields
20463
    }
20464
 
20465
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20466
      try {
20467
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20468
      } catch (org.apache.thrift.TException te) {
20469
        throw new java.io.IOException(te);
20470
      }
20471
    }
20472
 
20473
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20474
      try {
20475
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20476
      } catch (org.apache.thrift.TException te) {
20477
        throw new java.io.IOException(te);
20478
      }
20479
    }
20480
 
20481
  }
20482
 
20483
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
20484
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
20485
 
20486
    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);
20487
 
20488
    private long itemId; // required
20489
 
20490
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20491
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20492
      ITEM_ID((short)1, "itemId");
20493
 
20494
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20495
 
20496
      static {
20497
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20498
          byName.put(field.getFieldName(), field);
20499
        }
20500
      }
20501
 
20502
      /**
20503
       * Find the _Fields constant that matches fieldId, or null if its not found.
20504
       */
20505
      public static _Fields findByThriftId(int fieldId) {
20506
        switch(fieldId) {
20507
          case 1: // ITEM_ID
20508
            return ITEM_ID;
20509
          default:
20510
            return null;
20511
        }
20512
      }
20513
 
20514
      /**
20515
       * Find the _Fields constant that matches fieldId, throwing an exception
20516
       * if it is not found.
20517
       */
20518
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20519
        _Fields fields = findByThriftId(fieldId);
20520
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20521
        return fields;
20522
      }
20523
 
20524
      /**
20525
       * Find the _Fields constant that matches name, or null if its not found.
20526
       */
20527
      public static _Fields findByName(String name) {
20528
        return byName.get(name);
20529
      }
20530
 
20531
      private final short _thriftId;
20532
      private final String _fieldName;
20533
 
20534
      _Fields(short thriftId, String fieldName) {
20535
        _thriftId = thriftId;
20536
        _fieldName = fieldName;
20537
      }
20538
 
20539
      public short getThriftFieldId() {
20540
        return _thriftId;
20541
      }
20542
 
20543
      public String getFieldName() {
20544
        return _fieldName;
20545
      }
20546
    }
20547
 
20548
    // isset id assignments
20549
    private static final int __ITEMID_ISSET_ID = 0;
20550
    private BitSet __isset_bit_vector = new BitSet(1);
20551
 
20552
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20553
    static {
20554
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20555
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20556
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20557
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20558
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
20559
    }
20560
 
20561
    public getAllItemPricing_args() {
20562
    }
20563
 
20564
    public getAllItemPricing_args(
20565
      long itemId)
20566
    {
20567
      this();
20568
      this.itemId = itemId;
20569
      setItemIdIsSet(true);
20570
    }
20571
 
20572
    /**
20573
     * Performs a deep copy on <i>other</i>.
20574
     */
20575
    public getAllItemPricing_args(getAllItemPricing_args other) {
20576
      __isset_bit_vector.clear();
20577
      __isset_bit_vector.or(other.__isset_bit_vector);
20578
      this.itemId = other.itemId;
20579
    }
20580
 
20581
    public getAllItemPricing_args deepCopy() {
20582
      return new getAllItemPricing_args(this);
20583
    }
20584
 
20585
    @Override
20586
    public void clear() {
20587
      setItemIdIsSet(false);
20588
      this.itemId = 0;
20589
    }
20590
 
20591
    public long getItemId() {
20592
      return this.itemId;
20593
    }
20594
 
20595
    public void setItemId(long itemId) {
20596
      this.itemId = itemId;
20597
      setItemIdIsSet(true);
20598
    }
20599
 
20600
    public void unsetItemId() {
20601
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
20602
    }
20603
 
20604
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
20605
    public boolean isSetItemId() {
20606
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
20607
    }
20608
 
20609
    public void setItemIdIsSet(boolean value) {
20610
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
20611
    }
20612
 
20613
    public void setFieldValue(_Fields field, Object value) {
20614
      switch (field) {
20615
      case ITEM_ID:
20616
        if (value == null) {
20617
          unsetItemId();
20618
        } else {
20619
          setItemId((Long)value);
20620
        }
20621
        break;
20622
 
20623
      }
20624
    }
20625
 
20626
    public Object getFieldValue(_Fields field) {
20627
      switch (field) {
20628
      case ITEM_ID:
20629
        return Long.valueOf(getItemId());
20630
 
20631
      }
20632
      throw new IllegalStateException();
20633
    }
20634
 
20635
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20636
    public boolean isSet(_Fields field) {
20637
      if (field == null) {
20638
        throw new IllegalArgumentException();
20639
      }
20640
 
20641
      switch (field) {
20642
      case ITEM_ID:
20643
        return isSetItemId();
20644
      }
20645
      throw new IllegalStateException();
20646
    }
20647
 
20648
    @Override
20649
    public boolean equals(Object that) {
20650
      if (that == null)
20651
        return false;
20652
      if (that instanceof getAllItemPricing_args)
20653
        return this.equals((getAllItemPricing_args)that);
20654
      return false;
20655
    }
20656
 
20657
    public boolean equals(getAllItemPricing_args that) {
20658
      if (that == null)
20659
        return false;
20660
 
20661
      boolean this_present_itemId = true;
20662
      boolean that_present_itemId = true;
20663
      if (this_present_itemId || that_present_itemId) {
20664
        if (!(this_present_itemId && that_present_itemId))
20665
          return false;
20666
        if (this.itemId != that.itemId)
20667
          return false;
20668
      }
20669
 
20670
      return true;
20671
    }
20672
 
20673
    @Override
20674
    public int hashCode() {
20675
      return 0;
20676
    }
20677
 
20678
    public int compareTo(getAllItemPricing_args other) {
20679
      if (!getClass().equals(other.getClass())) {
20680
        return getClass().getName().compareTo(other.getClass().getName());
20681
      }
20682
 
20683
      int lastComparison = 0;
20684
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
20685
 
20686
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
20687
      if (lastComparison != 0) {
20688
        return lastComparison;
20689
      }
20690
      if (isSetItemId()) {
20691
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
20692
        if (lastComparison != 0) {
20693
          return lastComparison;
20694
        }
20695
      }
20696
      return 0;
20697
    }
20698
 
20699
    public _Fields fieldForId(int fieldId) {
20700
      return _Fields.findByThriftId(fieldId);
20701
    }
20702
 
20703
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20704
      org.apache.thrift.protocol.TField field;
20705
      iprot.readStructBegin();
20706
      while (true)
20707
      {
20708
        field = iprot.readFieldBegin();
20709
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20710
          break;
20711
        }
20712
        switch (field.id) {
20713
          case 1: // ITEM_ID
20714
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20715
              this.itemId = iprot.readI64();
20716
              setItemIdIsSet(true);
20717
            } else { 
20718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20719
            }
20720
            break;
20721
          default:
20722
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20723
        }
20724
        iprot.readFieldEnd();
20725
      }
20726
      iprot.readStructEnd();
20727
      validate();
20728
    }
20729
 
20730
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20731
      validate();
20732
 
20733
      oprot.writeStructBegin(STRUCT_DESC);
20734
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
20735
      oprot.writeI64(this.itemId);
20736
      oprot.writeFieldEnd();
20737
      oprot.writeFieldStop();
20738
      oprot.writeStructEnd();
20739
    }
20740
 
20741
    @Override
20742
    public String toString() {
20743
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
20744
      boolean first = true;
20745
 
20746
      sb.append("itemId:");
20747
      sb.append(this.itemId);
20748
      first = false;
20749
      sb.append(")");
20750
      return sb.toString();
20751
    }
20752
 
20753
    public void validate() throws org.apache.thrift.TException {
20754
      // check for required fields
20755
    }
20756
 
20757
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20758
      try {
20759
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20760
      } catch (org.apache.thrift.TException te) {
20761
        throw new java.io.IOException(te);
20762
      }
20763
    }
20764
 
20765
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20766
      try {
20767
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20768
      } catch (org.apache.thrift.TException te) {
20769
        throw new java.io.IOException(te);
20770
      }
20771
    }
20772
 
20773
  }
20774
 
20775
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
20776
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
20777
 
20778
    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);
20779
    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);
20780
 
20781
    private List<VendorItemPricing> success; // required
20782
    private InventoryServiceException cex; // required
20783
 
20784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20786
      SUCCESS((short)0, "success"),
20787
      CEX((short)1, "cex");
20788
 
20789
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20790
 
20791
      static {
20792
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20793
          byName.put(field.getFieldName(), field);
20794
        }
20795
      }
20796
 
20797
      /**
20798
       * Find the _Fields constant that matches fieldId, or null if its not found.
20799
       */
20800
      public static _Fields findByThriftId(int fieldId) {
20801
        switch(fieldId) {
20802
          case 0: // SUCCESS
20803
            return SUCCESS;
20804
          case 1: // CEX
20805
            return CEX;
20806
          default:
20807
            return null;
20808
        }
20809
      }
20810
 
20811
      /**
20812
       * Find the _Fields constant that matches fieldId, throwing an exception
20813
       * if it is not found.
20814
       */
20815
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20816
        _Fields fields = findByThriftId(fieldId);
20817
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20818
        return fields;
20819
      }
20820
 
20821
      /**
20822
       * Find the _Fields constant that matches name, or null if its not found.
20823
       */
20824
      public static _Fields findByName(String name) {
20825
        return byName.get(name);
20826
      }
20827
 
20828
      private final short _thriftId;
20829
      private final String _fieldName;
20830
 
20831
      _Fields(short thriftId, String fieldName) {
20832
        _thriftId = thriftId;
20833
        _fieldName = fieldName;
20834
      }
20835
 
20836
      public short getThriftFieldId() {
20837
        return _thriftId;
20838
      }
20839
 
20840
      public String getFieldName() {
20841
        return _fieldName;
20842
      }
20843
    }
20844
 
20845
    // isset id assignments
20846
 
20847
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20848
    static {
20849
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20850
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20851
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20852
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
20853
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20854
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20855
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20856
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
20857
    }
20858
 
20859
    public getAllItemPricing_result() {
20860
    }
20861
 
20862
    public getAllItemPricing_result(
20863
      List<VendorItemPricing> success,
20864
      InventoryServiceException cex)
20865
    {
20866
      this();
20867
      this.success = success;
20868
      this.cex = cex;
20869
    }
20870
 
20871
    /**
20872
     * Performs a deep copy on <i>other</i>.
20873
     */
20874
    public getAllItemPricing_result(getAllItemPricing_result other) {
20875
      if (other.isSetSuccess()) {
20876
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
20877
        for (VendorItemPricing other_element : other.success) {
20878
          __this__success.add(new VendorItemPricing(other_element));
20879
        }
20880
        this.success = __this__success;
20881
      }
20882
      if (other.isSetCex()) {
20883
        this.cex = new InventoryServiceException(other.cex);
20884
      }
20885
    }
20886
 
20887
    public getAllItemPricing_result deepCopy() {
20888
      return new getAllItemPricing_result(this);
20889
    }
20890
 
20891
    @Override
20892
    public void clear() {
20893
      this.success = null;
20894
      this.cex = null;
20895
    }
20896
 
20897
    public int getSuccessSize() {
20898
      return (this.success == null) ? 0 : this.success.size();
20899
    }
20900
 
20901
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
20902
      return (this.success == null) ? null : this.success.iterator();
20903
    }
20904
 
20905
    public void addToSuccess(VendorItemPricing elem) {
20906
      if (this.success == null) {
20907
        this.success = new ArrayList<VendorItemPricing>();
20908
      }
20909
      this.success.add(elem);
20910
    }
20911
 
20912
    public List<VendorItemPricing> getSuccess() {
20913
      return this.success;
20914
    }
20915
 
20916
    public void setSuccess(List<VendorItemPricing> success) {
20917
      this.success = success;
20918
    }
20919
 
20920
    public void unsetSuccess() {
20921
      this.success = null;
20922
    }
20923
 
20924
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20925
    public boolean isSetSuccess() {
20926
      return this.success != null;
20927
    }
20928
 
20929
    public void setSuccessIsSet(boolean value) {
20930
      if (!value) {
20931
        this.success = null;
20932
      }
20933
    }
20934
 
20935
    public InventoryServiceException getCex() {
20936
      return this.cex;
20937
    }
20938
 
20939
    public void setCex(InventoryServiceException cex) {
20940
      this.cex = cex;
20941
    }
20942
 
20943
    public void unsetCex() {
20944
      this.cex = null;
20945
    }
20946
 
20947
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
20948
    public boolean isSetCex() {
20949
      return this.cex != null;
20950
    }
20951
 
20952
    public void setCexIsSet(boolean value) {
20953
      if (!value) {
20954
        this.cex = null;
20955
      }
20956
    }
20957
 
20958
    public void setFieldValue(_Fields field, Object value) {
20959
      switch (field) {
20960
      case SUCCESS:
20961
        if (value == null) {
20962
          unsetSuccess();
20963
        } else {
20964
          setSuccess((List<VendorItemPricing>)value);
20965
        }
20966
        break;
20967
 
20968
      case CEX:
20969
        if (value == null) {
20970
          unsetCex();
20971
        } else {
20972
          setCex((InventoryServiceException)value);
20973
        }
20974
        break;
20975
 
20976
      }
20977
    }
20978
 
20979
    public Object getFieldValue(_Fields field) {
20980
      switch (field) {
20981
      case SUCCESS:
20982
        return getSuccess();
20983
 
20984
      case CEX:
20985
        return getCex();
20986
 
20987
      }
20988
      throw new IllegalStateException();
20989
    }
20990
 
20991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20992
    public boolean isSet(_Fields field) {
20993
      if (field == null) {
20994
        throw new IllegalArgumentException();
20995
      }
20996
 
20997
      switch (field) {
20998
      case SUCCESS:
20999
        return isSetSuccess();
21000
      case CEX:
21001
        return isSetCex();
21002
      }
21003
      throw new IllegalStateException();
21004
    }
21005
 
21006
    @Override
21007
    public boolean equals(Object that) {
21008
      if (that == null)
21009
        return false;
21010
      if (that instanceof getAllItemPricing_result)
21011
        return this.equals((getAllItemPricing_result)that);
21012
      return false;
21013
    }
21014
 
21015
    public boolean equals(getAllItemPricing_result that) {
21016
      if (that == null)
21017
        return false;
21018
 
21019
      boolean this_present_success = true && this.isSetSuccess();
21020
      boolean that_present_success = true && that.isSetSuccess();
21021
      if (this_present_success || that_present_success) {
21022
        if (!(this_present_success && that_present_success))
21023
          return false;
21024
        if (!this.success.equals(that.success))
21025
          return false;
21026
      }
21027
 
21028
      boolean this_present_cex = true && this.isSetCex();
21029
      boolean that_present_cex = true && that.isSetCex();
21030
      if (this_present_cex || that_present_cex) {
21031
        if (!(this_present_cex && that_present_cex))
21032
          return false;
21033
        if (!this.cex.equals(that.cex))
21034
          return false;
21035
      }
21036
 
21037
      return true;
21038
    }
21039
 
21040
    @Override
21041
    public int hashCode() {
21042
      return 0;
21043
    }
21044
 
21045
    public int compareTo(getAllItemPricing_result other) {
21046
      if (!getClass().equals(other.getClass())) {
21047
        return getClass().getName().compareTo(other.getClass().getName());
21048
      }
21049
 
21050
      int lastComparison = 0;
21051
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
21052
 
21053
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21054
      if (lastComparison != 0) {
21055
        return lastComparison;
21056
      }
21057
      if (isSetSuccess()) {
21058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21059
        if (lastComparison != 0) {
21060
          return lastComparison;
21061
        }
21062
      }
21063
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
21064
      if (lastComparison != 0) {
21065
        return lastComparison;
21066
      }
21067
      if (isSetCex()) {
21068
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
21069
        if (lastComparison != 0) {
21070
          return lastComparison;
21071
        }
21072
      }
21073
      return 0;
21074
    }
21075
 
21076
    public _Fields fieldForId(int fieldId) {
21077
      return _Fields.findByThriftId(fieldId);
21078
    }
21079
 
21080
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21081
      org.apache.thrift.protocol.TField field;
21082
      iprot.readStructBegin();
21083
      while (true)
21084
      {
21085
        field = iprot.readFieldBegin();
21086
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21087
          break;
21088
        }
21089
        switch (field.id) {
21090
          case 0: // SUCCESS
21091
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21092
              {
8182 amar.kumar 21093
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
21094
                this.success = new ArrayList<VendorItemPricing>(_list37.size);
21095
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
5945 mandeep.dh 21096
                {
8182 amar.kumar 21097
                  VendorItemPricing _elem39; // required
21098
                  _elem39 = new VendorItemPricing();
21099
                  _elem39.read(iprot);
21100
                  this.success.add(_elem39);
5945 mandeep.dh 21101
                }
21102
                iprot.readListEnd();
21103
              }
21104
            } else { 
21105
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21106
            }
21107
            break;
21108
          case 1: // CEX
21109
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21110
              this.cex = new InventoryServiceException();
21111
              this.cex.read(iprot);
21112
            } else { 
21113
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21114
            }
21115
            break;
21116
          default:
21117
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21118
        }
21119
        iprot.readFieldEnd();
21120
      }
21121
      iprot.readStructEnd();
21122
      validate();
21123
    }
21124
 
21125
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21126
      oprot.writeStructBegin(STRUCT_DESC);
21127
 
21128
      if (this.isSetSuccess()) {
21129
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21130
        {
21131
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 21132
          for (VendorItemPricing _iter40 : this.success)
5945 mandeep.dh 21133
          {
8182 amar.kumar 21134
            _iter40.write(oprot);
5945 mandeep.dh 21135
          }
21136
          oprot.writeListEnd();
21137
        }
21138
        oprot.writeFieldEnd();
21139
      } else if (this.isSetCex()) {
21140
        oprot.writeFieldBegin(CEX_FIELD_DESC);
21141
        this.cex.write(oprot);
21142
        oprot.writeFieldEnd();
21143
      }
21144
      oprot.writeFieldStop();
21145
      oprot.writeStructEnd();
21146
    }
21147
 
21148
    @Override
21149
    public String toString() {
21150
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
21151
      boolean first = true;
21152
 
21153
      sb.append("success:");
21154
      if (this.success == null) {
21155
        sb.append("null");
21156
      } else {
21157
        sb.append(this.success);
21158
      }
21159
      first = false;
21160
      if (!first) sb.append(", ");
21161
      sb.append("cex:");
21162
      if (this.cex == null) {
21163
        sb.append("null");
21164
      } else {
21165
        sb.append(this.cex);
21166
      }
21167
      first = false;
21168
      sb.append(")");
21169
      return sb.toString();
21170
    }
21171
 
21172
    public void validate() throws org.apache.thrift.TException {
21173
      // check for required fields
21174
    }
21175
 
21176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21177
      try {
21178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21179
      } catch (org.apache.thrift.TException te) {
21180
        throw new java.io.IOException(te);
21181
      }
21182
    }
21183
 
21184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21185
      try {
21186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21187
      } catch (org.apache.thrift.TException te) {
21188
        throw new java.io.IOException(te);
21189
      }
21190
    }
21191
 
21192
  }
21193
 
21194
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
21195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
21196
 
21197
    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);
21198
 
21199
    private VendorItemPricing vendorItemPricing; // required
21200
 
21201
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21202
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21203
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
21204
 
21205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21206
 
21207
      static {
21208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21209
          byName.put(field.getFieldName(), field);
21210
        }
21211
      }
21212
 
21213
      /**
21214
       * Find the _Fields constant that matches fieldId, or null if its not found.
21215
       */
21216
      public static _Fields findByThriftId(int fieldId) {
21217
        switch(fieldId) {
21218
          case 1: // VENDOR_ITEM_PRICING
21219
            return VENDOR_ITEM_PRICING;
21220
          default:
21221
            return null;
21222
        }
21223
      }
21224
 
21225
      /**
21226
       * Find the _Fields constant that matches fieldId, throwing an exception
21227
       * if it is not found.
21228
       */
21229
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21230
        _Fields fields = findByThriftId(fieldId);
21231
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21232
        return fields;
21233
      }
21234
 
21235
      /**
21236
       * Find the _Fields constant that matches name, or null if its not found.
21237
       */
21238
      public static _Fields findByName(String name) {
21239
        return byName.get(name);
21240
      }
21241
 
21242
      private final short _thriftId;
21243
      private final String _fieldName;
21244
 
21245
      _Fields(short thriftId, String fieldName) {
21246
        _thriftId = thriftId;
21247
        _fieldName = fieldName;
21248
      }
21249
 
21250
      public short getThriftFieldId() {
21251
        return _thriftId;
21252
      }
21253
 
21254
      public String getFieldName() {
21255
        return _fieldName;
21256
      }
21257
    }
21258
 
21259
    // isset id assignments
21260
 
21261
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21262
    static {
21263
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21264
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21265
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
21266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
21268
    }
21269
 
21270
    public addVendorItemPricing_args() {
21271
    }
21272
 
21273
    public addVendorItemPricing_args(
21274
      VendorItemPricing vendorItemPricing)
21275
    {
21276
      this();
21277
      this.vendorItemPricing = vendorItemPricing;
21278
    }
21279
 
21280
    /**
21281
     * Performs a deep copy on <i>other</i>.
21282
     */
21283
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
21284
      if (other.isSetVendorItemPricing()) {
21285
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
21286
      }
21287
    }
21288
 
21289
    public addVendorItemPricing_args deepCopy() {
21290
      return new addVendorItemPricing_args(this);
21291
    }
21292
 
21293
    @Override
21294
    public void clear() {
21295
      this.vendorItemPricing = null;
21296
    }
21297
 
21298
    public VendorItemPricing getVendorItemPricing() {
21299
      return this.vendorItemPricing;
21300
    }
21301
 
21302
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
21303
      this.vendorItemPricing = vendorItemPricing;
21304
    }
21305
 
21306
    public void unsetVendorItemPricing() {
21307
      this.vendorItemPricing = null;
21308
    }
21309
 
21310
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
21311
    public boolean isSetVendorItemPricing() {
21312
      return this.vendorItemPricing != null;
21313
    }
21314
 
21315
    public void setVendorItemPricingIsSet(boolean value) {
21316
      if (!value) {
21317
        this.vendorItemPricing = null;
21318
      }
21319
    }
21320
 
21321
    public void setFieldValue(_Fields field, Object value) {
21322
      switch (field) {
21323
      case VENDOR_ITEM_PRICING:
21324
        if (value == null) {
21325
          unsetVendorItemPricing();
21326
        } else {
21327
          setVendorItemPricing((VendorItemPricing)value);
21328
        }
21329
        break;
21330
 
21331
      }
21332
    }
21333
 
21334
    public Object getFieldValue(_Fields field) {
21335
      switch (field) {
21336
      case VENDOR_ITEM_PRICING:
21337
        return getVendorItemPricing();
21338
 
21339
      }
21340
      throw new IllegalStateException();
21341
    }
21342
 
21343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21344
    public boolean isSet(_Fields field) {
21345
      if (field == null) {
21346
        throw new IllegalArgumentException();
21347
      }
21348
 
21349
      switch (field) {
21350
      case VENDOR_ITEM_PRICING:
21351
        return isSetVendorItemPricing();
21352
      }
21353
      throw new IllegalStateException();
21354
    }
21355
 
21356
    @Override
21357
    public boolean equals(Object that) {
21358
      if (that == null)
21359
        return false;
21360
      if (that instanceof addVendorItemPricing_args)
21361
        return this.equals((addVendorItemPricing_args)that);
21362
      return false;
21363
    }
21364
 
21365
    public boolean equals(addVendorItemPricing_args that) {
21366
      if (that == null)
21367
        return false;
21368
 
21369
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
21370
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
21371
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
21372
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
21373
          return false;
21374
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
21375
          return false;
21376
      }
21377
 
21378
      return true;
21379
    }
21380
 
21381
    @Override
21382
    public int hashCode() {
21383
      return 0;
21384
    }
21385
 
21386
    public int compareTo(addVendorItemPricing_args other) {
21387
      if (!getClass().equals(other.getClass())) {
21388
        return getClass().getName().compareTo(other.getClass().getName());
21389
      }
21390
 
21391
      int lastComparison = 0;
21392
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
21393
 
21394
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
21395
      if (lastComparison != 0) {
21396
        return lastComparison;
21397
      }
21398
      if (isSetVendorItemPricing()) {
21399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
21400
        if (lastComparison != 0) {
21401
          return lastComparison;
21402
        }
21403
      }
21404
      return 0;
21405
    }
21406
 
21407
    public _Fields fieldForId(int fieldId) {
21408
      return _Fields.findByThriftId(fieldId);
21409
    }
21410
 
21411
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21412
      org.apache.thrift.protocol.TField field;
21413
      iprot.readStructBegin();
21414
      while (true)
21415
      {
21416
        field = iprot.readFieldBegin();
21417
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21418
          break;
21419
        }
21420
        switch (field.id) {
21421
          case 1: // VENDOR_ITEM_PRICING
21422
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21423
              this.vendorItemPricing = new VendorItemPricing();
21424
              this.vendorItemPricing.read(iprot);
21425
            } else { 
21426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21427
            }
21428
            break;
21429
          default:
21430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21431
        }
21432
        iprot.readFieldEnd();
21433
      }
21434
      iprot.readStructEnd();
21435
      validate();
21436
    }
21437
 
21438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21439
      validate();
21440
 
21441
      oprot.writeStructBegin(STRUCT_DESC);
21442
      if (this.vendorItemPricing != null) {
21443
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
21444
        this.vendorItemPricing.write(oprot);
21445
        oprot.writeFieldEnd();
21446
      }
21447
      oprot.writeFieldStop();
21448
      oprot.writeStructEnd();
21449
    }
21450
 
21451
    @Override
21452
    public String toString() {
21453
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
21454
      boolean first = true;
21455
 
21456
      sb.append("vendorItemPricing:");
21457
      if (this.vendorItemPricing == null) {
21458
        sb.append("null");
21459
      } else {
21460
        sb.append(this.vendorItemPricing);
21461
      }
21462
      first = false;
21463
      sb.append(")");
21464
      return sb.toString();
21465
    }
21466
 
21467
    public void validate() throws org.apache.thrift.TException {
21468
      // check for required fields
21469
    }
21470
 
21471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21472
      try {
21473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21474
      } catch (org.apache.thrift.TException te) {
21475
        throw new java.io.IOException(te);
21476
      }
21477
    }
21478
 
21479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21480
      try {
21481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21482
      } catch (org.apache.thrift.TException te) {
21483
        throw new java.io.IOException(te);
21484
      }
21485
    }
21486
 
21487
  }
21488
 
21489
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
21490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
21491
 
21492
    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);
21493
 
21494
    private InventoryServiceException cex; // required
21495
 
21496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21498
      CEX((short)1, "cex");
21499
 
21500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21501
 
21502
      static {
21503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21504
          byName.put(field.getFieldName(), field);
21505
        }
21506
      }
21507
 
21508
      /**
21509
       * Find the _Fields constant that matches fieldId, or null if its not found.
21510
       */
21511
      public static _Fields findByThriftId(int fieldId) {
21512
        switch(fieldId) {
21513
          case 1: // CEX
21514
            return CEX;
21515
          default:
21516
            return null;
21517
        }
21518
      }
21519
 
21520
      /**
21521
       * Find the _Fields constant that matches fieldId, throwing an exception
21522
       * if it is not found.
21523
       */
21524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21525
        _Fields fields = findByThriftId(fieldId);
21526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21527
        return fields;
21528
      }
21529
 
21530
      /**
21531
       * Find the _Fields constant that matches name, or null if its not found.
21532
       */
21533
      public static _Fields findByName(String name) {
21534
        return byName.get(name);
21535
      }
21536
 
21537
      private final short _thriftId;
21538
      private final String _fieldName;
21539
 
21540
      _Fields(short thriftId, String fieldName) {
21541
        _thriftId = thriftId;
21542
        _fieldName = fieldName;
21543
      }
21544
 
21545
      public short getThriftFieldId() {
21546
        return _thriftId;
21547
      }
21548
 
21549
      public String getFieldName() {
21550
        return _fieldName;
21551
      }
21552
    }
21553
 
21554
    // isset id assignments
21555
 
21556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21557
    static {
21558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21559
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21560
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21561
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21562
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
21563
    }
21564
 
21565
    public addVendorItemPricing_result() {
21566
    }
21567
 
21568
    public addVendorItemPricing_result(
21569
      InventoryServiceException cex)
21570
    {
21571
      this();
21572
      this.cex = cex;
21573
    }
21574
 
21575
    /**
21576
     * Performs a deep copy on <i>other</i>.
21577
     */
21578
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
21579
      if (other.isSetCex()) {
21580
        this.cex = new InventoryServiceException(other.cex);
21581
      }
21582
    }
21583
 
21584
    public addVendorItemPricing_result deepCopy() {
21585
      return new addVendorItemPricing_result(this);
21586
    }
21587
 
21588
    @Override
21589
    public void clear() {
21590
      this.cex = null;
21591
    }
21592
 
21593
    public InventoryServiceException getCex() {
21594
      return this.cex;
21595
    }
21596
 
21597
    public void setCex(InventoryServiceException cex) {
21598
      this.cex = cex;
21599
    }
21600
 
21601
    public void unsetCex() {
21602
      this.cex = null;
21603
    }
21604
 
21605
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
21606
    public boolean isSetCex() {
21607
      return this.cex != null;
21608
    }
21609
 
21610
    public void setCexIsSet(boolean value) {
21611
      if (!value) {
21612
        this.cex = null;
21613
      }
21614
    }
21615
 
21616
    public void setFieldValue(_Fields field, Object value) {
21617
      switch (field) {
21618
      case CEX:
21619
        if (value == null) {
21620
          unsetCex();
21621
        } else {
21622
          setCex((InventoryServiceException)value);
21623
        }
21624
        break;
21625
 
21626
      }
21627
    }
21628
 
21629
    public Object getFieldValue(_Fields field) {
21630
      switch (field) {
21631
      case CEX:
21632
        return getCex();
21633
 
21634
      }
21635
      throw new IllegalStateException();
21636
    }
21637
 
21638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21639
    public boolean isSet(_Fields field) {
21640
      if (field == null) {
21641
        throw new IllegalArgumentException();
21642
      }
21643
 
21644
      switch (field) {
21645
      case CEX:
21646
        return isSetCex();
21647
      }
21648
      throw new IllegalStateException();
21649
    }
21650
 
21651
    @Override
21652
    public boolean equals(Object that) {
21653
      if (that == null)
21654
        return false;
21655
      if (that instanceof addVendorItemPricing_result)
21656
        return this.equals((addVendorItemPricing_result)that);
21657
      return false;
21658
    }
21659
 
21660
    public boolean equals(addVendorItemPricing_result that) {
21661
      if (that == null)
21662
        return false;
21663
 
21664
      boolean this_present_cex = true && this.isSetCex();
21665
      boolean that_present_cex = true && that.isSetCex();
21666
      if (this_present_cex || that_present_cex) {
21667
        if (!(this_present_cex && that_present_cex))
21668
          return false;
21669
        if (!this.cex.equals(that.cex))
21670
          return false;
21671
      }
21672
 
21673
      return true;
21674
    }
21675
 
21676
    @Override
21677
    public int hashCode() {
21678
      return 0;
21679
    }
21680
 
21681
    public int compareTo(addVendorItemPricing_result other) {
21682
      if (!getClass().equals(other.getClass())) {
21683
        return getClass().getName().compareTo(other.getClass().getName());
21684
      }
21685
 
21686
      int lastComparison = 0;
21687
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
21688
 
21689
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
21690
      if (lastComparison != 0) {
21691
        return lastComparison;
21692
      }
21693
      if (isSetCex()) {
21694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
21695
        if (lastComparison != 0) {
21696
          return lastComparison;
21697
        }
21698
      }
21699
      return 0;
21700
    }
21701
 
21702
    public _Fields fieldForId(int fieldId) {
21703
      return _Fields.findByThriftId(fieldId);
21704
    }
21705
 
21706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21707
      org.apache.thrift.protocol.TField field;
21708
      iprot.readStructBegin();
21709
      while (true)
21710
      {
21711
        field = iprot.readFieldBegin();
21712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21713
          break;
21714
        }
21715
        switch (field.id) {
21716
          case 1: // CEX
21717
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21718
              this.cex = new InventoryServiceException();
21719
              this.cex.read(iprot);
21720
            } else { 
21721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21722
            }
21723
            break;
21724
          default:
21725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21726
        }
21727
        iprot.readFieldEnd();
21728
      }
21729
      iprot.readStructEnd();
21730
      validate();
21731
    }
21732
 
21733
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21734
      oprot.writeStructBegin(STRUCT_DESC);
21735
 
21736
      if (this.isSetCex()) {
21737
        oprot.writeFieldBegin(CEX_FIELD_DESC);
21738
        this.cex.write(oprot);
21739
        oprot.writeFieldEnd();
21740
      }
21741
      oprot.writeFieldStop();
21742
      oprot.writeStructEnd();
21743
    }
21744
 
21745
    @Override
21746
    public String toString() {
21747
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
21748
      boolean first = true;
21749
 
21750
      sb.append("cex:");
21751
      if (this.cex == null) {
21752
        sb.append("null");
21753
      } else {
21754
        sb.append(this.cex);
21755
      }
21756
      first = false;
21757
      sb.append(")");
21758
      return sb.toString();
21759
    }
21760
 
21761
    public void validate() throws org.apache.thrift.TException {
21762
      // check for required fields
21763
    }
21764
 
21765
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21766
      try {
21767
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21768
      } catch (org.apache.thrift.TException te) {
21769
        throw new java.io.IOException(te);
21770
      }
21771
    }
21772
 
21773
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21774
      try {
21775
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21776
      } catch (org.apache.thrift.TException te) {
21777
        throw new java.io.IOException(te);
21778
      }
21779
    }
21780
 
21781
  }
21782
 
21783
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
21784
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
21785
 
21786
    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);
21787
 
21788
    private long vendorId; // required
21789
 
21790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21792
      VENDOR_ID((short)1, "vendorId");
21793
 
21794
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21795
 
21796
      static {
21797
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21798
          byName.put(field.getFieldName(), field);
21799
        }
21800
      }
21801
 
21802
      /**
21803
       * Find the _Fields constant that matches fieldId, or null if its not found.
21804
       */
21805
      public static _Fields findByThriftId(int fieldId) {
21806
        switch(fieldId) {
21807
          case 1: // VENDOR_ID
21808
            return VENDOR_ID;
21809
          default:
21810
            return null;
21811
        }
21812
      }
21813
 
21814
      /**
21815
       * Find the _Fields constant that matches fieldId, throwing an exception
21816
       * if it is not found.
21817
       */
21818
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21819
        _Fields fields = findByThriftId(fieldId);
21820
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21821
        return fields;
21822
      }
21823
 
21824
      /**
21825
       * Find the _Fields constant that matches name, or null if its not found.
21826
       */
21827
      public static _Fields findByName(String name) {
21828
        return byName.get(name);
21829
      }
21830
 
21831
      private final short _thriftId;
21832
      private final String _fieldName;
21833
 
21834
      _Fields(short thriftId, String fieldName) {
21835
        _thriftId = thriftId;
21836
        _fieldName = fieldName;
21837
      }
21838
 
21839
      public short getThriftFieldId() {
21840
        return _thriftId;
21841
      }
21842
 
21843
      public String getFieldName() {
21844
        return _fieldName;
21845
      }
21846
    }
21847
 
21848
    // isset id assignments
21849
    private static final int __VENDORID_ISSET_ID = 0;
21850
    private BitSet __isset_bit_vector = new BitSet(1);
21851
 
21852
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21853
    static {
21854
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21855
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21856
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
21859
    }
21860
 
21861
    public getVendor_args() {
21862
    }
21863
 
21864
    public getVendor_args(
21865
      long vendorId)
21866
    {
21867
      this();
21868
      this.vendorId = vendorId;
21869
      setVendorIdIsSet(true);
21870
    }
21871
 
21872
    /**
21873
     * Performs a deep copy on <i>other</i>.
21874
     */
21875
    public getVendor_args(getVendor_args other) {
21876
      __isset_bit_vector.clear();
21877
      __isset_bit_vector.or(other.__isset_bit_vector);
21878
      this.vendorId = other.vendorId;
21879
    }
21880
 
21881
    public getVendor_args deepCopy() {
21882
      return new getVendor_args(this);
21883
    }
21884
 
21885
    @Override
21886
    public void clear() {
21887
      setVendorIdIsSet(false);
21888
      this.vendorId = 0;
21889
    }
21890
 
21891
    public long getVendorId() {
21892
      return this.vendorId;
21893
    }
21894
 
21895
    public void setVendorId(long vendorId) {
21896
      this.vendorId = vendorId;
21897
      setVendorIdIsSet(true);
21898
    }
21899
 
21900
    public void unsetVendorId() {
21901
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21902
    }
21903
 
21904
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21905
    public boolean isSetVendorId() {
21906
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21907
    }
21908
 
21909
    public void setVendorIdIsSet(boolean value) {
21910
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21911
    }
21912
 
21913
    public void setFieldValue(_Fields field, Object value) {
21914
      switch (field) {
21915
      case VENDOR_ID:
21916
        if (value == null) {
21917
          unsetVendorId();
21918
        } else {
21919
          setVendorId((Long)value);
21920
        }
21921
        break;
21922
 
21923
      }
21924
    }
21925
 
21926
    public Object getFieldValue(_Fields field) {
21927
      switch (field) {
21928
      case VENDOR_ID:
21929
        return Long.valueOf(getVendorId());
21930
 
21931
      }
21932
      throw new IllegalStateException();
21933
    }
21934
 
21935
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21936
    public boolean isSet(_Fields field) {
21937
      if (field == null) {
21938
        throw new IllegalArgumentException();
21939
      }
21940
 
21941
      switch (field) {
21942
      case VENDOR_ID:
21943
        return isSetVendorId();
21944
      }
21945
      throw new IllegalStateException();
21946
    }
21947
 
21948
    @Override
21949
    public boolean equals(Object that) {
21950
      if (that == null)
21951
        return false;
21952
      if (that instanceof getVendor_args)
21953
        return this.equals((getVendor_args)that);
21954
      return false;
21955
    }
21956
 
21957
    public boolean equals(getVendor_args that) {
21958
      if (that == null)
21959
        return false;
21960
 
21961
      boolean this_present_vendorId = true;
21962
      boolean that_present_vendorId = true;
21963
      if (this_present_vendorId || that_present_vendorId) {
21964
        if (!(this_present_vendorId && that_present_vendorId))
21965
          return false;
21966
        if (this.vendorId != that.vendorId)
21967
          return false;
21968
      }
21969
 
21970
      return true;
21971
    }
21972
 
21973
    @Override
21974
    public int hashCode() {
21975
      return 0;
21976
    }
21977
 
21978
    public int compareTo(getVendor_args other) {
21979
      if (!getClass().equals(other.getClass())) {
21980
        return getClass().getName().compareTo(other.getClass().getName());
21981
      }
21982
 
21983
      int lastComparison = 0;
21984
      getVendor_args typedOther = (getVendor_args)other;
21985
 
21986
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21987
      if (lastComparison != 0) {
21988
        return lastComparison;
21989
      }
21990
      if (isSetVendorId()) {
21991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21992
        if (lastComparison != 0) {
21993
          return lastComparison;
21994
        }
21995
      }
21996
      return 0;
21997
    }
21998
 
21999
    public _Fields fieldForId(int fieldId) {
22000
      return _Fields.findByThriftId(fieldId);
22001
    }
22002
 
22003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22004
      org.apache.thrift.protocol.TField field;
22005
      iprot.readStructBegin();
22006
      while (true)
22007
      {
22008
        field = iprot.readFieldBegin();
22009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22010
          break;
22011
        }
22012
        switch (field.id) {
22013
          case 1: // VENDOR_ID
22014
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22015
              this.vendorId = iprot.readI64();
22016
              setVendorIdIsSet(true);
22017
            } else { 
22018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22019
            }
22020
            break;
22021
          default:
22022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22023
        }
22024
        iprot.readFieldEnd();
22025
      }
22026
      iprot.readStructEnd();
22027
      validate();
22028
    }
22029
 
22030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22031
      validate();
22032
 
22033
      oprot.writeStructBegin(STRUCT_DESC);
22034
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
22035
      oprot.writeI64(this.vendorId);
22036
      oprot.writeFieldEnd();
22037
      oprot.writeFieldStop();
22038
      oprot.writeStructEnd();
22039
    }
22040
 
22041
    @Override
22042
    public String toString() {
22043
      StringBuilder sb = new StringBuilder("getVendor_args(");
22044
      boolean first = true;
22045
 
22046
      sb.append("vendorId:");
22047
      sb.append(this.vendorId);
22048
      first = false;
22049
      sb.append(")");
22050
      return sb.toString();
22051
    }
22052
 
22053
    public void validate() throws org.apache.thrift.TException {
22054
      // check for required fields
22055
    }
22056
 
22057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22058
      try {
22059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22060
      } catch (org.apache.thrift.TException te) {
22061
        throw new java.io.IOException(te);
22062
      }
22063
    }
22064
 
22065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22066
      try {
22067
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22068
        __isset_bit_vector = new BitSet(1);
22069
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22070
      } catch (org.apache.thrift.TException te) {
22071
        throw new java.io.IOException(te);
22072
      }
22073
    }
22074
 
22075
  }
22076
 
22077
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
22078
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
22079
 
22080
    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);
22081
 
22082
    private Vendor success; // required
22083
 
22084
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22085
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22086
      SUCCESS((short)0, "success");
22087
 
22088
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22089
 
22090
      static {
22091
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22092
          byName.put(field.getFieldName(), field);
22093
        }
22094
      }
22095
 
22096
      /**
22097
       * Find the _Fields constant that matches fieldId, or null if its not found.
22098
       */
22099
      public static _Fields findByThriftId(int fieldId) {
22100
        switch(fieldId) {
22101
          case 0: // SUCCESS
22102
            return SUCCESS;
22103
          default:
22104
            return null;
22105
        }
22106
      }
22107
 
22108
      /**
22109
       * Find the _Fields constant that matches fieldId, throwing an exception
22110
       * if it is not found.
22111
       */
22112
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22113
        _Fields fields = findByThriftId(fieldId);
22114
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22115
        return fields;
22116
      }
22117
 
22118
      /**
22119
       * Find the _Fields constant that matches name, or null if its not found.
22120
       */
22121
      public static _Fields findByName(String name) {
22122
        return byName.get(name);
22123
      }
22124
 
22125
      private final short _thriftId;
22126
      private final String _fieldName;
22127
 
22128
      _Fields(short thriftId, String fieldName) {
22129
        _thriftId = thriftId;
22130
        _fieldName = fieldName;
22131
      }
22132
 
22133
      public short getThriftFieldId() {
22134
        return _thriftId;
22135
      }
22136
 
22137
      public String getFieldName() {
22138
        return _fieldName;
22139
      }
22140
    }
22141
 
22142
    // isset id assignments
22143
 
22144
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22145
    static {
22146
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22147
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22148
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
22149
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22150
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
22151
    }
22152
 
22153
    public getVendor_result() {
22154
    }
22155
 
22156
    public getVendor_result(
22157
      Vendor success)
22158
    {
22159
      this();
22160
      this.success = success;
22161
    }
22162
 
22163
    /**
22164
     * Performs a deep copy on <i>other</i>.
22165
     */
22166
    public getVendor_result(getVendor_result other) {
22167
      if (other.isSetSuccess()) {
22168
        this.success = new Vendor(other.success);
22169
      }
22170
    }
22171
 
22172
    public getVendor_result deepCopy() {
22173
      return new getVendor_result(this);
22174
    }
22175
 
22176
    @Override
22177
    public void clear() {
22178
      this.success = null;
22179
    }
22180
 
22181
    public Vendor getSuccess() {
22182
      return this.success;
22183
    }
22184
 
22185
    public void setSuccess(Vendor success) {
22186
      this.success = success;
22187
    }
22188
 
22189
    public void unsetSuccess() {
22190
      this.success = null;
22191
    }
22192
 
22193
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22194
    public boolean isSetSuccess() {
22195
      return this.success != null;
22196
    }
22197
 
22198
    public void setSuccessIsSet(boolean value) {
22199
      if (!value) {
22200
        this.success = null;
22201
      }
22202
    }
22203
 
22204
    public void setFieldValue(_Fields field, Object value) {
22205
      switch (field) {
22206
      case SUCCESS:
22207
        if (value == null) {
22208
          unsetSuccess();
22209
        } else {
22210
          setSuccess((Vendor)value);
22211
        }
22212
        break;
22213
 
22214
      }
22215
    }
22216
 
22217
    public Object getFieldValue(_Fields field) {
22218
      switch (field) {
22219
      case SUCCESS:
22220
        return getSuccess();
22221
 
22222
      }
22223
      throw new IllegalStateException();
22224
    }
22225
 
22226
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22227
    public boolean isSet(_Fields field) {
22228
      if (field == null) {
22229
        throw new IllegalArgumentException();
22230
      }
22231
 
22232
      switch (field) {
22233
      case SUCCESS:
22234
        return isSetSuccess();
22235
      }
22236
      throw new IllegalStateException();
22237
    }
22238
 
22239
    @Override
22240
    public boolean equals(Object that) {
22241
      if (that == null)
22242
        return false;
22243
      if (that instanceof getVendor_result)
22244
        return this.equals((getVendor_result)that);
22245
      return false;
22246
    }
22247
 
22248
    public boolean equals(getVendor_result that) {
22249
      if (that == null)
22250
        return false;
22251
 
22252
      boolean this_present_success = true && this.isSetSuccess();
22253
      boolean that_present_success = true && that.isSetSuccess();
22254
      if (this_present_success || that_present_success) {
22255
        if (!(this_present_success && that_present_success))
22256
          return false;
22257
        if (!this.success.equals(that.success))
22258
          return false;
22259
      }
22260
 
22261
      return true;
22262
    }
22263
 
22264
    @Override
22265
    public int hashCode() {
22266
      return 0;
22267
    }
22268
 
22269
    public int compareTo(getVendor_result other) {
22270
      if (!getClass().equals(other.getClass())) {
22271
        return getClass().getName().compareTo(other.getClass().getName());
22272
      }
22273
 
22274
      int lastComparison = 0;
22275
      getVendor_result typedOther = (getVendor_result)other;
22276
 
22277
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22278
      if (lastComparison != 0) {
22279
        return lastComparison;
22280
      }
22281
      if (isSetSuccess()) {
22282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22283
        if (lastComparison != 0) {
22284
          return lastComparison;
22285
        }
22286
      }
22287
      return 0;
22288
    }
22289
 
22290
    public _Fields fieldForId(int fieldId) {
22291
      return _Fields.findByThriftId(fieldId);
22292
    }
22293
 
22294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22295
      org.apache.thrift.protocol.TField field;
22296
      iprot.readStructBegin();
22297
      while (true)
22298
      {
22299
        field = iprot.readFieldBegin();
22300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22301
          break;
22302
        }
22303
        switch (field.id) {
22304
          case 0: // SUCCESS
22305
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22306
              this.success = new Vendor();
22307
              this.success.read(iprot);
22308
            } else { 
22309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22310
            }
22311
            break;
22312
          default:
22313
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22314
        }
22315
        iprot.readFieldEnd();
22316
      }
22317
      iprot.readStructEnd();
22318
      validate();
22319
    }
22320
 
22321
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22322
      oprot.writeStructBegin(STRUCT_DESC);
22323
 
22324
      if (this.isSetSuccess()) {
22325
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22326
        this.success.write(oprot);
22327
        oprot.writeFieldEnd();
22328
      }
22329
      oprot.writeFieldStop();
22330
      oprot.writeStructEnd();
22331
    }
22332
 
22333
    @Override
22334
    public String toString() {
22335
      StringBuilder sb = new StringBuilder("getVendor_result(");
22336
      boolean first = true;
22337
 
22338
      sb.append("success:");
22339
      if (this.success == null) {
22340
        sb.append("null");
22341
      } else {
22342
        sb.append(this.success);
22343
      }
22344
      first = false;
22345
      sb.append(")");
22346
      return sb.toString();
22347
    }
22348
 
22349
    public void validate() throws org.apache.thrift.TException {
22350
      // check for required fields
22351
    }
22352
 
22353
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22354
      try {
22355
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22356
      } catch (org.apache.thrift.TException te) {
22357
        throw new java.io.IOException(te);
22358
      }
22359
    }
22360
 
22361
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22362
      try {
22363
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22364
      } catch (org.apache.thrift.TException te) {
22365
        throw new java.io.IOException(te);
22366
      }
22367
    }
22368
 
22369
  }
22370
 
22371
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
22372
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
22373
 
22374
 
22375
 
22376
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22377
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22378
;
22379
 
22380
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22381
 
22382
      static {
22383
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22384
          byName.put(field.getFieldName(), field);
22385
        }
22386
      }
22387
 
22388
      /**
22389
       * Find the _Fields constant that matches fieldId, or null if its not found.
22390
       */
22391
      public static _Fields findByThriftId(int fieldId) {
22392
        switch(fieldId) {
22393
          default:
22394
            return null;
22395
        }
22396
      }
22397
 
22398
      /**
22399
       * Find the _Fields constant that matches fieldId, throwing an exception
22400
       * if it is not found.
22401
       */
22402
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22403
        _Fields fields = findByThriftId(fieldId);
22404
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22405
        return fields;
22406
      }
22407
 
22408
      /**
22409
       * Find the _Fields constant that matches name, or null if its not found.
22410
       */
22411
      public static _Fields findByName(String name) {
22412
        return byName.get(name);
22413
      }
22414
 
22415
      private final short _thriftId;
22416
      private final String _fieldName;
22417
 
22418
      _Fields(short thriftId, String fieldName) {
22419
        _thriftId = thriftId;
22420
        _fieldName = fieldName;
22421
      }
22422
 
22423
      public short getThriftFieldId() {
22424
        return _thriftId;
22425
      }
22426
 
22427
      public String getFieldName() {
22428
        return _fieldName;
22429
      }
22430
    }
22431
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22432
    static {
22433
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
22436
    }
22437
 
22438
    public getAllVendors_args() {
22439
    }
22440
 
22441
    /**
22442
     * Performs a deep copy on <i>other</i>.
22443
     */
22444
    public getAllVendors_args(getAllVendors_args other) {
22445
    }
22446
 
22447
    public getAllVendors_args deepCopy() {
22448
      return new getAllVendors_args(this);
22449
    }
22450
 
22451
    @Override
22452
    public void clear() {
22453
    }
22454
 
22455
    public void setFieldValue(_Fields field, Object value) {
22456
      switch (field) {
22457
      }
22458
    }
22459
 
22460
    public Object getFieldValue(_Fields field) {
22461
      switch (field) {
22462
      }
22463
      throw new IllegalStateException();
22464
    }
22465
 
22466
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22467
    public boolean isSet(_Fields field) {
22468
      if (field == null) {
22469
        throw new IllegalArgumentException();
22470
      }
22471
 
22472
      switch (field) {
22473
      }
22474
      throw new IllegalStateException();
22475
    }
22476
 
22477
    @Override
22478
    public boolean equals(Object that) {
22479
      if (that == null)
22480
        return false;
22481
      if (that instanceof getAllVendors_args)
22482
        return this.equals((getAllVendors_args)that);
22483
      return false;
22484
    }
22485
 
22486
    public boolean equals(getAllVendors_args that) {
22487
      if (that == null)
22488
        return false;
22489
 
22490
      return true;
22491
    }
22492
 
22493
    @Override
22494
    public int hashCode() {
22495
      return 0;
22496
    }
22497
 
22498
    public int compareTo(getAllVendors_args other) {
22499
      if (!getClass().equals(other.getClass())) {
22500
        return getClass().getName().compareTo(other.getClass().getName());
22501
      }
22502
 
22503
      int lastComparison = 0;
22504
      getAllVendors_args typedOther = (getAllVendors_args)other;
22505
 
22506
      return 0;
22507
    }
22508
 
22509
    public _Fields fieldForId(int fieldId) {
22510
      return _Fields.findByThriftId(fieldId);
22511
    }
22512
 
22513
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22514
      org.apache.thrift.protocol.TField field;
22515
      iprot.readStructBegin();
22516
      while (true)
22517
      {
22518
        field = iprot.readFieldBegin();
22519
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22520
          break;
22521
        }
22522
        switch (field.id) {
22523
          default:
22524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22525
        }
22526
        iprot.readFieldEnd();
22527
      }
22528
      iprot.readStructEnd();
22529
      validate();
22530
    }
22531
 
22532
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22533
      validate();
22534
 
22535
      oprot.writeStructBegin(STRUCT_DESC);
22536
      oprot.writeFieldStop();
22537
      oprot.writeStructEnd();
22538
    }
22539
 
22540
    @Override
22541
    public String toString() {
22542
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
22543
      boolean first = true;
22544
 
22545
      sb.append(")");
22546
      return sb.toString();
22547
    }
22548
 
22549
    public void validate() throws org.apache.thrift.TException {
22550
      // check for required fields
22551
    }
22552
 
22553
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22554
      try {
22555
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22556
      } catch (org.apache.thrift.TException te) {
22557
        throw new java.io.IOException(te);
22558
      }
22559
    }
22560
 
22561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22562
      try {
22563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22564
      } catch (org.apache.thrift.TException te) {
22565
        throw new java.io.IOException(te);
22566
      }
22567
    }
22568
 
22569
  }
22570
 
22571
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
22572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
22573
 
22574
    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);
22575
 
22576
    private List<Vendor> success; // required
22577
 
22578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22580
      SUCCESS((short)0, "success");
22581
 
22582
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22583
 
22584
      static {
22585
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22586
          byName.put(field.getFieldName(), field);
22587
        }
22588
      }
22589
 
22590
      /**
22591
       * Find the _Fields constant that matches fieldId, or null if its not found.
22592
       */
22593
      public static _Fields findByThriftId(int fieldId) {
22594
        switch(fieldId) {
22595
          case 0: // SUCCESS
22596
            return SUCCESS;
22597
          default:
22598
            return null;
22599
        }
22600
      }
22601
 
22602
      /**
22603
       * Find the _Fields constant that matches fieldId, throwing an exception
22604
       * if it is not found.
22605
       */
22606
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22607
        _Fields fields = findByThriftId(fieldId);
22608
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22609
        return fields;
22610
      }
22611
 
22612
      /**
22613
       * Find the _Fields constant that matches name, or null if its not found.
22614
       */
22615
      public static _Fields findByName(String name) {
22616
        return byName.get(name);
22617
      }
22618
 
22619
      private final short _thriftId;
22620
      private final String _fieldName;
22621
 
22622
      _Fields(short thriftId, String fieldName) {
22623
        _thriftId = thriftId;
22624
        _fieldName = fieldName;
22625
      }
22626
 
22627
      public short getThriftFieldId() {
22628
        return _thriftId;
22629
      }
22630
 
22631
      public String getFieldName() {
22632
        return _fieldName;
22633
      }
22634
    }
22635
 
22636
    // isset id assignments
22637
 
22638
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22639
    static {
22640
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22641
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22642
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22643
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
22644
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22645
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
22646
    }
22647
 
22648
    public getAllVendors_result() {
22649
    }
22650
 
22651
    public getAllVendors_result(
22652
      List<Vendor> success)
22653
    {
22654
      this();
22655
      this.success = success;
22656
    }
22657
 
22658
    /**
22659
     * Performs a deep copy on <i>other</i>.
22660
     */
22661
    public getAllVendors_result(getAllVendors_result other) {
22662
      if (other.isSetSuccess()) {
22663
        List<Vendor> __this__success = new ArrayList<Vendor>();
22664
        for (Vendor other_element : other.success) {
22665
          __this__success.add(new Vendor(other_element));
22666
        }
22667
        this.success = __this__success;
22668
      }
22669
    }
22670
 
22671
    public getAllVendors_result deepCopy() {
22672
      return new getAllVendors_result(this);
22673
    }
22674
 
22675
    @Override
22676
    public void clear() {
22677
      this.success = null;
22678
    }
22679
 
22680
    public int getSuccessSize() {
22681
      return (this.success == null) ? 0 : this.success.size();
22682
    }
22683
 
22684
    public java.util.Iterator<Vendor> getSuccessIterator() {
22685
      return (this.success == null) ? null : this.success.iterator();
22686
    }
22687
 
22688
    public void addToSuccess(Vendor elem) {
22689
      if (this.success == null) {
22690
        this.success = new ArrayList<Vendor>();
22691
      }
22692
      this.success.add(elem);
22693
    }
22694
 
22695
    public List<Vendor> getSuccess() {
22696
      return this.success;
22697
    }
22698
 
22699
    public void setSuccess(List<Vendor> success) {
22700
      this.success = success;
22701
    }
22702
 
22703
    public void unsetSuccess() {
22704
      this.success = null;
22705
    }
22706
 
22707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22708
    public boolean isSetSuccess() {
22709
      return this.success != null;
22710
    }
22711
 
22712
    public void setSuccessIsSet(boolean value) {
22713
      if (!value) {
22714
        this.success = null;
22715
      }
22716
    }
22717
 
22718
    public void setFieldValue(_Fields field, Object value) {
22719
      switch (field) {
22720
      case SUCCESS:
22721
        if (value == null) {
22722
          unsetSuccess();
22723
        } else {
22724
          setSuccess((List<Vendor>)value);
22725
        }
22726
        break;
22727
 
22728
      }
22729
    }
22730
 
22731
    public Object getFieldValue(_Fields field) {
22732
      switch (field) {
22733
      case SUCCESS:
22734
        return getSuccess();
22735
 
22736
      }
22737
      throw new IllegalStateException();
22738
    }
22739
 
22740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22741
    public boolean isSet(_Fields field) {
22742
      if (field == null) {
22743
        throw new IllegalArgumentException();
22744
      }
22745
 
22746
      switch (field) {
22747
      case SUCCESS:
22748
        return isSetSuccess();
22749
      }
22750
      throw new IllegalStateException();
22751
    }
22752
 
22753
    @Override
22754
    public boolean equals(Object that) {
22755
      if (that == null)
22756
        return false;
22757
      if (that instanceof getAllVendors_result)
22758
        return this.equals((getAllVendors_result)that);
22759
      return false;
22760
    }
22761
 
22762
    public boolean equals(getAllVendors_result that) {
22763
      if (that == null)
22764
        return false;
22765
 
22766
      boolean this_present_success = true && this.isSetSuccess();
22767
      boolean that_present_success = true && that.isSetSuccess();
22768
      if (this_present_success || that_present_success) {
22769
        if (!(this_present_success && that_present_success))
22770
          return false;
22771
        if (!this.success.equals(that.success))
22772
          return false;
22773
      }
22774
 
22775
      return true;
22776
    }
22777
 
22778
    @Override
22779
    public int hashCode() {
22780
      return 0;
22781
    }
22782
 
22783
    public int compareTo(getAllVendors_result other) {
22784
      if (!getClass().equals(other.getClass())) {
22785
        return getClass().getName().compareTo(other.getClass().getName());
22786
      }
22787
 
22788
      int lastComparison = 0;
22789
      getAllVendors_result typedOther = (getAllVendors_result)other;
22790
 
22791
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22792
      if (lastComparison != 0) {
22793
        return lastComparison;
22794
      }
22795
      if (isSetSuccess()) {
22796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22797
        if (lastComparison != 0) {
22798
          return lastComparison;
22799
        }
22800
      }
22801
      return 0;
22802
    }
22803
 
22804
    public _Fields fieldForId(int fieldId) {
22805
      return _Fields.findByThriftId(fieldId);
22806
    }
22807
 
22808
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22809
      org.apache.thrift.protocol.TField field;
22810
      iprot.readStructBegin();
22811
      while (true)
22812
      {
22813
        field = iprot.readFieldBegin();
22814
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22815
          break;
22816
        }
22817
        switch (field.id) {
22818
          case 0: // SUCCESS
22819
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22820
              {
8182 amar.kumar 22821
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
22822
                this.success = new ArrayList<Vendor>(_list41.size);
22823
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
5945 mandeep.dh 22824
                {
8182 amar.kumar 22825
                  Vendor _elem43; // required
22826
                  _elem43 = new Vendor();
22827
                  _elem43.read(iprot);
22828
                  this.success.add(_elem43);
5945 mandeep.dh 22829
                }
22830
                iprot.readListEnd();
22831
              }
22832
            } else { 
22833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22834
            }
22835
            break;
22836
          default:
22837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22838
        }
22839
        iprot.readFieldEnd();
22840
      }
22841
      iprot.readStructEnd();
22842
      validate();
22843
    }
22844
 
22845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22846
      oprot.writeStructBegin(STRUCT_DESC);
22847
 
22848
      if (this.isSetSuccess()) {
22849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22850
        {
22851
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 22852
          for (Vendor _iter44 : this.success)
5945 mandeep.dh 22853
          {
8182 amar.kumar 22854
            _iter44.write(oprot);
5945 mandeep.dh 22855
          }
22856
          oprot.writeListEnd();
22857
        }
22858
        oprot.writeFieldEnd();
22859
      }
22860
      oprot.writeFieldStop();
22861
      oprot.writeStructEnd();
22862
    }
22863
 
22864
    @Override
22865
    public String toString() {
22866
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
22867
      boolean first = true;
22868
 
22869
      sb.append("success:");
22870
      if (this.success == null) {
22871
        sb.append("null");
22872
      } else {
22873
        sb.append(this.success);
22874
      }
22875
      first = false;
22876
      sb.append(")");
22877
      return sb.toString();
22878
    }
22879
 
22880
    public void validate() throws org.apache.thrift.TException {
22881
      // check for required fields
22882
    }
22883
 
22884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22885
      try {
22886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22887
      } catch (org.apache.thrift.TException te) {
22888
        throw new java.io.IOException(te);
22889
      }
22890
    }
22891
 
22892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22893
      try {
22894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22895
      } catch (org.apache.thrift.TException te) {
22896
        throw new java.io.IOException(te);
22897
      }
22898
    }
22899
 
22900
  }
22901
 
22902
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
22903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
22904
 
22905
    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);
22906
    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);
22907
 
22908
    private String key; // required
22909
    private VendorItemMapping vendorItemMapping; // required
22910
 
22911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22913
      KEY((short)1, "key"),
22914
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
22915
 
22916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22917
 
22918
      static {
22919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22920
          byName.put(field.getFieldName(), field);
22921
        }
22922
      }
22923
 
22924
      /**
22925
       * Find the _Fields constant that matches fieldId, or null if its not found.
22926
       */
22927
      public static _Fields findByThriftId(int fieldId) {
22928
        switch(fieldId) {
22929
          case 1: // KEY
22930
            return KEY;
22931
          case 2: // VENDOR_ITEM_MAPPING
22932
            return VENDOR_ITEM_MAPPING;
22933
          default:
22934
            return null;
22935
        }
22936
      }
22937
 
22938
      /**
22939
       * Find the _Fields constant that matches fieldId, throwing an exception
22940
       * if it is not found.
22941
       */
22942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22943
        _Fields fields = findByThriftId(fieldId);
22944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22945
        return fields;
22946
      }
22947
 
22948
      /**
22949
       * Find the _Fields constant that matches name, or null if its not found.
22950
       */
22951
      public static _Fields findByName(String name) {
22952
        return byName.get(name);
22953
      }
22954
 
22955
      private final short _thriftId;
22956
      private final String _fieldName;
22957
 
22958
      _Fields(short thriftId, String fieldName) {
22959
        _thriftId = thriftId;
22960
        _fieldName = fieldName;
22961
      }
22962
 
22963
      public short getThriftFieldId() {
22964
        return _thriftId;
22965
      }
22966
 
22967
      public String getFieldName() {
22968
        return _fieldName;
22969
      }
22970
    }
22971
 
22972
    // isset id assignments
22973
 
22974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22975
    static {
22976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22977
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22979
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22980
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
22981
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22982
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
22983
    }
22984
 
22985
    public addVendorItemMapping_args() {
22986
    }
22987
 
22988
    public addVendorItemMapping_args(
22989
      String key,
22990
      VendorItemMapping vendorItemMapping)
22991
    {
22992
      this();
22993
      this.key = key;
22994
      this.vendorItemMapping = vendorItemMapping;
22995
    }
22996
 
22997
    /**
22998
     * Performs a deep copy on <i>other</i>.
22999
     */
23000
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
23001
      if (other.isSetKey()) {
23002
        this.key = other.key;
23003
      }
23004
      if (other.isSetVendorItemMapping()) {
23005
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
23006
      }
23007
    }
23008
 
23009
    public addVendorItemMapping_args deepCopy() {
23010
      return new addVendorItemMapping_args(this);
23011
    }
23012
 
23013
    @Override
23014
    public void clear() {
23015
      this.key = null;
23016
      this.vendorItemMapping = null;
23017
    }
23018
 
23019
    public String getKey() {
23020
      return this.key;
23021
    }
23022
 
23023
    public void setKey(String key) {
23024
      this.key = key;
23025
    }
23026
 
23027
    public void unsetKey() {
23028
      this.key = null;
23029
    }
23030
 
23031
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
23032
    public boolean isSetKey() {
23033
      return this.key != null;
23034
    }
23035
 
23036
    public void setKeyIsSet(boolean value) {
23037
      if (!value) {
23038
        this.key = null;
23039
      }
23040
    }
23041
 
23042
    public VendorItemMapping getVendorItemMapping() {
23043
      return this.vendorItemMapping;
23044
    }
23045
 
23046
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
23047
      this.vendorItemMapping = vendorItemMapping;
23048
    }
23049
 
23050
    public void unsetVendorItemMapping() {
23051
      this.vendorItemMapping = null;
23052
    }
23053
 
23054
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
23055
    public boolean isSetVendorItemMapping() {
23056
      return this.vendorItemMapping != null;
23057
    }
23058
 
23059
    public void setVendorItemMappingIsSet(boolean value) {
23060
      if (!value) {
23061
        this.vendorItemMapping = null;
23062
      }
23063
    }
23064
 
23065
    public void setFieldValue(_Fields field, Object value) {
23066
      switch (field) {
23067
      case KEY:
23068
        if (value == null) {
23069
          unsetKey();
23070
        } else {
23071
          setKey((String)value);
23072
        }
23073
        break;
23074
 
23075
      case VENDOR_ITEM_MAPPING:
23076
        if (value == null) {
23077
          unsetVendorItemMapping();
23078
        } else {
23079
          setVendorItemMapping((VendorItemMapping)value);
23080
        }
23081
        break;
23082
 
23083
      }
23084
    }
23085
 
23086
    public Object getFieldValue(_Fields field) {
23087
      switch (field) {
23088
      case KEY:
23089
        return getKey();
23090
 
23091
      case VENDOR_ITEM_MAPPING:
23092
        return getVendorItemMapping();
23093
 
23094
      }
23095
      throw new IllegalStateException();
23096
    }
23097
 
23098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23099
    public boolean isSet(_Fields field) {
23100
      if (field == null) {
23101
        throw new IllegalArgumentException();
23102
      }
23103
 
23104
      switch (field) {
23105
      case KEY:
23106
        return isSetKey();
23107
      case VENDOR_ITEM_MAPPING:
23108
        return isSetVendorItemMapping();
23109
      }
23110
      throw new IllegalStateException();
23111
    }
23112
 
23113
    @Override
23114
    public boolean equals(Object that) {
23115
      if (that == null)
23116
        return false;
23117
      if (that instanceof addVendorItemMapping_args)
23118
        return this.equals((addVendorItemMapping_args)that);
23119
      return false;
23120
    }
23121
 
23122
    public boolean equals(addVendorItemMapping_args that) {
23123
      if (that == null)
23124
        return false;
23125
 
23126
      boolean this_present_key = true && this.isSetKey();
23127
      boolean that_present_key = true && that.isSetKey();
23128
      if (this_present_key || that_present_key) {
23129
        if (!(this_present_key && that_present_key))
23130
          return false;
23131
        if (!this.key.equals(that.key))
23132
          return false;
23133
      }
23134
 
23135
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
23136
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
23137
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
23138
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
23139
          return false;
23140
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
23141
          return false;
23142
      }
23143
 
23144
      return true;
23145
    }
23146
 
23147
    @Override
23148
    public int hashCode() {
23149
      return 0;
23150
    }
23151
 
23152
    public int compareTo(addVendorItemMapping_args other) {
23153
      if (!getClass().equals(other.getClass())) {
23154
        return getClass().getName().compareTo(other.getClass().getName());
23155
      }
23156
 
23157
      int lastComparison = 0;
23158
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
23159
 
23160
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
23161
      if (lastComparison != 0) {
23162
        return lastComparison;
23163
      }
23164
      if (isSetKey()) {
23165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
23166
        if (lastComparison != 0) {
23167
          return lastComparison;
23168
        }
23169
      }
23170
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
23171
      if (lastComparison != 0) {
23172
        return lastComparison;
23173
      }
23174
      if (isSetVendorItemMapping()) {
23175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
23176
        if (lastComparison != 0) {
23177
          return lastComparison;
23178
        }
23179
      }
23180
      return 0;
23181
    }
23182
 
23183
    public _Fields fieldForId(int fieldId) {
23184
      return _Fields.findByThriftId(fieldId);
23185
    }
23186
 
23187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23188
      org.apache.thrift.protocol.TField field;
23189
      iprot.readStructBegin();
23190
      while (true)
23191
      {
23192
        field = iprot.readFieldBegin();
23193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23194
          break;
23195
        }
23196
        switch (field.id) {
23197
          case 1: // KEY
23198
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23199
              this.key = iprot.readString();
23200
            } else { 
23201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23202
            }
23203
            break;
23204
          case 2: // VENDOR_ITEM_MAPPING
23205
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23206
              this.vendorItemMapping = new VendorItemMapping();
23207
              this.vendorItemMapping.read(iprot);
23208
            } else { 
23209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23210
            }
23211
            break;
23212
          default:
23213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23214
        }
23215
        iprot.readFieldEnd();
23216
      }
23217
      iprot.readStructEnd();
23218
      validate();
23219
    }
23220
 
23221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23222
      validate();
23223
 
23224
      oprot.writeStructBegin(STRUCT_DESC);
23225
      if (this.key != null) {
23226
        oprot.writeFieldBegin(KEY_FIELD_DESC);
23227
        oprot.writeString(this.key);
23228
        oprot.writeFieldEnd();
23229
      }
23230
      if (this.vendorItemMapping != null) {
23231
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
23232
        this.vendorItemMapping.write(oprot);
23233
        oprot.writeFieldEnd();
23234
      }
23235
      oprot.writeFieldStop();
23236
      oprot.writeStructEnd();
23237
    }
23238
 
23239
    @Override
23240
    public String toString() {
23241
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
23242
      boolean first = true;
23243
 
23244
      sb.append("key:");
23245
      if (this.key == null) {
23246
        sb.append("null");
23247
      } else {
23248
        sb.append(this.key);
23249
      }
23250
      first = false;
23251
      if (!first) sb.append(", ");
23252
      sb.append("vendorItemMapping:");
23253
      if (this.vendorItemMapping == null) {
23254
        sb.append("null");
23255
      } else {
23256
        sb.append(this.vendorItemMapping);
23257
      }
23258
      first = false;
23259
      sb.append(")");
23260
      return sb.toString();
23261
    }
23262
 
23263
    public void validate() throws org.apache.thrift.TException {
23264
      // check for required fields
23265
    }
23266
 
23267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23268
      try {
23269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23270
      } catch (org.apache.thrift.TException te) {
23271
        throw new java.io.IOException(te);
23272
      }
23273
    }
23274
 
23275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23276
      try {
23277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23278
      } catch (org.apache.thrift.TException te) {
23279
        throw new java.io.IOException(te);
23280
      }
23281
    }
23282
 
23283
  }
23284
 
23285
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
23286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
23287
 
23288
    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);
23289
 
23290
    private InventoryServiceException cex; // required
23291
 
23292
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23293
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23294
      CEX((short)1, "cex");
23295
 
23296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23297
 
23298
      static {
23299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23300
          byName.put(field.getFieldName(), field);
23301
        }
23302
      }
23303
 
23304
      /**
23305
       * Find the _Fields constant that matches fieldId, or null if its not found.
23306
       */
23307
      public static _Fields findByThriftId(int fieldId) {
23308
        switch(fieldId) {
23309
          case 1: // CEX
23310
            return CEX;
23311
          default:
23312
            return null;
23313
        }
23314
      }
23315
 
23316
      /**
23317
       * Find the _Fields constant that matches fieldId, throwing an exception
23318
       * if it is not found.
23319
       */
23320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23321
        _Fields fields = findByThriftId(fieldId);
23322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23323
        return fields;
23324
      }
23325
 
23326
      /**
23327
       * Find the _Fields constant that matches name, or null if its not found.
23328
       */
23329
      public static _Fields findByName(String name) {
23330
        return byName.get(name);
23331
      }
23332
 
23333
      private final short _thriftId;
23334
      private final String _fieldName;
23335
 
23336
      _Fields(short thriftId, String fieldName) {
23337
        _thriftId = thriftId;
23338
        _fieldName = fieldName;
23339
      }
23340
 
23341
      public short getThriftFieldId() {
23342
        return _thriftId;
23343
      }
23344
 
23345
      public String getFieldName() {
23346
        return _fieldName;
23347
      }
23348
    }
23349
 
23350
    // isset id assignments
23351
 
23352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23353
    static {
23354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23355
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
23359
    }
23360
 
23361
    public addVendorItemMapping_result() {
23362
    }
23363
 
23364
    public addVendorItemMapping_result(
23365
      InventoryServiceException cex)
23366
    {
23367
      this();
23368
      this.cex = cex;
23369
    }
23370
 
23371
    /**
23372
     * Performs a deep copy on <i>other</i>.
23373
     */
23374
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
23375
      if (other.isSetCex()) {
23376
        this.cex = new InventoryServiceException(other.cex);
23377
      }
23378
    }
23379
 
23380
    public addVendorItemMapping_result deepCopy() {
23381
      return new addVendorItemMapping_result(this);
23382
    }
23383
 
23384
    @Override
23385
    public void clear() {
23386
      this.cex = null;
23387
    }
23388
 
23389
    public InventoryServiceException getCex() {
23390
      return this.cex;
23391
    }
23392
 
23393
    public void setCex(InventoryServiceException cex) {
23394
      this.cex = cex;
23395
    }
23396
 
23397
    public void unsetCex() {
23398
      this.cex = null;
23399
    }
23400
 
23401
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
23402
    public boolean isSetCex() {
23403
      return this.cex != null;
23404
    }
23405
 
23406
    public void setCexIsSet(boolean value) {
23407
      if (!value) {
23408
        this.cex = null;
23409
      }
23410
    }
23411
 
23412
    public void setFieldValue(_Fields field, Object value) {
23413
      switch (field) {
23414
      case CEX:
23415
        if (value == null) {
23416
          unsetCex();
23417
        } else {
23418
          setCex((InventoryServiceException)value);
23419
        }
23420
        break;
23421
 
23422
      }
23423
    }
23424
 
23425
    public Object getFieldValue(_Fields field) {
23426
      switch (field) {
23427
      case CEX:
23428
        return getCex();
23429
 
23430
      }
23431
      throw new IllegalStateException();
23432
    }
23433
 
23434
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23435
    public boolean isSet(_Fields field) {
23436
      if (field == null) {
23437
        throw new IllegalArgumentException();
23438
      }
23439
 
23440
      switch (field) {
23441
      case CEX:
23442
        return isSetCex();
23443
      }
23444
      throw new IllegalStateException();
23445
    }
23446
 
23447
    @Override
23448
    public boolean equals(Object that) {
23449
      if (that == null)
23450
        return false;
23451
      if (that instanceof addVendorItemMapping_result)
23452
        return this.equals((addVendorItemMapping_result)that);
23453
      return false;
23454
    }
23455
 
23456
    public boolean equals(addVendorItemMapping_result that) {
23457
      if (that == null)
23458
        return false;
23459
 
23460
      boolean this_present_cex = true && this.isSetCex();
23461
      boolean that_present_cex = true && that.isSetCex();
23462
      if (this_present_cex || that_present_cex) {
23463
        if (!(this_present_cex && that_present_cex))
23464
          return false;
23465
        if (!this.cex.equals(that.cex))
23466
          return false;
23467
      }
23468
 
23469
      return true;
23470
    }
23471
 
23472
    @Override
23473
    public int hashCode() {
23474
      return 0;
23475
    }
23476
 
23477
    public int compareTo(addVendorItemMapping_result other) {
23478
      if (!getClass().equals(other.getClass())) {
23479
        return getClass().getName().compareTo(other.getClass().getName());
23480
      }
23481
 
23482
      int lastComparison = 0;
23483
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
23484
 
23485
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23486
      if (lastComparison != 0) {
23487
        return lastComparison;
23488
      }
23489
      if (isSetCex()) {
23490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23491
        if (lastComparison != 0) {
23492
          return lastComparison;
23493
        }
23494
      }
23495
      return 0;
23496
    }
23497
 
23498
    public _Fields fieldForId(int fieldId) {
23499
      return _Fields.findByThriftId(fieldId);
23500
    }
23501
 
23502
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23503
      org.apache.thrift.protocol.TField field;
23504
      iprot.readStructBegin();
23505
      while (true)
23506
      {
23507
        field = iprot.readFieldBegin();
23508
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23509
          break;
23510
        }
23511
        switch (field.id) {
23512
          case 1: // CEX
23513
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23514
              this.cex = new InventoryServiceException();
23515
              this.cex.read(iprot);
23516
            } else { 
23517
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23518
            }
23519
            break;
23520
          default:
23521
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23522
        }
23523
        iprot.readFieldEnd();
23524
      }
23525
      iprot.readStructEnd();
23526
      validate();
23527
    }
23528
 
23529
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23530
      oprot.writeStructBegin(STRUCT_DESC);
23531
 
23532
      if (this.isSetCex()) {
23533
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23534
        this.cex.write(oprot);
23535
        oprot.writeFieldEnd();
23536
      }
23537
      oprot.writeFieldStop();
23538
      oprot.writeStructEnd();
23539
    }
23540
 
23541
    @Override
23542
    public String toString() {
23543
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
23544
      boolean first = true;
23545
 
23546
      sb.append("cex:");
23547
      if (this.cex == null) {
23548
        sb.append("null");
23549
      } else {
23550
        sb.append(this.cex);
23551
      }
23552
      first = false;
23553
      sb.append(")");
23554
      return sb.toString();
23555
    }
23556
 
23557
    public void validate() throws org.apache.thrift.TException {
23558
      // check for required fields
23559
    }
23560
 
23561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23562
      try {
23563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23564
      } catch (org.apache.thrift.TException te) {
23565
        throw new java.io.IOException(te);
23566
      }
23567
    }
23568
 
23569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23570
      try {
23571
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23572
      } catch (org.apache.thrift.TException te) {
23573
        throw new java.io.IOException(te);
23574
      }
23575
    }
23576
 
23577
  }
23578
 
23579
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
23580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
23581
 
23582
    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);
23583
 
23584
    private long itemId; // required
23585
 
23586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23588
      ITEM_ID((short)1, "itemId");
23589
 
23590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23591
 
23592
      static {
23593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23594
          byName.put(field.getFieldName(), field);
23595
        }
23596
      }
23597
 
23598
      /**
23599
       * Find the _Fields constant that matches fieldId, or null if its not found.
23600
       */
23601
      public static _Fields findByThriftId(int fieldId) {
23602
        switch(fieldId) {
23603
          case 1: // ITEM_ID
23604
            return ITEM_ID;
23605
          default:
23606
            return null;
23607
        }
23608
      }
23609
 
23610
      /**
23611
       * Find the _Fields constant that matches fieldId, throwing an exception
23612
       * if it is not found.
23613
       */
23614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23615
        _Fields fields = findByThriftId(fieldId);
23616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23617
        return fields;
23618
      }
23619
 
23620
      /**
23621
       * Find the _Fields constant that matches name, or null if its not found.
23622
       */
23623
      public static _Fields findByName(String name) {
23624
        return byName.get(name);
23625
      }
23626
 
23627
      private final short _thriftId;
23628
      private final String _fieldName;
23629
 
23630
      _Fields(short thriftId, String fieldName) {
23631
        _thriftId = thriftId;
23632
        _fieldName = fieldName;
23633
      }
23634
 
23635
      public short getThriftFieldId() {
23636
        return _thriftId;
23637
      }
23638
 
23639
      public String getFieldName() {
23640
        return _fieldName;
23641
      }
23642
    }
23643
 
23644
    // isset id assignments
23645
    private static final int __ITEMID_ISSET_ID = 0;
23646
    private BitSet __isset_bit_vector = new BitSet(1);
23647
 
23648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23649
    static {
23650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23651
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
23655
    }
23656
 
23657
    public getVendorItemMappings_args() {
23658
    }
23659
 
23660
    public getVendorItemMappings_args(
23661
      long itemId)
23662
    {
23663
      this();
23664
      this.itemId = itemId;
23665
      setItemIdIsSet(true);
23666
    }
23667
 
23668
    /**
23669
     * Performs a deep copy on <i>other</i>.
23670
     */
23671
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
23672
      __isset_bit_vector.clear();
23673
      __isset_bit_vector.or(other.__isset_bit_vector);
23674
      this.itemId = other.itemId;
23675
    }
23676
 
23677
    public getVendorItemMappings_args deepCopy() {
23678
      return new getVendorItemMappings_args(this);
23679
    }
23680
 
23681
    @Override
23682
    public void clear() {
23683
      setItemIdIsSet(false);
23684
      this.itemId = 0;
23685
    }
23686
 
23687
    public long getItemId() {
23688
      return this.itemId;
23689
    }
23690
 
23691
    public void setItemId(long itemId) {
23692
      this.itemId = itemId;
23693
      setItemIdIsSet(true);
23694
    }
23695
 
23696
    public void unsetItemId() {
23697
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
23698
    }
23699
 
23700
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
23701
    public boolean isSetItemId() {
23702
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
23703
    }
23704
 
23705
    public void setItemIdIsSet(boolean value) {
23706
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
23707
    }
23708
 
23709
    public void setFieldValue(_Fields field, Object value) {
23710
      switch (field) {
23711
      case ITEM_ID:
23712
        if (value == null) {
23713
          unsetItemId();
23714
        } else {
23715
          setItemId((Long)value);
23716
        }
23717
        break;
23718
 
23719
      }
23720
    }
23721
 
23722
    public Object getFieldValue(_Fields field) {
23723
      switch (field) {
23724
      case ITEM_ID:
23725
        return Long.valueOf(getItemId());
23726
 
23727
      }
23728
      throw new IllegalStateException();
23729
    }
23730
 
23731
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23732
    public boolean isSet(_Fields field) {
23733
      if (field == null) {
23734
        throw new IllegalArgumentException();
23735
      }
23736
 
23737
      switch (field) {
23738
      case ITEM_ID:
23739
        return isSetItemId();
23740
      }
23741
      throw new IllegalStateException();
23742
    }
23743
 
23744
    @Override
23745
    public boolean equals(Object that) {
23746
      if (that == null)
23747
        return false;
23748
      if (that instanceof getVendorItemMappings_args)
23749
        return this.equals((getVendorItemMappings_args)that);
23750
      return false;
23751
    }
23752
 
23753
    public boolean equals(getVendorItemMappings_args that) {
23754
      if (that == null)
23755
        return false;
23756
 
23757
      boolean this_present_itemId = true;
23758
      boolean that_present_itemId = true;
23759
      if (this_present_itemId || that_present_itemId) {
23760
        if (!(this_present_itemId && that_present_itemId))
23761
          return false;
23762
        if (this.itemId != that.itemId)
23763
          return false;
23764
      }
23765
 
23766
      return true;
23767
    }
23768
 
23769
    @Override
23770
    public int hashCode() {
23771
      return 0;
23772
    }
23773
 
23774
    public int compareTo(getVendorItemMappings_args other) {
23775
      if (!getClass().equals(other.getClass())) {
23776
        return getClass().getName().compareTo(other.getClass().getName());
23777
      }
23778
 
23779
      int lastComparison = 0;
23780
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
23781
 
23782
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
23783
      if (lastComparison != 0) {
23784
        return lastComparison;
23785
      }
23786
      if (isSetItemId()) {
23787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
23788
        if (lastComparison != 0) {
23789
          return lastComparison;
23790
        }
23791
      }
23792
      return 0;
23793
    }
23794
 
23795
    public _Fields fieldForId(int fieldId) {
23796
      return _Fields.findByThriftId(fieldId);
23797
    }
23798
 
23799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23800
      org.apache.thrift.protocol.TField field;
23801
      iprot.readStructBegin();
23802
      while (true)
23803
      {
23804
        field = iprot.readFieldBegin();
23805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23806
          break;
23807
        }
23808
        switch (field.id) {
23809
          case 1: // ITEM_ID
23810
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23811
              this.itemId = iprot.readI64();
23812
              setItemIdIsSet(true);
23813
            } else { 
23814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23815
            }
23816
            break;
23817
          default:
23818
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23819
        }
23820
        iprot.readFieldEnd();
23821
      }
23822
      iprot.readStructEnd();
23823
      validate();
23824
    }
23825
 
23826
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23827
      validate();
23828
 
23829
      oprot.writeStructBegin(STRUCT_DESC);
23830
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
23831
      oprot.writeI64(this.itemId);
23832
      oprot.writeFieldEnd();
23833
      oprot.writeFieldStop();
23834
      oprot.writeStructEnd();
23835
    }
23836
 
23837
    @Override
23838
    public String toString() {
23839
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
23840
      boolean first = true;
23841
 
23842
      sb.append("itemId:");
23843
      sb.append(this.itemId);
23844
      first = false;
23845
      sb.append(")");
23846
      return sb.toString();
23847
    }
23848
 
23849
    public void validate() throws org.apache.thrift.TException {
23850
      // check for required fields
23851
    }
23852
 
23853
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23854
      try {
23855
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23856
      } catch (org.apache.thrift.TException te) {
23857
        throw new java.io.IOException(te);
23858
      }
23859
    }
23860
 
23861
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23862
      try {
23863
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23864
      } catch (org.apache.thrift.TException te) {
23865
        throw new java.io.IOException(te);
23866
      }
23867
    }
23868
 
23869
  }
23870
 
23871
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
23872
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
23873
 
23874
    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);
23875
    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);
23876
 
23877
    private List<VendorItemMapping> success; // required
23878
    private InventoryServiceException cex; // required
23879
 
23880
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23881
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23882
      SUCCESS((short)0, "success"),
23883
      CEX((short)1, "cex");
23884
 
23885
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23886
 
23887
      static {
23888
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23889
          byName.put(field.getFieldName(), field);
23890
        }
23891
      }
23892
 
23893
      /**
23894
       * Find the _Fields constant that matches fieldId, or null if its not found.
23895
       */
23896
      public static _Fields findByThriftId(int fieldId) {
23897
        switch(fieldId) {
23898
          case 0: // SUCCESS
23899
            return SUCCESS;
23900
          case 1: // CEX
23901
            return CEX;
23902
          default:
23903
            return null;
23904
        }
23905
      }
23906
 
23907
      /**
23908
       * Find the _Fields constant that matches fieldId, throwing an exception
23909
       * if it is not found.
23910
       */
23911
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23912
        _Fields fields = findByThriftId(fieldId);
23913
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23914
        return fields;
23915
      }
23916
 
23917
      /**
23918
       * Find the _Fields constant that matches name, or null if its not found.
23919
       */
23920
      public static _Fields findByName(String name) {
23921
        return byName.get(name);
23922
      }
23923
 
23924
      private final short _thriftId;
23925
      private final String _fieldName;
23926
 
23927
      _Fields(short thriftId, String fieldName) {
23928
        _thriftId = thriftId;
23929
        _fieldName = fieldName;
23930
      }
23931
 
23932
      public short getThriftFieldId() {
23933
        return _thriftId;
23934
      }
23935
 
23936
      public String getFieldName() {
23937
        return _fieldName;
23938
      }
23939
    }
23940
 
23941
    // isset id assignments
23942
 
23943
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23944
    static {
23945
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23946
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23947
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23948
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
23949
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
23953
    }
23954
 
23955
    public getVendorItemMappings_result() {
23956
    }
23957
 
23958
    public getVendorItemMappings_result(
23959
      List<VendorItemMapping> success,
23960
      InventoryServiceException cex)
23961
    {
23962
      this();
23963
      this.success = success;
23964
      this.cex = cex;
23965
    }
23966
 
23967
    /**
23968
     * Performs a deep copy on <i>other</i>.
23969
     */
23970
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
23971
      if (other.isSetSuccess()) {
23972
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
23973
        for (VendorItemMapping other_element : other.success) {
23974
          __this__success.add(new VendorItemMapping(other_element));
23975
        }
23976
        this.success = __this__success;
23977
      }
23978
      if (other.isSetCex()) {
23979
        this.cex = new InventoryServiceException(other.cex);
23980
      }
23981
    }
23982
 
23983
    public getVendorItemMappings_result deepCopy() {
23984
      return new getVendorItemMappings_result(this);
23985
    }
23986
 
23987
    @Override
23988
    public void clear() {
23989
      this.success = null;
23990
      this.cex = null;
23991
    }
23992
 
23993
    public int getSuccessSize() {
23994
      return (this.success == null) ? 0 : this.success.size();
23995
    }
23996
 
23997
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
23998
      return (this.success == null) ? null : this.success.iterator();
23999
    }
24000
 
24001
    public void addToSuccess(VendorItemMapping elem) {
24002
      if (this.success == null) {
24003
        this.success = new ArrayList<VendorItemMapping>();
24004
      }
24005
      this.success.add(elem);
24006
    }
24007
 
24008
    public List<VendorItemMapping> getSuccess() {
24009
      return this.success;
24010
    }
24011
 
24012
    public void setSuccess(List<VendorItemMapping> success) {
24013
      this.success = success;
24014
    }
24015
 
24016
    public void unsetSuccess() {
24017
      this.success = null;
24018
    }
24019
 
24020
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24021
    public boolean isSetSuccess() {
24022
      return this.success != null;
24023
    }
24024
 
24025
    public void setSuccessIsSet(boolean value) {
24026
      if (!value) {
24027
        this.success = null;
24028
      }
24029
    }
24030
 
24031
    public InventoryServiceException getCex() {
24032
      return this.cex;
24033
    }
24034
 
24035
    public void setCex(InventoryServiceException cex) {
24036
      this.cex = cex;
24037
    }
24038
 
24039
    public void unsetCex() {
24040
      this.cex = null;
24041
    }
24042
 
24043
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
24044
    public boolean isSetCex() {
24045
      return this.cex != null;
24046
    }
24047
 
24048
    public void setCexIsSet(boolean value) {
24049
      if (!value) {
24050
        this.cex = null;
24051
      }
24052
    }
24053
 
24054
    public void setFieldValue(_Fields field, Object value) {
24055
      switch (field) {
24056
      case SUCCESS:
24057
        if (value == null) {
24058
          unsetSuccess();
24059
        } else {
24060
          setSuccess((List<VendorItemMapping>)value);
24061
        }
24062
        break;
24063
 
24064
      case CEX:
24065
        if (value == null) {
24066
          unsetCex();
24067
        } else {
24068
          setCex((InventoryServiceException)value);
24069
        }
24070
        break;
24071
 
24072
      }
24073
    }
24074
 
24075
    public Object getFieldValue(_Fields field) {
24076
      switch (field) {
24077
      case SUCCESS:
24078
        return getSuccess();
24079
 
24080
      case CEX:
24081
        return getCex();
24082
 
24083
      }
24084
      throw new IllegalStateException();
24085
    }
24086
 
24087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24088
    public boolean isSet(_Fields field) {
24089
      if (field == null) {
24090
        throw new IllegalArgumentException();
24091
      }
24092
 
24093
      switch (field) {
24094
      case SUCCESS:
24095
        return isSetSuccess();
24096
      case CEX:
24097
        return isSetCex();
24098
      }
24099
      throw new IllegalStateException();
24100
    }
24101
 
24102
    @Override
24103
    public boolean equals(Object that) {
24104
      if (that == null)
24105
        return false;
24106
      if (that instanceof getVendorItemMappings_result)
24107
        return this.equals((getVendorItemMappings_result)that);
24108
      return false;
24109
    }
24110
 
24111
    public boolean equals(getVendorItemMappings_result that) {
24112
      if (that == null)
24113
        return false;
24114
 
24115
      boolean this_present_success = true && this.isSetSuccess();
24116
      boolean that_present_success = true && that.isSetSuccess();
24117
      if (this_present_success || that_present_success) {
24118
        if (!(this_present_success && that_present_success))
24119
          return false;
24120
        if (!this.success.equals(that.success))
24121
          return false;
24122
      }
24123
 
24124
      boolean this_present_cex = true && this.isSetCex();
24125
      boolean that_present_cex = true && that.isSetCex();
24126
      if (this_present_cex || that_present_cex) {
24127
        if (!(this_present_cex && that_present_cex))
24128
          return false;
24129
        if (!this.cex.equals(that.cex))
24130
          return false;
24131
      }
24132
 
24133
      return true;
24134
    }
24135
 
24136
    @Override
24137
    public int hashCode() {
24138
      return 0;
24139
    }
24140
 
24141
    public int compareTo(getVendorItemMappings_result other) {
24142
      if (!getClass().equals(other.getClass())) {
24143
        return getClass().getName().compareTo(other.getClass().getName());
24144
      }
24145
 
24146
      int lastComparison = 0;
24147
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
24148
 
24149
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24150
      if (lastComparison != 0) {
24151
        return lastComparison;
24152
      }
24153
      if (isSetSuccess()) {
24154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24155
        if (lastComparison != 0) {
24156
          return lastComparison;
24157
        }
24158
      }
24159
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
24160
      if (lastComparison != 0) {
24161
        return lastComparison;
24162
      }
24163
      if (isSetCex()) {
24164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
24165
        if (lastComparison != 0) {
24166
          return lastComparison;
24167
        }
24168
      }
24169
      return 0;
24170
    }
24171
 
24172
    public _Fields fieldForId(int fieldId) {
24173
      return _Fields.findByThriftId(fieldId);
24174
    }
24175
 
24176
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24177
      org.apache.thrift.protocol.TField field;
24178
      iprot.readStructBegin();
24179
      while (true)
24180
      {
24181
        field = iprot.readFieldBegin();
24182
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24183
          break;
24184
        }
24185
        switch (field.id) {
24186
          case 0: // SUCCESS
24187
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24188
              {
8182 amar.kumar 24189
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
24190
                this.success = new ArrayList<VendorItemMapping>(_list45.size);
24191
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
5945 mandeep.dh 24192
                {
8182 amar.kumar 24193
                  VendorItemMapping _elem47; // required
24194
                  _elem47 = new VendorItemMapping();
24195
                  _elem47.read(iprot);
24196
                  this.success.add(_elem47);
5945 mandeep.dh 24197
                }
24198
                iprot.readListEnd();
24199
              }
24200
            } else { 
24201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24202
            }
24203
            break;
24204
          case 1: // CEX
24205
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24206
              this.cex = new InventoryServiceException();
24207
              this.cex.read(iprot);
24208
            } else { 
24209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24210
            }
24211
            break;
24212
          default:
24213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24214
        }
24215
        iprot.readFieldEnd();
24216
      }
24217
      iprot.readStructEnd();
24218
      validate();
24219
    }
24220
 
24221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24222
      oprot.writeStructBegin(STRUCT_DESC);
24223
 
24224
      if (this.isSetSuccess()) {
24225
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24226
        {
24227
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 24228
          for (VendorItemMapping _iter48 : this.success)
5945 mandeep.dh 24229
          {
8182 amar.kumar 24230
            _iter48.write(oprot);
5945 mandeep.dh 24231
          }
24232
          oprot.writeListEnd();
24233
        }
24234
        oprot.writeFieldEnd();
24235
      } else if (this.isSetCex()) {
24236
        oprot.writeFieldBegin(CEX_FIELD_DESC);
24237
        this.cex.write(oprot);
24238
        oprot.writeFieldEnd();
24239
      }
24240
      oprot.writeFieldStop();
24241
      oprot.writeStructEnd();
24242
    }
24243
 
24244
    @Override
24245
    public String toString() {
24246
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
24247
      boolean first = true;
24248
 
24249
      sb.append("success:");
24250
      if (this.success == null) {
24251
        sb.append("null");
24252
      } else {
24253
        sb.append(this.success);
24254
      }
24255
      first = false;
24256
      if (!first) sb.append(", ");
24257
      sb.append("cex:");
24258
      if (this.cex == null) {
24259
        sb.append("null");
24260
      } else {
24261
        sb.append(this.cex);
24262
      }
24263
      first = false;
24264
      sb.append(")");
24265
      return sb.toString();
24266
    }
24267
 
24268
    public void validate() throws org.apache.thrift.TException {
24269
      // check for required fields
24270
    }
24271
 
24272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24273
      try {
24274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24275
      } catch (org.apache.thrift.TException te) {
24276
        throw new java.io.IOException(te);
24277
      }
24278
    }
24279
 
24280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24281
      try {
24282
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24283
      } catch (org.apache.thrift.TException te) {
24284
        throw new java.io.IOException(te);
24285
      }
24286
    }
24287
 
24288
  }
24289
 
24290
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
24291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
24292
 
24293
    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);
24294
 
24295
    private long vendorid; // required
24296
 
24297
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24298
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24299
      VENDORID((short)1, "vendorid");
24300
 
24301
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24302
 
24303
      static {
24304
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24305
          byName.put(field.getFieldName(), field);
24306
        }
24307
      }
24308
 
24309
      /**
24310
       * Find the _Fields constant that matches fieldId, or null if its not found.
24311
       */
24312
      public static _Fields findByThriftId(int fieldId) {
24313
        switch(fieldId) {
24314
          case 1: // VENDORID
24315
            return VENDORID;
24316
          default:
24317
            return null;
24318
        }
24319
      }
24320
 
24321
      /**
24322
       * Find the _Fields constant that matches fieldId, throwing an exception
24323
       * if it is not found.
24324
       */
24325
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24326
        _Fields fields = findByThriftId(fieldId);
24327
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24328
        return fields;
24329
      }
24330
 
24331
      /**
24332
       * Find the _Fields constant that matches name, or null if its not found.
24333
       */
24334
      public static _Fields findByName(String name) {
24335
        return byName.get(name);
24336
      }
24337
 
24338
      private final short _thriftId;
24339
      private final String _fieldName;
24340
 
24341
      _Fields(short thriftId, String fieldName) {
24342
        _thriftId = thriftId;
24343
        _fieldName = fieldName;
24344
      }
24345
 
24346
      public short getThriftFieldId() {
24347
        return _thriftId;
24348
      }
24349
 
24350
      public String getFieldName() {
24351
        return _fieldName;
24352
      }
24353
    }
24354
 
24355
    // isset id assignments
24356
    private static final int __VENDORID_ISSET_ID = 0;
24357
    private BitSet __isset_bit_vector = new BitSet(1);
24358
 
24359
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24360
    static {
24361
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24362
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24363
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24364
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24365
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
24366
    }
24367
 
24368
    public getPendingOrdersInventory_args() {
24369
    }
24370
 
24371
    public getPendingOrdersInventory_args(
24372
      long vendorid)
24373
    {
24374
      this();
24375
      this.vendorid = vendorid;
24376
      setVendoridIsSet(true);
24377
    }
24378
 
24379
    /**
24380
     * Performs a deep copy on <i>other</i>.
24381
     */
24382
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
24383
      __isset_bit_vector.clear();
24384
      __isset_bit_vector.or(other.__isset_bit_vector);
24385
      this.vendorid = other.vendorid;
24386
    }
24387
 
24388
    public getPendingOrdersInventory_args deepCopy() {
24389
      return new getPendingOrdersInventory_args(this);
24390
    }
24391
 
24392
    @Override
24393
    public void clear() {
24394
      setVendoridIsSet(false);
24395
      this.vendorid = 0;
24396
    }
24397
 
24398
    public long getVendorid() {
24399
      return this.vendorid;
24400
    }
24401
 
24402
    public void setVendorid(long vendorid) {
24403
      this.vendorid = vendorid;
24404
      setVendoridIsSet(true);
24405
    }
24406
 
24407
    public void unsetVendorid() {
24408
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
24409
    }
24410
 
24411
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
24412
    public boolean isSetVendorid() {
24413
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
24414
    }
24415
 
24416
    public void setVendoridIsSet(boolean value) {
24417
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
24418
    }
24419
 
24420
    public void setFieldValue(_Fields field, Object value) {
24421
      switch (field) {
24422
      case VENDORID:
24423
        if (value == null) {
24424
          unsetVendorid();
24425
        } else {
24426
          setVendorid((Long)value);
24427
        }
24428
        break;
24429
 
24430
      }
24431
    }
24432
 
24433
    public Object getFieldValue(_Fields field) {
24434
      switch (field) {
24435
      case VENDORID:
24436
        return Long.valueOf(getVendorid());
24437
 
24438
      }
24439
      throw new IllegalStateException();
24440
    }
24441
 
24442
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24443
    public boolean isSet(_Fields field) {
24444
      if (field == null) {
24445
        throw new IllegalArgumentException();
24446
      }
24447
 
24448
      switch (field) {
24449
      case VENDORID:
24450
        return isSetVendorid();
24451
      }
24452
      throw new IllegalStateException();
24453
    }
24454
 
24455
    @Override
24456
    public boolean equals(Object that) {
24457
      if (that == null)
24458
        return false;
24459
      if (that instanceof getPendingOrdersInventory_args)
24460
        return this.equals((getPendingOrdersInventory_args)that);
24461
      return false;
24462
    }
24463
 
24464
    public boolean equals(getPendingOrdersInventory_args that) {
24465
      if (that == null)
24466
        return false;
24467
 
24468
      boolean this_present_vendorid = true;
24469
      boolean that_present_vendorid = true;
24470
      if (this_present_vendorid || that_present_vendorid) {
24471
        if (!(this_present_vendorid && that_present_vendorid))
24472
          return false;
24473
        if (this.vendorid != that.vendorid)
24474
          return false;
24475
      }
24476
 
24477
      return true;
24478
    }
24479
 
24480
    @Override
24481
    public int hashCode() {
24482
      return 0;
24483
    }
24484
 
24485
    public int compareTo(getPendingOrdersInventory_args other) {
24486
      if (!getClass().equals(other.getClass())) {
24487
        return getClass().getName().compareTo(other.getClass().getName());
24488
      }
24489
 
24490
      int lastComparison = 0;
24491
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
24492
 
24493
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
24494
      if (lastComparison != 0) {
24495
        return lastComparison;
24496
      }
24497
      if (isSetVendorid()) {
24498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
24499
        if (lastComparison != 0) {
24500
          return lastComparison;
24501
        }
24502
      }
24503
      return 0;
24504
    }
24505
 
24506
    public _Fields fieldForId(int fieldId) {
24507
      return _Fields.findByThriftId(fieldId);
24508
    }
24509
 
24510
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24511
      org.apache.thrift.protocol.TField field;
24512
      iprot.readStructBegin();
24513
      while (true)
24514
      {
24515
        field = iprot.readFieldBegin();
24516
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24517
          break;
24518
        }
24519
        switch (field.id) {
24520
          case 1: // VENDORID
24521
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24522
              this.vendorid = iprot.readI64();
24523
              setVendoridIsSet(true);
24524
            } else { 
24525
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24526
            }
24527
            break;
24528
          default:
24529
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24530
        }
24531
        iprot.readFieldEnd();
24532
      }
24533
      iprot.readStructEnd();
24534
      validate();
24535
    }
24536
 
24537
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24538
      validate();
24539
 
24540
      oprot.writeStructBegin(STRUCT_DESC);
24541
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
24542
      oprot.writeI64(this.vendorid);
24543
      oprot.writeFieldEnd();
24544
      oprot.writeFieldStop();
24545
      oprot.writeStructEnd();
24546
    }
24547
 
24548
    @Override
24549
    public String toString() {
24550
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
24551
      boolean first = true;
24552
 
24553
      sb.append("vendorid:");
24554
      sb.append(this.vendorid);
24555
      first = false;
24556
      sb.append(")");
24557
      return sb.toString();
24558
    }
24559
 
24560
    public void validate() throws org.apache.thrift.TException {
24561
      // check for required fields
24562
    }
24563
 
24564
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24565
      try {
24566
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24567
      } catch (org.apache.thrift.TException te) {
24568
        throw new java.io.IOException(te);
24569
      }
24570
    }
24571
 
24572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24573
      try {
24574
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24575
        __isset_bit_vector = new BitSet(1);
24576
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24577
      } catch (org.apache.thrift.TException te) {
24578
        throw new java.io.IOException(te);
24579
      }
24580
    }
24581
 
24582
  }
24583
 
24584
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
24585
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
24586
 
24587
    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);
24588
 
24589
    private List<AvailableAndReservedStock> success; // required
24590
 
24591
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24592
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24593
      SUCCESS((short)0, "success");
24594
 
24595
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24596
 
24597
      static {
24598
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24599
          byName.put(field.getFieldName(), field);
24600
        }
24601
      }
24602
 
24603
      /**
24604
       * Find the _Fields constant that matches fieldId, or null if its not found.
24605
       */
24606
      public static _Fields findByThriftId(int fieldId) {
24607
        switch(fieldId) {
24608
          case 0: // SUCCESS
24609
            return SUCCESS;
24610
          default:
24611
            return null;
24612
        }
24613
      }
24614
 
24615
      /**
24616
       * Find the _Fields constant that matches fieldId, throwing an exception
24617
       * if it is not found.
24618
       */
24619
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24620
        _Fields fields = findByThriftId(fieldId);
24621
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24622
        return fields;
24623
      }
24624
 
24625
      /**
24626
       * Find the _Fields constant that matches name, or null if its not found.
24627
       */
24628
      public static _Fields findByName(String name) {
24629
        return byName.get(name);
24630
      }
24631
 
24632
      private final short _thriftId;
24633
      private final String _fieldName;
24634
 
24635
      _Fields(short thriftId, String fieldName) {
24636
        _thriftId = thriftId;
24637
        _fieldName = fieldName;
24638
      }
24639
 
24640
      public short getThriftFieldId() {
24641
        return _thriftId;
24642
      }
24643
 
24644
      public String getFieldName() {
24645
        return _fieldName;
24646
      }
24647
    }
24648
 
24649
    // isset id assignments
24650
 
24651
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24652
    static {
24653
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24654
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24655
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24656
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
24657
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24658
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
24659
    }
24660
 
24661
    public getPendingOrdersInventory_result() {
24662
    }
24663
 
24664
    public getPendingOrdersInventory_result(
24665
      List<AvailableAndReservedStock> success)
24666
    {
24667
      this();
24668
      this.success = success;
24669
    }
24670
 
24671
    /**
24672
     * Performs a deep copy on <i>other</i>.
24673
     */
24674
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
24675
      if (other.isSetSuccess()) {
24676
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
24677
        for (AvailableAndReservedStock other_element : other.success) {
24678
          __this__success.add(new AvailableAndReservedStock(other_element));
24679
        }
24680
        this.success = __this__success;
24681
      }
24682
    }
24683
 
24684
    public getPendingOrdersInventory_result deepCopy() {
24685
      return new getPendingOrdersInventory_result(this);
24686
    }
24687
 
24688
    @Override
24689
    public void clear() {
24690
      this.success = null;
24691
    }
24692
 
24693
    public int getSuccessSize() {
24694
      return (this.success == null) ? 0 : this.success.size();
24695
    }
24696
 
24697
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
24698
      return (this.success == null) ? null : this.success.iterator();
24699
    }
24700
 
24701
    public void addToSuccess(AvailableAndReservedStock elem) {
24702
      if (this.success == null) {
24703
        this.success = new ArrayList<AvailableAndReservedStock>();
24704
      }
24705
      this.success.add(elem);
24706
    }
24707
 
24708
    public List<AvailableAndReservedStock> getSuccess() {
24709
      return this.success;
24710
    }
24711
 
24712
    public void setSuccess(List<AvailableAndReservedStock> success) {
24713
      this.success = success;
24714
    }
24715
 
24716
    public void unsetSuccess() {
24717
      this.success = null;
24718
    }
24719
 
24720
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24721
    public boolean isSetSuccess() {
24722
      return this.success != null;
24723
    }
24724
 
24725
    public void setSuccessIsSet(boolean value) {
24726
      if (!value) {
24727
        this.success = null;
24728
      }
24729
    }
24730
 
24731
    public void setFieldValue(_Fields field, Object value) {
24732
      switch (field) {
24733
      case SUCCESS:
24734
        if (value == null) {
24735
          unsetSuccess();
24736
        } else {
24737
          setSuccess((List<AvailableAndReservedStock>)value);
24738
        }
24739
        break;
24740
 
24741
      }
24742
    }
24743
 
24744
    public Object getFieldValue(_Fields field) {
24745
      switch (field) {
24746
      case SUCCESS:
24747
        return getSuccess();
24748
 
24749
      }
24750
      throw new IllegalStateException();
24751
    }
24752
 
24753
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24754
    public boolean isSet(_Fields field) {
24755
      if (field == null) {
24756
        throw new IllegalArgumentException();
24757
      }
24758
 
24759
      switch (field) {
24760
      case SUCCESS:
24761
        return isSetSuccess();
24762
      }
24763
      throw new IllegalStateException();
24764
    }
24765
 
24766
    @Override
24767
    public boolean equals(Object that) {
24768
      if (that == null)
24769
        return false;
24770
      if (that instanceof getPendingOrdersInventory_result)
24771
        return this.equals((getPendingOrdersInventory_result)that);
24772
      return false;
24773
    }
24774
 
24775
    public boolean equals(getPendingOrdersInventory_result that) {
24776
      if (that == null)
24777
        return false;
24778
 
24779
      boolean this_present_success = true && this.isSetSuccess();
24780
      boolean that_present_success = true && that.isSetSuccess();
24781
      if (this_present_success || that_present_success) {
24782
        if (!(this_present_success && that_present_success))
24783
          return false;
24784
        if (!this.success.equals(that.success))
24785
          return false;
24786
      }
24787
 
24788
      return true;
24789
    }
24790
 
24791
    @Override
24792
    public int hashCode() {
24793
      return 0;
24794
    }
24795
 
24796
    public int compareTo(getPendingOrdersInventory_result other) {
24797
      if (!getClass().equals(other.getClass())) {
24798
        return getClass().getName().compareTo(other.getClass().getName());
24799
      }
24800
 
24801
      int lastComparison = 0;
24802
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
24803
 
24804
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24805
      if (lastComparison != 0) {
24806
        return lastComparison;
24807
      }
24808
      if (isSetSuccess()) {
24809
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24810
        if (lastComparison != 0) {
24811
          return lastComparison;
24812
        }
24813
      }
24814
      return 0;
24815
    }
24816
 
24817
    public _Fields fieldForId(int fieldId) {
24818
      return _Fields.findByThriftId(fieldId);
24819
    }
24820
 
24821
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24822
      org.apache.thrift.protocol.TField field;
24823
      iprot.readStructBegin();
24824
      while (true)
24825
      {
24826
        field = iprot.readFieldBegin();
24827
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24828
          break;
24829
        }
24830
        switch (field.id) {
24831
          case 0: // SUCCESS
24832
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24833
              {
8182 amar.kumar 24834
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
24835
                this.success = new ArrayList<AvailableAndReservedStock>(_list49.size);
24836
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
5945 mandeep.dh 24837
                {
8182 amar.kumar 24838
                  AvailableAndReservedStock _elem51; // required
24839
                  _elem51 = new AvailableAndReservedStock();
24840
                  _elem51.read(iprot);
24841
                  this.success.add(_elem51);
5945 mandeep.dh 24842
                }
24843
                iprot.readListEnd();
24844
              }
24845
            } else { 
24846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24847
            }
24848
            break;
24849
          default:
24850
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24851
        }
24852
        iprot.readFieldEnd();
24853
      }
24854
      iprot.readStructEnd();
24855
      validate();
24856
    }
24857
 
24858
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24859
      oprot.writeStructBegin(STRUCT_DESC);
24860
 
24861
      if (this.isSetSuccess()) {
24862
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24863
        {
24864
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 24865
          for (AvailableAndReservedStock _iter52 : this.success)
5945 mandeep.dh 24866
          {
8182 amar.kumar 24867
            _iter52.write(oprot);
5945 mandeep.dh 24868
          }
24869
          oprot.writeListEnd();
24870
        }
24871
        oprot.writeFieldEnd();
24872
      }
24873
      oprot.writeFieldStop();
24874
      oprot.writeStructEnd();
24875
    }
24876
 
24877
    @Override
24878
    public String toString() {
24879
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
24880
      boolean first = true;
24881
 
24882
      sb.append("success:");
24883
      if (this.success == null) {
24884
        sb.append("null");
24885
      } else {
24886
        sb.append(this.success);
24887
      }
24888
      first = false;
24889
      sb.append(")");
24890
      return sb.toString();
24891
    }
24892
 
24893
    public void validate() throws org.apache.thrift.TException {
24894
      // check for required fields
24895
    }
24896
 
24897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24898
      try {
24899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24900
      } catch (org.apache.thrift.TException te) {
24901
        throw new java.io.IOException(te);
24902
      }
24903
    }
24904
 
24905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24906
      try {
24907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24908
      } catch (org.apache.thrift.TException te) {
24909
        throw new java.io.IOException(te);
24910
      }
24911
    }
24912
 
24913
  }
24914
 
24915
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
24916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
24917
 
24918
    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);
24919
    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);
24920
    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);
24921
    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);
24922
    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);
24923
 
24924
    private WarehouseType warehouseType; // required
24925
    private InventoryType inventoryType; // required
24926
    private long vendorId; // required
24927
    private long billingWarehouseId; // required
24928
    private long shippingWarehouseId; // required
24929
 
24930
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24931
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24932
      /**
24933
       * 
24934
       * @see WarehouseType
24935
       */
24936
      WAREHOUSE_TYPE((short)1, "warehouseType"),
24937
      /**
24938
       * 
24939
       * @see InventoryType
24940
       */
24941
      INVENTORY_TYPE((short)2, "inventoryType"),
24942
      VENDOR_ID((short)3, "vendorId"),
24943
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
24944
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
24945
 
24946
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24947
 
24948
      static {
24949
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24950
          byName.put(field.getFieldName(), field);
24951
        }
24952
      }
24953
 
24954
      /**
24955
       * Find the _Fields constant that matches fieldId, or null if its not found.
24956
       */
24957
      public static _Fields findByThriftId(int fieldId) {
24958
        switch(fieldId) {
24959
          case 1: // WAREHOUSE_TYPE
24960
            return WAREHOUSE_TYPE;
24961
          case 2: // INVENTORY_TYPE
24962
            return INVENTORY_TYPE;
24963
          case 3: // VENDOR_ID
24964
            return VENDOR_ID;
24965
          case 4: // BILLING_WAREHOUSE_ID
24966
            return BILLING_WAREHOUSE_ID;
24967
          case 5: // SHIPPING_WAREHOUSE_ID
24968
            return SHIPPING_WAREHOUSE_ID;
24969
          default:
24970
            return null;
24971
        }
24972
      }
24973
 
24974
      /**
24975
       * Find the _Fields constant that matches fieldId, throwing an exception
24976
       * if it is not found.
24977
       */
24978
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24979
        _Fields fields = findByThriftId(fieldId);
24980
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24981
        return fields;
24982
      }
24983
 
24984
      /**
24985
       * Find the _Fields constant that matches name, or null if its not found.
24986
       */
24987
      public static _Fields findByName(String name) {
24988
        return byName.get(name);
24989
      }
24990
 
24991
      private final short _thriftId;
24992
      private final String _fieldName;
24993
 
24994
      _Fields(short thriftId, String fieldName) {
24995
        _thriftId = thriftId;
24996
        _fieldName = fieldName;
24997
      }
24998
 
24999
      public short getThriftFieldId() {
25000
        return _thriftId;
25001
      }
25002
 
25003
      public String getFieldName() {
25004
        return _fieldName;
25005
      }
25006
    }
25007
 
25008
    // isset id assignments
25009
    private static final int __VENDORID_ISSET_ID = 0;
25010
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
25011
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
25012
    private BitSet __isset_bit_vector = new BitSet(3);
25013
 
25014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25015
    static {
25016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25017
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25018
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
25019
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25020
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
25021
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25023
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25025
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25026
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25027
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25028
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
25029
    }
25030
 
25031
    public getWarehouses_args() {
25032
    }
25033
 
25034
    public getWarehouses_args(
25035
      WarehouseType warehouseType,
25036
      InventoryType inventoryType,
25037
      long vendorId,
25038
      long billingWarehouseId,
25039
      long shippingWarehouseId)
25040
    {
25041
      this();
25042
      this.warehouseType = warehouseType;
25043
      this.inventoryType = inventoryType;
25044
      this.vendorId = vendorId;
25045
      setVendorIdIsSet(true);
25046
      this.billingWarehouseId = billingWarehouseId;
25047
      setBillingWarehouseIdIsSet(true);
25048
      this.shippingWarehouseId = shippingWarehouseId;
25049
      setShippingWarehouseIdIsSet(true);
25050
    }
25051
 
25052
    /**
25053
     * Performs a deep copy on <i>other</i>.
25054
     */
25055
    public getWarehouses_args(getWarehouses_args other) {
25056
      __isset_bit_vector.clear();
25057
      __isset_bit_vector.or(other.__isset_bit_vector);
25058
      if (other.isSetWarehouseType()) {
25059
        this.warehouseType = other.warehouseType;
25060
      }
25061
      if (other.isSetInventoryType()) {
25062
        this.inventoryType = other.inventoryType;
25063
      }
25064
      this.vendorId = other.vendorId;
25065
      this.billingWarehouseId = other.billingWarehouseId;
25066
      this.shippingWarehouseId = other.shippingWarehouseId;
25067
    }
25068
 
25069
    public getWarehouses_args deepCopy() {
25070
      return new getWarehouses_args(this);
25071
    }
25072
 
25073
    @Override
25074
    public void clear() {
25075
      this.warehouseType = null;
25076
      this.inventoryType = null;
25077
      setVendorIdIsSet(false);
25078
      this.vendorId = 0;
25079
      setBillingWarehouseIdIsSet(false);
25080
      this.billingWarehouseId = 0;
25081
      setShippingWarehouseIdIsSet(false);
25082
      this.shippingWarehouseId = 0;
25083
    }
25084
 
25085
    /**
25086
     * 
25087
     * @see WarehouseType
25088
     */
25089
    public WarehouseType getWarehouseType() {
25090
      return this.warehouseType;
25091
    }
25092
 
25093
    /**
25094
     * 
25095
     * @see WarehouseType
25096
     */
25097
    public void setWarehouseType(WarehouseType warehouseType) {
25098
      this.warehouseType = warehouseType;
25099
    }
25100
 
25101
    public void unsetWarehouseType() {
25102
      this.warehouseType = null;
25103
    }
25104
 
25105
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
25106
    public boolean isSetWarehouseType() {
25107
      return this.warehouseType != null;
25108
    }
25109
 
25110
    public void setWarehouseTypeIsSet(boolean value) {
25111
      if (!value) {
25112
        this.warehouseType = null;
25113
      }
25114
    }
25115
 
25116
    /**
25117
     * 
25118
     * @see InventoryType
25119
     */
25120
    public InventoryType getInventoryType() {
25121
      return this.inventoryType;
25122
    }
25123
 
25124
    /**
25125
     * 
25126
     * @see InventoryType
25127
     */
25128
    public void setInventoryType(InventoryType inventoryType) {
25129
      this.inventoryType = inventoryType;
25130
    }
25131
 
25132
    public void unsetInventoryType() {
25133
      this.inventoryType = null;
25134
    }
25135
 
25136
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
25137
    public boolean isSetInventoryType() {
25138
      return this.inventoryType != null;
25139
    }
25140
 
25141
    public void setInventoryTypeIsSet(boolean value) {
25142
      if (!value) {
25143
        this.inventoryType = null;
25144
      }
25145
    }
25146
 
25147
    public long getVendorId() {
25148
      return this.vendorId;
25149
    }
25150
 
25151
    public void setVendorId(long vendorId) {
25152
      this.vendorId = vendorId;
25153
      setVendorIdIsSet(true);
25154
    }
25155
 
25156
    public void unsetVendorId() {
25157
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
25158
    }
25159
 
25160
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
25161
    public boolean isSetVendorId() {
25162
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
25163
    }
25164
 
25165
    public void setVendorIdIsSet(boolean value) {
25166
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
25167
    }
25168
 
25169
    public long getBillingWarehouseId() {
25170
      return this.billingWarehouseId;
25171
    }
25172
 
25173
    public void setBillingWarehouseId(long billingWarehouseId) {
25174
      this.billingWarehouseId = billingWarehouseId;
25175
      setBillingWarehouseIdIsSet(true);
25176
    }
25177
 
25178
    public void unsetBillingWarehouseId() {
25179
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
25180
    }
25181
 
25182
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
25183
    public boolean isSetBillingWarehouseId() {
25184
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
25185
    }
25186
 
25187
    public void setBillingWarehouseIdIsSet(boolean value) {
25188
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
25189
    }
25190
 
25191
    public long getShippingWarehouseId() {
25192
      return this.shippingWarehouseId;
25193
    }
25194
 
25195
    public void setShippingWarehouseId(long shippingWarehouseId) {
25196
      this.shippingWarehouseId = shippingWarehouseId;
25197
      setShippingWarehouseIdIsSet(true);
25198
    }
25199
 
25200
    public void unsetShippingWarehouseId() {
25201
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
25202
    }
25203
 
25204
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
25205
    public boolean isSetShippingWarehouseId() {
25206
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
25207
    }
25208
 
25209
    public void setShippingWarehouseIdIsSet(boolean value) {
25210
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
25211
    }
25212
 
25213
    public void setFieldValue(_Fields field, Object value) {
25214
      switch (field) {
25215
      case WAREHOUSE_TYPE:
25216
        if (value == null) {
25217
          unsetWarehouseType();
25218
        } else {
25219
          setWarehouseType((WarehouseType)value);
25220
        }
25221
        break;
25222
 
25223
      case INVENTORY_TYPE:
25224
        if (value == null) {
25225
          unsetInventoryType();
25226
        } else {
25227
          setInventoryType((InventoryType)value);
25228
        }
25229
        break;
25230
 
25231
      case VENDOR_ID:
25232
        if (value == null) {
25233
          unsetVendorId();
25234
        } else {
25235
          setVendorId((Long)value);
25236
        }
25237
        break;
25238
 
25239
      case BILLING_WAREHOUSE_ID:
25240
        if (value == null) {
25241
          unsetBillingWarehouseId();
25242
        } else {
25243
          setBillingWarehouseId((Long)value);
25244
        }
25245
        break;
25246
 
25247
      case SHIPPING_WAREHOUSE_ID:
25248
        if (value == null) {
25249
          unsetShippingWarehouseId();
25250
        } else {
25251
          setShippingWarehouseId((Long)value);
25252
        }
25253
        break;
25254
 
25255
      }
25256
    }
25257
 
25258
    public Object getFieldValue(_Fields field) {
25259
      switch (field) {
25260
      case WAREHOUSE_TYPE:
25261
        return getWarehouseType();
25262
 
25263
      case INVENTORY_TYPE:
25264
        return getInventoryType();
25265
 
25266
      case VENDOR_ID:
25267
        return Long.valueOf(getVendorId());
25268
 
25269
      case BILLING_WAREHOUSE_ID:
25270
        return Long.valueOf(getBillingWarehouseId());
25271
 
25272
      case SHIPPING_WAREHOUSE_ID:
25273
        return Long.valueOf(getShippingWarehouseId());
25274
 
25275
      }
25276
      throw new IllegalStateException();
25277
    }
25278
 
25279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25280
    public boolean isSet(_Fields field) {
25281
      if (field == null) {
25282
        throw new IllegalArgumentException();
25283
      }
25284
 
25285
      switch (field) {
25286
      case WAREHOUSE_TYPE:
25287
        return isSetWarehouseType();
25288
      case INVENTORY_TYPE:
25289
        return isSetInventoryType();
25290
      case VENDOR_ID:
25291
        return isSetVendorId();
25292
      case BILLING_WAREHOUSE_ID:
25293
        return isSetBillingWarehouseId();
25294
      case SHIPPING_WAREHOUSE_ID:
25295
        return isSetShippingWarehouseId();
25296
      }
25297
      throw new IllegalStateException();
25298
    }
25299
 
25300
    @Override
25301
    public boolean equals(Object that) {
25302
      if (that == null)
25303
        return false;
25304
      if (that instanceof getWarehouses_args)
25305
        return this.equals((getWarehouses_args)that);
25306
      return false;
25307
    }
25308
 
25309
    public boolean equals(getWarehouses_args that) {
25310
      if (that == null)
25311
        return false;
25312
 
25313
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
25314
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
25315
      if (this_present_warehouseType || that_present_warehouseType) {
25316
        if (!(this_present_warehouseType && that_present_warehouseType))
25317
          return false;
25318
        if (!this.warehouseType.equals(that.warehouseType))
25319
          return false;
25320
      }
25321
 
25322
      boolean this_present_inventoryType = true && this.isSetInventoryType();
25323
      boolean that_present_inventoryType = true && that.isSetInventoryType();
25324
      if (this_present_inventoryType || that_present_inventoryType) {
25325
        if (!(this_present_inventoryType && that_present_inventoryType))
25326
          return false;
25327
        if (!this.inventoryType.equals(that.inventoryType))
25328
          return false;
25329
      }
25330
 
25331
      boolean this_present_vendorId = true;
25332
      boolean that_present_vendorId = true;
25333
      if (this_present_vendorId || that_present_vendorId) {
25334
        if (!(this_present_vendorId && that_present_vendorId))
25335
          return false;
25336
        if (this.vendorId != that.vendorId)
25337
          return false;
25338
      }
25339
 
25340
      boolean this_present_billingWarehouseId = true;
25341
      boolean that_present_billingWarehouseId = true;
25342
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
25343
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
25344
          return false;
25345
        if (this.billingWarehouseId != that.billingWarehouseId)
25346
          return false;
25347
      }
25348
 
25349
      boolean this_present_shippingWarehouseId = true;
25350
      boolean that_present_shippingWarehouseId = true;
25351
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
25352
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
25353
          return false;
25354
        if (this.shippingWarehouseId != that.shippingWarehouseId)
25355
          return false;
25356
      }
25357
 
25358
      return true;
25359
    }
25360
 
25361
    @Override
25362
    public int hashCode() {
25363
      return 0;
25364
    }
25365
 
25366
    public int compareTo(getWarehouses_args other) {
25367
      if (!getClass().equals(other.getClass())) {
25368
        return getClass().getName().compareTo(other.getClass().getName());
25369
      }
25370
 
25371
      int lastComparison = 0;
25372
      getWarehouses_args typedOther = (getWarehouses_args)other;
25373
 
25374
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
25375
      if (lastComparison != 0) {
25376
        return lastComparison;
25377
      }
25378
      if (isSetWarehouseType()) {
25379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
25380
        if (lastComparison != 0) {
25381
          return lastComparison;
25382
        }
25383
      }
25384
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
25385
      if (lastComparison != 0) {
25386
        return lastComparison;
25387
      }
25388
      if (isSetInventoryType()) {
25389
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
25390
        if (lastComparison != 0) {
25391
          return lastComparison;
25392
        }
25393
      }
25394
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
25395
      if (lastComparison != 0) {
25396
        return lastComparison;
25397
      }
25398
      if (isSetVendorId()) {
25399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
25400
        if (lastComparison != 0) {
25401
          return lastComparison;
25402
        }
25403
      }
25404
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
25405
      if (lastComparison != 0) {
25406
        return lastComparison;
25407
      }
25408
      if (isSetBillingWarehouseId()) {
25409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
25410
        if (lastComparison != 0) {
25411
          return lastComparison;
25412
        }
25413
      }
25414
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
25415
      if (lastComparison != 0) {
25416
        return lastComparison;
25417
      }
25418
      if (isSetShippingWarehouseId()) {
25419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
25420
        if (lastComparison != 0) {
25421
          return lastComparison;
25422
        }
25423
      }
25424
      return 0;
25425
    }
25426
 
25427
    public _Fields fieldForId(int fieldId) {
25428
      return _Fields.findByThriftId(fieldId);
25429
    }
25430
 
25431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25432
      org.apache.thrift.protocol.TField field;
25433
      iprot.readStructBegin();
25434
      while (true)
25435
      {
25436
        field = iprot.readFieldBegin();
25437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25438
          break;
25439
        }
25440
        switch (field.id) {
25441
          case 1: // WAREHOUSE_TYPE
25442
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25443
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
25444
            } else { 
25445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25446
            }
25447
            break;
25448
          case 2: // INVENTORY_TYPE
25449
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25450
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
25451
            } else { 
25452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25453
            }
25454
            break;
25455
          case 3: // VENDOR_ID
25456
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25457
              this.vendorId = iprot.readI64();
25458
              setVendorIdIsSet(true);
25459
            } else { 
25460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25461
            }
25462
            break;
25463
          case 4: // BILLING_WAREHOUSE_ID
25464
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25465
              this.billingWarehouseId = iprot.readI64();
25466
              setBillingWarehouseIdIsSet(true);
25467
            } else { 
25468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25469
            }
25470
            break;
25471
          case 5: // SHIPPING_WAREHOUSE_ID
25472
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25473
              this.shippingWarehouseId = iprot.readI64();
25474
              setShippingWarehouseIdIsSet(true);
25475
            } else { 
25476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25477
            }
25478
            break;
25479
          default:
25480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25481
        }
25482
        iprot.readFieldEnd();
25483
      }
25484
      iprot.readStructEnd();
25485
      validate();
25486
    }
25487
 
25488
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25489
      validate();
25490
 
25491
      oprot.writeStructBegin(STRUCT_DESC);
25492
      if (this.warehouseType != null) {
25493
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
25494
        oprot.writeI32(this.warehouseType.getValue());
25495
        oprot.writeFieldEnd();
25496
      }
25497
      if (this.inventoryType != null) {
25498
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
25499
        oprot.writeI32(this.inventoryType.getValue());
25500
        oprot.writeFieldEnd();
25501
      }
25502
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
25503
      oprot.writeI64(this.vendorId);
25504
      oprot.writeFieldEnd();
25505
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
25506
      oprot.writeI64(this.billingWarehouseId);
25507
      oprot.writeFieldEnd();
25508
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
25509
      oprot.writeI64(this.shippingWarehouseId);
25510
      oprot.writeFieldEnd();
25511
      oprot.writeFieldStop();
25512
      oprot.writeStructEnd();
25513
    }
25514
 
25515
    @Override
25516
    public String toString() {
25517
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
25518
      boolean first = true;
25519
 
25520
      sb.append("warehouseType:");
25521
      if (this.warehouseType == null) {
25522
        sb.append("null");
25523
      } else {
25524
        sb.append(this.warehouseType);
25525
      }
25526
      first = false;
25527
      if (!first) sb.append(", ");
25528
      sb.append("inventoryType:");
25529
      if (this.inventoryType == null) {
25530
        sb.append("null");
25531
      } else {
25532
        sb.append(this.inventoryType);
25533
      }
25534
      first = false;
25535
      if (!first) sb.append(", ");
25536
      sb.append("vendorId:");
25537
      sb.append(this.vendorId);
25538
      first = false;
25539
      if (!first) sb.append(", ");
25540
      sb.append("billingWarehouseId:");
25541
      sb.append(this.billingWarehouseId);
25542
      first = false;
25543
      if (!first) sb.append(", ");
25544
      sb.append("shippingWarehouseId:");
25545
      sb.append(this.shippingWarehouseId);
25546
      first = false;
25547
      sb.append(")");
25548
      return sb.toString();
25549
    }
25550
 
25551
    public void validate() throws org.apache.thrift.TException {
25552
      // check for required fields
25553
    }
25554
 
25555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25556
      try {
25557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25558
      } catch (org.apache.thrift.TException te) {
25559
        throw new java.io.IOException(te);
25560
      }
25561
    }
25562
 
25563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25564
      try {
25565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25566
      } catch (org.apache.thrift.TException te) {
25567
        throw new java.io.IOException(te);
25568
      }
25569
    }
25570
 
25571
  }
25572
 
25573
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
25574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
25575
 
25576
    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);
25577
 
25578
    private List<Warehouse> success; // required
25579
 
25580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25582
      SUCCESS((short)0, "success");
25583
 
25584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25585
 
25586
      static {
25587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25588
          byName.put(field.getFieldName(), field);
25589
        }
25590
      }
25591
 
25592
      /**
25593
       * Find the _Fields constant that matches fieldId, or null if its not found.
25594
       */
25595
      public static _Fields findByThriftId(int fieldId) {
25596
        switch(fieldId) {
25597
          case 0: // SUCCESS
25598
            return SUCCESS;
25599
          default:
25600
            return null;
25601
        }
25602
      }
25603
 
25604
      /**
25605
       * Find the _Fields constant that matches fieldId, throwing an exception
25606
       * if it is not found.
25607
       */
25608
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25609
        _Fields fields = findByThriftId(fieldId);
25610
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25611
        return fields;
25612
      }
25613
 
25614
      /**
25615
       * Find the _Fields constant that matches name, or null if its not found.
25616
       */
25617
      public static _Fields findByName(String name) {
25618
        return byName.get(name);
25619
      }
25620
 
25621
      private final short _thriftId;
25622
      private final String _fieldName;
25623
 
25624
      _Fields(short thriftId, String fieldName) {
25625
        _thriftId = thriftId;
25626
        _fieldName = fieldName;
25627
      }
25628
 
25629
      public short getThriftFieldId() {
25630
        return _thriftId;
25631
      }
25632
 
25633
      public String getFieldName() {
25634
        return _fieldName;
25635
      }
25636
    }
25637
 
25638
    // isset id assignments
25639
 
25640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25641
    static {
25642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25643
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25644
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25645
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
25646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
25648
    }
25649
 
25650
    public getWarehouses_result() {
25651
    }
25652
 
25653
    public getWarehouses_result(
25654
      List<Warehouse> success)
25655
    {
25656
      this();
25657
      this.success = success;
25658
    }
25659
 
25660
    /**
25661
     * Performs a deep copy on <i>other</i>.
25662
     */
25663
    public getWarehouses_result(getWarehouses_result other) {
25664
      if (other.isSetSuccess()) {
25665
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
25666
        for (Warehouse other_element : other.success) {
25667
          __this__success.add(new Warehouse(other_element));
25668
        }
25669
        this.success = __this__success;
25670
      }
25671
    }
25672
 
25673
    public getWarehouses_result deepCopy() {
25674
      return new getWarehouses_result(this);
25675
    }
25676
 
25677
    @Override
25678
    public void clear() {
25679
      this.success = null;
25680
    }
25681
 
25682
    public int getSuccessSize() {
25683
      return (this.success == null) ? 0 : this.success.size();
25684
    }
25685
 
25686
    public java.util.Iterator<Warehouse> getSuccessIterator() {
25687
      return (this.success == null) ? null : this.success.iterator();
25688
    }
25689
 
25690
    public void addToSuccess(Warehouse elem) {
25691
      if (this.success == null) {
25692
        this.success = new ArrayList<Warehouse>();
25693
      }
25694
      this.success.add(elem);
25695
    }
25696
 
25697
    public List<Warehouse> getSuccess() {
25698
      return this.success;
25699
    }
25700
 
25701
    public void setSuccess(List<Warehouse> success) {
25702
      this.success = success;
25703
    }
25704
 
25705
    public void unsetSuccess() {
25706
      this.success = null;
25707
    }
25708
 
25709
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25710
    public boolean isSetSuccess() {
25711
      return this.success != null;
25712
    }
25713
 
25714
    public void setSuccessIsSet(boolean value) {
25715
      if (!value) {
25716
        this.success = null;
25717
      }
25718
    }
25719
 
25720
    public void setFieldValue(_Fields field, Object value) {
25721
      switch (field) {
25722
      case SUCCESS:
25723
        if (value == null) {
25724
          unsetSuccess();
25725
        } else {
25726
          setSuccess((List<Warehouse>)value);
25727
        }
25728
        break;
25729
 
25730
      }
25731
    }
25732
 
25733
    public Object getFieldValue(_Fields field) {
25734
      switch (field) {
25735
      case SUCCESS:
25736
        return getSuccess();
25737
 
25738
      }
25739
      throw new IllegalStateException();
25740
    }
25741
 
25742
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25743
    public boolean isSet(_Fields field) {
25744
      if (field == null) {
25745
        throw new IllegalArgumentException();
25746
      }
25747
 
25748
      switch (field) {
25749
      case SUCCESS:
25750
        return isSetSuccess();
25751
      }
25752
      throw new IllegalStateException();
25753
    }
25754
 
25755
    @Override
25756
    public boolean equals(Object that) {
25757
      if (that == null)
25758
        return false;
25759
      if (that instanceof getWarehouses_result)
25760
        return this.equals((getWarehouses_result)that);
25761
      return false;
25762
    }
25763
 
25764
    public boolean equals(getWarehouses_result that) {
25765
      if (that == null)
25766
        return false;
25767
 
25768
      boolean this_present_success = true && this.isSetSuccess();
25769
      boolean that_present_success = true && that.isSetSuccess();
25770
      if (this_present_success || that_present_success) {
25771
        if (!(this_present_success && that_present_success))
25772
          return false;
25773
        if (!this.success.equals(that.success))
25774
          return false;
25775
      }
25776
 
25777
      return true;
25778
    }
25779
 
25780
    @Override
25781
    public int hashCode() {
25782
      return 0;
25783
    }
25784
 
25785
    public int compareTo(getWarehouses_result other) {
25786
      if (!getClass().equals(other.getClass())) {
25787
        return getClass().getName().compareTo(other.getClass().getName());
25788
      }
25789
 
25790
      int lastComparison = 0;
25791
      getWarehouses_result typedOther = (getWarehouses_result)other;
25792
 
25793
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25794
      if (lastComparison != 0) {
25795
        return lastComparison;
25796
      }
25797
      if (isSetSuccess()) {
25798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25799
        if (lastComparison != 0) {
25800
          return lastComparison;
25801
        }
25802
      }
25803
      return 0;
25804
    }
25805
 
25806
    public _Fields fieldForId(int fieldId) {
25807
      return _Fields.findByThriftId(fieldId);
25808
    }
25809
 
25810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25811
      org.apache.thrift.protocol.TField field;
25812
      iprot.readStructBegin();
25813
      while (true)
25814
      {
25815
        field = iprot.readFieldBegin();
25816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25817
          break;
25818
        }
25819
        switch (field.id) {
25820
          case 0: // SUCCESS
25821
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25822
              {
8182 amar.kumar 25823
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
25824
                this.success = new ArrayList<Warehouse>(_list53.size);
25825
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
5945 mandeep.dh 25826
                {
8182 amar.kumar 25827
                  Warehouse _elem55; // required
25828
                  _elem55 = new Warehouse();
25829
                  _elem55.read(iprot);
25830
                  this.success.add(_elem55);
5945 mandeep.dh 25831
                }
25832
                iprot.readListEnd();
25833
              }
25834
            } else { 
25835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25836
            }
25837
            break;
25838
          default:
25839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25840
        }
25841
        iprot.readFieldEnd();
25842
      }
25843
      iprot.readStructEnd();
25844
      validate();
25845
    }
25846
 
25847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25848
      oprot.writeStructBegin(STRUCT_DESC);
25849
 
25850
      if (this.isSetSuccess()) {
25851
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25852
        {
25853
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 25854
          for (Warehouse _iter56 : this.success)
5945 mandeep.dh 25855
          {
8182 amar.kumar 25856
            _iter56.write(oprot);
5945 mandeep.dh 25857
          }
25858
          oprot.writeListEnd();
25859
        }
25860
        oprot.writeFieldEnd();
25861
      }
25862
      oprot.writeFieldStop();
25863
      oprot.writeStructEnd();
25864
    }
25865
 
25866
    @Override
25867
    public String toString() {
25868
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
25869
      boolean first = true;
25870
 
25871
      sb.append("success:");
25872
      if (this.success == null) {
25873
        sb.append("null");
25874
      } else {
25875
        sb.append(this.success);
25876
      }
25877
      first = false;
25878
      sb.append(")");
25879
      return sb.toString();
25880
    }
25881
 
25882
    public void validate() throws org.apache.thrift.TException {
25883
      // check for required fields
25884
    }
25885
 
25886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25887
      try {
25888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25889
      } catch (org.apache.thrift.TException te) {
25890
        throw new java.io.IOException(te);
25891
      }
25892
    }
25893
 
25894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25895
      try {
25896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25897
      } catch (org.apache.thrift.TException te) {
25898
        throw new java.io.IOException(te);
25899
      }
25900
    }
25901
 
25902
  }
25903
 
25904
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
25905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
25906
 
25907
    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);
25908
    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);
25909
    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);
25910
    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);
25911
 
25912
    private String itemKey; // required
25913
    private long vendorId; // required
25914
    private long quantity; // required
25915
    private long warehouseId; // required
25916
 
25917
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25918
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25919
      ITEM_KEY((short)1, "itemKey"),
25920
      VENDOR_ID((short)2, "vendorId"),
25921
      QUANTITY((short)3, "quantity"),
25922
      WAREHOUSE_ID((short)4, "warehouseId");
25923
 
25924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25925
 
25926
      static {
25927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25928
          byName.put(field.getFieldName(), field);
25929
        }
25930
      }
25931
 
25932
      /**
25933
       * Find the _Fields constant that matches fieldId, or null if its not found.
25934
       */
25935
      public static _Fields findByThriftId(int fieldId) {
25936
        switch(fieldId) {
25937
          case 1: // ITEM_KEY
25938
            return ITEM_KEY;
25939
          case 2: // VENDOR_ID
25940
            return VENDOR_ID;
25941
          case 3: // QUANTITY
25942
            return QUANTITY;
25943
          case 4: // WAREHOUSE_ID
25944
            return WAREHOUSE_ID;
25945
          default:
25946
            return null;
25947
        }
25948
      }
25949
 
25950
      /**
25951
       * Find the _Fields constant that matches fieldId, throwing an exception
25952
       * if it is not found.
25953
       */
25954
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25955
        _Fields fields = findByThriftId(fieldId);
25956
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25957
        return fields;
25958
      }
25959
 
25960
      /**
25961
       * Find the _Fields constant that matches name, or null if its not found.
25962
       */
25963
      public static _Fields findByName(String name) {
25964
        return byName.get(name);
25965
      }
25966
 
25967
      private final short _thriftId;
25968
      private final String _fieldName;
25969
 
25970
      _Fields(short thriftId, String fieldName) {
25971
        _thriftId = thriftId;
25972
        _fieldName = fieldName;
25973
      }
25974
 
25975
      public short getThriftFieldId() {
25976
        return _thriftId;
25977
      }
25978
 
25979
      public String getFieldName() {
25980
        return _fieldName;
25981
      }
25982
    }
25983
 
25984
    // isset id assignments
25985
    private static final int __VENDORID_ISSET_ID = 0;
25986
    private static final int __QUANTITY_ISSET_ID = 1;
25987
    private static final int __WAREHOUSEID_ISSET_ID = 2;
25988
    private BitSet __isset_bit_vector = new BitSet(3);
25989
 
25990
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25991
    static {
25992
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25993
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25995
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25996
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25997
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25998
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25999
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
26003
    }
26004
 
26005
    public resetAvailability_args() {
26006
    }
26007
 
26008
    public resetAvailability_args(
26009
      String itemKey,
26010
      long vendorId,
26011
      long quantity,
26012
      long warehouseId)
26013
    {
26014
      this();
26015
      this.itemKey = itemKey;
26016
      this.vendorId = vendorId;
26017
      setVendorIdIsSet(true);
26018
      this.quantity = quantity;
26019
      setQuantityIsSet(true);
26020
      this.warehouseId = warehouseId;
26021
      setWarehouseIdIsSet(true);
26022
    }
26023
 
26024
    /**
26025
     * Performs a deep copy on <i>other</i>.
26026
     */
26027
    public resetAvailability_args(resetAvailability_args other) {
26028
      __isset_bit_vector.clear();
26029
      __isset_bit_vector.or(other.__isset_bit_vector);
26030
      if (other.isSetItemKey()) {
26031
        this.itemKey = other.itemKey;
26032
      }
26033
      this.vendorId = other.vendorId;
26034
      this.quantity = other.quantity;
26035
      this.warehouseId = other.warehouseId;
26036
    }
26037
 
26038
    public resetAvailability_args deepCopy() {
26039
      return new resetAvailability_args(this);
26040
    }
26041
 
26042
    @Override
26043
    public void clear() {
26044
      this.itemKey = null;
26045
      setVendorIdIsSet(false);
26046
      this.vendorId = 0;
26047
      setQuantityIsSet(false);
26048
      this.quantity = 0;
26049
      setWarehouseIdIsSet(false);
26050
      this.warehouseId = 0;
26051
    }
26052
 
26053
    public String getItemKey() {
26054
      return this.itemKey;
26055
    }
26056
 
26057
    public void setItemKey(String itemKey) {
26058
      this.itemKey = itemKey;
26059
    }
26060
 
26061
    public void unsetItemKey() {
26062
      this.itemKey = null;
26063
    }
26064
 
26065
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
26066
    public boolean isSetItemKey() {
26067
      return this.itemKey != null;
26068
    }
26069
 
26070
    public void setItemKeyIsSet(boolean value) {
26071
      if (!value) {
26072
        this.itemKey = null;
26073
      }
26074
    }
26075
 
26076
    public long getVendorId() {
26077
      return this.vendorId;
26078
    }
26079
 
26080
    public void setVendorId(long vendorId) {
26081
      this.vendorId = vendorId;
26082
      setVendorIdIsSet(true);
26083
    }
26084
 
26085
    public void unsetVendorId() {
26086
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
26087
    }
26088
 
26089
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
26090
    public boolean isSetVendorId() {
26091
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
26092
    }
26093
 
26094
    public void setVendorIdIsSet(boolean value) {
26095
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
26096
    }
26097
 
26098
    public long getQuantity() {
26099
      return this.quantity;
26100
    }
26101
 
26102
    public void setQuantity(long quantity) {
26103
      this.quantity = quantity;
26104
      setQuantityIsSet(true);
26105
    }
26106
 
26107
    public void unsetQuantity() {
26108
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
26109
    }
26110
 
26111
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
26112
    public boolean isSetQuantity() {
26113
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
26114
    }
26115
 
26116
    public void setQuantityIsSet(boolean value) {
26117
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
26118
    }
26119
 
26120
    public long getWarehouseId() {
26121
      return this.warehouseId;
26122
    }
26123
 
26124
    public void setWarehouseId(long warehouseId) {
26125
      this.warehouseId = warehouseId;
26126
      setWarehouseIdIsSet(true);
26127
    }
26128
 
26129
    public void unsetWarehouseId() {
26130
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26131
    }
26132
 
26133
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26134
    public boolean isSetWarehouseId() {
26135
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26136
    }
26137
 
26138
    public void setWarehouseIdIsSet(boolean value) {
26139
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26140
    }
26141
 
26142
    public void setFieldValue(_Fields field, Object value) {
26143
      switch (field) {
26144
      case ITEM_KEY:
26145
        if (value == null) {
26146
          unsetItemKey();
26147
        } else {
26148
          setItemKey((String)value);
26149
        }
26150
        break;
26151
 
26152
      case VENDOR_ID:
26153
        if (value == null) {
26154
          unsetVendorId();
26155
        } else {
26156
          setVendorId((Long)value);
26157
        }
26158
        break;
26159
 
26160
      case QUANTITY:
26161
        if (value == null) {
26162
          unsetQuantity();
26163
        } else {
26164
          setQuantity((Long)value);
26165
        }
26166
        break;
26167
 
26168
      case WAREHOUSE_ID:
26169
        if (value == null) {
26170
          unsetWarehouseId();
26171
        } else {
26172
          setWarehouseId((Long)value);
26173
        }
26174
        break;
26175
 
26176
      }
26177
    }
26178
 
26179
    public Object getFieldValue(_Fields field) {
26180
      switch (field) {
26181
      case ITEM_KEY:
26182
        return getItemKey();
26183
 
26184
      case VENDOR_ID:
26185
        return Long.valueOf(getVendorId());
26186
 
26187
      case QUANTITY:
26188
        return Long.valueOf(getQuantity());
26189
 
26190
      case WAREHOUSE_ID:
26191
        return Long.valueOf(getWarehouseId());
26192
 
26193
      }
26194
      throw new IllegalStateException();
26195
    }
26196
 
26197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26198
    public boolean isSet(_Fields field) {
26199
      if (field == null) {
26200
        throw new IllegalArgumentException();
26201
      }
26202
 
26203
      switch (field) {
26204
      case ITEM_KEY:
26205
        return isSetItemKey();
26206
      case VENDOR_ID:
26207
        return isSetVendorId();
26208
      case QUANTITY:
26209
        return isSetQuantity();
26210
      case WAREHOUSE_ID:
26211
        return isSetWarehouseId();
26212
      }
26213
      throw new IllegalStateException();
26214
    }
26215
 
26216
    @Override
26217
    public boolean equals(Object that) {
26218
      if (that == null)
26219
        return false;
26220
      if (that instanceof resetAvailability_args)
26221
        return this.equals((resetAvailability_args)that);
26222
      return false;
26223
    }
26224
 
26225
    public boolean equals(resetAvailability_args that) {
26226
      if (that == null)
26227
        return false;
26228
 
26229
      boolean this_present_itemKey = true && this.isSetItemKey();
26230
      boolean that_present_itemKey = true && that.isSetItemKey();
26231
      if (this_present_itemKey || that_present_itemKey) {
26232
        if (!(this_present_itemKey && that_present_itemKey))
26233
          return false;
26234
        if (!this.itemKey.equals(that.itemKey))
26235
          return false;
26236
      }
26237
 
26238
      boolean this_present_vendorId = true;
26239
      boolean that_present_vendorId = true;
26240
      if (this_present_vendorId || that_present_vendorId) {
26241
        if (!(this_present_vendorId && that_present_vendorId))
26242
          return false;
26243
        if (this.vendorId != that.vendorId)
26244
          return false;
26245
      }
26246
 
26247
      boolean this_present_quantity = true;
26248
      boolean that_present_quantity = true;
26249
      if (this_present_quantity || that_present_quantity) {
26250
        if (!(this_present_quantity && that_present_quantity))
26251
          return false;
26252
        if (this.quantity != that.quantity)
26253
          return false;
26254
      }
26255
 
26256
      boolean this_present_warehouseId = true;
26257
      boolean that_present_warehouseId = true;
26258
      if (this_present_warehouseId || that_present_warehouseId) {
26259
        if (!(this_present_warehouseId && that_present_warehouseId))
26260
          return false;
26261
        if (this.warehouseId != that.warehouseId)
26262
          return false;
26263
      }
26264
 
26265
      return true;
26266
    }
26267
 
26268
    @Override
26269
    public int hashCode() {
26270
      return 0;
26271
    }
26272
 
26273
    public int compareTo(resetAvailability_args other) {
26274
      if (!getClass().equals(other.getClass())) {
26275
        return getClass().getName().compareTo(other.getClass().getName());
26276
      }
26277
 
26278
      int lastComparison = 0;
26279
      resetAvailability_args typedOther = (resetAvailability_args)other;
26280
 
26281
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
26282
      if (lastComparison != 0) {
26283
        return lastComparison;
26284
      }
26285
      if (isSetItemKey()) {
26286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
26287
        if (lastComparison != 0) {
26288
          return lastComparison;
26289
        }
26290
      }
26291
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
26292
      if (lastComparison != 0) {
26293
        return lastComparison;
26294
      }
26295
      if (isSetVendorId()) {
26296
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
26297
        if (lastComparison != 0) {
26298
          return lastComparison;
26299
        }
26300
      }
26301
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
26302
      if (lastComparison != 0) {
26303
        return lastComparison;
26304
      }
26305
      if (isSetQuantity()) {
26306
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
26307
        if (lastComparison != 0) {
26308
          return lastComparison;
26309
        }
26310
      }
26311
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26312
      if (lastComparison != 0) {
26313
        return lastComparison;
26314
      }
26315
      if (isSetWarehouseId()) {
26316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26317
        if (lastComparison != 0) {
26318
          return lastComparison;
26319
        }
26320
      }
26321
      return 0;
26322
    }
26323
 
26324
    public _Fields fieldForId(int fieldId) {
26325
      return _Fields.findByThriftId(fieldId);
26326
    }
26327
 
26328
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26329
      org.apache.thrift.protocol.TField field;
26330
      iprot.readStructBegin();
26331
      while (true)
26332
      {
26333
        field = iprot.readFieldBegin();
26334
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26335
          break;
26336
        }
26337
        switch (field.id) {
26338
          case 1: // ITEM_KEY
26339
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26340
              this.itemKey = iprot.readString();
26341
            } else { 
26342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26343
            }
26344
            break;
26345
          case 2: // VENDOR_ID
26346
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26347
              this.vendorId = iprot.readI64();
26348
              setVendorIdIsSet(true);
26349
            } else { 
26350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26351
            }
26352
            break;
26353
          case 3: // QUANTITY
26354
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26355
              this.quantity = iprot.readI64();
26356
              setQuantityIsSet(true);
26357
            } else { 
26358
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26359
            }
26360
            break;
26361
          case 4: // WAREHOUSE_ID
26362
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26363
              this.warehouseId = iprot.readI64();
26364
              setWarehouseIdIsSet(true);
26365
            } else { 
26366
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26367
            }
26368
            break;
26369
          default:
26370
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26371
        }
26372
        iprot.readFieldEnd();
26373
      }
26374
      iprot.readStructEnd();
26375
      validate();
26376
    }
26377
 
26378
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26379
      validate();
26380
 
26381
      oprot.writeStructBegin(STRUCT_DESC);
26382
      if (this.itemKey != null) {
26383
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
26384
        oprot.writeString(this.itemKey);
26385
        oprot.writeFieldEnd();
26386
      }
26387
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
26388
      oprot.writeI64(this.vendorId);
26389
      oprot.writeFieldEnd();
26390
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
26391
      oprot.writeI64(this.quantity);
26392
      oprot.writeFieldEnd();
26393
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26394
      oprot.writeI64(this.warehouseId);
26395
      oprot.writeFieldEnd();
26396
      oprot.writeFieldStop();
26397
      oprot.writeStructEnd();
26398
    }
26399
 
26400
    @Override
26401
    public String toString() {
26402
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
26403
      boolean first = true;
26404
 
26405
      sb.append("itemKey:");
26406
      if (this.itemKey == null) {
26407
        sb.append("null");
26408
      } else {
26409
        sb.append(this.itemKey);
26410
      }
26411
      first = false;
26412
      if (!first) sb.append(", ");
26413
      sb.append("vendorId:");
26414
      sb.append(this.vendorId);
26415
      first = false;
26416
      if (!first) sb.append(", ");
26417
      sb.append("quantity:");
26418
      sb.append(this.quantity);
26419
      first = false;
26420
      if (!first) sb.append(", ");
26421
      sb.append("warehouseId:");
26422
      sb.append(this.warehouseId);
26423
      first = false;
26424
      sb.append(")");
26425
      return sb.toString();
26426
    }
26427
 
26428
    public void validate() throws org.apache.thrift.TException {
26429
      // check for required fields
26430
    }
26431
 
26432
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26433
      try {
26434
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26435
      } catch (org.apache.thrift.TException te) {
26436
        throw new java.io.IOException(te);
26437
      }
26438
    }
26439
 
26440
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26441
      try {
26442
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26443
        __isset_bit_vector = new BitSet(1);
26444
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26445
      } catch (org.apache.thrift.TException te) {
26446
        throw new java.io.IOException(te);
26447
      }
26448
    }
26449
 
26450
  }
26451
 
26452
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
26453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
26454
 
26455
    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);
26456
 
26457
    private InventoryServiceException cex; // required
26458
 
26459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26461
      CEX((short)1, "cex");
26462
 
26463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26464
 
26465
      static {
26466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26467
          byName.put(field.getFieldName(), field);
26468
        }
26469
      }
26470
 
26471
      /**
26472
       * Find the _Fields constant that matches fieldId, or null if its not found.
26473
       */
26474
      public static _Fields findByThriftId(int fieldId) {
26475
        switch(fieldId) {
26476
          case 1: // CEX
26477
            return CEX;
26478
          default:
26479
            return null;
26480
        }
26481
      }
26482
 
26483
      /**
26484
       * Find the _Fields constant that matches fieldId, throwing an exception
26485
       * if it is not found.
26486
       */
26487
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26488
        _Fields fields = findByThriftId(fieldId);
26489
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26490
        return fields;
26491
      }
26492
 
26493
      /**
26494
       * Find the _Fields constant that matches name, or null if its not found.
26495
       */
26496
      public static _Fields findByName(String name) {
26497
        return byName.get(name);
26498
      }
26499
 
26500
      private final short _thriftId;
26501
      private final String _fieldName;
26502
 
26503
      _Fields(short thriftId, String fieldName) {
26504
        _thriftId = thriftId;
26505
        _fieldName = fieldName;
26506
      }
26507
 
26508
      public short getThriftFieldId() {
26509
        return _thriftId;
26510
      }
26511
 
26512
      public String getFieldName() {
26513
        return _fieldName;
26514
      }
26515
    }
26516
 
26517
    // isset id assignments
26518
 
26519
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26520
    static {
26521
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26522
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26523
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26524
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26525
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
26526
    }
26527
 
26528
    public resetAvailability_result() {
26529
    }
26530
 
26531
    public resetAvailability_result(
26532
      InventoryServiceException cex)
26533
    {
26534
      this();
26535
      this.cex = cex;
26536
    }
26537
 
26538
    /**
26539
     * Performs a deep copy on <i>other</i>.
26540
     */
26541
    public resetAvailability_result(resetAvailability_result other) {
26542
      if (other.isSetCex()) {
26543
        this.cex = new InventoryServiceException(other.cex);
26544
      }
26545
    }
26546
 
26547
    public resetAvailability_result deepCopy() {
26548
      return new resetAvailability_result(this);
26549
    }
26550
 
26551
    @Override
26552
    public void clear() {
26553
      this.cex = null;
26554
    }
26555
 
26556
    public InventoryServiceException getCex() {
26557
      return this.cex;
26558
    }
26559
 
26560
    public void setCex(InventoryServiceException cex) {
26561
      this.cex = cex;
26562
    }
26563
 
26564
    public void unsetCex() {
26565
      this.cex = null;
26566
    }
26567
 
26568
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
26569
    public boolean isSetCex() {
26570
      return this.cex != null;
26571
    }
26572
 
26573
    public void setCexIsSet(boolean value) {
26574
      if (!value) {
26575
        this.cex = null;
26576
      }
26577
    }
26578
 
26579
    public void setFieldValue(_Fields field, Object value) {
26580
      switch (field) {
26581
      case CEX:
26582
        if (value == null) {
26583
          unsetCex();
26584
        } else {
26585
          setCex((InventoryServiceException)value);
26586
        }
26587
        break;
26588
 
26589
      }
26590
    }
26591
 
26592
    public Object getFieldValue(_Fields field) {
26593
      switch (field) {
26594
      case CEX:
26595
        return getCex();
26596
 
26597
      }
26598
      throw new IllegalStateException();
26599
    }
26600
 
26601
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26602
    public boolean isSet(_Fields field) {
26603
      if (field == null) {
26604
        throw new IllegalArgumentException();
26605
      }
26606
 
26607
      switch (field) {
26608
      case CEX:
26609
        return isSetCex();
26610
      }
26611
      throw new IllegalStateException();
26612
    }
26613
 
26614
    @Override
26615
    public boolean equals(Object that) {
26616
      if (that == null)
26617
        return false;
26618
      if (that instanceof resetAvailability_result)
26619
        return this.equals((resetAvailability_result)that);
26620
      return false;
26621
    }
26622
 
26623
    public boolean equals(resetAvailability_result that) {
26624
      if (that == null)
26625
        return false;
26626
 
26627
      boolean this_present_cex = true && this.isSetCex();
26628
      boolean that_present_cex = true && that.isSetCex();
26629
      if (this_present_cex || that_present_cex) {
26630
        if (!(this_present_cex && that_present_cex))
26631
          return false;
26632
        if (!this.cex.equals(that.cex))
26633
          return false;
26634
      }
26635
 
26636
      return true;
26637
    }
26638
 
26639
    @Override
26640
    public int hashCode() {
26641
      return 0;
26642
    }
26643
 
26644
    public int compareTo(resetAvailability_result other) {
26645
      if (!getClass().equals(other.getClass())) {
26646
        return getClass().getName().compareTo(other.getClass().getName());
26647
      }
26648
 
26649
      int lastComparison = 0;
26650
      resetAvailability_result typedOther = (resetAvailability_result)other;
26651
 
26652
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
26653
      if (lastComparison != 0) {
26654
        return lastComparison;
26655
      }
26656
      if (isSetCex()) {
26657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
26658
        if (lastComparison != 0) {
26659
          return lastComparison;
26660
        }
26661
      }
26662
      return 0;
26663
    }
26664
 
26665
    public _Fields fieldForId(int fieldId) {
26666
      return _Fields.findByThriftId(fieldId);
26667
    }
26668
 
26669
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26670
      org.apache.thrift.protocol.TField field;
26671
      iprot.readStructBegin();
26672
      while (true)
26673
      {
26674
        field = iprot.readFieldBegin();
26675
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26676
          break;
26677
        }
26678
        switch (field.id) {
26679
          case 1: // CEX
26680
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26681
              this.cex = new InventoryServiceException();
26682
              this.cex.read(iprot);
26683
            } else { 
26684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26685
            }
26686
            break;
26687
          default:
26688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26689
        }
26690
        iprot.readFieldEnd();
26691
      }
26692
      iprot.readStructEnd();
26693
      validate();
26694
    }
26695
 
26696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26697
      oprot.writeStructBegin(STRUCT_DESC);
26698
 
26699
      if (this.isSetCex()) {
26700
        oprot.writeFieldBegin(CEX_FIELD_DESC);
26701
        this.cex.write(oprot);
26702
        oprot.writeFieldEnd();
26703
      }
26704
      oprot.writeFieldStop();
26705
      oprot.writeStructEnd();
26706
    }
26707
 
26708
    @Override
26709
    public String toString() {
26710
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
26711
      boolean first = true;
26712
 
26713
      sb.append("cex:");
26714
      if (this.cex == null) {
26715
        sb.append("null");
26716
      } else {
26717
        sb.append(this.cex);
26718
      }
26719
      first = false;
26720
      sb.append(")");
26721
      return sb.toString();
26722
    }
26723
 
26724
    public void validate() throws org.apache.thrift.TException {
26725
      // check for required fields
26726
    }
26727
 
26728
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26729
      try {
26730
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26731
      } catch (org.apache.thrift.TException te) {
26732
        throw new java.io.IOException(te);
26733
      }
26734
    }
26735
 
26736
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26737
      try {
26738
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26739
      } catch (org.apache.thrift.TException te) {
26740
        throw new java.io.IOException(te);
26741
      }
26742
    }
26743
 
26744
  }
26745
 
26746
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
26747
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
26748
 
26749
    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);
26750
 
26751
    private long warehouseId; // required
26752
 
26753
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26754
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26755
      WAREHOUSE_ID((short)1, "warehouseId");
26756
 
26757
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26758
 
26759
      static {
26760
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26761
          byName.put(field.getFieldName(), field);
26762
        }
26763
      }
26764
 
26765
      /**
26766
       * Find the _Fields constant that matches fieldId, or null if its not found.
26767
       */
26768
      public static _Fields findByThriftId(int fieldId) {
26769
        switch(fieldId) {
26770
          case 1: // WAREHOUSE_ID
26771
            return WAREHOUSE_ID;
26772
          default:
26773
            return null;
26774
        }
26775
      }
26776
 
26777
      /**
26778
       * Find the _Fields constant that matches fieldId, throwing an exception
26779
       * if it is not found.
26780
       */
26781
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26782
        _Fields fields = findByThriftId(fieldId);
26783
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26784
        return fields;
26785
      }
26786
 
26787
      /**
26788
       * Find the _Fields constant that matches name, or null if its not found.
26789
       */
26790
      public static _Fields findByName(String name) {
26791
        return byName.get(name);
26792
      }
26793
 
26794
      private final short _thriftId;
26795
      private final String _fieldName;
26796
 
26797
      _Fields(short thriftId, String fieldName) {
26798
        _thriftId = thriftId;
26799
        _fieldName = fieldName;
26800
      }
26801
 
26802
      public short getThriftFieldId() {
26803
        return _thriftId;
26804
      }
26805
 
26806
      public String getFieldName() {
26807
        return _fieldName;
26808
      }
26809
    }
26810
 
26811
    // isset id assignments
26812
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26813
    private BitSet __isset_bit_vector = new BitSet(1);
26814
 
26815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26816
    static {
26817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26818
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
26822
    }
26823
 
26824
    public resetAvailabilityForWarehouse_args() {
26825
    }
26826
 
26827
    public resetAvailabilityForWarehouse_args(
26828
      long warehouseId)
26829
    {
26830
      this();
26831
      this.warehouseId = warehouseId;
26832
      setWarehouseIdIsSet(true);
26833
    }
26834
 
26835
    /**
26836
     * Performs a deep copy on <i>other</i>.
26837
     */
26838
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
26839
      __isset_bit_vector.clear();
26840
      __isset_bit_vector.or(other.__isset_bit_vector);
26841
      this.warehouseId = other.warehouseId;
26842
    }
26843
 
26844
    public resetAvailabilityForWarehouse_args deepCopy() {
26845
      return new resetAvailabilityForWarehouse_args(this);
26846
    }
26847
 
26848
    @Override
26849
    public void clear() {
26850
      setWarehouseIdIsSet(false);
26851
      this.warehouseId = 0;
26852
    }
26853
 
26854
    public long getWarehouseId() {
26855
      return this.warehouseId;
26856
    }
26857
 
26858
    public void setWarehouseId(long warehouseId) {
26859
      this.warehouseId = warehouseId;
26860
      setWarehouseIdIsSet(true);
26861
    }
26862
 
26863
    public void unsetWarehouseId() {
26864
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26865
    }
26866
 
26867
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26868
    public boolean isSetWarehouseId() {
26869
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26870
    }
26871
 
26872
    public void setWarehouseIdIsSet(boolean value) {
26873
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26874
    }
26875
 
26876
    public void setFieldValue(_Fields field, Object value) {
26877
      switch (field) {
26878
      case WAREHOUSE_ID:
26879
        if (value == null) {
26880
          unsetWarehouseId();
26881
        } else {
26882
          setWarehouseId((Long)value);
26883
        }
26884
        break;
26885
 
26886
      }
26887
    }
26888
 
26889
    public Object getFieldValue(_Fields field) {
26890
      switch (field) {
26891
      case WAREHOUSE_ID:
26892
        return Long.valueOf(getWarehouseId());
26893
 
26894
      }
26895
      throw new IllegalStateException();
26896
    }
26897
 
26898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26899
    public boolean isSet(_Fields field) {
26900
      if (field == null) {
26901
        throw new IllegalArgumentException();
26902
      }
26903
 
26904
      switch (field) {
26905
      case WAREHOUSE_ID:
26906
        return isSetWarehouseId();
26907
      }
26908
      throw new IllegalStateException();
26909
    }
26910
 
26911
    @Override
26912
    public boolean equals(Object that) {
26913
      if (that == null)
26914
        return false;
26915
      if (that instanceof resetAvailabilityForWarehouse_args)
26916
        return this.equals((resetAvailabilityForWarehouse_args)that);
26917
      return false;
26918
    }
26919
 
26920
    public boolean equals(resetAvailabilityForWarehouse_args that) {
26921
      if (that == null)
26922
        return false;
26923
 
26924
      boolean this_present_warehouseId = true;
26925
      boolean that_present_warehouseId = true;
26926
      if (this_present_warehouseId || that_present_warehouseId) {
26927
        if (!(this_present_warehouseId && that_present_warehouseId))
26928
          return false;
26929
        if (this.warehouseId != that.warehouseId)
26930
          return false;
26931
      }
26932
 
26933
      return true;
26934
    }
26935
 
26936
    @Override
26937
    public int hashCode() {
26938
      return 0;
26939
    }
26940
 
26941
    public int compareTo(resetAvailabilityForWarehouse_args other) {
26942
      if (!getClass().equals(other.getClass())) {
26943
        return getClass().getName().compareTo(other.getClass().getName());
26944
      }
26945
 
26946
      int lastComparison = 0;
26947
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
26948
 
26949
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26950
      if (lastComparison != 0) {
26951
        return lastComparison;
26952
      }
26953
      if (isSetWarehouseId()) {
26954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26955
        if (lastComparison != 0) {
26956
          return lastComparison;
26957
        }
26958
      }
26959
      return 0;
26960
    }
26961
 
26962
    public _Fields fieldForId(int fieldId) {
26963
      return _Fields.findByThriftId(fieldId);
26964
    }
26965
 
26966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26967
      org.apache.thrift.protocol.TField field;
26968
      iprot.readStructBegin();
26969
      while (true)
26970
      {
26971
        field = iprot.readFieldBegin();
26972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26973
          break;
26974
        }
26975
        switch (field.id) {
26976
          case 1: // WAREHOUSE_ID
26977
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26978
              this.warehouseId = iprot.readI64();
26979
              setWarehouseIdIsSet(true);
26980
            } else { 
26981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26982
            }
26983
            break;
26984
          default:
26985
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26986
        }
26987
        iprot.readFieldEnd();
26988
      }
26989
      iprot.readStructEnd();
26990
      validate();
26991
    }
26992
 
26993
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26994
      validate();
26995
 
26996
      oprot.writeStructBegin(STRUCT_DESC);
26997
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26998
      oprot.writeI64(this.warehouseId);
26999
      oprot.writeFieldEnd();
27000
      oprot.writeFieldStop();
27001
      oprot.writeStructEnd();
27002
    }
27003
 
27004
    @Override
27005
    public String toString() {
27006
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
27007
      boolean first = true;
27008
 
27009
      sb.append("warehouseId:");
27010
      sb.append(this.warehouseId);
27011
      first = false;
27012
      sb.append(")");
27013
      return sb.toString();
27014
    }
27015
 
27016
    public void validate() throws org.apache.thrift.TException {
27017
      // check for required fields
27018
    }
27019
 
27020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27021
      try {
27022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27023
      } catch (org.apache.thrift.TException te) {
27024
        throw new java.io.IOException(te);
27025
      }
27026
    }
27027
 
27028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27029
      try {
27030
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27031
        __isset_bit_vector = new BitSet(1);
27032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27033
      } catch (org.apache.thrift.TException te) {
27034
        throw new java.io.IOException(te);
27035
      }
27036
    }
27037
 
27038
  }
27039
 
27040
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
27041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
27042
 
27043
    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);
27044
 
27045
    private InventoryServiceException cex; // required
27046
 
27047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27049
      CEX((short)1, "cex");
27050
 
27051
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27052
 
27053
      static {
27054
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27055
          byName.put(field.getFieldName(), field);
27056
        }
27057
      }
27058
 
27059
      /**
27060
       * Find the _Fields constant that matches fieldId, or null if its not found.
27061
       */
27062
      public static _Fields findByThriftId(int fieldId) {
27063
        switch(fieldId) {
27064
          case 1: // CEX
27065
            return CEX;
27066
          default:
27067
            return null;
27068
        }
27069
      }
27070
 
27071
      /**
27072
       * Find the _Fields constant that matches fieldId, throwing an exception
27073
       * if it is not found.
27074
       */
27075
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27076
        _Fields fields = findByThriftId(fieldId);
27077
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27078
        return fields;
27079
      }
27080
 
27081
      /**
27082
       * Find the _Fields constant that matches name, or null if its not found.
27083
       */
27084
      public static _Fields findByName(String name) {
27085
        return byName.get(name);
27086
      }
27087
 
27088
      private final short _thriftId;
27089
      private final String _fieldName;
27090
 
27091
      _Fields(short thriftId, String fieldName) {
27092
        _thriftId = thriftId;
27093
        _fieldName = fieldName;
27094
      }
27095
 
27096
      public short getThriftFieldId() {
27097
        return _thriftId;
27098
      }
27099
 
27100
      public String getFieldName() {
27101
        return _fieldName;
27102
      }
27103
    }
27104
 
27105
    // isset id assignments
27106
 
27107
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27108
    static {
27109
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27110
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27111
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27112
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27113
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
27114
    }
27115
 
27116
    public resetAvailabilityForWarehouse_result() {
27117
    }
27118
 
27119
    public resetAvailabilityForWarehouse_result(
27120
      InventoryServiceException cex)
27121
    {
27122
      this();
27123
      this.cex = cex;
27124
    }
27125
 
27126
    /**
27127
     * Performs a deep copy on <i>other</i>.
27128
     */
27129
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
27130
      if (other.isSetCex()) {
27131
        this.cex = new InventoryServiceException(other.cex);
27132
      }
27133
    }
27134
 
27135
    public resetAvailabilityForWarehouse_result deepCopy() {
27136
      return new resetAvailabilityForWarehouse_result(this);
27137
    }
27138
 
27139
    @Override
27140
    public void clear() {
27141
      this.cex = null;
27142
    }
27143
 
27144
    public InventoryServiceException getCex() {
27145
      return this.cex;
27146
    }
27147
 
27148
    public void setCex(InventoryServiceException cex) {
27149
      this.cex = cex;
27150
    }
27151
 
27152
    public void unsetCex() {
27153
      this.cex = null;
27154
    }
27155
 
27156
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
27157
    public boolean isSetCex() {
27158
      return this.cex != null;
27159
    }
27160
 
27161
    public void setCexIsSet(boolean value) {
27162
      if (!value) {
27163
        this.cex = null;
27164
      }
27165
    }
27166
 
27167
    public void setFieldValue(_Fields field, Object value) {
27168
      switch (field) {
27169
      case CEX:
27170
        if (value == null) {
27171
          unsetCex();
27172
        } else {
27173
          setCex((InventoryServiceException)value);
27174
        }
27175
        break;
27176
 
27177
      }
27178
    }
27179
 
27180
    public Object getFieldValue(_Fields field) {
27181
      switch (field) {
27182
      case CEX:
27183
        return getCex();
27184
 
27185
      }
27186
      throw new IllegalStateException();
27187
    }
27188
 
27189
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27190
    public boolean isSet(_Fields field) {
27191
      if (field == null) {
27192
        throw new IllegalArgumentException();
27193
      }
27194
 
27195
      switch (field) {
27196
      case CEX:
27197
        return isSetCex();
27198
      }
27199
      throw new IllegalStateException();
27200
    }
27201
 
27202
    @Override
27203
    public boolean equals(Object that) {
27204
      if (that == null)
27205
        return false;
27206
      if (that instanceof resetAvailabilityForWarehouse_result)
27207
        return this.equals((resetAvailabilityForWarehouse_result)that);
27208
      return false;
27209
    }
27210
 
27211
    public boolean equals(resetAvailabilityForWarehouse_result that) {
27212
      if (that == null)
27213
        return false;
27214
 
27215
      boolean this_present_cex = true && this.isSetCex();
27216
      boolean that_present_cex = true && that.isSetCex();
27217
      if (this_present_cex || that_present_cex) {
27218
        if (!(this_present_cex && that_present_cex))
27219
          return false;
27220
        if (!this.cex.equals(that.cex))
27221
          return false;
27222
      }
27223
 
27224
      return true;
27225
    }
27226
 
27227
    @Override
27228
    public int hashCode() {
27229
      return 0;
27230
    }
27231
 
27232
    public int compareTo(resetAvailabilityForWarehouse_result other) {
27233
      if (!getClass().equals(other.getClass())) {
27234
        return getClass().getName().compareTo(other.getClass().getName());
27235
      }
27236
 
27237
      int lastComparison = 0;
27238
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
27239
 
27240
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
27241
      if (lastComparison != 0) {
27242
        return lastComparison;
27243
      }
27244
      if (isSetCex()) {
27245
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
27246
        if (lastComparison != 0) {
27247
          return lastComparison;
27248
        }
27249
      }
27250
      return 0;
27251
    }
27252
 
27253
    public _Fields fieldForId(int fieldId) {
27254
      return _Fields.findByThriftId(fieldId);
27255
    }
27256
 
27257
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27258
      org.apache.thrift.protocol.TField field;
27259
      iprot.readStructBegin();
27260
      while (true)
27261
      {
27262
        field = iprot.readFieldBegin();
27263
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27264
          break;
27265
        }
27266
        switch (field.id) {
27267
          case 1: // CEX
27268
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27269
              this.cex = new InventoryServiceException();
27270
              this.cex.read(iprot);
27271
            } else { 
27272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27273
            }
27274
            break;
27275
          default:
27276
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27277
        }
27278
        iprot.readFieldEnd();
27279
      }
27280
      iprot.readStructEnd();
27281
      validate();
27282
    }
27283
 
27284
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27285
      oprot.writeStructBegin(STRUCT_DESC);
27286
 
27287
      if (this.isSetCex()) {
27288
        oprot.writeFieldBegin(CEX_FIELD_DESC);
27289
        this.cex.write(oprot);
27290
        oprot.writeFieldEnd();
27291
      }
27292
      oprot.writeFieldStop();
27293
      oprot.writeStructEnd();
27294
    }
27295
 
27296
    @Override
27297
    public String toString() {
27298
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
27299
      boolean first = true;
27300
 
27301
      sb.append("cex:");
27302
      if (this.cex == null) {
27303
        sb.append("null");
27304
      } else {
27305
        sb.append(this.cex);
27306
      }
27307
      first = false;
27308
      sb.append(")");
27309
      return sb.toString();
27310
    }
27311
 
27312
    public void validate() throws org.apache.thrift.TException {
27313
      // check for required fields
27314
    }
27315
 
27316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27317
      try {
27318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27319
      } catch (org.apache.thrift.TException te) {
27320
        throw new java.io.IOException(te);
27321
      }
27322
    }
27323
 
27324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27325
      try {
27326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27327
      } catch (org.apache.thrift.TException te) {
27328
        throw new java.io.IOException(te);
27329
      }
27330
    }
27331
 
27332
  }
27333
 
27334
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
27335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
27336
 
27337
    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);
27338
 
27339
    private long warehouseId; // required
27340
 
27341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27343
      WAREHOUSE_ID((short)1, "warehouseId");
27344
 
27345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27346
 
27347
      static {
27348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27349
          byName.put(field.getFieldName(), field);
27350
        }
27351
      }
27352
 
27353
      /**
27354
       * Find the _Fields constant that matches fieldId, or null if its not found.
27355
       */
27356
      public static _Fields findByThriftId(int fieldId) {
27357
        switch(fieldId) {
27358
          case 1: // WAREHOUSE_ID
27359
            return WAREHOUSE_ID;
27360
          default:
27361
            return null;
27362
        }
27363
      }
27364
 
27365
      /**
27366
       * Find the _Fields constant that matches fieldId, throwing an exception
27367
       * if it is not found.
27368
       */
27369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27370
        _Fields fields = findByThriftId(fieldId);
27371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27372
        return fields;
27373
      }
27374
 
27375
      /**
27376
       * Find the _Fields constant that matches name, or null if its not found.
27377
       */
27378
      public static _Fields findByName(String name) {
27379
        return byName.get(name);
27380
      }
27381
 
27382
      private final short _thriftId;
27383
      private final String _fieldName;
27384
 
27385
      _Fields(short thriftId, String fieldName) {
27386
        _thriftId = thriftId;
27387
        _fieldName = fieldName;
27388
      }
27389
 
27390
      public short getThriftFieldId() {
27391
        return _thriftId;
27392
      }
27393
 
27394
      public String getFieldName() {
27395
        return _fieldName;
27396
      }
27397
    }
27398
 
27399
    // isset id assignments
27400
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27401
    private BitSet __isset_bit_vector = new BitSet(1);
27402
 
27403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27404
    static {
27405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27406
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
27410
    }
27411
 
27412
    public getItemKeysToBeProcessed_args() {
27413
    }
27414
 
27415
    public getItemKeysToBeProcessed_args(
27416
      long warehouseId)
27417
    {
27418
      this();
27419
      this.warehouseId = warehouseId;
27420
      setWarehouseIdIsSet(true);
27421
    }
27422
 
27423
    /**
27424
     * Performs a deep copy on <i>other</i>.
27425
     */
27426
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
27427
      __isset_bit_vector.clear();
27428
      __isset_bit_vector.or(other.__isset_bit_vector);
27429
      this.warehouseId = other.warehouseId;
27430
    }
27431
 
27432
    public getItemKeysToBeProcessed_args deepCopy() {
27433
      return new getItemKeysToBeProcessed_args(this);
27434
    }
27435
 
27436
    @Override
27437
    public void clear() {
27438
      setWarehouseIdIsSet(false);
27439
      this.warehouseId = 0;
27440
    }
27441
 
27442
    public long getWarehouseId() {
27443
      return this.warehouseId;
27444
    }
27445
 
27446
    public void setWarehouseId(long warehouseId) {
27447
      this.warehouseId = warehouseId;
27448
      setWarehouseIdIsSet(true);
27449
    }
27450
 
27451
    public void unsetWarehouseId() {
27452
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27453
    }
27454
 
27455
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27456
    public boolean isSetWarehouseId() {
27457
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27458
    }
27459
 
27460
    public void setWarehouseIdIsSet(boolean value) {
27461
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27462
    }
27463
 
27464
    public void setFieldValue(_Fields field, Object value) {
27465
      switch (field) {
27466
      case WAREHOUSE_ID:
27467
        if (value == null) {
27468
          unsetWarehouseId();
27469
        } else {
27470
          setWarehouseId((Long)value);
27471
        }
27472
        break;
27473
 
27474
      }
27475
    }
27476
 
27477
    public Object getFieldValue(_Fields field) {
27478
      switch (field) {
27479
      case WAREHOUSE_ID:
27480
        return Long.valueOf(getWarehouseId());
27481
 
27482
      }
27483
      throw new IllegalStateException();
27484
    }
27485
 
27486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27487
    public boolean isSet(_Fields field) {
27488
      if (field == null) {
27489
        throw new IllegalArgumentException();
27490
      }
27491
 
27492
      switch (field) {
27493
      case WAREHOUSE_ID:
27494
        return isSetWarehouseId();
27495
      }
27496
      throw new IllegalStateException();
27497
    }
27498
 
27499
    @Override
27500
    public boolean equals(Object that) {
27501
      if (that == null)
27502
        return false;
27503
      if (that instanceof getItemKeysToBeProcessed_args)
27504
        return this.equals((getItemKeysToBeProcessed_args)that);
27505
      return false;
27506
    }
27507
 
27508
    public boolean equals(getItemKeysToBeProcessed_args that) {
27509
      if (that == null)
27510
        return false;
27511
 
27512
      boolean this_present_warehouseId = true;
27513
      boolean that_present_warehouseId = true;
27514
      if (this_present_warehouseId || that_present_warehouseId) {
27515
        if (!(this_present_warehouseId && that_present_warehouseId))
27516
          return false;
27517
        if (this.warehouseId != that.warehouseId)
27518
          return false;
27519
      }
27520
 
27521
      return true;
27522
    }
27523
 
27524
    @Override
27525
    public int hashCode() {
27526
      return 0;
27527
    }
27528
 
27529
    public int compareTo(getItemKeysToBeProcessed_args other) {
27530
      if (!getClass().equals(other.getClass())) {
27531
        return getClass().getName().compareTo(other.getClass().getName());
27532
      }
27533
 
27534
      int lastComparison = 0;
27535
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
27536
 
27537
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27538
      if (lastComparison != 0) {
27539
        return lastComparison;
27540
      }
27541
      if (isSetWarehouseId()) {
27542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27543
        if (lastComparison != 0) {
27544
          return lastComparison;
27545
        }
27546
      }
27547
      return 0;
27548
    }
27549
 
27550
    public _Fields fieldForId(int fieldId) {
27551
      return _Fields.findByThriftId(fieldId);
27552
    }
27553
 
27554
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27555
      org.apache.thrift.protocol.TField field;
27556
      iprot.readStructBegin();
27557
      while (true)
27558
      {
27559
        field = iprot.readFieldBegin();
27560
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27561
          break;
27562
        }
27563
        switch (field.id) {
27564
          case 1: // WAREHOUSE_ID
27565
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27566
              this.warehouseId = iprot.readI64();
27567
              setWarehouseIdIsSet(true);
27568
            } else { 
27569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27570
            }
27571
            break;
27572
          default:
27573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27574
        }
27575
        iprot.readFieldEnd();
27576
      }
27577
      iprot.readStructEnd();
27578
      validate();
27579
    }
27580
 
27581
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27582
      validate();
27583
 
27584
      oprot.writeStructBegin(STRUCT_DESC);
27585
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27586
      oprot.writeI64(this.warehouseId);
27587
      oprot.writeFieldEnd();
27588
      oprot.writeFieldStop();
27589
      oprot.writeStructEnd();
27590
    }
27591
 
27592
    @Override
27593
    public String toString() {
27594
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
27595
      boolean first = true;
27596
 
27597
      sb.append("warehouseId:");
27598
      sb.append(this.warehouseId);
27599
      first = false;
27600
      sb.append(")");
27601
      return sb.toString();
27602
    }
27603
 
27604
    public void validate() throws org.apache.thrift.TException {
27605
      // check for required fields
27606
    }
27607
 
27608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27609
      try {
27610
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27611
      } catch (org.apache.thrift.TException te) {
27612
        throw new java.io.IOException(te);
27613
      }
27614
    }
27615
 
27616
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27617
      try {
27618
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27619
      } catch (org.apache.thrift.TException te) {
27620
        throw new java.io.IOException(te);
27621
      }
27622
    }
27623
 
27624
  }
27625
 
27626
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
27627
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
27628
 
27629
    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);
27630
 
27631
    private List<String> success; // required
27632
 
27633
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27634
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27635
      SUCCESS((short)0, "success");
27636
 
27637
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27638
 
27639
      static {
27640
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27641
          byName.put(field.getFieldName(), field);
27642
        }
27643
      }
27644
 
27645
      /**
27646
       * Find the _Fields constant that matches fieldId, or null if its not found.
27647
       */
27648
      public static _Fields findByThriftId(int fieldId) {
27649
        switch(fieldId) {
27650
          case 0: // SUCCESS
27651
            return SUCCESS;
27652
          default:
27653
            return null;
27654
        }
27655
      }
27656
 
27657
      /**
27658
       * Find the _Fields constant that matches fieldId, throwing an exception
27659
       * if it is not found.
27660
       */
27661
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27662
        _Fields fields = findByThriftId(fieldId);
27663
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27664
        return fields;
27665
      }
27666
 
27667
      /**
27668
       * Find the _Fields constant that matches name, or null if its not found.
27669
       */
27670
      public static _Fields findByName(String name) {
27671
        return byName.get(name);
27672
      }
27673
 
27674
      private final short _thriftId;
27675
      private final String _fieldName;
27676
 
27677
      _Fields(short thriftId, String fieldName) {
27678
        _thriftId = thriftId;
27679
        _fieldName = fieldName;
27680
      }
27681
 
27682
      public short getThriftFieldId() {
27683
        return _thriftId;
27684
      }
27685
 
27686
      public String getFieldName() {
27687
        return _fieldName;
27688
      }
27689
    }
27690
 
27691
    // isset id assignments
27692
 
27693
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27694
    static {
27695
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27696
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27697
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27698
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
27699
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27700
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
27701
    }
27702
 
27703
    public getItemKeysToBeProcessed_result() {
27704
    }
27705
 
27706
    public getItemKeysToBeProcessed_result(
27707
      List<String> success)
27708
    {
27709
      this();
27710
      this.success = success;
27711
    }
27712
 
27713
    /**
27714
     * Performs a deep copy on <i>other</i>.
27715
     */
27716
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
27717
      if (other.isSetSuccess()) {
27718
        List<String> __this__success = new ArrayList<String>();
27719
        for (String other_element : other.success) {
27720
          __this__success.add(other_element);
27721
        }
27722
        this.success = __this__success;
27723
      }
27724
    }
27725
 
27726
    public getItemKeysToBeProcessed_result deepCopy() {
27727
      return new getItemKeysToBeProcessed_result(this);
27728
    }
27729
 
27730
    @Override
27731
    public void clear() {
27732
      this.success = null;
27733
    }
27734
 
27735
    public int getSuccessSize() {
27736
      return (this.success == null) ? 0 : this.success.size();
27737
    }
27738
 
27739
    public java.util.Iterator<String> getSuccessIterator() {
27740
      return (this.success == null) ? null : this.success.iterator();
27741
    }
27742
 
27743
    public void addToSuccess(String elem) {
27744
      if (this.success == null) {
27745
        this.success = new ArrayList<String>();
27746
      }
27747
      this.success.add(elem);
27748
    }
27749
 
27750
    public List<String> getSuccess() {
27751
      return this.success;
27752
    }
27753
 
27754
    public void setSuccess(List<String> success) {
27755
      this.success = success;
27756
    }
27757
 
27758
    public void unsetSuccess() {
27759
      this.success = null;
27760
    }
27761
 
27762
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27763
    public boolean isSetSuccess() {
27764
      return this.success != null;
27765
    }
27766
 
27767
    public void setSuccessIsSet(boolean value) {
27768
      if (!value) {
27769
        this.success = null;
27770
      }
27771
    }
27772
 
27773
    public void setFieldValue(_Fields field, Object value) {
27774
      switch (field) {
27775
      case SUCCESS:
27776
        if (value == null) {
27777
          unsetSuccess();
27778
        } else {
27779
          setSuccess((List<String>)value);
27780
        }
27781
        break;
27782
 
27783
      }
27784
    }
27785
 
27786
    public Object getFieldValue(_Fields field) {
27787
      switch (field) {
27788
      case SUCCESS:
27789
        return getSuccess();
27790
 
27791
      }
27792
      throw new IllegalStateException();
27793
    }
27794
 
27795
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27796
    public boolean isSet(_Fields field) {
27797
      if (field == null) {
27798
        throw new IllegalArgumentException();
27799
      }
27800
 
27801
      switch (field) {
27802
      case SUCCESS:
27803
        return isSetSuccess();
27804
      }
27805
      throw new IllegalStateException();
27806
    }
27807
 
27808
    @Override
27809
    public boolean equals(Object that) {
27810
      if (that == null)
27811
        return false;
27812
      if (that instanceof getItemKeysToBeProcessed_result)
27813
        return this.equals((getItemKeysToBeProcessed_result)that);
27814
      return false;
27815
    }
27816
 
27817
    public boolean equals(getItemKeysToBeProcessed_result that) {
27818
      if (that == null)
27819
        return false;
27820
 
27821
      boolean this_present_success = true && this.isSetSuccess();
27822
      boolean that_present_success = true && that.isSetSuccess();
27823
      if (this_present_success || that_present_success) {
27824
        if (!(this_present_success && that_present_success))
27825
          return false;
27826
        if (!this.success.equals(that.success))
27827
          return false;
27828
      }
27829
 
27830
      return true;
27831
    }
27832
 
27833
    @Override
27834
    public int hashCode() {
27835
      return 0;
27836
    }
27837
 
27838
    public int compareTo(getItemKeysToBeProcessed_result other) {
27839
      if (!getClass().equals(other.getClass())) {
27840
        return getClass().getName().compareTo(other.getClass().getName());
27841
      }
27842
 
27843
      int lastComparison = 0;
27844
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
27845
 
27846
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27847
      if (lastComparison != 0) {
27848
        return lastComparison;
27849
      }
27850
      if (isSetSuccess()) {
27851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27852
        if (lastComparison != 0) {
27853
          return lastComparison;
27854
        }
27855
      }
27856
      return 0;
27857
    }
27858
 
27859
    public _Fields fieldForId(int fieldId) {
27860
      return _Fields.findByThriftId(fieldId);
27861
    }
27862
 
27863
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27864
      org.apache.thrift.protocol.TField field;
27865
      iprot.readStructBegin();
27866
      while (true)
27867
      {
27868
        field = iprot.readFieldBegin();
27869
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27870
          break;
27871
        }
27872
        switch (field.id) {
27873
          case 0: // SUCCESS
27874
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27875
              {
8182 amar.kumar 27876
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
27877
                this.success = new ArrayList<String>(_list57.size);
27878
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
5945 mandeep.dh 27879
                {
8182 amar.kumar 27880
                  String _elem59; // required
27881
                  _elem59 = iprot.readString();
27882
                  this.success.add(_elem59);
5945 mandeep.dh 27883
                }
27884
                iprot.readListEnd();
27885
              }
27886
            } else { 
27887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27888
            }
27889
            break;
27890
          default:
27891
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27892
        }
27893
        iprot.readFieldEnd();
27894
      }
27895
      iprot.readStructEnd();
27896
      validate();
27897
    }
27898
 
27899
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27900
      oprot.writeStructBegin(STRUCT_DESC);
27901
 
27902
      if (this.isSetSuccess()) {
27903
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27904
        {
27905
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
8182 amar.kumar 27906
          for (String _iter60 : this.success)
5945 mandeep.dh 27907
          {
8182 amar.kumar 27908
            oprot.writeString(_iter60);
5945 mandeep.dh 27909
          }
27910
          oprot.writeListEnd();
27911
        }
27912
        oprot.writeFieldEnd();
27913
      }
27914
      oprot.writeFieldStop();
27915
      oprot.writeStructEnd();
27916
    }
27917
 
27918
    @Override
27919
    public String toString() {
27920
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
27921
      boolean first = true;
27922
 
27923
      sb.append("success:");
27924
      if (this.success == null) {
27925
        sb.append("null");
27926
      } else {
27927
        sb.append(this.success);
27928
      }
27929
      first = false;
27930
      sb.append(")");
27931
      return sb.toString();
27932
    }
27933
 
27934
    public void validate() throws org.apache.thrift.TException {
27935
      // check for required fields
27936
    }
27937
 
27938
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27939
      try {
27940
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27941
      } catch (org.apache.thrift.TException te) {
27942
        throw new java.io.IOException(te);
27943
      }
27944
    }
27945
 
27946
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27947
      try {
27948
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27949
      } catch (org.apache.thrift.TException te) {
27950
        throw new java.io.IOException(te);
27951
      }
27952
    }
27953
 
27954
  }
27955
 
27956
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
27957
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
27958
 
27959
    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);
27960
    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);
27961
 
27962
    private String itemKey; // required
27963
    private long warehouseId; // required
27964
 
27965
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27966
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27967
      ITEM_KEY((short)1, "itemKey"),
27968
      WAREHOUSE_ID((short)2, "warehouseId");
27969
 
27970
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27971
 
27972
      static {
27973
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27974
          byName.put(field.getFieldName(), field);
27975
        }
27976
      }
27977
 
27978
      /**
27979
       * Find the _Fields constant that matches fieldId, or null if its not found.
27980
       */
27981
      public static _Fields findByThriftId(int fieldId) {
27982
        switch(fieldId) {
27983
          case 1: // ITEM_KEY
27984
            return ITEM_KEY;
27985
          case 2: // WAREHOUSE_ID
27986
            return WAREHOUSE_ID;
27987
          default:
27988
            return null;
27989
        }
27990
      }
27991
 
27992
      /**
27993
       * Find the _Fields constant that matches fieldId, throwing an exception
27994
       * if it is not found.
27995
       */
27996
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27997
        _Fields fields = findByThriftId(fieldId);
27998
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27999
        return fields;
28000
      }
28001
 
28002
      /**
28003
       * Find the _Fields constant that matches name, or null if its not found.
28004
       */
28005
      public static _Fields findByName(String name) {
28006
        return byName.get(name);
28007
      }
28008
 
28009
      private final short _thriftId;
28010
      private final String _fieldName;
28011
 
28012
      _Fields(short thriftId, String fieldName) {
28013
        _thriftId = thriftId;
28014
        _fieldName = fieldName;
28015
      }
28016
 
28017
      public short getThriftFieldId() {
28018
        return _thriftId;
28019
      }
28020
 
28021
      public String getFieldName() {
28022
        return _fieldName;
28023
      }
28024
    }
28025
 
28026
    // isset id assignments
28027
    private static final int __WAREHOUSEID_ISSET_ID = 0;
28028
    private BitSet __isset_bit_vector = new BitSet(1);
28029
 
28030
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28031
    static {
28032
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28033
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28035
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28036
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28037
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28038
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
28039
    }
28040
 
28041
    public markMissedInventoryUpdatesAsProcessed_args() {
28042
    }
28043
 
28044
    public markMissedInventoryUpdatesAsProcessed_args(
28045
      String itemKey,
28046
      long warehouseId)
28047
    {
28048
      this();
28049
      this.itemKey = itemKey;
28050
      this.warehouseId = warehouseId;
28051
      setWarehouseIdIsSet(true);
28052
    }
28053
 
28054
    /**
28055
     * Performs a deep copy on <i>other</i>.
28056
     */
28057
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
28058
      __isset_bit_vector.clear();
28059
      __isset_bit_vector.or(other.__isset_bit_vector);
28060
      if (other.isSetItemKey()) {
28061
        this.itemKey = other.itemKey;
28062
      }
28063
      this.warehouseId = other.warehouseId;
28064
    }
28065
 
28066
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
28067
      return new markMissedInventoryUpdatesAsProcessed_args(this);
28068
    }
28069
 
28070
    @Override
28071
    public void clear() {
28072
      this.itemKey = null;
28073
      setWarehouseIdIsSet(false);
28074
      this.warehouseId = 0;
28075
    }
28076
 
28077
    public String getItemKey() {
28078
      return this.itemKey;
28079
    }
28080
 
28081
    public void setItemKey(String itemKey) {
28082
      this.itemKey = itemKey;
28083
    }
28084
 
28085
    public void unsetItemKey() {
28086
      this.itemKey = null;
28087
    }
28088
 
28089
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
28090
    public boolean isSetItemKey() {
28091
      return this.itemKey != null;
28092
    }
28093
 
28094
    public void setItemKeyIsSet(boolean value) {
28095
      if (!value) {
28096
        this.itemKey = null;
28097
      }
28098
    }
28099
 
28100
    public long getWarehouseId() {
28101
      return this.warehouseId;
28102
    }
28103
 
28104
    public void setWarehouseId(long warehouseId) {
28105
      this.warehouseId = warehouseId;
28106
      setWarehouseIdIsSet(true);
28107
    }
28108
 
28109
    public void unsetWarehouseId() {
28110
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
28111
    }
28112
 
28113
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
28114
    public boolean isSetWarehouseId() {
28115
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
28116
    }
28117
 
28118
    public void setWarehouseIdIsSet(boolean value) {
28119
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
28120
    }
28121
 
28122
    public void setFieldValue(_Fields field, Object value) {
28123
      switch (field) {
28124
      case ITEM_KEY:
28125
        if (value == null) {
28126
          unsetItemKey();
28127
        } else {
28128
          setItemKey((String)value);
28129
        }
28130
        break;
28131
 
28132
      case WAREHOUSE_ID:
28133
        if (value == null) {
28134
          unsetWarehouseId();
28135
        } else {
28136
          setWarehouseId((Long)value);
28137
        }
28138
        break;
28139
 
28140
      }
28141
    }
28142
 
28143
    public Object getFieldValue(_Fields field) {
28144
      switch (field) {
28145
      case ITEM_KEY:
28146
        return getItemKey();
28147
 
28148
      case WAREHOUSE_ID:
28149
        return Long.valueOf(getWarehouseId());
28150
 
28151
      }
28152
      throw new IllegalStateException();
28153
    }
28154
 
28155
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28156
    public boolean isSet(_Fields field) {
28157
      if (field == null) {
28158
        throw new IllegalArgumentException();
28159
      }
28160
 
28161
      switch (field) {
28162
      case ITEM_KEY:
28163
        return isSetItemKey();
28164
      case WAREHOUSE_ID:
28165
        return isSetWarehouseId();
28166
      }
28167
      throw new IllegalStateException();
28168
    }
28169
 
28170
    @Override
28171
    public boolean equals(Object that) {
28172
      if (that == null)
28173
        return false;
28174
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
28175
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
28176
      return false;
28177
    }
28178
 
28179
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
28180
      if (that == null)
28181
        return false;
28182
 
28183
      boolean this_present_itemKey = true && this.isSetItemKey();
28184
      boolean that_present_itemKey = true && that.isSetItemKey();
28185
      if (this_present_itemKey || that_present_itemKey) {
28186
        if (!(this_present_itemKey && that_present_itemKey))
28187
          return false;
28188
        if (!this.itemKey.equals(that.itemKey))
28189
          return false;
28190
      }
28191
 
28192
      boolean this_present_warehouseId = true;
28193
      boolean that_present_warehouseId = true;
28194
      if (this_present_warehouseId || that_present_warehouseId) {
28195
        if (!(this_present_warehouseId && that_present_warehouseId))
28196
          return false;
28197
        if (this.warehouseId != that.warehouseId)
28198
          return false;
28199
      }
28200
 
28201
      return true;
28202
    }
28203
 
28204
    @Override
28205
    public int hashCode() {
28206
      return 0;
28207
    }
28208
 
28209
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
28210
      if (!getClass().equals(other.getClass())) {
28211
        return getClass().getName().compareTo(other.getClass().getName());
28212
      }
28213
 
28214
      int lastComparison = 0;
28215
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
28216
 
28217
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
28218
      if (lastComparison != 0) {
28219
        return lastComparison;
28220
      }
28221
      if (isSetItemKey()) {
28222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
28223
        if (lastComparison != 0) {
28224
          return lastComparison;
28225
        }
28226
      }
28227
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
28228
      if (lastComparison != 0) {
28229
        return lastComparison;
28230
      }
28231
      if (isSetWarehouseId()) {
28232
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
28233
        if (lastComparison != 0) {
28234
          return lastComparison;
28235
        }
28236
      }
28237
      return 0;
28238
    }
28239
 
28240
    public _Fields fieldForId(int fieldId) {
28241
      return _Fields.findByThriftId(fieldId);
28242
    }
28243
 
28244
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28245
      org.apache.thrift.protocol.TField field;
28246
      iprot.readStructBegin();
28247
      while (true)
28248
      {
28249
        field = iprot.readFieldBegin();
28250
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28251
          break;
28252
        }
28253
        switch (field.id) {
28254
          case 1: // ITEM_KEY
28255
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28256
              this.itemKey = iprot.readString();
28257
            } else { 
28258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28259
            }
28260
            break;
28261
          case 2: // WAREHOUSE_ID
28262
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28263
              this.warehouseId = iprot.readI64();
28264
              setWarehouseIdIsSet(true);
28265
            } else { 
28266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28267
            }
28268
            break;
28269
          default:
28270
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28271
        }
28272
        iprot.readFieldEnd();
28273
      }
28274
      iprot.readStructEnd();
28275
      validate();
28276
    }
28277
 
28278
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28279
      validate();
28280
 
28281
      oprot.writeStructBegin(STRUCT_DESC);
28282
      if (this.itemKey != null) {
28283
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
28284
        oprot.writeString(this.itemKey);
28285
        oprot.writeFieldEnd();
28286
      }
28287
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
28288
      oprot.writeI64(this.warehouseId);
28289
      oprot.writeFieldEnd();
28290
      oprot.writeFieldStop();
28291
      oprot.writeStructEnd();
28292
    }
28293
 
28294
    @Override
28295
    public String toString() {
28296
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
28297
      boolean first = true;
28298
 
28299
      sb.append("itemKey:");
28300
      if (this.itemKey == null) {
28301
        sb.append("null");
28302
      } else {
28303
        sb.append(this.itemKey);
28304
      }
28305
      first = false;
28306
      if (!first) sb.append(", ");
28307
      sb.append("warehouseId:");
28308
      sb.append(this.warehouseId);
28309
      first = false;
28310
      sb.append(")");
28311
      return sb.toString();
28312
    }
28313
 
28314
    public void validate() throws org.apache.thrift.TException {
28315
      // check for required fields
28316
    }
28317
 
28318
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28319
      try {
28320
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28321
      } catch (org.apache.thrift.TException te) {
28322
        throw new java.io.IOException(te);
28323
      }
28324
    }
28325
 
28326
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28327
      try {
28328
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28329
      } catch (org.apache.thrift.TException te) {
28330
        throw new java.io.IOException(te);
28331
      }
28332
    }
28333
 
28334
  }
28335
 
28336
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
28337
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
28338
 
28339
 
28340
 
28341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28343
;
28344
 
28345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28346
 
28347
      static {
28348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28349
          byName.put(field.getFieldName(), field);
28350
        }
28351
      }
28352
 
28353
      /**
28354
       * Find the _Fields constant that matches fieldId, or null if its not found.
28355
       */
28356
      public static _Fields findByThriftId(int fieldId) {
28357
        switch(fieldId) {
28358
          default:
28359
            return null;
28360
        }
28361
      }
28362
 
28363
      /**
28364
       * Find the _Fields constant that matches fieldId, throwing an exception
28365
       * if it is not found.
28366
       */
28367
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28368
        _Fields fields = findByThriftId(fieldId);
28369
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28370
        return fields;
28371
      }
28372
 
28373
      /**
28374
       * Find the _Fields constant that matches name, or null if its not found.
28375
       */
28376
      public static _Fields findByName(String name) {
28377
        return byName.get(name);
28378
      }
28379
 
28380
      private final short _thriftId;
28381
      private final String _fieldName;
28382
 
28383
      _Fields(short thriftId, String fieldName) {
28384
        _thriftId = thriftId;
28385
        _fieldName = fieldName;
28386
      }
28387
 
28388
      public short getThriftFieldId() {
28389
        return _thriftId;
28390
      }
28391
 
28392
      public String getFieldName() {
28393
        return _fieldName;
28394
      }
28395
    }
28396
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28397
    static {
28398
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28399
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28400
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
28401
    }
28402
 
28403
    public markMissedInventoryUpdatesAsProcessed_result() {
28404
    }
28405
 
28406
    /**
28407
     * Performs a deep copy on <i>other</i>.
28408
     */
28409
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
28410
    }
28411
 
28412
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
28413
      return new markMissedInventoryUpdatesAsProcessed_result(this);
28414
    }
28415
 
28416
    @Override
28417
    public void clear() {
28418
    }
28419
 
28420
    public void setFieldValue(_Fields field, Object value) {
28421
      switch (field) {
28422
      }
28423
    }
28424
 
28425
    public Object getFieldValue(_Fields field) {
28426
      switch (field) {
28427
      }
28428
      throw new IllegalStateException();
28429
    }
28430
 
28431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28432
    public boolean isSet(_Fields field) {
28433
      if (field == null) {
28434
        throw new IllegalArgumentException();
28435
      }
28436
 
28437
      switch (field) {
28438
      }
28439
      throw new IllegalStateException();
28440
    }
28441
 
28442
    @Override
28443
    public boolean equals(Object that) {
28444
      if (that == null)
28445
        return false;
28446
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
28447
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
28448
      return false;
28449
    }
28450
 
28451
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
28452
      if (that == null)
28453
        return false;
28454
 
28455
      return true;
28456
    }
28457
 
28458
    @Override
28459
    public int hashCode() {
28460
      return 0;
28461
    }
28462
 
28463
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
28464
      if (!getClass().equals(other.getClass())) {
28465
        return getClass().getName().compareTo(other.getClass().getName());
28466
      }
28467
 
28468
      int lastComparison = 0;
28469
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
28470
 
28471
      return 0;
28472
    }
28473
 
28474
    public _Fields fieldForId(int fieldId) {
28475
      return _Fields.findByThriftId(fieldId);
28476
    }
28477
 
28478
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28479
      org.apache.thrift.protocol.TField field;
28480
      iprot.readStructBegin();
28481
      while (true)
28482
      {
28483
        field = iprot.readFieldBegin();
28484
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28485
          break;
28486
        }
28487
        switch (field.id) {
28488
          default:
28489
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28490
        }
28491
        iprot.readFieldEnd();
28492
      }
28493
      iprot.readStructEnd();
28494
      validate();
28495
    }
28496
 
28497
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28498
      oprot.writeStructBegin(STRUCT_DESC);
28499
 
28500
      oprot.writeFieldStop();
28501
      oprot.writeStructEnd();
28502
    }
28503
 
28504
    @Override
28505
    public String toString() {
28506
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
28507
      boolean first = true;
28508
 
28509
      sb.append(")");
28510
      return sb.toString();
28511
    }
28512
 
28513
    public void validate() throws org.apache.thrift.TException {
28514
      // check for required fields
28515
    }
28516
 
28517
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28518
      try {
28519
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28520
      } catch (org.apache.thrift.TException te) {
28521
        throw new java.io.IOException(te);
28522
      }
28523
    }
28524
 
28525
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28526
      try {
28527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28528
      } catch (org.apache.thrift.TException te) {
28529
        throw new java.io.IOException(te);
28530
      }
28531
    }
28532
 
28533
  }
28534
 
28535
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
28536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
28537
 
28538
 
28539
 
28540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28541
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28542
;
28543
 
28544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28545
 
28546
      static {
28547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28548
          byName.put(field.getFieldName(), field);
28549
        }
28550
      }
28551
 
28552
      /**
28553
       * Find the _Fields constant that matches fieldId, or null if its not found.
28554
       */
28555
      public static _Fields findByThriftId(int fieldId) {
28556
        switch(fieldId) {
28557
          default:
28558
            return null;
28559
        }
28560
      }
28561
 
28562
      /**
28563
       * Find the _Fields constant that matches fieldId, throwing an exception
28564
       * if it is not found.
28565
       */
28566
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28567
        _Fields fields = findByThriftId(fieldId);
28568
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28569
        return fields;
28570
      }
28571
 
28572
      /**
28573
       * Find the _Fields constant that matches name, or null if its not found.
28574
       */
28575
      public static _Fields findByName(String name) {
28576
        return byName.get(name);
28577
      }
28578
 
28579
      private final short _thriftId;
28580
      private final String _fieldName;
28581
 
28582
      _Fields(short thriftId, String fieldName) {
28583
        _thriftId = thriftId;
28584
        _fieldName = fieldName;
28585
      }
28586
 
28587
      public short getThriftFieldId() {
28588
        return _thriftId;
28589
      }
28590
 
28591
      public String getFieldName() {
28592
        return _fieldName;
28593
      }
28594
    }
28595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28596
    static {
28597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28598
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28599
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
28600
    }
28601
 
28602
    public getIgnoredItemKeys_args() {
28603
    }
28604
 
28605
    /**
28606
     * Performs a deep copy on <i>other</i>.
28607
     */
28608
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
28609
    }
28610
 
28611
    public getIgnoredItemKeys_args deepCopy() {
28612
      return new getIgnoredItemKeys_args(this);
28613
    }
28614
 
28615
    @Override
28616
    public void clear() {
28617
    }
28618
 
28619
    public void setFieldValue(_Fields field, Object value) {
28620
      switch (field) {
28621
      }
28622
    }
28623
 
28624
    public Object getFieldValue(_Fields field) {
28625
      switch (field) {
28626
      }
28627
      throw new IllegalStateException();
28628
    }
28629
 
28630
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28631
    public boolean isSet(_Fields field) {
28632
      if (field == null) {
28633
        throw new IllegalArgumentException();
28634
      }
28635
 
28636
      switch (field) {
28637
      }
28638
      throw new IllegalStateException();
28639
    }
28640
 
28641
    @Override
28642
    public boolean equals(Object that) {
28643
      if (that == null)
28644
        return false;
28645
      if (that instanceof getIgnoredItemKeys_args)
28646
        return this.equals((getIgnoredItemKeys_args)that);
28647
      return false;
28648
    }
28649
 
28650
    public boolean equals(getIgnoredItemKeys_args that) {
28651
      if (that == null)
28652
        return false;
28653
 
28654
      return true;
28655
    }
28656
 
28657
    @Override
28658
    public int hashCode() {
28659
      return 0;
28660
    }
28661
 
28662
    public int compareTo(getIgnoredItemKeys_args other) {
28663
      if (!getClass().equals(other.getClass())) {
28664
        return getClass().getName().compareTo(other.getClass().getName());
28665
      }
28666
 
28667
      int lastComparison = 0;
28668
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
28669
 
28670
      return 0;
28671
    }
28672
 
28673
    public _Fields fieldForId(int fieldId) {
28674
      return _Fields.findByThriftId(fieldId);
28675
    }
28676
 
28677
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28678
      org.apache.thrift.protocol.TField field;
28679
      iprot.readStructBegin();
28680
      while (true)
28681
      {
28682
        field = iprot.readFieldBegin();
28683
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28684
          break;
28685
        }
28686
        switch (field.id) {
28687
          default:
28688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28689
        }
28690
        iprot.readFieldEnd();
28691
      }
28692
      iprot.readStructEnd();
28693
      validate();
28694
    }
28695
 
28696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28697
      validate();
28698
 
28699
      oprot.writeStructBegin(STRUCT_DESC);
28700
      oprot.writeFieldStop();
28701
      oprot.writeStructEnd();
28702
    }
28703
 
28704
    @Override
28705
    public String toString() {
28706
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
28707
      boolean first = true;
28708
 
28709
      sb.append(")");
28710
      return sb.toString();
28711
    }
28712
 
28713
    public void validate() throws org.apache.thrift.TException {
28714
      // check for required fields
28715
    }
28716
 
28717
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28718
      try {
28719
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28720
      } catch (org.apache.thrift.TException te) {
28721
        throw new java.io.IOException(te);
28722
      }
28723
    }
28724
 
28725
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28726
      try {
28727
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28728
      } catch (org.apache.thrift.TException te) {
28729
        throw new java.io.IOException(te);
28730
      }
28731
    }
28732
 
28733
  }
28734
 
28735
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
28736
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
28737
 
28738
    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);
28739
 
28740
    private Map<String,Map<Long,Long>> success; // required
28741
 
28742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28744
      SUCCESS((short)0, "success");
28745
 
28746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28747
 
28748
      static {
28749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28750
          byName.put(field.getFieldName(), field);
28751
        }
28752
      }
28753
 
28754
      /**
28755
       * Find the _Fields constant that matches fieldId, or null if its not found.
28756
       */
28757
      public static _Fields findByThriftId(int fieldId) {
28758
        switch(fieldId) {
28759
          case 0: // SUCCESS
28760
            return SUCCESS;
28761
          default:
28762
            return null;
28763
        }
28764
      }
28765
 
28766
      /**
28767
       * Find the _Fields constant that matches fieldId, throwing an exception
28768
       * if it is not found.
28769
       */
28770
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28771
        _Fields fields = findByThriftId(fieldId);
28772
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28773
        return fields;
28774
      }
28775
 
28776
      /**
28777
       * Find the _Fields constant that matches name, or null if its not found.
28778
       */
28779
      public static _Fields findByName(String name) {
28780
        return byName.get(name);
28781
      }
28782
 
28783
      private final short _thriftId;
28784
      private final String _fieldName;
28785
 
28786
      _Fields(short thriftId, String fieldName) {
28787
        _thriftId = thriftId;
28788
        _fieldName = fieldName;
28789
      }
28790
 
28791
      public short getThriftFieldId() {
28792
        return _thriftId;
28793
      }
28794
 
28795
      public String getFieldName() {
28796
        return _fieldName;
28797
      }
28798
    }
28799
 
28800
    // isset id assignments
28801
 
28802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28803
    static {
28804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28805
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28806
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
28807
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
28808
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
28809
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
28810
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
28811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
28813
    }
28814
 
28815
    public getIgnoredItemKeys_result() {
28816
    }
28817
 
28818
    public getIgnoredItemKeys_result(
28819
      Map<String,Map<Long,Long>> success)
28820
    {
28821
      this();
28822
      this.success = success;
28823
    }
28824
 
28825
    /**
28826
     * Performs a deep copy on <i>other</i>.
28827
     */
28828
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
28829
      if (other.isSetSuccess()) {
28830
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
28831
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
28832
 
28833
          String other_element_key = other_element.getKey();
28834
          Map<Long,Long> other_element_value = other_element.getValue();
28835
 
28836
          String __this__success_copy_key = other_element_key;
28837
 
28838
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
28839
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
28840
 
28841
            Long other_element_value_element_key = other_element_value_element.getKey();
28842
            Long other_element_value_element_value = other_element_value_element.getValue();
28843
 
28844
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
28845
 
28846
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
28847
 
28848
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
28849
          }
28850
 
28851
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
28852
        }
28853
        this.success = __this__success;
28854
      }
28855
    }
28856
 
28857
    public getIgnoredItemKeys_result deepCopy() {
28858
      return new getIgnoredItemKeys_result(this);
28859
    }
28860
 
28861
    @Override
28862
    public void clear() {
28863
      this.success = null;
28864
    }
28865
 
28866
    public int getSuccessSize() {
28867
      return (this.success == null) ? 0 : this.success.size();
28868
    }
28869
 
28870
    public void putToSuccess(String key, Map<Long,Long> val) {
28871
      if (this.success == null) {
28872
        this.success = new HashMap<String,Map<Long,Long>>();
28873
      }
28874
      this.success.put(key, val);
28875
    }
28876
 
28877
    public Map<String,Map<Long,Long>> getSuccess() {
28878
      return this.success;
28879
    }
28880
 
28881
    public void setSuccess(Map<String,Map<Long,Long>> success) {
28882
      this.success = success;
28883
    }
28884
 
28885
    public void unsetSuccess() {
28886
      this.success = null;
28887
    }
28888
 
28889
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28890
    public boolean isSetSuccess() {
28891
      return this.success != null;
28892
    }
28893
 
28894
    public void setSuccessIsSet(boolean value) {
28895
      if (!value) {
28896
        this.success = null;
28897
      }
28898
    }
28899
 
28900
    public void setFieldValue(_Fields field, Object value) {
28901
      switch (field) {
28902
      case SUCCESS:
28903
        if (value == null) {
28904
          unsetSuccess();
28905
        } else {
28906
          setSuccess((Map<String,Map<Long,Long>>)value);
28907
        }
28908
        break;
28909
 
28910
      }
28911
    }
28912
 
28913
    public Object getFieldValue(_Fields field) {
28914
      switch (field) {
28915
      case SUCCESS:
28916
        return getSuccess();
28917
 
28918
      }
28919
      throw new IllegalStateException();
28920
    }
28921
 
28922
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28923
    public boolean isSet(_Fields field) {
28924
      if (field == null) {
28925
        throw new IllegalArgumentException();
28926
      }
28927
 
28928
      switch (field) {
28929
      case SUCCESS:
28930
        return isSetSuccess();
28931
      }
28932
      throw new IllegalStateException();
28933
    }
28934
 
28935
    @Override
28936
    public boolean equals(Object that) {
28937
      if (that == null)
28938
        return false;
28939
      if (that instanceof getIgnoredItemKeys_result)
28940
        return this.equals((getIgnoredItemKeys_result)that);
28941
      return false;
28942
    }
28943
 
28944
    public boolean equals(getIgnoredItemKeys_result that) {
28945
      if (that == null)
28946
        return false;
28947
 
28948
      boolean this_present_success = true && this.isSetSuccess();
28949
      boolean that_present_success = true && that.isSetSuccess();
28950
      if (this_present_success || that_present_success) {
28951
        if (!(this_present_success && that_present_success))
28952
          return false;
28953
        if (!this.success.equals(that.success))
28954
          return false;
28955
      }
28956
 
28957
      return true;
28958
    }
28959
 
28960
    @Override
28961
    public int hashCode() {
28962
      return 0;
28963
    }
28964
 
28965
    public int compareTo(getIgnoredItemKeys_result other) {
28966
      if (!getClass().equals(other.getClass())) {
28967
        return getClass().getName().compareTo(other.getClass().getName());
28968
      }
28969
 
28970
      int lastComparison = 0;
28971
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
28972
 
28973
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28974
      if (lastComparison != 0) {
28975
        return lastComparison;
28976
      }
28977
      if (isSetSuccess()) {
28978
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28979
        if (lastComparison != 0) {
28980
          return lastComparison;
28981
        }
28982
      }
28983
      return 0;
28984
    }
28985
 
28986
    public _Fields fieldForId(int fieldId) {
28987
      return _Fields.findByThriftId(fieldId);
28988
    }
28989
 
28990
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28991
      org.apache.thrift.protocol.TField field;
28992
      iprot.readStructBegin();
28993
      while (true)
28994
      {
28995
        field = iprot.readFieldBegin();
28996
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28997
          break;
28998
        }
28999
        switch (field.id) {
29000
          case 0: // SUCCESS
29001
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
29002
              {
8182 amar.kumar 29003
                org.apache.thrift.protocol.TMap _map61 = iprot.readMapBegin();
29004
                this.success = new HashMap<String,Map<Long,Long>>(2*_map61.size);
29005
                for (int _i62 = 0; _i62 < _map61.size; ++_i62)
5945 mandeep.dh 29006
                {
8182 amar.kumar 29007
                  String _key63; // required
29008
                  Map<Long,Long> _val64; // required
29009
                  _key63 = iprot.readString();
5945 mandeep.dh 29010
                  {
8182 amar.kumar 29011
                    org.apache.thrift.protocol.TMap _map65 = iprot.readMapBegin();
29012
                    _val64 = new HashMap<Long,Long>(2*_map65.size);
29013
                    for (int _i66 = 0; _i66 < _map65.size; ++_i66)
5945 mandeep.dh 29014
                    {
8182 amar.kumar 29015
                      long _key67; // required
29016
                      long _val68; // required
29017
                      _key67 = iprot.readI64();
29018
                      _val68 = iprot.readI64();
29019
                      _val64.put(_key67, _val68);
5945 mandeep.dh 29020
                    }
29021
                    iprot.readMapEnd();
29022
                  }
8182 amar.kumar 29023
                  this.success.put(_key63, _val64);
5945 mandeep.dh 29024
                }
29025
                iprot.readMapEnd();
29026
              }
29027
            } else { 
29028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29029
            }
29030
            break;
29031
          default:
29032
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29033
        }
29034
        iprot.readFieldEnd();
29035
      }
29036
      iprot.readStructEnd();
29037
      validate();
29038
    }
29039
 
29040
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29041
      oprot.writeStructBegin(STRUCT_DESC);
29042
 
29043
      if (this.isSetSuccess()) {
29044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29045
        {
29046
          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 29047
          for (Map.Entry<String, Map<Long,Long>> _iter69 : this.success.entrySet())
5945 mandeep.dh 29048
          {
8182 amar.kumar 29049
            oprot.writeString(_iter69.getKey());
5945 mandeep.dh 29050
            {
8182 amar.kumar 29051
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter69.getValue().size()));
29052
              for (Map.Entry<Long, Long> _iter70 : _iter69.getValue().entrySet())
5945 mandeep.dh 29053
              {
8182 amar.kumar 29054
                oprot.writeI64(_iter70.getKey());
29055
                oprot.writeI64(_iter70.getValue());
5945 mandeep.dh 29056
              }
29057
              oprot.writeMapEnd();
29058
            }
29059
          }
29060
          oprot.writeMapEnd();
29061
        }
29062
        oprot.writeFieldEnd();
29063
      }
29064
      oprot.writeFieldStop();
29065
      oprot.writeStructEnd();
29066
    }
29067
 
29068
    @Override
29069
    public String toString() {
29070
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
29071
      boolean first = true;
29072
 
29073
      sb.append("success:");
29074
      if (this.success == null) {
29075
        sb.append("null");
29076
      } else {
29077
        sb.append(this.success);
29078
      }
29079
      first = false;
29080
      sb.append(")");
29081
      return sb.toString();
29082
    }
29083
 
29084
    public void validate() throws org.apache.thrift.TException {
29085
      // check for required fields
29086
    }
29087
 
29088
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29089
      try {
29090
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29091
      } catch (org.apache.thrift.TException te) {
29092
        throw new java.io.IOException(te);
29093
      }
29094
    }
29095
 
29096
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29097
      try {
29098
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29099
      } catch (org.apache.thrift.TException te) {
29100
        throw new java.io.IOException(te);
29101
      }
29102
    }
29103
 
29104
  }
29105
 
29106
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
29107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
29108
 
29109
    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);
29110
    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);
29111
    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);
29112
 
29113
    private long itemId; // required
29114
    private long warehouseId; // required
29115
    private long quantity; // required
29116
 
29117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29119
      ITEM_ID((short)1, "itemId"),
29120
      WAREHOUSE_ID((short)2, "warehouseId"),
29121
      QUANTITY((short)3, "quantity");
29122
 
29123
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29124
 
29125
      static {
29126
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29127
          byName.put(field.getFieldName(), field);
29128
        }
29129
      }
29130
 
29131
      /**
29132
       * Find the _Fields constant that matches fieldId, or null if its not found.
29133
       */
29134
      public static _Fields findByThriftId(int fieldId) {
29135
        switch(fieldId) {
29136
          case 1: // ITEM_ID
29137
            return ITEM_ID;
29138
          case 2: // WAREHOUSE_ID
29139
            return WAREHOUSE_ID;
29140
          case 3: // QUANTITY
29141
            return QUANTITY;
29142
          default:
29143
            return null;
29144
        }
29145
      }
29146
 
29147
      /**
29148
       * Find the _Fields constant that matches fieldId, throwing an exception
29149
       * if it is not found.
29150
       */
29151
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29152
        _Fields fields = findByThriftId(fieldId);
29153
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29154
        return fields;
29155
      }
29156
 
29157
      /**
29158
       * Find the _Fields constant that matches name, or null if its not found.
29159
       */
29160
      public static _Fields findByName(String name) {
29161
        return byName.get(name);
29162
      }
29163
 
29164
      private final short _thriftId;
29165
      private final String _fieldName;
29166
 
29167
      _Fields(short thriftId, String fieldName) {
29168
        _thriftId = thriftId;
29169
        _fieldName = fieldName;
29170
      }
29171
 
29172
      public short getThriftFieldId() {
29173
        return _thriftId;
29174
      }
29175
 
29176
      public String getFieldName() {
29177
        return _fieldName;
29178
      }
29179
    }
29180
 
29181
    // isset id assignments
29182
    private static final int __ITEMID_ISSET_ID = 0;
29183
    private static final int __WAREHOUSEID_ISSET_ID = 1;
29184
    private static final int __QUANTITY_ISSET_ID = 2;
29185
    private BitSet __isset_bit_vector = new BitSet(3);
29186
 
29187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29188
    static {
29189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29190
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29191
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29192
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29193
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29194
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29195
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29196
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29197
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
29198
    }
29199
 
29200
    public addBadInventory_args() {
29201
    }
29202
 
29203
    public addBadInventory_args(
29204
      long itemId,
29205
      long warehouseId,
29206
      long quantity)
29207
    {
29208
      this();
29209
      this.itemId = itemId;
29210
      setItemIdIsSet(true);
29211
      this.warehouseId = warehouseId;
29212
      setWarehouseIdIsSet(true);
29213
      this.quantity = quantity;
29214
      setQuantityIsSet(true);
29215
    }
29216
 
29217
    /**
29218
     * Performs a deep copy on <i>other</i>.
29219
     */
29220
    public addBadInventory_args(addBadInventory_args other) {
29221
      __isset_bit_vector.clear();
29222
      __isset_bit_vector.or(other.__isset_bit_vector);
29223
      this.itemId = other.itemId;
29224
      this.warehouseId = other.warehouseId;
29225
      this.quantity = other.quantity;
29226
    }
29227
 
29228
    public addBadInventory_args deepCopy() {
29229
      return new addBadInventory_args(this);
29230
    }
29231
 
29232
    @Override
29233
    public void clear() {
29234
      setItemIdIsSet(false);
29235
      this.itemId = 0;
29236
      setWarehouseIdIsSet(false);
29237
      this.warehouseId = 0;
29238
      setQuantityIsSet(false);
29239
      this.quantity = 0;
29240
    }
29241
 
29242
    public long getItemId() {
29243
      return this.itemId;
29244
    }
29245
 
29246
    public void setItemId(long itemId) {
29247
      this.itemId = itemId;
29248
      setItemIdIsSet(true);
29249
    }
29250
 
29251
    public void unsetItemId() {
29252
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
29253
    }
29254
 
29255
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
29256
    public boolean isSetItemId() {
29257
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
29258
    }
29259
 
29260
    public void setItemIdIsSet(boolean value) {
29261
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
29262
    }
29263
 
29264
    public long getWarehouseId() {
29265
      return this.warehouseId;
29266
    }
29267
 
29268
    public void setWarehouseId(long warehouseId) {
29269
      this.warehouseId = warehouseId;
29270
      setWarehouseIdIsSet(true);
29271
    }
29272
 
29273
    public void unsetWarehouseId() {
29274
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
29275
    }
29276
 
29277
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
29278
    public boolean isSetWarehouseId() {
29279
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
29280
    }
29281
 
29282
    public void setWarehouseIdIsSet(boolean value) {
29283
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
29284
    }
29285
 
29286
    public long getQuantity() {
29287
      return this.quantity;
29288
    }
29289
 
29290
    public void setQuantity(long quantity) {
29291
      this.quantity = quantity;
29292
      setQuantityIsSet(true);
29293
    }
29294
 
29295
    public void unsetQuantity() {
29296
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
29297
    }
29298
 
29299
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
29300
    public boolean isSetQuantity() {
29301
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
29302
    }
29303
 
29304
    public void setQuantityIsSet(boolean value) {
29305
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
29306
    }
29307
 
29308
    public void setFieldValue(_Fields field, Object value) {
29309
      switch (field) {
29310
      case ITEM_ID:
29311
        if (value == null) {
29312
          unsetItemId();
29313
        } else {
29314
          setItemId((Long)value);
29315
        }
29316
        break;
29317
 
29318
      case WAREHOUSE_ID:
29319
        if (value == null) {
29320
          unsetWarehouseId();
29321
        } else {
29322
          setWarehouseId((Long)value);
29323
        }
29324
        break;
29325
 
29326
      case QUANTITY:
29327
        if (value == null) {
29328
          unsetQuantity();
29329
        } else {
29330
          setQuantity((Long)value);
29331
        }
29332
        break;
29333
 
29334
      }
29335
    }
29336
 
29337
    public Object getFieldValue(_Fields field) {
29338
      switch (field) {
29339
      case ITEM_ID:
29340
        return Long.valueOf(getItemId());
29341
 
29342
      case WAREHOUSE_ID:
29343
        return Long.valueOf(getWarehouseId());
29344
 
29345
      case QUANTITY:
29346
        return Long.valueOf(getQuantity());
29347
 
29348
      }
29349
      throw new IllegalStateException();
29350
    }
29351
 
29352
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29353
    public boolean isSet(_Fields field) {
29354
      if (field == null) {
29355
        throw new IllegalArgumentException();
29356
      }
29357
 
29358
      switch (field) {
29359
      case ITEM_ID:
29360
        return isSetItemId();
29361
      case WAREHOUSE_ID:
29362
        return isSetWarehouseId();
29363
      case QUANTITY:
29364
        return isSetQuantity();
29365
      }
29366
      throw new IllegalStateException();
29367
    }
29368
 
29369
    @Override
29370
    public boolean equals(Object that) {
29371
      if (that == null)
29372
        return false;
29373
      if (that instanceof addBadInventory_args)
29374
        return this.equals((addBadInventory_args)that);
29375
      return false;
29376
    }
29377
 
29378
    public boolean equals(addBadInventory_args that) {
29379
      if (that == null)
29380
        return false;
29381
 
29382
      boolean this_present_itemId = true;
29383
      boolean that_present_itemId = true;
29384
      if (this_present_itemId || that_present_itemId) {
29385
        if (!(this_present_itemId && that_present_itemId))
29386
          return false;
29387
        if (this.itemId != that.itemId)
29388
          return false;
29389
      }
29390
 
29391
      boolean this_present_warehouseId = true;
29392
      boolean that_present_warehouseId = true;
29393
      if (this_present_warehouseId || that_present_warehouseId) {
29394
        if (!(this_present_warehouseId && that_present_warehouseId))
29395
          return false;
29396
        if (this.warehouseId != that.warehouseId)
29397
          return false;
29398
      }
29399
 
29400
      boolean this_present_quantity = true;
29401
      boolean that_present_quantity = true;
29402
      if (this_present_quantity || that_present_quantity) {
29403
        if (!(this_present_quantity && that_present_quantity))
29404
          return false;
29405
        if (this.quantity != that.quantity)
29406
          return false;
29407
      }
29408
 
29409
      return true;
29410
    }
29411
 
29412
    @Override
29413
    public int hashCode() {
29414
      return 0;
29415
    }
29416
 
29417
    public int compareTo(addBadInventory_args other) {
29418
      if (!getClass().equals(other.getClass())) {
29419
        return getClass().getName().compareTo(other.getClass().getName());
29420
      }
29421
 
29422
      int lastComparison = 0;
29423
      addBadInventory_args typedOther = (addBadInventory_args)other;
29424
 
29425
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
29426
      if (lastComparison != 0) {
29427
        return lastComparison;
29428
      }
29429
      if (isSetItemId()) {
29430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
29431
        if (lastComparison != 0) {
29432
          return lastComparison;
29433
        }
29434
      }
29435
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
29436
      if (lastComparison != 0) {
29437
        return lastComparison;
29438
      }
29439
      if (isSetWarehouseId()) {
29440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
29441
        if (lastComparison != 0) {
29442
          return lastComparison;
29443
        }
29444
      }
29445
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
29446
      if (lastComparison != 0) {
29447
        return lastComparison;
29448
      }
29449
      if (isSetQuantity()) {
29450
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
29451
        if (lastComparison != 0) {
29452
          return lastComparison;
29453
        }
29454
      }
29455
      return 0;
29456
    }
29457
 
29458
    public _Fields fieldForId(int fieldId) {
29459
      return _Fields.findByThriftId(fieldId);
29460
    }
29461
 
29462
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29463
      org.apache.thrift.protocol.TField field;
29464
      iprot.readStructBegin();
29465
      while (true)
29466
      {
29467
        field = iprot.readFieldBegin();
29468
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29469
          break;
29470
        }
29471
        switch (field.id) {
29472
          case 1: // ITEM_ID
29473
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29474
              this.itemId = iprot.readI64();
29475
              setItemIdIsSet(true);
29476
            } else { 
29477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29478
            }
29479
            break;
29480
          case 2: // WAREHOUSE_ID
29481
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29482
              this.warehouseId = iprot.readI64();
29483
              setWarehouseIdIsSet(true);
29484
            } else { 
29485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29486
            }
29487
            break;
29488
          case 3: // QUANTITY
29489
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29490
              this.quantity = iprot.readI64();
29491
              setQuantityIsSet(true);
29492
            } else { 
29493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29494
            }
29495
            break;
29496
          default:
29497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29498
        }
29499
        iprot.readFieldEnd();
29500
      }
29501
      iprot.readStructEnd();
29502
      validate();
29503
    }
29504
 
29505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29506
      validate();
29507
 
29508
      oprot.writeStructBegin(STRUCT_DESC);
29509
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
29510
      oprot.writeI64(this.itemId);
29511
      oprot.writeFieldEnd();
29512
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
29513
      oprot.writeI64(this.warehouseId);
29514
      oprot.writeFieldEnd();
29515
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
29516
      oprot.writeI64(this.quantity);
29517
      oprot.writeFieldEnd();
29518
      oprot.writeFieldStop();
29519
      oprot.writeStructEnd();
29520
    }
29521
 
29522
    @Override
29523
    public String toString() {
29524
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
29525
      boolean first = true;
29526
 
29527
      sb.append("itemId:");
29528
      sb.append(this.itemId);
29529
      first = false;
29530
      if (!first) sb.append(", ");
29531
      sb.append("warehouseId:");
29532
      sb.append(this.warehouseId);
29533
      first = false;
29534
      if (!first) sb.append(", ");
29535
      sb.append("quantity:");
29536
      sb.append(this.quantity);
29537
      first = false;
29538
      sb.append(")");
29539
      return sb.toString();
29540
    }
29541
 
29542
    public void validate() throws org.apache.thrift.TException {
29543
      // check for required fields
29544
    }
29545
 
29546
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29547
      try {
29548
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29549
      } catch (org.apache.thrift.TException te) {
29550
        throw new java.io.IOException(te);
29551
      }
29552
    }
29553
 
29554
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29555
      try {
29556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29557
      } catch (org.apache.thrift.TException te) {
29558
        throw new java.io.IOException(te);
29559
      }
29560
    }
29561
 
29562
  }
29563
 
29564
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
29565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
29566
 
29567
    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);
29568
 
29569
    private InventoryServiceException cex; // required
29570
 
29571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29573
      CEX((short)1, "cex");
29574
 
29575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29576
 
29577
      static {
29578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29579
          byName.put(field.getFieldName(), field);
29580
        }
29581
      }
29582
 
29583
      /**
29584
       * Find the _Fields constant that matches fieldId, or null if its not found.
29585
       */
29586
      public static _Fields findByThriftId(int fieldId) {
29587
        switch(fieldId) {
29588
          case 1: // CEX
29589
            return CEX;
29590
          default:
29591
            return null;
29592
        }
29593
      }
29594
 
29595
      /**
29596
       * Find the _Fields constant that matches fieldId, throwing an exception
29597
       * if it is not found.
29598
       */
29599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29600
        _Fields fields = findByThriftId(fieldId);
29601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29602
        return fields;
29603
      }
29604
 
29605
      /**
29606
       * Find the _Fields constant that matches name, or null if its not found.
29607
       */
29608
      public static _Fields findByName(String name) {
29609
        return byName.get(name);
29610
      }
29611
 
29612
      private final short _thriftId;
29613
      private final String _fieldName;
29614
 
29615
      _Fields(short thriftId, String fieldName) {
29616
        _thriftId = thriftId;
29617
        _fieldName = fieldName;
29618
      }
29619
 
29620
      public short getThriftFieldId() {
29621
        return _thriftId;
29622
      }
29623
 
29624
      public String getFieldName() {
29625
        return _fieldName;
29626
      }
29627
    }
29628
 
29629
    // isset id assignments
29630
 
29631
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29632
    static {
29633
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29634
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29636
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29637
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
29638
    }
29639
 
29640
    public addBadInventory_result() {
29641
    }
29642
 
29643
    public addBadInventory_result(
29644
      InventoryServiceException cex)
29645
    {
29646
      this();
29647
      this.cex = cex;
29648
    }
29649
 
29650
    /**
29651
     * Performs a deep copy on <i>other</i>.
29652
     */
29653
    public addBadInventory_result(addBadInventory_result other) {
29654
      if (other.isSetCex()) {
29655
        this.cex = new InventoryServiceException(other.cex);
29656
      }
29657
    }
29658
 
29659
    public addBadInventory_result deepCopy() {
29660
      return new addBadInventory_result(this);
29661
    }
29662
 
29663
    @Override
29664
    public void clear() {
29665
      this.cex = null;
29666
    }
29667
 
29668
    public InventoryServiceException getCex() {
29669
      return this.cex;
29670
    }
29671
 
29672
    public void setCex(InventoryServiceException cex) {
29673
      this.cex = cex;
29674
    }
29675
 
29676
    public void unsetCex() {
29677
      this.cex = null;
29678
    }
29679
 
29680
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
29681
    public boolean isSetCex() {
29682
      return this.cex != null;
29683
    }
29684
 
29685
    public void setCexIsSet(boolean value) {
29686
      if (!value) {
29687
        this.cex = null;
29688
      }
29689
    }
29690
 
29691
    public void setFieldValue(_Fields field, Object value) {
29692
      switch (field) {
29693
      case CEX:
29694
        if (value == null) {
29695
          unsetCex();
29696
        } else {
29697
          setCex((InventoryServiceException)value);
29698
        }
29699
        break;
29700
 
29701
      }
29702
    }
29703
 
29704
    public Object getFieldValue(_Fields field) {
29705
      switch (field) {
29706
      case CEX:
29707
        return getCex();
29708
 
29709
      }
29710
      throw new IllegalStateException();
29711
    }
29712
 
29713
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29714
    public boolean isSet(_Fields field) {
29715
      if (field == null) {
29716
        throw new IllegalArgumentException();
29717
      }
29718
 
29719
      switch (field) {
29720
      case CEX:
29721
        return isSetCex();
29722
      }
29723
      throw new IllegalStateException();
29724
    }
29725
 
29726
    @Override
29727
    public boolean equals(Object that) {
29728
      if (that == null)
29729
        return false;
29730
      if (that instanceof addBadInventory_result)
29731
        return this.equals((addBadInventory_result)that);
29732
      return false;
29733
    }
29734
 
29735
    public boolean equals(addBadInventory_result that) {
29736
      if (that == null)
29737
        return false;
29738
 
29739
      boolean this_present_cex = true && this.isSetCex();
29740
      boolean that_present_cex = true && that.isSetCex();
29741
      if (this_present_cex || that_present_cex) {
29742
        if (!(this_present_cex && that_present_cex))
29743
          return false;
29744
        if (!this.cex.equals(that.cex))
29745
          return false;
29746
      }
29747
 
29748
      return true;
29749
    }
29750
 
29751
    @Override
29752
    public int hashCode() {
29753
      return 0;
29754
    }
29755
 
29756
    public int compareTo(addBadInventory_result other) {
29757
      if (!getClass().equals(other.getClass())) {
29758
        return getClass().getName().compareTo(other.getClass().getName());
29759
      }
29760
 
29761
      int lastComparison = 0;
29762
      addBadInventory_result typedOther = (addBadInventory_result)other;
29763
 
29764
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
29765
      if (lastComparison != 0) {
29766
        return lastComparison;
29767
      }
29768
      if (isSetCex()) {
29769
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
29770
        if (lastComparison != 0) {
29771
          return lastComparison;
29772
        }
29773
      }
29774
      return 0;
29775
    }
29776
 
29777
    public _Fields fieldForId(int fieldId) {
29778
      return _Fields.findByThriftId(fieldId);
29779
    }
29780
 
29781
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29782
      org.apache.thrift.protocol.TField field;
29783
      iprot.readStructBegin();
29784
      while (true)
29785
      {
29786
        field = iprot.readFieldBegin();
29787
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29788
          break;
29789
        }
29790
        switch (field.id) {
29791
          case 1: // CEX
29792
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29793
              this.cex = new InventoryServiceException();
29794
              this.cex.read(iprot);
29795
            } else { 
29796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29797
            }
29798
            break;
29799
          default:
29800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29801
        }
29802
        iprot.readFieldEnd();
29803
      }
29804
      iprot.readStructEnd();
29805
      validate();
29806
    }
29807
 
29808
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29809
      oprot.writeStructBegin(STRUCT_DESC);
29810
 
29811
      if (this.isSetCex()) {
29812
        oprot.writeFieldBegin(CEX_FIELD_DESC);
29813
        this.cex.write(oprot);
29814
        oprot.writeFieldEnd();
29815
      }
29816
      oprot.writeFieldStop();
29817
      oprot.writeStructEnd();
29818
    }
29819
 
29820
    @Override
29821
    public String toString() {
29822
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
29823
      boolean first = true;
29824
 
29825
      sb.append("cex:");
29826
      if (this.cex == null) {
29827
        sb.append("null");
29828
      } else {
29829
        sb.append(this.cex);
29830
      }
29831
      first = false;
29832
      sb.append(")");
29833
      return sb.toString();
29834
    }
29835
 
29836
    public void validate() throws org.apache.thrift.TException {
29837
      // check for required fields
29838
    }
29839
 
29840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29841
      try {
29842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29843
      } catch (org.apache.thrift.TException te) {
29844
        throw new java.io.IOException(te);
29845
      }
29846
    }
29847
 
29848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29849
      try {
29850
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29851
      } catch (org.apache.thrift.TException te) {
29852
        throw new java.io.IOException(te);
29853
      }
29854
    }
29855
 
29856
  }
29857
 
29858
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
29859
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
29860
 
29861
 
29862
 
29863
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29864
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29865
;
29866
 
29867
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29868
 
29869
      static {
29870
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29871
          byName.put(field.getFieldName(), field);
29872
        }
29873
      }
29874
 
29875
      /**
29876
       * Find the _Fields constant that matches fieldId, or null if its not found.
29877
       */
29878
      public static _Fields findByThriftId(int fieldId) {
29879
        switch(fieldId) {
29880
          default:
29881
            return null;
29882
        }
29883
      }
29884
 
29885
      /**
29886
       * Find the _Fields constant that matches fieldId, throwing an exception
29887
       * if it is not found.
29888
       */
29889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29890
        _Fields fields = findByThriftId(fieldId);
29891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29892
        return fields;
29893
      }
29894
 
29895
      /**
29896
       * Find the _Fields constant that matches name, or null if its not found.
29897
       */
29898
      public static _Fields findByName(String name) {
29899
        return byName.get(name);
29900
      }
29901
 
29902
      private final short _thriftId;
29903
      private final String _fieldName;
29904
 
29905
      _Fields(short thriftId, String fieldName) {
29906
        _thriftId = thriftId;
29907
        _fieldName = fieldName;
29908
      }
29909
 
29910
      public short getThriftFieldId() {
29911
        return _thriftId;
29912
      }
29913
 
29914
      public String getFieldName() {
29915
        return _fieldName;
29916
      }
29917
    }
29918
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29919
    static {
29920
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
29923
    }
29924
 
29925
    public getShippingLocations_args() {
29926
    }
29927
 
29928
    /**
29929
     * Performs a deep copy on <i>other</i>.
29930
     */
29931
    public getShippingLocations_args(getShippingLocations_args other) {
29932
    }
29933
 
29934
    public getShippingLocations_args deepCopy() {
29935
      return new getShippingLocations_args(this);
29936
    }
29937
 
29938
    @Override
29939
    public void clear() {
29940
    }
29941
 
29942
    public void setFieldValue(_Fields field, Object value) {
29943
      switch (field) {
29944
      }
29945
    }
29946
 
29947
    public Object getFieldValue(_Fields field) {
29948
      switch (field) {
29949
      }
29950
      throw new IllegalStateException();
29951
    }
29952
 
29953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29954
    public boolean isSet(_Fields field) {
29955
      if (field == null) {
29956
        throw new IllegalArgumentException();
29957
      }
29958
 
29959
      switch (field) {
29960
      }
29961
      throw new IllegalStateException();
29962
    }
29963
 
29964
    @Override
29965
    public boolean equals(Object that) {
29966
      if (that == null)
29967
        return false;
29968
      if (that instanceof getShippingLocations_args)
29969
        return this.equals((getShippingLocations_args)that);
29970
      return false;
29971
    }
29972
 
29973
    public boolean equals(getShippingLocations_args that) {
29974
      if (that == null)
29975
        return false;
29976
 
29977
      return true;
29978
    }
29979
 
29980
    @Override
29981
    public int hashCode() {
29982
      return 0;
29983
    }
29984
 
29985
    public int compareTo(getShippingLocations_args other) {
29986
      if (!getClass().equals(other.getClass())) {
29987
        return getClass().getName().compareTo(other.getClass().getName());
29988
      }
29989
 
29990
      int lastComparison = 0;
29991
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
29992
 
29993
      return 0;
29994
    }
29995
 
29996
    public _Fields fieldForId(int fieldId) {
29997
      return _Fields.findByThriftId(fieldId);
29998
    }
29999
 
30000
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30001
      org.apache.thrift.protocol.TField field;
30002
      iprot.readStructBegin();
30003
      while (true)
30004
      {
30005
        field = iprot.readFieldBegin();
30006
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30007
          break;
30008
        }
30009
        switch (field.id) {
30010
          default:
30011
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30012
        }
30013
        iprot.readFieldEnd();
30014
      }
30015
      iprot.readStructEnd();
30016
      validate();
30017
    }
30018
 
30019
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30020
      validate();
30021
 
30022
      oprot.writeStructBegin(STRUCT_DESC);
30023
      oprot.writeFieldStop();
30024
      oprot.writeStructEnd();
30025
    }
30026
 
30027
    @Override
30028
    public String toString() {
30029
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
30030
      boolean first = true;
30031
 
30032
      sb.append(")");
30033
      return sb.toString();
30034
    }
30035
 
30036
    public void validate() throws org.apache.thrift.TException {
30037
      // check for required fields
30038
    }
30039
 
30040
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30041
      try {
30042
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30043
      } catch (org.apache.thrift.TException te) {
30044
        throw new java.io.IOException(te);
30045
      }
30046
    }
30047
 
30048
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30049
      try {
30050
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30051
      } catch (org.apache.thrift.TException te) {
30052
        throw new java.io.IOException(te);
30053
      }
30054
    }
30055
 
30056
  }
30057
 
30058
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
30059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
30060
 
30061
    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);
30062
 
30063
    private List<Warehouse> success; // required
30064
 
30065
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30066
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30067
      SUCCESS((short)0, "success");
30068
 
30069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30070
 
30071
      static {
30072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30073
          byName.put(field.getFieldName(), field);
30074
        }
30075
      }
30076
 
30077
      /**
30078
       * Find the _Fields constant that matches fieldId, or null if its not found.
30079
       */
30080
      public static _Fields findByThriftId(int fieldId) {
30081
        switch(fieldId) {
30082
          case 0: // SUCCESS
30083
            return SUCCESS;
30084
          default:
30085
            return null;
30086
        }
30087
      }
30088
 
30089
      /**
30090
       * Find the _Fields constant that matches fieldId, throwing an exception
30091
       * if it is not found.
30092
       */
30093
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30094
        _Fields fields = findByThriftId(fieldId);
30095
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30096
        return fields;
30097
      }
30098
 
30099
      /**
30100
       * Find the _Fields constant that matches name, or null if its not found.
30101
       */
30102
      public static _Fields findByName(String name) {
30103
        return byName.get(name);
30104
      }
30105
 
30106
      private final short _thriftId;
30107
      private final String _fieldName;
30108
 
30109
      _Fields(short thriftId, String fieldName) {
30110
        _thriftId = thriftId;
30111
        _fieldName = fieldName;
30112
      }
30113
 
30114
      public short getThriftFieldId() {
30115
        return _thriftId;
30116
      }
30117
 
30118
      public String getFieldName() {
30119
        return _fieldName;
30120
      }
30121
    }
30122
 
30123
    // isset id assignments
30124
 
30125
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30126
    static {
30127
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30128
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30129
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30130
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
30131
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30132
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
30133
    }
30134
 
30135
    public getShippingLocations_result() {
30136
    }
30137
 
30138
    public getShippingLocations_result(
30139
      List<Warehouse> success)
30140
    {
30141
      this();
30142
      this.success = success;
30143
    }
30144
 
30145
    /**
30146
     * Performs a deep copy on <i>other</i>.
30147
     */
30148
    public getShippingLocations_result(getShippingLocations_result other) {
30149
      if (other.isSetSuccess()) {
30150
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
30151
        for (Warehouse other_element : other.success) {
30152
          __this__success.add(new Warehouse(other_element));
30153
        }
30154
        this.success = __this__success;
30155
      }
30156
    }
30157
 
30158
    public getShippingLocations_result deepCopy() {
30159
      return new getShippingLocations_result(this);
30160
    }
30161
 
30162
    @Override
30163
    public void clear() {
30164
      this.success = null;
30165
    }
30166
 
30167
    public int getSuccessSize() {
30168
      return (this.success == null) ? 0 : this.success.size();
30169
    }
30170
 
30171
    public java.util.Iterator<Warehouse> getSuccessIterator() {
30172
      return (this.success == null) ? null : this.success.iterator();
30173
    }
30174
 
30175
    public void addToSuccess(Warehouse elem) {
30176
      if (this.success == null) {
30177
        this.success = new ArrayList<Warehouse>();
30178
      }
30179
      this.success.add(elem);
30180
    }
30181
 
30182
    public List<Warehouse> getSuccess() {
30183
      return this.success;
30184
    }
30185
 
30186
    public void setSuccess(List<Warehouse> success) {
30187
      this.success = success;
30188
    }
30189
 
30190
    public void unsetSuccess() {
30191
      this.success = null;
30192
    }
30193
 
30194
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30195
    public boolean isSetSuccess() {
30196
      return this.success != null;
30197
    }
30198
 
30199
    public void setSuccessIsSet(boolean value) {
30200
      if (!value) {
30201
        this.success = null;
30202
      }
30203
    }
30204
 
30205
    public void setFieldValue(_Fields field, Object value) {
30206
      switch (field) {
30207
      case SUCCESS:
30208
        if (value == null) {
30209
          unsetSuccess();
30210
        } else {
30211
          setSuccess((List<Warehouse>)value);
30212
        }
30213
        break;
30214
 
30215
      }
30216
    }
30217
 
30218
    public Object getFieldValue(_Fields field) {
30219
      switch (field) {
30220
      case SUCCESS:
30221
        return getSuccess();
30222
 
30223
      }
30224
      throw new IllegalStateException();
30225
    }
30226
 
30227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30228
    public boolean isSet(_Fields field) {
30229
      if (field == null) {
30230
        throw new IllegalArgumentException();
30231
      }
30232
 
30233
      switch (field) {
30234
      case SUCCESS:
30235
        return isSetSuccess();
30236
      }
30237
      throw new IllegalStateException();
30238
    }
30239
 
30240
    @Override
30241
    public boolean equals(Object that) {
30242
      if (that == null)
30243
        return false;
30244
      if (that instanceof getShippingLocations_result)
30245
        return this.equals((getShippingLocations_result)that);
30246
      return false;
30247
    }
30248
 
30249
    public boolean equals(getShippingLocations_result that) {
30250
      if (that == null)
30251
        return false;
30252
 
30253
      boolean this_present_success = true && this.isSetSuccess();
30254
      boolean that_present_success = true && that.isSetSuccess();
30255
      if (this_present_success || that_present_success) {
30256
        if (!(this_present_success && that_present_success))
30257
          return false;
30258
        if (!this.success.equals(that.success))
30259
          return false;
30260
      }
30261
 
30262
      return true;
30263
    }
30264
 
30265
    @Override
30266
    public int hashCode() {
30267
      return 0;
30268
    }
30269
 
30270
    public int compareTo(getShippingLocations_result other) {
30271
      if (!getClass().equals(other.getClass())) {
30272
        return getClass().getName().compareTo(other.getClass().getName());
30273
      }
30274
 
30275
      int lastComparison = 0;
30276
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
30277
 
30278
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30279
      if (lastComparison != 0) {
30280
        return lastComparison;
30281
      }
30282
      if (isSetSuccess()) {
30283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30284
        if (lastComparison != 0) {
30285
          return lastComparison;
30286
        }
30287
      }
30288
      return 0;
30289
    }
30290
 
30291
    public _Fields fieldForId(int fieldId) {
30292
      return _Fields.findByThriftId(fieldId);
30293
    }
30294
 
30295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30296
      org.apache.thrift.protocol.TField field;
30297
      iprot.readStructBegin();
30298
      while (true)
30299
      {
30300
        field = iprot.readFieldBegin();
30301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30302
          break;
30303
        }
30304
        switch (field.id) {
30305
          case 0: // SUCCESS
30306
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30307
              {
8182 amar.kumar 30308
                org.apache.thrift.protocol.TList _list71 = iprot.readListBegin();
30309
                this.success = new ArrayList<Warehouse>(_list71.size);
30310
                for (int _i72 = 0; _i72 < _list71.size; ++_i72)
5945 mandeep.dh 30311
                {
8182 amar.kumar 30312
                  Warehouse _elem73; // required
30313
                  _elem73 = new Warehouse();
30314
                  _elem73.read(iprot);
30315
                  this.success.add(_elem73);
5945 mandeep.dh 30316
                }
30317
                iprot.readListEnd();
30318
              }
30319
            } else { 
30320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30321
            }
30322
            break;
30323
          default:
30324
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30325
        }
30326
        iprot.readFieldEnd();
30327
      }
30328
      iprot.readStructEnd();
30329
      validate();
30330
    }
30331
 
30332
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30333
      oprot.writeStructBegin(STRUCT_DESC);
30334
 
30335
      if (this.isSetSuccess()) {
30336
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30337
        {
30338
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 30339
          for (Warehouse _iter74 : this.success)
5945 mandeep.dh 30340
          {
8182 amar.kumar 30341
            _iter74.write(oprot);
5945 mandeep.dh 30342
          }
30343
          oprot.writeListEnd();
30344
        }
30345
        oprot.writeFieldEnd();
30346
      }
30347
      oprot.writeFieldStop();
30348
      oprot.writeStructEnd();
30349
    }
30350
 
30351
    @Override
30352
    public String toString() {
30353
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
30354
      boolean first = true;
30355
 
30356
      sb.append("success:");
30357
      if (this.success == null) {
30358
        sb.append("null");
30359
      } else {
30360
        sb.append(this.success);
30361
      }
30362
      first = false;
30363
      sb.append(")");
30364
      return sb.toString();
30365
    }
30366
 
30367
    public void validate() throws org.apache.thrift.TException {
30368
      // check for required fields
30369
    }
30370
 
30371
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30372
      try {
30373
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30374
      } catch (org.apache.thrift.TException te) {
30375
        throw new java.io.IOException(te);
30376
      }
30377
    }
30378
 
30379
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30380
      try {
30381
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30382
      } catch (org.apache.thrift.TException te) {
30383
        throw new java.io.IOException(te);
30384
      }
30385
    }
30386
 
30387
  }
30388
 
30389
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
30390
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
30391
 
30392
 
30393
 
30394
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30395
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30396
;
30397
 
30398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30399
 
30400
      static {
30401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30402
          byName.put(field.getFieldName(), field);
30403
        }
30404
      }
30405
 
30406
      /**
30407
       * Find the _Fields constant that matches fieldId, or null if its not found.
30408
       */
30409
      public static _Fields findByThriftId(int fieldId) {
30410
        switch(fieldId) {
30411
          default:
30412
            return null;
30413
        }
30414
      }
30415
 
30416
      /**
30417
       * Find the _Fields constant that matches fieldId, throwing an exception
30418
       * if it is not found.
30419
       */
30420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30421
        _Fields fields = findByThriftId(fieldId);
30422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30423
        return fields;
30424
      }
30425
 
30426
      /**
30427
       * Find the _Fields constant that matches name, or null if its not found.
30428
       */
30429
      public static _Fields findByName(String name) {
30430
        return byName.get(name);
30431
      }
30432
 
30433
      private final short _thriftId;
30434
      private final String _fieldName;
30435
 
30436
      _Fields(short thriftId, String fieldName) {
30437
        _thriftId = thriftId;
30438
        _fieldName = fieldName;
30439
      }
30440
 
30441
      public short getThriftFieldId() {
30442
        return _thriftId;
30443
      }
30444
 
30445
      public String getFieldName() {
30446
        return _fieldName;
30447
      }
30448
    }
30449
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30450
    static {
30451
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30452
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30453
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
30454
    }
30455
 
30456
    public getAllVendorItemMappings_args() {
30457
    }
30458
 
30459
    /**
30460
     * Performs a deep copy on <i>other</i>.
30461
     */
30462
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
30463
    }
30464
 
30465
    public getAllVendorItemMappings_args deepCopy() {
30466
      return new getAllVendorItemMappings_args(this);
30467
    }
30468
 
30469
    @Override
30470
    public void clear() {
30471
    }
30472
 
30473
    public void setFieldValue(_Fields field, Object value) {
30474
      switch (field) {
30475
      }
30476
    }
30477
 
30478
    public Object getFieldValue(_Fields field) {
30479
      switch (field) {
30480
      }
30481
      throw new IllegalStateException();
30482
    }
30483
 
30484
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30485
    public boolean isSet(_Fields field) {
30486
      if (field == null) {
30487
        throw new IllegalArgumentException();
30488
      }
30489
 
30490
      switch (field) {
30491
      }
30492
      throw new IllegalStateException();
30493
    }
30494
 
30495
    @Override
30496
    public boolean equals(Object that) {
30497
      if (that == null)
30498
        return false;
30499
      if (that instanceof getAllVendorItemMappings_args)
30500
        return this.equals((getAllVendorItemMappings_args)that);
30501
      return false;
30502
    }
30503
 
30504
    public boolean equals(getAllVendorItemMappings_args that) {
30505
      if (that == null)
30506
        return false;
30507
 
30508
      return true;
30509
    }
30510
 
30511
    @Override
30512
    public int hashCode() {
30513
      return 0;
30514
    }
30515
 
30516
    public int compareTo(getAllVendorItemMappings_args other) {
30517
      if (!getClass().equals(other.getClass())) {
30518
        return getClass().getName().compareTo(other.getClass().getName());
30519
      }
30520
 
30521
      int lastComparison = 0;
30522
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
30523
 
30524
      return 0;
30525
    }
30526
 
30527
    public _Fields fieldForId(int fieldId) {
30528
      return _Fields.findByThriftId(fieldId);
30529
    }
30530
 
30531
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30532
      org.apache.thrift.protocol.TField field;
30533
      iprot.readStructBegin();
30534
      while (true)
30535
      {
30536
        field = iprot.readFieldBegin();
30537
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30538
          break;
30539
        }
30540
        switch (field.id) {
30541
          default:
30542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30543
        }
30544
        iprot.readFieldEnd();
30545
      }
30546
      iprot.readStructEnd();
30547
      validate();
30548
    }
30549
 
30550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30551
      validate();
30552
 
30553
      oprot.writeStructBegin(STRUCT_DESC);
30554
      oprot.writeFieldStop();
30555
      oprot.writeStructEnd();
30556
    }
30557
 
30558
    @Override
30559
    public String toString() {
30560
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
30561
      boolean first = true;
30562
 
30563
      sb.append(")");
30564
      return sb.toString();
30565
    }
30566
 
30567
    public void validate() throws org.apache.thrift.TException {
30568
      // check for required fields
30569
    }
30570
 
30571
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30572
      try {
30573
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30574
      } catch (org.apache.thrift.TException te) {
30575
        throw new java.io.IOException(te);
30576
      }
30577
    }
30578
 
30579
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30580
      try {
30581
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30582
      } catch (org.apache.thrift.TException te) {
30583
        throw new java.io.IOException(te);
30584
      }
30585
    }
30586
 
30587
  }
30588
 
30589
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
30590
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
30591
 
30592
    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);
30593
 
30594
    private List<VendorItemMapping> success; // required
30595
 
30596
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30597
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30598
      SUCCESS((short)0, "success");
30599
 
30600
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30601
 
30602
      static {
30603
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30604
          byName.put(field.getFieldName(), field);
30605
        }
30606
      }
30607
 
30608
      /**
30609
       * Find the _Fields constant that matches fieldId, or null if its not found.
30610
       */
30611
      public static _Fields findByThriftId(int fieldId) {
30612
        switch(fieldId) {
30613
          case 0: // SUCCESS
30614
            return SUCCESS;
30615
          default:
30616
            return null;
30617
        }
30618
      }
30619
 
30620
      /**
30621
       * Find the _Fields constant that matches fieldId, throwing an exception
30622
       * if it is not found.
30623
       */
30624
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30625
        _Fields fields = findByThriftId(fieldId);
30626
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30627
        return fields;
30628
      }
30629
 
30630
      /**
30631
       * Find the _Fields constant that matches name, or null if its not found.
30632
       */
30633
      public static _Fields findByName(String name) {
30634
        return byName.get(name);
30635
      }
30636
 
30637
      private final short _thriftId;
30638
      private final String _fieldName;
30639
 
30640
      _Fields(short thriftId, String fieldName) {
30641
        _thriftId = thriftId;
30642
        _fieldName = fieldName;
30643
      }
30644
 
30645
      public short getThriftFieldId() {
30646
        return _thriftId;
30647
      }
30648
 
30649
      public String getFieldName() {
30650
        return _fieldName;
30651
      }
30652
    }
30653
 
30654
    // isset id assignments
30655
 
30656
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30657
    static {
30658
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30659
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30660
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30661
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
30662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
30664
    }
30665
 
30666
    public getAllVendorItemMappings_result() {
30667
    }
30668
 
30669
    public getAllVendorItemMappings_result(
30670
      List<VendorItemMapping> success)
30671
    {
30672
      this();
30673
      this.success = success;
30674
    }
30675
 
30676
    /**
30677
     * Performs a deep copy on <i>other</i>.
30678
     */
30679
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
30680
      if (other.isSetSuccess()) {
30681
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
30682
        for (VendorItemMapping other_element : other.success) {
30683
          __this__success.add(new VendorItemMapping(other_element));
30684
        }
30685
        this.success = __this__success;
30686
      }
30687
    }
30688
 
30689
    public getAllVendorItemMappings_result deepCopy() {
30690
      return new getAllVendorItemMappings_result(this);
30691
    }
30692
 
30693
    @Override
30694
    public void clear() {
30695
      this.success = null;
30696
    }
30697
 
30698
    public int getSuccessSize() {
30699
      return (this.success == null) ? 0 : this.success.size();
30700
    }
30701
 
30702
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
30703
      return (this.success == null) ? null : this.success.iterator();
30704
    }
30705
 
30706
    public void addToSuccess(VendorItemMapping elem) {
30707
      if (this.success == null) {
30708
        this.success = new ArrayList<VendorItemMapping>();
30709
      }
30710
      this.success.add(elem);
30711
    }
30712
 
30713
    public List<VendorItemMapping> getSuccess() {
30714
      return this.success;
30715
    }
30716
 
30717
    public void setSuccess(List<VendorItemMapping> success) {
30718
      this.success = success;
30719
    }
30720
 
30721
    public void unsetSuccess() {
30722
      this.success = null;
30723
    }
30724
 
30725
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30726
    public boolean isSetSuccess() {
30727
      return this.success != null;
30728
    }
30729
 
30730
    public void setSuccessIsSet(boolean value) {
30731
      if (!value) {
30732
        this.success = null;
30733
      }
30734
    }
30735
 
30736
    public void setFieldValue(_Fields field, Object value) {
30737
      switch (field) {
30738
      case SUCCESS:
30739
        if (value == null) {
30740
          unsetSuccess();
30741
        } else {
30742
          setSuccess((List<VendorItemMapping>)value);
30743
        }
30744
        break;
30745
 
30746
      }
30747
    }
30748
 
30749
    public Object getFieldValue(_Fields field) {
30750
      switch (field) {
30751
      case SUCCESS:
30752
        return getSuccess();
30753
 
30754
      }
30755
      throw new IllegalStateException();
30756
    }
30757
 
30758
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30759
    public boolean isSet(_Fields field) {
30760
      if (field == null) {
30761
        throw new IllegalArgumentException();
30762
      }
30763
 
30764
      switch (field) {
30765
      case SUCCESS:
30766
        return isSetSuccess();
30767
      }
30768
      throw new IllegalStateException();
30769
    }
30770
 
30771
    @Override
30772
    public boolean equals(Object that) {
30773
      if (that == null)
30774
        return false;
30775
      if (that instanceof getAllVendorItemMappings_result)
30776
        return this.equals((getAllVendorItemMappings_result)that);
30777
      return false;
30778
    }
30779
 
30780
    public boolean equals(getAllVendorItemMappings_result that) {
30781
      if (that == null)
30782
        return false;
30783
 
30784
      boolean this_present_success = true && this.isSetSuccess();
30785
      boolean that_present_success = true && that.isSetSuccess();
30786
      if (this_present_success || that_present_success) {
30787
        if (!(this_present_success && that_present_success))
30788
          return false;
30789
        if (!this.success.equals(that.success))
30790
          return false;
30791
      }
30792
 
30793
      return true;
30794
    }
30795
 
30796
    @Override
30797
    public int hashCode() {
30798
      return 0;
30799
    }
30800
 
30801
    public int compareTo(getAllVendorItemMappings_result other) {
30802
      if (!getClass().equals(other.getClass())) {
30803
        return getClass().getName().compareTo(other.getClass().getName());
30804
      }
30805
 
30806
      int lastComparison = 0;
30807
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
30808
 
30809
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30810
      if (lastComparison != 0) {
30811
        return lastComparison;
30812
      }
30813
      if (isSetSuccess()) {
30814
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30815
        if (lastComparison != 0) {
30816
          return lastComparison;
30817
        }
30818
      }
30819
      return 0;
30820
    }
30821
 
30822
    public _Fields fieldForId(int fieldId) {
30823
      return _Fields.findByThriftId(fieldId);
30824
    }
30825
 
30826
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30827
      org.apache.thrift.protocol.TField field;
30828
      iprot.readStructBegin();
30829
      while (true)
30830
      {
30831
        field = iprot.readFieldBegin();
30832
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30833
          break;
30834
        }
30835
        switch (field.id) {
30836
          case 0: // SUCCESS
30837
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30838
              {
8182 amar.kumar 30839
                org.apache.thrift.protocol.TList _list75 = iprot.readListBegin();
30840
                this.success = new ArrayList<VendorItemMapping>(_list75.size);
30841
                for (int _i76 = 0; _i76 < _list75.size; ++_i76)
5945 mandeep.dh 30842
                {
8182 amar.kumar 30843
                  VendorItemMapping _elem77; // required
30844
                  _elem77 = new VendorItemMapping();
30845
                  _elem77.read(iprot);
30846
                  this.success.add(_elem77);
5945 mandeep.dh 30847
                }
30848
                iprot.readListEnd();
30849
              }
30850
            } else { 
30851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30852
            }
30853
            break;
30854
          default:
30855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30856
        }
30857
        iprot.readFieldEnd();
30858
      }
30859
      iprot.readStructEnd();
30860
      validate();
30861
    }
30862
 
30863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30864
      oprot.writeStructBegin(STRUCT_DESC);
30865
 
30866
      if (this.isSetSuccess()) {
30867
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30868
        {
30869
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 30870
          for (VendorItemMapping _iter78 : this.success)
5945 mandeep.dh 30871
          {
8182 amar.kumar 30872
            _iter78.write(oprot);
5945 mandeep.dh 30873
          }
30874
          oprot.writeListEnd();
30875
        }
30876
        oprot.writeFieldEnd();
30877
      }
30878
      oprot.writeFieldStop();
30879
      oprot.writeStructEnd();
30880
    }
30881
 
30882
    @Override
30883
    public String toString() {
30884
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
30885
      boolean first = true;
30886
 
30887
      sb.append("success:");
30888
      if (this.success == null) {
30889
        sb.append("null");
30890
      } else {
30891
        sb.append(this.success);
30892
      }
30893
      first = false;
30894
      sb.append(")");
30895
      return sb.toString();
30896
    }
30897
 
30898
    public void validate() throws org.apache.thrift.TException {
30899
      // check for required fields
30900
    }
30901
 
30902
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30903
      try {
30904
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30905
      } catch (org.apache.thrift.TException te) {
30906
        throw new java.io.IOException(te);
30907
      }
30908
    }
30909
 
30910
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30911
      try {
30912
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30913
      } catch (org.apache.thrift.TException te) {
30914
        throw new java.io.IOException(te);
30915
      }
30916
    }
30917
 
30918
  }
30919
 
30920
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
30921
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
30922
 
30923
    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);
30924
 
30925
    private long warehouseId; // required
30926
 
30927
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30928
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30929
      WAREHOUSE_ID((short)1, "warehouseId");
30930
 
30931
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30932
 
30933
      static {
30934
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30935
          byName.put(field.getFieldName(), field);
30936
        }
30937
      }
30938
 
30939
      /**
30940
       * Find the _Fields constant that matches fieldId, or null if its not found.
30941
       */
30942
      public static _Fields findByThriftId(int fieldId) {
30943
        switch(fieldId) {
30944
          case 1: // WAREHOUSE_ID
30945
            return WAREHOUSE_ID;
30946
          default:
30947
            return null;
30948
        }
30949
      }
30950
 
30951
      /**
30952
       * Find the _Fields constant that matches fieldId, throwing an exception
30953
       * if it is not found.
30954
       */
30955
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30956
        _Fields fields = findByThriftId(fieldId);
30957
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30958
        return fields;
30959
      }
30960
 
30961
      /**
30962
       * Find the _Fields constant that matches name, or null if its not found.
30963
       */
30964
      public static _Fields findByName(String name) {
30965
        return byName.get(name);
30966
      }
30967
 
30968
      private final short _thriftId;
30969
      private final String _fieldName;
30970
 
30971
      _Fields(short thriftId, String fieldName) {
30972
        _thriftId = thriftId;
30973
        _fieldName = fieldName;
30974
      }
30975
 
30976
      public short getThriftFieldId() {
30977
        return _thriftId;
30978
      }
30979
 
30980
      public String getFieldName() {
30981
        return _fieldName;
30982
      }
30983
    }
30984
 
30985
    // isset id assignments
30986
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30987
    private BitSet __isset_bit_vector = new BitSet(1);
30988
 
30989
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30990
    static {
30991
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30992
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30993
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30994
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30995
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
30996
    }
30997
 
30998
    public getInventorySnapshot_args() {
30999
    }
31000
 
31001
    public getInventorySnapshot_args(
31002
      long warehouseId)
31003
    {
31004
      this();
31005
      this.warehouseId = warehouseId;
31006
      setWarehouseIdIsSet(true);
31007
    }
31008
 
31009
    /**
31010
     * Performs a deep copy on <i>other</i>.
31011
     */
31012
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
31013
      __isset_bit_vector.clear();
31014
      __isset_bit_vector.or(other.__isset_bit_vector);
31015
      this.warehouseId = other.warehouseId;
31016
    }
31017
 
31018
    public getInventorySnapshot_args deepCopy() {
31019
      return new getInventorySnapshot_args(this);
31020
    }
31021
 
31022
    @Override
31023
    public void clear() {
31024
      setWarehouseIdIsSet(false);
31025
      this.warehouseId = 0;
31026
    }
31027
 
31028
    public long getWarehouseId() {
31029
      return this.warehouseId;
31030
    }
31031
 
31032
    public void setWarehouseId(long warehouseId) {
31033
      this.warehouseId = warehouseId;
31034
      setWarehouseIdIsSet(true);
31035
    }
31036
 
31037
    public void unsetWarehouseId() {
31038
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
31039
    }
31040
 
31041
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
31042
    public boolean isSetWarehouseId() {
31043
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
31044
    }
31045
 
31046
    public void setWarehouseIdIsSet(boolean value) {
31047
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
31048
    }
31049
 
31050
    public void setFieldValue(_Fields field, Object value) {
31051
      switch (field) {
31052
      case WAREHOUSE_ID:
31053
        if (value == null) {
31054
          unsetWarehouseId();
31055
        } else {
31056
          setWarehouseId((Long)value);
31057
        }
31058
        break;
31059
 
31060
      }
31061
    }
31062
 
31063
    public Object getFieldValue(_Fields field) {
31064
      switch (field) {
31065
      case WAREHOUSE_ID:
31066
        return Long.valueOf(getWarehouseId());
31067
 
31068
      }
31069
      throw new IllegalStateException();
31070
    }
31071
 
31072
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31073
    public boolean isSet(_Fields field) {
31074
      if (field == null) {
31075
        throw new IllegalArgumentException();
31076
      }
31077
 
31078
      switch (field) {
31079
      case WAREHOUSE_ID:
31080
        return isSetWarehouseId();
31081
      }
31082
      throw new IllegalStateException();
31083
    }
31084
 
31085
    @Override
31086
    public boolean equals(Object that) {
31087
      if (that == null)
31088
        return false;
31089
      if (that instanceof getInventorySnapshot_args)
31090
        return this.equals((getInventorySnapshot_args)that);
31091
      return false;
31092
    }
31093
 
31094
    public boolean equals(getInventorySnapshot_args that) {
31095
      if (that == null)
31096
        return false;
31097
 
31098
      boolean this_present_warehouseId = true;
31099
      boolean that_present_warehouseId = true;
31100
      if (this_present_warehouseId || that_present_warehouseId) {
31101
        if (!(this_present_warehouseId && that_present_warehouseId))
31102
          return false;
31103
        if (this.warehouseId != that.warehouseId)
31104
          return false;
31105
      }
31106
 
31107
      return true;
31108
    }
31109
 
31110
    @Override
31111
    public int hashCode() {
31112
      return 0;
31113
    }
31114
 
31115
    public int compareTo(getInventorySnapshot_args other) {
31116
      if (!getClass().equals(other.getClass())) {
31117
        return getClass().getName().compareTo(other.getClass().getName());
31118
      }
31119
 
31120
      int lastComparison = 0;
31121
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
31122
 
31123
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
31124
      if (lastComparison != 0) {
31125
        return lastComparison;
31126
      }
31127
      if (isSetWarehouseId()) {
31128
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
31129
        if (lastComparison != 0) {
31130
          return lastComparison;
31131
        }
31132
      }
31133
      return 0;
31134
    }
31135
 
31136
    public _Fields fieldForId(int fieldId) {
31137
      return _Fields.findByThriftId(fieldId);
31138
    }
31139
 
31140
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31141
      org.apache.thrift.protocol.TField field;
31142
      iprot.readStructBegin();
31143
      while (true)
31144
      {
31145
        field = iprot.readFieldBegin();
31146
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31147
          break;
31148
        }
31149
        switch (field.id) {
31150
          case 1: // WAREHOUSE_ID
31151
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31152
              this.warehouseId = iprot.readI64();
31153
              setWarehouseIdIsSet(true);
31154
            } else { 
31155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31156
            }
31157
            break;
31158
          default:
31159
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31160
        }
31161
        iprot.readFieldEnd();
31162
      }
31163
      iprot.readStructEnd();
31164
      validate();
31165
    }
31166
 
31167
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31168
      validate();
31169
 
31170
      oprot.writeStructBegin(STRUCT_DESC);
31171
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
31172
      oprot.writeI64(this.warehouseId);
31173
      oprot.writeFieldEnd();
31174
      oprot.writeFieldStop();
31175
      oprot.writeStructEnd();
31176
    }
31177
 
31178
    @Override
31179
    public String toString() {
31180
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
31181
      boolean first = true;
31182
 
31183
      sb.append("warehouseId:");
31184
      sb.append(this.warehouseId);
31185
      first = false;
31186
      sb.append(")");
31187
      return sb.toString();
31188
    }
31189
 
31190
    public void validate() throws org.apache.thrift.TException {
31191
      // check for required fields
31192
    }
31193
 
31194
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31195
      try {
31196
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31197
      } catch (org.apache.thrift.TException te) {
31198
        throw new java.io.IOException(te);
31199
      }
31200
    }
31201
 
31202
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31203
      try {
12783 manish.sha 31204
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31205
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 31206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31207
      } catch (org.apache.thrift.TException te) {
31208
        throw new java.io.IOException(te);
31209
      }
31210
    }
31211
 
31212
  }
31213
 
31214
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
31215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
31216
 
31217
    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);
31218
 
31219
    private Map<Long,ItemInventory> success; // required
31220
 
31221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31222
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31223
      SUCCESS((short)0, "success");
31224
 
31225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31226
 
31227
      static {
31228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31229
          byName.put(field.getFieldName(), field);
31230
        }
31231
      }
31232
 
31233
      /**
31234
       * Find the _Fields constant that matches fieldId, or null if its not found.
31235
       */
31236
      public static _Fields findByThriftId(int fieldId) {
31237
        switch(fieldId) {
31238
          case 0: // SUCCESS
31239
            return SUCCESS;
31240
          default:
31241
            return null;
31242
        }
31243
      }
31244
 
31245
      /**
31246
       * Find the _Fields constant that matches fieldId, throwing an exception
31247
       * if it is not found.
31248
       */
31249
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31250
        _Fields fields = findByThriftId(fieldId);
31251
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31252
        return fields;
31253
      }
31254
 
31255
      /**
31256
       * Find the _Fields constant that matches name, or null if its not found.
31257
       */
31258
      public static _Fields findByName(String name) {
31259
        return byName.get(name);
31260
      }
31261
 
31262
      private final short _thriftId;
31263
      private final String _fieldName;
31264
 
31265
      _Fields(short thriftId, String fieldName) {
31266
        _thriftId = thriftId;
31267
        _fieldName = fieldName;
31268
      }
31269
 
31270
      public short getThriftFieldId() {
31271
        return _thriftId;
31272
      }
31273
 
31274
      public String getFieldName() {
31275
        return _fieldName;
31276
      }
31277
    }
31278
 
31279
    // isset id assignments
31280
 
31281
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31282
    static {
31283
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31284
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31285
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31286
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
31287
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
31288
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31289
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
31290
    }
31291
 
31292
    public getInventorySnapshot_result() {
31293
    }
31294
 
31295
    public getInventorySnapshot_result(
31296
      Map<Long,ItemInventory> success)
31297
    {
31298
      this();
31299
      this.success = success;
31300
    }
31301
 
31302
    /**
31303
     * Performs a deep copy on <i>other</i>.
31304
     */
31305
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
31306
      if (other.isSetSuccess()) {
31307
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
31308
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
31309
 
31310
          Long other_element_key = other_element.getKey();
31311
          ItemInventory other_element_value = other_element.getValue();
31312
 
31313
          Long __this__success_copy_key = other_element_key;
31314
 
31315
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
31316
 
31317
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
31318
        }
31319
        this.success = __this__success;
31320
      }
31321
    }
31322
 
31323
    public getInventorySnapshot_result deepCopy() {
31324
      return new getInventorySnapshot_result(this);
31325
    }
31326
 
31327
    @Override
31328
    public void clear() {
31329
      this.success = null;
31330
    }
31331
 
31332
    public int getSuccessSize() {
31333
      return (this.success == null) ? 0 : this.success.size();
31334
    }
31335
 
31336
    public void putToSuccess(long key, ItemInventory val) {
31337
      if (this.success == null) {
31338
        this.success = new HashMap<Long,ItemInventory>();
31339
      }
31340
      this.success.put(key, val);
31341
    }
31342
 
31343
    public Map<Long,ItemInventory> getSuccess() {
31344
      return this.success;
31345
    }
31346
 
31347
    public void setSuccess(Map<Long,ItemInventory> success) {
31348
      this.success = success;
31349
    }
31350
 
31351
    public void unsetSuccess() {
31352
      this.success = null;
31353
    }
31354
 
31355
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31356
    public boolean isSetSuccess() {
31357
      return this.success != null;
31358
    }
31359
 
31360
    public void setSuccessIsSet(boolean value) {
31361
      if (!value) {
31362
        this.success = null;
31363
      }
31364
    }
31365
 
31366
    public void setFieldValue(_Fields field, Object value) {
31367
      switch (field) {
31368
      case SUCCESS:
31369
        if (value == null) {
31370
          unsetSuccess();
31371
        } else {
31372
          setSuccess((Map<Long,ItemInventory>)value);
31373
        }
31374
        break;
31375
 
31376
      }
31377
    }
31378
 
31379
    public Object getFieldValue(_Fields field) {
31380
      switch (field) {
31381
      case SUCCESS:
31382
        return getSuccess();
31383
 
31384
      }
31385
      throw new IllegalStateException();
31386
    }
31387
 
31388
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31389
    public boolean isSet(_Fields field) {
31390
      if (field == null) {
31391
        throw new IllegalArgumentException();
31392
      }
31393
 
31394
      switch (field) {
31395
      case SUCCESS:
31396
        return isSetSuccess();
31397
      }
31398
      throw new IllegalStateException();
31399
    }
31400
 
31401
    @Override
31402
    public boolean equals(Object that) {
31403
      if (that == null)
31404
        return false;
31405
      if (that instanceof getInventorySnapshot_result)
31406
        return this.equals((getInventorySnapshot_result)that);
31407
      return false;
31408
    }
31409
 
31410
    public boolean equals(getInventorySnapshot_result that) {
31411
      if (that == null)
31412
        return false;
31413
 
31414
      boolean this_present_success = true && this.isSetSuccess();
31415
      boolean that_present_success = true && that.isSetSuccess();
31416
      if (this_present_success || that_present_success) {
31417
        if (!(this_present_success && that_present_success))
31418
          return false;
31419
        if (!this.success.equals(that.success))
31420
          return false;
31421
      }
31422
 
31423
      return true;
31424
    }
31425
 
31426
    @Override
31427
    public int hashCode() {
31428
      return 0;
31429
    }
31430
 
31431
    public int compareTo(getInventorySnapshot_result other) {
31432
      if (!getClass().equals(other.getClass())) {
31433
        return getClass().getName().compareTo(other.getClass().getName());
31434
      }
31435
 
31436
      int lastComparison = 0;
31437
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
31438
 
31439
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31440
      if (lastComparison != 0) {
31441
        return lastComparison;
31442
      }
31443
      if (isSetSuccess()) {
31444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31445
        if (lastComparison != 0) {
31446
          return lastComparison;
31447
        }
31448
      }
31449
      return 0;
31450
    }
31451
 
31452
    public _Fields fieldForId(int fieldId) {
31453
      return _Fields.findByThriftId(fieldId);
31454
    }
31455
 
31456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31457
      org.apache.thrift.protocol.TField field;
31458
      iprot.readStructBegin();
31459
      while (true)
31460
      {
31461
        field = iprot.readFieldBegin();
31462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31463
          break;
31464
        }
31465
        switch (field.id) {
31466
          case 0: // SUCCESS
31467
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31468
              {
8182 amar.kumar 31469
                org.apache.thrift.protocol.TMap _map79 = iprot.readMapBegin();
31470
                this.success = new HashMap<Long,ItemInventory>(2*_map79.size);
31471
                for (int _i80 = 0; _i80 < _map79.size; ++_i80)
5945 mandeep.dh 31472
                {
8182 amar.kumar 31473
                  long _key81; // required
31474
                  ItemInventory _val82; // required
31475
                  _key81 = iprot.readI64();
31476
                  _val82 = new ItemInventory();
31477
                  _val82.read(iprot);
31478
                  this.success.put(_key81, _val82);
5945 mandeep.dh 31479
                }
31480
                iprot.readMapEnd();
31481
              }
31482
            } else { 
31483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31484
            }
31485
            break;
31486
          default:
31487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31488
        }
31489
        iprot.readFieldEnd();
31490
      }
31491
      iprot.readStructEnd();
31492
      validate();
31493
    }
31494
 
31495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31496
      oprot.writeStructBegin(STRUCT_DESC);
31497
 
31498
      if (this.isSetSuccess()) {
31499
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31500
        {
31501
          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 31502
          for (Map.Entry<Long, ItemInventory> _iter83 : this.success.entrySet())
5945 mandeep.dh 31503
          {
8182 amar.kumar 31504
            oprot.writeI64(_iter83.getKey());
31505
            _iter83.getValue().write(oprot);
5945 mandeep.dh 31506
          }
31507
          oprot.writeMapEnd();
31508
        }
31509
        oprot.writeFieldEnd();
31510
      }
31511
      oprot.writeFieldStop();
31512
      oprot.writeStructEnd();
31513
    }
31514
 
31515
    @Override
31516
    public String toString() {
31517
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
31518
      boolean first = true;
31519
 
31520
      sb.append("success:");
31521
      if (this.success == null) {
31522
        sb.append("null");
31523
      } else {
31524
        sb.append(this.success);
31525
      }
31526
      first = false;
31527
      sb.append(")");
31528
      return sb.toString();
31529
    }
31530
 
31531
    public void validate() throws org.apache.thrift.TException {
31532
      // check for required fields
31533
    }
31534
 
31535
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31536
      try {
31537
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31538
      } catch (org.apache.thrift.TException te) {
31539
        throw new java.io.IOException(te);
31540
      }
31541
    }
31542
 
31543
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31544
      try {
31545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31546
      } catch (org.apache.thrift.TException te) {
31547
        throw new java.io.IOException(te);
31548
      }
31549
    }
31550
 
31551
  }
31552
 
31553
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
31554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
31555
 
31556
 
31557
 
31558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31559
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31560
;
31561
 
31562
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31563
 
31564
      static {
31565
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31566
          byName.put(field.getFieldName(), field);
31567
        }
31568
      }
31569
 
31570
      /**
31571
       * Find the _Fields constant that matches fieldId, or null if its not found.
31572
       */
31573
      public static _Fields findByThriftId(int fieldId) {
31574
        switch(fieldId) {
31575
          default:
31576
            return null;
31577
        }
31578
      }
31579
 
31580
      /**
31581
       * Find the _Fields constant that matches fieldId, throwing an exception
31582
       * if it is not found.
31583
       */
31584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31585
        _Fields fields = findByThriftId(fieldId);
31586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31587
        return fields;
31588
      }
31589
 
31590
      /**
31591
       * Find the _Fields constant that matches name, or null if its not found.
31592
       */
31593
      public static _Fields findByName(String name) {
31594
        return byName.get(name);
31595
      }
31596
 
31597
      private final short _thriftId;
31598
      private final String _fieldName;
31599
 
31600
      _Fields(short thriftId, String fieldName) {
31601
        _thriftId = thriftId;
31602
        _fieldName = fieldName;
31603
      }
31604
 
31605
      public short getThriftFieldId() {
31606
        return _thriftId;
31607
      }
31608
 
31609
      public String getFieldName() {
31610
        return _fieldName;
31611
      }
31612
    }
31613
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31614
    static {
31615
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
31618
    }
31619
 
31620
    public clearItemAvailabilityCache_args() {
31621
    }
31622
 
31623
    /**
31624
     * Performs a deep copy on <i>other</i>.
31625
     */
31626
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
31627
    }
31628
 
31629
    public clearItemAvailabilityCache_args deepCopy() {
31630
      return new clearItemAvailabilityCache_args(this);
31631
    }
31632
 
31633
    @Override
31634
    public void clear() {
31635
    }
31636
 
31637
    public void setFieldValue(_Fields field, Object value) {
31638
      switch (field) {
31639
      }
31640
    }
31641
 
31642
    public Object getFieldValue(_Fields field) {
31643
      switch (field) {
31644
      }
31645
      throw new IllegalStateException();
31646
    }
31647
 
31648
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31649
    public boolean isSet(_Fields field) {
31650
      if (field == null) {
31651
        throw new IllegalArgumentException();
31652
      }
31653
 
31654
      switch (field) {
31655
      }
31656
      throw new IllegalStateException();
31657
    }
31658
 
31659
    @Override
31660
    public boolean equals(Object that) {
31661
      if (that == null)
31662
        return false;
31663
      if (that instanceof clearItemAvailabilityCache_args)
31664
        return this.equals((clearItemAvailabilityCache_args)that);
31665
      return false;
31666
    }
31667
 
31668
    public boolean equals(clearItemAvailabilityCache_args that) {
31669
      if (that == null)
31670
        return false;
31671
 
31672
      return true;
31673
    }
31674
 
31675
    @Override
31676
    public int hashCode() {
31677
      return 0;
31678
    }
31679
 
31680
    public int compareTo(clearItemAvailabilityCache_args other) {
31681
      if (!getClass().equals(other.getClass())) {
31682
        return getClass().getName().compareTo(other.getClass().getName());
31683
      }
31684
 
31685
      int lastComparison = 0;
31686
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
31687
 
31688
      return 0;
31689
    }
31690
 
31691
    public _Fields fieldForId(int fieldId) {
31692
      return _Fields.findByThriftId(fieldId);
31693
    }
31694
 
31695
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31696
      org.apache.thrift.protocol.TField field;
31697
      iprot.readStructBegin();
31698
      while (true)
31699
      {
31700
        field = iprot.readFieldBegin();
31701
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31702
          break;
31703
        }
31704
        switch (field.id) {
31705
          default:
31706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31707
        }
31708
        iprot.readFieldEnd();
31709
      }
31710
      iprot.readStructEnd();
31711
      validate();
31712
    }
31713
 
31714
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31715
      validate();
31716
 
31717
      oprot.writeStructBegin(STRUCT_DESC);
31718
      oprot.writeFieldStop();
31719
      oprot.writeStructEnd();
31720
    }
31721
 
31722
    @Override
31723
    public String toString() {
31724
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
31725
      boolean first = true;
31726
 
31727
      sb.append(")");
31728
      return sb.toString();
31729
    }
31730
 
31731
    public void validate() throws org.apache.thrift.TException {
31732
      // check for required fields
31733
    }
31734
 
31735
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31736
      try {
31737
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31738
      } catch (org.apache.thrift.TException te) {
31739
        throw new java.io.IOException(te);
31740
      }
31741
    }
31742
 
31743
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31744
      try {
31745
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31746
      } catch (org.apache.thrift.TException te) {
31747
        throw new java.io.IOException(te);
31748
      }
31749
    }
31750
 
31751
  }
31752
 
31753
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
31754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
31755
 
31756
 
31757
 
31758
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31759
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31760
;
31761
 
31762
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31763
 
31764
      static {
31765
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31766
          byName.put(field.getFieldName(), field);
31767
        }
31768
      }
31769
 
31770
      /**
31771
       * Find the _Fields constant that matches fieldId, or null if its not found.
31772
       */
31773
      public static _Fields findByThriftId(int fieldId) {
31774
        switch(fieldId) {
31775
          default:
31776
            return null;
31777
        }
31778
      }
31779
 
31780
      /**
31781
       * Find the _Fields constant that matches fieldId, throwing an exception
31782
       * if it is not found.
31783
       */
31784
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31785
        _Fields fields = findByThriftId(fieldId);
31786
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31787
        return fields;
31788
      }
31789
 
31790
      /**
31791
       * Find the _Fields constant that matches name, or null if its not found.
31792
       */
31793
      public static _Fields findByName(String name) {
31794
        return byName.get(name);
31795
      }
31796
 
31797
      private final short _thriftId;
31798
      private final String _fieldName;
31799
 
31800
      _Fields(short thriftId, String fieldName) {
31801
        _thriftId = thriftId;
31802
        _fieldName = fieldName;
31803
      }
31804
 
31805
      public short getThriftFieldId() {
31806
        return _thriftId;
31807
      }
31808
 
31809
      public String getFieldName() {
31810
        return _fieldName;
31811
      }
31812
    }
31813
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31814
    static {
31815
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31816
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31817
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
31818
    }
31819
 
31820
    public clearItemAvailabilityCache_result() {
31821
    }
31822
 
31823
    /**
31824
     * Performs a deep copy on <i>other</i>.
31825
     */
31826
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
31827
    }
31828
 
31829
    public clearItemAvailabilityCache_result deepCopy() {
31830
      return new clearItemAvailabilityCache_result(this);
31831
    }
31832
 
31833
    @Override
31834
    public void clear() {
31835
    }
31836
 
31837
    public void setFieldValue(_Fields field, Object value) {
31838
      switch (field) {
31839
      }
31840
    }
31841
 
31842
    public Object getFieldValue(_Fields field) {
31843
      switch (field) {
31844
      }
31845
      throw new IllegalStateException();
31846
    }
31847
 
31848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31849
    public boolean isSet(_Fields field) {
31850
      if (field == null) {
31851
        throw new IllegalArgumentException();
31852
      }
31853
 
31854
      switch (field) {
31855
      }
31856
      throw new IllegalStateException();
31857
    }
31858
 
31859
    @Override
31860
    public boolean equals(Object that) {
31861
      if (that == null)
31862
        return false;
31863
      if (that instanceof clearItemAvailabilityCache_result)
31864
        return this.equals((clearItemAvailabilityCache_result)that);
31865
      return false;
31866
    }
31867
 
31868
    public boolean equals(clearItemAvailabilityCache_result that) {
31869
      if (that == null)
31870
        return false;
31871
 
31872
      return true;
31873
    }
31874
 
31875
    @Override
31876
    public int hashCode() {
31877
      return 0;
31878
    }
31879
 
31880
    public int compareTo(clearItemAvailabilityCache_result other) {
31881
      if (!getClass().equals(other.getClass())) {
31882
        return getClass().getName().compareTo(other.getClass().getName());
31883
      }
31884
 
31885
      int lastComparison = 0;
31886
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
31887
 
31888
      return 0;
31889
    }
31890
 
31891
    public _Fields fieldForId(int fieldId) {
31892
      return _Fields.findByThriftId(fieldId);
31893
    }
31894
 
31895
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31896
      org.apache.thrift.protocol.TField field;
31897
      iprot.readStructBegin();
31898
      while (true)
31899
      {
31900
        field = iprot.readFieldBegin();
31901
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31902
          break;
31903
        }
31904
        switch (field.id) {
31905
          default:
31906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31907
        }
31908
        iprot.readFieldEnd();
31909
      }
31910
      iprot.readStructEnd();
31911
      validate();
31912
    }
31913
 
31914
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31915
      oprot.writeStructBegin(STRUCT_DESC);
31916
 
31917
      oprot.writeFieldStop();
31918
      oprot.writeStructEnd();
31919
    }
31920
 
31921
    @Override
31922
    public String toString() {
31923
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
31924
      boolean first = true;
31925
 
31926
      sb.append(")");
31927
      return sb.toString();
31928
    }
31929
 
31930
    public void validate() throws org.apache.thrift.TException {
31931
      // check for required fields
31932
    }
31933
 
31934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31935
      try {
31936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31937
      } catch (org.apache.thrift.TException te) {
31938
        throw new java.io.IOException(te);
31939
      }
31940
    }
31941
 
31942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31943
      try {
31944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31945
      } catch (org.apache.thrift.TException te) {
31946
        throw new java.io.IOException(te);
31947
      }
31948
    }
31949
 
31950
  }
31951
 
31952
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
31953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
31954
 
31955
    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);
31956
    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);
31957
 
31958
    private long warehouseId; // required
31959
    private String vendorString; // required
31960
 
31961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31963
      WAREHOUSE_ID((short)1, "warehouseId"),
31964
      VENDOR_STRING((short)2, "vendorString");
31965
 
31966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31967
 
31968
      static {
31969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31970
          byName.put(field.getFieldName(), field);
31971
        }
31972
      }
31973
 
31974
      /**
31975
       * Find the _Fields constant that matches fieldId, or null if its not found.
31976
       */
31977
      public static _Fields findByThriftId(int fieldId) {
31978
        switch(fieldId) {
31979
          case 1: // WAREHOUSE_ID
31980
            return WAREHOUSE_ID;
31981
          case 2: // VENDOR_STRING
31982
            return VENDOR_STRING;
31983
          default:
31984
            return null;
31985
        }
31986
      }
31987
 
31988
      /**
31989
       * Find the _Fields constant that matches fieldId, throwing an exception
31990
       * if it is not found.
31991
       */
31992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31993
        _Fields fields = findByThriftId(fieldId);
31994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31995
        return fields;
31996
      }
31997
 
31998
      /**
31999
       * Find the _Fields constant that matches name, or null if its not found.
32000
       */
32001
      public static _Fields findByName(String name) {
32002
        return byName.get(name);
32003
      }
32004
 
32005
      private final short _thriftId;
32006
      private final String _fieldName;
32007
 
32008
      _Fields(short thriftId, String fieldName) {
32009
        _thriftId = thriftId;
32010
        _fieldName = fieldName;
32011
      }
32012
 
32013
      public short getThriftFieldId() {
32014
        return _thriftId;
32015
      }
32016
 
32017
      public String getFieldName() {
32018
        return _fieldName;
32019
      }
32020
    }
32021
 
32022
    // isset id assignments
32023
    private static final int __WAREHOUSEID_ISSET_ID = 0;
32024
    private BitSet __isset_bit_vector = new BitSet(1);
32025
 
32026
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32027
    static {
32028
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32029
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32031
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
32033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
32035
    }
32036
 
32037
    public updateVendorString_args() {
32038
    }
32039
 
32040
    public updateVendorString_args(
32041
      long warehouseId,
32042
      String vendorString)
32043
    {
32044
      this();
32045
      this.warehouseId = warehouseId;
32046
      setWarehouseIdIsSet(true);
32047
      this.vendorString = vendorString;
32048
    }
32049
 
32050
    /**
32051
     * Performs a deep copy on <i>other</i>.
32052
     */
32053
    public updateVendorString_args(updateVendorString_args other) {
32054
      __isset_bit_vector.clear();
32055
      __isset_bit_vector.or(other.__isset_bit_vector);
32056
      this.warehouseId = other.warehouseId;
32057
      if (other.isSetVendorString()) {
32058
        this.vendorString = other.vendorString;
32059
      }
32060
    }
32061
 
32062
    public updateVendorString_args deepCopy() {
32063
      return new updateVendorString_args(this);
32064
    }
32065
 
32066
    @Override
32067
    public void clear() {
32068
      setWarehouseIdIsSet(false);
32069
      this.warehouseId = 0;
32070
      this.vendorString = null;
32071
    }
32072
 
32073
    public long getWarehouseId() {
32074
      return this.warehouseId;
32075
    }
32076
 
32077
    public void setWarehouseId(long warehouseId) {
32078
      this.warehouseId = warehouseId;
32079
      setWarehouseIdIsSet(true);
32080
    }
32081
 
32082
    public void unsetWarehouseId() {
32083
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
32084
    }
32085
 
32086
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
32087
    public boolean isSetWarehouseId() {
32088
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
32089
    }
32090
 
32091
    public void setWarehouseIdIsSet(boolean value) {
32092
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
32093
    }
32094
 
32095
    public String getVendorString() {
32096
      return this.vendorString;
32097
    }
32098
 
32099
    public void setVendorString(String vendorString) {
32100
      this.vendorString = vendorString;
32101
    }
32102
 
32103
    public void unsetVendorString() {
32104
      this.vendorString = null;
32105
    }
32106
 
32107
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
32108
    public boolean isSetVendorString() {
32109
      return this.vendorString != null;
32110
    }
32111
 
32112
    public void setVendorStringIsSet(boolean value) {
32113
      if (!value) {
32114
        this.vendorString = null;
32115
      }
32116
    }
32117
 
32118
    public void setFieldValue(_Fields field, Object value) {
32119
      switch (field) {
32120
      case WAREHOUSE_ID:
32121
        if (value == null) {
32122
          unsetWarehouseId();
32123
        } else {
32124
          setWarehouseId((Long)value);
32125
        }
32126
        break;
32127
 
32128
      case VENDOR_STRING:
32129
        if (value == null) {
32130
          unsetVendorString();
32131
        } else {
32132
          setVendorString((String)value);
32133
        }
32134
        break;
32135
 
32136
      }
32137
    }
32138
 
32139
    public Object getFieldValue(_Fields field) {
32140
      switch (field) {
32141
      case WAREHOUSE_ID:
32142
        return Long.valueOf(getWarehouseId());
32143
 
32144
      case VENDOR_STRING:
32145
        return getVendorString();
32146
 
32147
      }
32148
      throw new IllegalStateException();
32149
    }
32150
 
32151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32152
    public boolean isSet(_Fields field) {
32153
      if (field == null) {
32154
        throw new IllegalArgumentException();
32155
      }
32156
 
32157
      switch (field) {
32158
      case WAREHOUSE_ID:
32159
        return isSetWarehouseId();
32160
      case VENDOR_STRING:
32161
        return isSetVendorString();
32162
      }
32163
      throw new IllegalStateException();
32164
    }
32165
 
32166
    @Override
32167
    public boolean equals(Object that) {
32168
      if (that == null)
32169
        return false;
32170
      if (that instanceof updateVendorString_args)
32171
        return this.equals((updateVendorString_args)that);
32172
      return false;
32173
    }
32174
 
32175
    public boolean equals(updateVendorString_args that) {
32176
      if (that == null)
32177
        return false;
32178
 
32179
      boolean this_present_warehouseId = true;
32180
      boolean that_present_warehouseId = true;
32181
      if (this_present_warehouseId || that_present_warehouseId) {
32182
        if (!(this_present_warehouseId && that_present_warehouseId))
32183
          return false;
32184
        if (this.warehouseId != that.warehouseId)
32185
          return false;
32186
      }
32187
 
32188
      boolean this_present_vendorString = true && this.isSetVendorString();
32189
      boolean that_present_vendorString = true && that.isSetVendorString();
32190
      if (this_present_vendorString || that_present_vendorString) {
32191
        if (!(this_present_vendorString && that_present_vendorString))
32192
          return false;
32193
        if (!this.vendorString.equals(that.vendorString))
32194
          return false;
32195
      }
32196
 
32197
      return true;
32198
    }
32199
 
32200
    @Override
32201
    public int hashCode() {
32202
      return 0;
32203
    }
32204
 
32205
    public int compareTo(updateVendorString_args other) {
32206
      if (!getClass().equals(other.getClass())) {
32207
        return getClass().getName().compareTo(other.getClass().getName());
32208
      }
32209
 
32210
      int lastComparison = 0;
32211
      updateVendorString_args typedOther = (updateVendorString_args)other;
32212
 
32213
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
32214
      if (lastComparison != 0) {
32215
        return lastComparison;
32216
      }
32217
      if (isSetWarehouseId()) {
32218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
32219
        if (lastComparison != 0) {
32220
          return lastComparison;
32221
        }
32222
      }
32223
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
32224
      if (lastComparison != 0) {
32225
        return lastComparison;
32226
      }
32227
      if (isSetVendorString()) {
32228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
32229
        if (lastComparison != 0) {
32230
          return lastComparison;
32231
        }
32232
      }
32233
      return 0;
32234
    }
32235
 
32236
    public _Fields fieldForId(int fieldId) {
32237
      return _Fields.findByThriftId(fieldId);
32238
    }
32239
 
32240
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32241
      org.apache.thrift.protocol.TField field;
32242
      iprot.readStructBegin();
32243
      while (true)
32244
      {
32245
        field = iprot.readFieldBegin();
32246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32247
          break;
32248
        }
32249
        switch (field.id) {
32250
          case 1: // WAREHOUSE_ID
32251
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32252
              this.warehouseId = iprot.readI64();
32253
              setWarehouseIdIsSet(true);
32254
            } else { 
32255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32256
            }
32257
            break;
32258
          case 2: // VENDOR_STRING
32259
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
32260
              this.vendorString = iprot.readString();
32261
            } else { 
32262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32263
            }
32264
            break;
32265
          default:
32266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32267
        }
32268
        iprot.readFieldEnd();
32269
      }
32270
      iprot.readStructEnd();
32271
      validate();
32272
    }
32273
 
32274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32275
      validate();
32276
 
32277
      oprot.writeStructBegin(STRUCT_DESC);
32278
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
32279
      oprot.writeI64(this.warehouseId);
32280
      oprot.writeFieldEnd();
32281
      if (this.vendorString != null) {
32282
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
32283
        oprot.writeString(this.vendorString);
32284
        oprot.writeFieldEnd();
32285
      }
32286
      oprot.writeFieldStop();
32287
      oprot.writeStructEnd();
32288
    }
32289
 
32290
    @Override
32291
    public String toString() {
32292
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
32293
      boolean first = true;
32294
 
32295
      sb.append("warehouseId:");
32296
      sb.append(this.warehouseId);
32297
      first = false;
32298
      if (!first) sb.append(", ");
32299
      sb.append("vendorString:");
32300
      if (this.vendorString == null) {
32301
        sb.append("null");
32302
      } else {
32303
        sb.append(this.vendorString);
32304
      }
32305
      first = false;
32306
      sb.append(")");
32307
      return sb.toString();
32308
    }
32309
 
32310
    public void validate() throws org.apache.thrift.TException {
32311
      // check for required fields
32312
    }
32313
 
32314
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32315
      try {
32316
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32317
      } catch (org.apache.thrift.TException te) {
32318
        throw new java.io.IOException(te);
32319
      }
32320
    }
32321
 
32322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32323
      try {
5967 rajveer 32324
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32325
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 32326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32327
      } catch (org.apache.thrift.TException te) {
32328
        throw new java.io.IOException(te);
32329
      }
32330
    }
32331
 
32332
  }
32333
 
32334
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
32335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
32336
 
32337
 
32338
 
32339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32341
;
32342
 
32343
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32344
 
32345
      static {
32346
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32347
          byName.put(field.getFieldName(), field);
32348
        }
32349
      }
32350
 
32351
      /**
32352
       * Find the _Fields constant that matches fieldId, or null if its not found.
32353
       */
32354
      public static _Fields findByThriftId(int fieldId) {
32355
        switch(fieldId) {
32356
          default:
32357
            return null;
32358
        }
32359
      }
32360
 
32361
      /**
32362
       * Find the _Fields constant that matches fieldId, throwing an exception
32363
       * if it is not found.
32364
       */
32365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32366
        _Fields fields = findByThriftId(fieldId);
32367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32368
        return fields;
32369
      }
32370
 
32371
      /**
32372
       * Find the _Fields constant that matches name, or null if its not found.
32373
       */
32374
      public static _Fields findByName(String name) {
32375
        return byName.get(name);
32376
      }
32377
 
32378
      private final short _thriftId;
32379
      private final String _fieldName;
32380
 
32381
      _Fields(short thriftId, String fieldName) {
32382
        _thriftId = thriftId;
32383
        _fieldName = fieldName;
32384
      }
32385
 
32386
      public short getThriftFieldId() {
32387
        return _thriftId;
32388
      }
32389
 
32390
      public String getFieldName() {
32391
        return _fieldName;
32392
      }
32393
    }
32394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32395
    static {
32396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32397
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32398
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
32399
    }
32400
 
32401
    public updateVendorString_result() {
32402
    }
32403
 
32404
    /**
32405
     * Performs a deep copy on <i>other</i>.
32406
     */
32407
    public updateVendorString_result(updateVendorString_result other) {
32408
    }
32409
 
32410
    public updateVendorString_result deepCopy() {
32411
      return new updateVendorString_result(this);
32412
    }
32413
 
32414
    @Override
32415
    public void clear() {
32416
    }
32417
 
32418
    public void setFieldValue(_Fields field, Object value) {
32419
      switch (field) {
32420
      }
32421
    }
32422
 
32423
    public Object getFieldValue(_Fields field) {
32424
      switch (field) {
32425
      }
32426
      throw new IllegalStateException();
32427
    }
32428
 
32429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32430
    public boolean isSet(_Fields field) {
32431
      if (field == null) {
32432
        throw new IllegalArgumentException();
32433
      }
32434
 
32435
      switch (field) {
32436
      }
32437
      throw new IllegalStateException();
32438
    }
32439
 
32440
    @Override
32441
    public boolean equals(Object that) {
32442
      if (that == null)
32443
        return false;
32444
      if (that instanceof updateVendorString_result)
32445
        return this.equals((updateVendorString_result)that);
32446
      return false;
32447
    }
32448
 
32449
    public boolean equals(updateVendorString_result that) {
32450
      if (that == null)
32451
        return false;
32452
 
32453
      return true;
32454
    }
32455
 
32456
    @Override
32457
    public int hashCode() {
32458
      return 0;
32459
    }
32460
 
32461
    public int compareTo(updateVendorString_result other) {
32462
      if (!getClass().equals(other.getClass())) {
32463
        return getClass().getName().compareTo(other.getClass().getName());
32464
      }
32465
 
32466
      int lastComparison = 0;
32467
      updateVendorString_result typedOther = (updateVendorString_result)other;
32468
 
32469
      return 0;
32470
    }
32471
 
32472
    public _Fields fieldForId(int fieldId) {
32473
      return _Fields.findByThriftId(fieldId);
32474
    }
32475
 
32476
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32477
      org.apache.thrift.protocol.TField field;
32478
      iprot.readStructBegin();
32479
      while (true)
32480
      {
32481
        field = iprot.readFieldBegin();
32482
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32483
          break;
32484
        }
32485
        switch (field.id) {
32486
          default:
32487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32488
        }
32489
        iprot.readFieldEnd();
32490
      }
32491
      iprot.readStructEnd();
32492
      validate();
32493
    }
32494
 
32495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32496
      oprot.writeStructBegin(STRUCT_DESC);
32497
 
32498
      oprot.writeFieldStop();
32499
      oprot.writeStructEnd();
32500
    }
32501
 
32502
    @Override
32503
    public String toString() {
32504
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
32505
      boolean first = true;
32506
 
32507
      sb.append(")");
32508
      return sb.toString();
32509
    }
32510
 
32511
    public void validate() throws org.apache.thrift.TException {
32512
      // check for required fields
32513
    }
32514
 
32515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32516
      try {
32517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32518
      } catch (org.apache.thrift.TException te) {
32519
        throw new java.io.IOException(te);
32520
      }
32521
    }
32522
 
32523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32524
      try {
32525
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32526
      } catch (org.apache.thrift.TException te) {
32527
        throw new java.io.IOException(te);
32528
      }
32529
    }
32530
 
32531
  }
32532
 
6096 amit.gupta 32533
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
32534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
32535
 
32536
    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);
32537
 
32538
    private long item_id; // required
32539
 
32540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32541
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32542
      ITEM_ID((short)1, "item_id");
32543
 
32544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32545
 
32546
      static {
32547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32548
          byName.put(field.getFieldName(), field);
32549
        }
32550
      }
32551
 
32552
      /**
32553
       * Find the _Fields constant that matches fieldId, or null if its not found.
32554
       */
32555
      public static _Fields findByThriftId(int fieldId) {
32556
        switch(fieldId) {
32557
          case 1: // ITEM_ID
32558
            return ITEM_ID;
32559
          default:
32560
            return null;
32561
        }
32562
      }
32563
 
32564
      /**
32565
       * Find the _Fields constant that matches fieldId, throwing an exception
32566
       * if it is not found.
32567
       */
32568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32569
        _Fields fields = findByThriftId(fieldId);
32570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32571
        return fields;
32572
      }
32573
 
32574
      /**
32575
       * Find the _Fields constant that matches name, or null if its not found.
32576
       */
32577
      public static _Fields findByName(String name) {
32578
        return byName.get(name);
32579
      }
32580
 
32581
      private final short _thriftId;
32582
      private final String _fieldName;
32583
 
32584
      _Fields(short thriftId, String fieldName) {
32585
        _thriftId = thriftId;
32586
        _fieldName = fieldName;
32587
      }
32588
 
32589
      public short getThriftFieldId() {
32590
        return _thriftId;
32591
      }
32592
 
32593
      public String getFieldName() {
32594
        return _fieldName;
32595
      }
32596
    }
32597
 
32598
    // isset id assignments
32599
    private static final int __ITEM_ID_ISSET_ID = 0;
32600
    private BitSet __isset_bit_vector = new BitSet(1);
32601
 
32602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32603
    static {
32604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32605
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
32609
    }
32610
 
32611
    public clearItemAvailabilityCacheForItem_args() {
32612
    }
32613
 
32614
    public clearItemAvailabilityCacheForItem_args(
32615
      long item_id)
32616
    {
32617
      this();
32618
      this.item_id = item_id;
32619
      setItem_idIsSet(true);
32620
    }
32621
 
32622
    /**
32623
     * Performs a deep copy on <i>other</i>.
32624
     */
32625
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
32626
      __isset_bit_vector.clear();
32627
      __isset_bit_vector.or(other.__isset_bit_vector);
32628
      this.item_id = other.item_id;
32629
    }
32630
 
32631
    public clearItemAvailabilityCacheForItem_args deepCopy() {
32632
      return new clearItemAvailabilityCacheForItem_args(this);
32633
    }
32634
 
32635
    @Override
32636
    public void clear() {
32637
      setItem_idIsSet(false);
32638
      this.item_id = 0;
32639
    }
32640
 
32641
    public long getItem_id() {
32642
      return this.item_id;
32643
    }
32644
 
32645
    public void setItem_id(long item_id) {
32646
      this.item_id = item_id;
32647
      setItem_idIsSet(true);
32648
    }
32649
 
32650
    public void unsetItem_id() {
32651
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
32652
    }
32653
 
32654
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
32655
    public boolean isSetItem_id() {
32656
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
32657
    }
32658
 
32659
    public void setItem_idIsSet(boolean value) {
32660
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
32661
    }
32662
 
32663
    public void setFieldValue(_Fields field, Object value) {
32664
      switch (field) {
32665
      case ITEM_ID:
32666
        if (value == null) {
32667
          unsetItem_id();
32668
        } else {
32669
          setItem_id((Long)value);
32670
        }
32671
        break;
32672
 
32673
      }
32674
    }
32675
 
32676
    public Object getFieldValue(_Fields field) {
32677
      switch (field) {
32678
      case ITEM_ID:
32679
        return Long.valueOf(getItem_id());
32680
 
32681
      }
32682
      throw new IllegalStateException();
32683
    }
32684
 
32685
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32686
    public boolean isSet(_Fields field) {
32687
      if (field == null) {
32688
        throw new IllegalArgumentException();
32689
      }
32690
 
32691
      switch (field) {
32692
      case ITEM_ID:
32693
        return isSetItem_id();
32694
      }
32695
      throw new IllegalStateException();
32696
    }
32697
 
32698
    @Override
32699
    public boolean equals(Object that) {
32700
      if (that == null)
32701
        return false;
32702
      if (that instanceof clearItemAvailabilityCacheForItem_args)
32703
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
32704
      return false;
32705
    }
32706
 
32707
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
32708
      if (that == null)
32709
        return false;
32710
 
32711
      boolean this_present_item_id = true;
32712
      boolean that_present_item_id = true;
32713
      if (this_present_item_id || that_present_item_id) {
32714
        if (!(this_present_item_id && that_present_item_id))
32715
          return false;
32716
        if (this.item_id != that.item_id)
32717
          return false;
32718
      }
32719
 
32720
      return true;
32721
    }
32722
 
32723
    @Override
32724
    public int hashCode() {
32725
      return 0;
32726
    }
32727
 
32728
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
32729
      if (!getClass().equals(other.getClass())) {
32730
        return getClass().getName().compareTo(other.getClass().getName());
32731
      }
32732
 
32733
      int lastComparison = 0;
32734
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
32735
 
32736
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
32737
      if (lastComparison != 0) {
32738
        return lastComparison;
32739
      }
32740
      if (isSetItem_id()) {
32741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
32742
        if (lastComparison != 0) {
32743
          return lastComparison;
32744
        }
32745
      }
32746
      return 0;
32747
    }
32748
 
32749
    public _Fields fieldForId(int fieldId) {
32750
      return _Fields.findByThriftId(fieldId);
32751
    }
32752
 
32753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32754
      org.apache.thrift.protocol.TField field;
32755
      iprot.readStructBegin();
32756
      while (true)
32757
      {
32758
        field = iprot.readFieldBegin();
32759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32760
          break;
32761
        }
32762
        switch (field.id) {
32763
          case 1: // ITEM_ID
32764
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32765
              this.item_id = iprot.readI64();
32766
              setItem_idIsSet(true);
32767
            } else { 
32768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32769
            }
32770
            break;
32771
          default:
32772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32773
        }
32774
        iprot.readFieldEnd();
32775
      }
32776
      iprot.readStructEnd();
32777
      validate();
32778
    }
32779
 
32780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32781
      validate();
32782
 
32783
      oprot.writeStructBegin(STRUCT_DESC);
32784
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
32785
      oprot.writeI64(this.item_id);
32786
      oprot.writeFieldEnd();
32787
      oprot.writeFieldStop();
32788
      oprot.writeStructEnd();
32789
    }
32790
 
32791
    @Override
32792
    public String toString() {
32793
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
32794
      boolean first = true;
32795
 
32796
      sb.append("item_id:");
32797
      sb.append(this.item_id);
32798
      first = false;
32799
      sb.append(")");
32800
      return sb.toString();
32801
    }
32802
 
32803
    public void validate() throws org.apache.thrift.TException {
32804
      // check for required fields
32805
    }
32806
 
32807
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32808
      try {
32809
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32810
      } catch (org.apache.thrift.TException te) {
32811
        throw new java.io.IOException(te);
32812
      }
32813
    }
32814
 
32815
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32816
      try {
32817
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32818
        __isset_bit_vector = new BitSet(1);
32819
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32820
      } catch (org.apache.thrift.TException te) {
32821
        throw new java.io.IOException(te);
32822
      }
32823
    }
32824
 
32825
  }
32826
 
32827
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
32828
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
32829
 
32830
 
32831
 
32832
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32833
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32834
;
32835
 
32836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32837
 
32838
      static {
32839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32840
          byName.put(field.getFieldName(), field);
32841
        }
32842
      }
32843
 
32844
      /**
32845
       * Find the _Fields constant that matches fieldId, or null if its not found.
32846
       */
32847
      public static _Fields findByThriftId(int fieldId) {
32848
        switch(fieldId) {
32849
          default:
32850
            return null;
32851
        }
32852
      }
32853
 
32854
      /**
32855
       * Find the _Fields constant that matches fieldId, throwing an exception
32856
       * if it is not found.
32857
       */
32858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32859
        _Fields fields = findByThriftId(fieldId);
32860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32861
        return fields;
32862
      }
32863
 
32864
      /**
32865
       * Find the _Fields constant that matches name, or null if its not found.
32866
       */
32867
      public static _Fields findByName(String name) {
32868
        return byName.get(name);
32869
      }
32870
 
32871
      private final short _thriftId;
32872
      private final String _fieldName;
32873
 
32874
      _Fields(short thriftId, String fieldName) {
32875
        _thriftId = thriftId;
32876
        _fieldName = fieldName;
32877
      }
32878
 
32879
      public short getThriftFieldId() {
32880
        return _thriftId;
32881
      }
32882
 
32883
      public String getFieldName() {
32884
        return _fieldName;
32885
      }
32886
    }
32887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32888
    static {
32889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32890
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32891
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
32892
    }
32893
 
32894
    public clearItemAvailabilityCacheForItem_result() {
32895
    }
32896
 
32897
    /**
32898
     * Performs a deep copy on <i>other</i>.
32899
     */
32900
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
32901
    }
32902
 
32903
    public clearItemAvailabilityCacheForItem_result deepCopy() {
32904
      return new clearItemAvailabilityCacheForItem_result(this);
32905
    }
32906
 
32907
    @Override
32908
    public void clear() {
32909
    }
32910
 
32911
    public void setFieldValue(_Fields field, Object value) {
32912
      switch (field) {
32913
      }
32914
    }
32915
 
32916
    public Object getFieldValue(_Fields field) {
32917
      switch (field) {
32918
      }
32919
      throw new IllegalStateException();
32920
    }
32921
 
32922
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32923
    public boolean isSet(_Fields field) {
32924
      if (field == null) {
32925
        throw new IllegalArgumentException();
32926
      }
32927
 
32928
      switch (field) {
32929
      }
32930
      throw new IllegalStateException();
32931
    }
32932
 
32933
    @Override
32934
    public boolean equals(Object that) {
32935
      if (that == null)
32936
        return false;
32937
      if (that instanceof clearItemAvailabilityCacheForItem_result)
32938
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
32939
      return false;
32940
    }
32941
 
32942
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
32943
      if (that == null)
32944
        return false;
32945
 
32946
      return true;
32947
    }
32948
 
32949
    @Override
32950
    public int hashCode() {
32951
      return 0;
32952
    }
32953
 
32954
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
32955
      if (!getClass().equals(other.getClass())) {
32956
        return getClass().getName().compareTo(other.getClass().getName());
32957
      }
32958
 
32959
      int lastComparison = 0;
32960
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
32961
 
32962
      return 0;
32963
    }
32964
 
32965
    public _Fields fieldForId(int fieldId) {
32966
      return _Fields.findByThriftId(fieldId);
32967
    }
32968
 
32969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32970
      org.apache.thrift.protocol.TField field;
32971
      iprot.readStructBegin();
32972
      while (true)
32973
      {
32974
        field = iprot.readFieldBegin();
32975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32976
          break;
32977
        }
32978
        switch (field.id) {
32979
          default:
32980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32981
        }
32982
        iprot.readFieldEnd();
32983
      }
32984
      iprot.readStructEnd();
32985
      validate();
32986
    }
32987
 
32988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32989
      oprot.writeStructBegin(STRUCT_DESC);
32990
 
32991
      oprot.writeFieldStop();
32992
      oprot.writeStructEnd();
32993
    }
32994
 
32995
    @Override
32996
    public String toString() {
32997
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
32998
      boolean first = true;
32999
 
33000
      sb.append(")");
33001
      return sb.toString();
33002
    }
33003
 
33004
    public void validate() throws org.apache.thrift.TException {
33005
      // check for required fields
33006
    }
33007
 
33008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33009
      try {
33010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33011
      } catch (org.apache.thrift.TException te) {
33012
        throw new java.io.IOException(te);
33013
      }
33014
    }
33015
 
33016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33017
      try {
33018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33019
      } catch (org.apache.thrift.TException te) {
33020
        throw new java.io.IOException(te);
33021
      }
33022
    }
33023
 
33024
  }
33025
 
6467 amar.kumar 33026
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
33027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
33028
 
33029
    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 33030
    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 33031
 
33032
    private long vendorId; // required
7718 amar.kumar 33033
    private long billingWarehouseId; // required
6467 amar.kumar 33034
 
33035
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33036
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7718 amar.kumar 33037
      VENDOR_ID((short)1, "vendorId"),
33038
      BILLING_WAREHOUSE_ID((short)2, "billingWarehouseId");
6467 amar.kumar 33039
 
33040
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33041
 
33042
      static {
33043
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33044
          byName.put(field.getFieldName(), field);
33045
        }
33046
      }
33047
 
33048
      /**
33049
       * Find the _Fields constant that matches fieldId, or null if its not found.
33050
       */
33051
      public static _Fields findByThriftId(int fieldId) {
33052
        switch(fieldId) {
33053
          case 1: // VENDOR_ID
33054
            return VENDOR_ID;
7718 amar.kumar 33055
          case 2: // BILLING_WAREHOUSE_ID
33056
            return BILLING_WAREHOUSE_ID;
6467 amar.kumar 33057
          default:
33058
            return null;
33059
        }
33060
      }
33061
 
33062
      /**
33063
       * Find the _Fields constant that matches fieldId, throwing an exception
33064
       * if it is not found.
33065
       */
33066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33067
        _Fields fields = findByThriftId(fieldId);
33068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33069
        return fields;
33070
      }
33071
 
33072
      /**
33073
       * Find the _Fields constant that matches name, or null if its not found.
33074
       */
33075
      public static _Fields findByName(String name) {
33076
        return byName.get(name);
33077
      }
33078
 
33079
      private final short _thriftId;
33080
      private final String _fieldName;
33081
 
33082
      _Fields(short thriftId, String fieldName) {
33083
        _thriftId = thriftId;
33084
        _fieldName = fieldName;
33085
      }
33086
 
33087
      public short getThriftFieldId() {
33088
        return _thriftId;
33089
      }
33090
 
33091
      public String getFieldName() {
33092
        return _fieldName;
33093
      }
33094
    }
33095
 
33096
    // isset id assignments
33097
    private static final int __VENDORID_ISSET_ID = 0;
7718 amar.kumar 33098
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
33099
    private BitSet __isset_bit_vector = new BitSet(2);
6467 amar.kumar 33100
 
33101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33102
    static {
33103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33104
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7718 amar.kumar 33106
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6467 amar.kumar 33108
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33109
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
33110
    }
33111
 
33112
    public getOurWarehouseIdForVendor_args() {
33113
    }
33114
 
33115
    public getOurWarehouseIdForVendor_args(
7718 amar.kumar 33116
      long vendorId,
33117
      long billingWarehouseId)
6467 amar.kumar 33118
    {
33119
      this();
33120
      this.vendorId = vendorId;
33121
      setVendorIdIsSet(true);
7718 amar.kumar 33122
      this.billingWarehouseId = billingWarehouseId;
33123
      setBillingWarehouseIdIsSet(true);
6467 amar.kumar 33124
    }
33125
 
33126
    /**
33127
     * Performs a deep copy on <i>other</i>.
33128
     */
33129
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
33130
      __isset_bit_vector.clear();
33131
      __isset_bit_vector.or(other.__isset_bit_vector);
33132
      this.vendorId = other.vendorId;
7718 amar.kumar 33133
      this.billingWarehouseId = other.billingWarehouseId;
6467 amar.kumar 33134
    }
33135
 
33136
    public getOurWarehouseIdForVendor_args deepCopy() {
33137
      return new getOurWarehouseIdForVendor_args(this);
33138
    }
33139
 
33140
    @Override
33141
    public void clear() {
33142
      setVendorIdIsSet(false);
33143
      this.vendorId = 0;
7718 amar.kumar 33144
      setBillingWarehouseIdIsSet(false);
33145
      this.billingWarehouseId = 0;
6467 amar.kumar 33146
    }
33147
 
33148
    public long getVendorId() {
33149
      return this.vendorId;
33150
    }
33151
 
33152
    public void setVendorId(long vendorId) {
33153
      this.vendorId = vendorId;
33154
      setVendorIdIsSet(true);
33155
    }
33156
 
33157
    public void unsetVendorId() {
33158
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
33159
    }
33160
 
33161
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
33162
    public boolean isSetVendorId() {
33163
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
33164
    }
33165
 
33166
    public void setVendorIdIsSet(boolean value) {
33167
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
33168
    }
33169
 
7718 amar.kumar 33170
    public long getBillingWarehouseId() {
33171
      return this.billingWarehouseId;
33172
    }
33173
 
33174
    public void setBillingWarehouseId(long billingWarehouseId) {
33175
      this.billingWarehouseId = billingWarehouseId;
33176
      setBillingWarehouseIdIsSet(true);
33177
    }
33178
 
33179
    public void unsetBillingWarehouseId() {
33180
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
33181
    }
33182
 
33183
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
33184
    public boolean isSetBillingWarehouseId() {
33185
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
33186
    }
33187
 
33188
    public void setBillingWarehouseIdIsSet(boolean value) {
33189
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
33190
    }
33191
 
6467 amar.kumar 33192
    public void setFieldValue(_Fields field, Object value) {
33193
      switch (field) {
33194
      case VENDOR_ID:
33195
        if (value == null) {
33196
          unsetVendorId();
33197
        } else {
33198
          setVendorId((Long)value);
33199
        }
33200
        break;
33201
 
7718 amar.kumar 33202
      case BILLING_WAREHOUSE_ID:
33203
        if (value == null) {
33204
          unsetBillingWarehouseId();
33205
        } else {
33206
          setBillingWarehouseId((Long)value);
33207
        }
33208
        break;
33209
 
6467 amar.kumar 33210
      }
33211
    }
33212
 
33213
    public Object getFieldValue(_Fields field) {
33214
      switch (field) {
33215
      case VENDOR_ID:
33216
        return Long.valueOf(getVendorId());
33217
 
7718 amar.kumar 33218
      case BILLING_WAREHOUSE_ID:
33219
        return Long.valueOf(getBillingWarehouseId());
33220
 
6467 amar.kumar 33221
      }
33222
      throw new IllegalStateException();
33223
    }
33224
 
33225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33226
    public boolean isSet(_Fields field) {
33227
      if (field == null) {
33228
        throw new IllegalArgumentException();
33229
      }
33230
 
33231
      switch (field) {
33232
      case VENDOR_ID:
33233
        return isSetVendorId();
7718 amar.kumar 33234
      case BILLING_WAREHOUSE_ID:
33235
        return isSetBillingWarehouseId();
6467 amar.kumar 33236
      }
33237
      throw new IllegalStateException();
33238
    }
33239
 
33240
    @Override
33241
    public boolean equals(Object that) {
33242
      if (that == null)
33243
        return false;
33244
      if (that instanceof getOurWarehouseIdForVendor_args)
33245
        return this.equals((getOurWarehouseIdForVendor_args)that);
33246
      return false;
33247
    }
33248
 
33249
    public boolean equals(getOurWarehouseIdForVendor_args that) {
33250
      if (that == null)
33251
        return false;
33252
 
33253
      boolean this_present_vendorId = true;
33254
      boolean that_present_vendorId = true;
33255
      if (this_present_vendorId || that_present_vendorId) {
33256
        if (!(this_present_vendorId && that_present_vendorId))
33257
          return false;
33258
        if (this.vendorId != that.vendorId)
33259
          return false;
33260
      }
33261
 
7718 amar.kumar 33262
      boolean this_present_billingWarehouseId = true;
33263
      boolean that_present_billingWarehouseId = true;
33264
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
33265
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
33266
          return false;
33267
        if (this.billingWarehouseId != that.billingWarehouseId)
33268
          return false;
33269
      }
33270
 
6467 amar.kumar 33271
      return true;
33272
    }
33273
 
33274
    @Override
33275
    public int hashCode() {
33276
      return 0;
33277
    }
33278
 
33279
    public int compareTo(getOurWarehouseIdForVendor_args other) {
33280
      if (!getClass().equals(other.getClass())) {
33281
        return getClass().getName().compareTo(other.getClass().getName());
33282
      }
33283
 
33284
      int lastComparison = 0;
33285
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
33286
 
33287
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
33288
      if (lastComparison != 0) {
33289
        return lastComparison;
33290
      }
33291
      if (isSetVendorId()) {
33292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
33293
        if (lastComparison != 0) {
33294
          return lastComparison;
33295
        }
33296
      }
7718 amar.kumar 33297
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
33298
      if (lastComparison != 0) {
33299
        return lastComparison;
33300
      }
33301
      if (isSetBillingWarehouseId()) {
33302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
33303
        if (lastComparison != 0) {
33304
          return lastComparison;
33305
        }
33306
      }
6467 amar.kumar 33307
      return 0;
33308
    }
33309
 
33310
    public _Fields fieldForId(int fieldId) {
33311
      return _Fields.findByThriftId(fieldId);
33312
    }
33313
 
33314
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33315
      org.apache.thrift.protocol.TField field;
33316
      iprot.readStructBegin();
33317
      while (true)
33318
      {
33319
        field = iprot.readFieldBegin();
33320
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33321
          break;
33322
        }
33323
        switch (field.id) {
33324
          case 1: // VENDOR_ID
33325
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33326
              this.vendorId = iprot.readI64();
33327
              setVendorIdIsSet(true);
33328
            } else { 
33329
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33330
            }
33331
            break;
7718 amar.kumar 33332
          case 2: // BILLING_WAREHOUSE_ID
33333
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33334
              this.billingWarehouseId = iprot.readI64();
33335
              setBillingWarehouseIdIsSet(true);
33336
            } else { 
33337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33338
            }
33339
            break;
6467 amar.kumar 33340
          default:
33341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33342
        }
33343
        iprot.readFieldEnd();
33344
      }
33345
      iprot.readStructEnd();
33346
      validate();
33347
    }
33348
 
33349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33350
      validate();
33351
 
33352
      oprot.writeStructBegin(STRUCT_DESC);
33353
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
33354
      oprot.writeI64(this.vendorId);
33355
      oprot.writeFieldEnd();
7718 amar.kumar 33356
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
33357
      oprot.writeI64(this.billingWarehouseId);
33358
      oprot.writeFieldEnd();
6467 amar.kumar 33359
      oprot.writeFieldStop();
33360
      oprot.writeStructEnd();
33361
    }
33362
 
33363
    @Override
33364
    public String toString() {
33365
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
33366
      boolean first = true;
33367
 
33368
      sb.append("vendorId:");
33369
      sb.append(this.vendorId);
33370
      first = false;
7718 amar.kumar 33371
      if (!first) sb.append(", ");
33372
      sb.append("billingWarehouseId:");
33373
      sb.append(this.billingWarehouseId);
33374
      first = false;
6467 amar.kumar 33375
      sb.append(")");
33376
      return sb.toString();
33377
    }
33378
 
33379
    public void validate() throws org.apache.thrift.TException {
33380
      // check for required fields
33381
    }
33382
 
33383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33384
      try {
33385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33386
      } catch (org.apache.thrift.TException te) {
33387
        throw new java.io.IOException(te);
33388
      }
33389
    }
33390
 
33391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33392
      try {
33393
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33394
        __isset_bit_vector = new BitSet(1);
33395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33396
      } catch (org.apache.thrift.TException te) {
33397
        throw new java.io.IOException(te);
33398
      }
33399
    }
33400
 
33401
  }
33402
 
33403
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
33404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
33405
 
33406
    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);
33407
 
33408
    private long success; // required
33409
 
33410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33412
      SUCCESS((short)0, "success");
33413
 
33414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33415
 
33416
      static {
33417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33418
          byName.put(field.getFieldName(), field);
33419
        }
33420
      }
33421
 
33422
      /**
33423
       * Find the _Fields constant that matches fieldId, or null if its not found.
33424
       */
33425
      public static _Fields findByThriftId(int fieldId) {
33426
        switch(fieldId) {
33427
          case 0: // SUCCESS
33428
            return SUCCESS;
33429
          default:
33430
            return null;
33431
        }
33432
      }
33433
 
33434
      /**
33435
       * Find the _Fields constant that matches fieldId, throwing an exception
33436
       * if it is not found.
33437
       */
33438
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33439
        _Fields fields = findByThriftId(fieldId);
33440
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33441
        return fields;
33442
      }
33443
 
33444
      /**
33445
       * Find the _Fields constant that matches name, or null if its not found.
33446
       */
33447
      public static _Fields findByName(String name) {
33448
        return byName.get(name);
33449
      }
33450
 
33451
      private final short _thriftId;
33452
      private final String _fieldName;
33453
 
33454
      _Fields(short thriftId, String fieldName) {
33455
        _thriftId = thriftId;
33456
        _fieldName = fieldName;
33457
      }
33458
 
33459
      public short getThriftFieldId() {
33460
        return _thriftId;
33461
      }
33462
 
33463
      public String getFieldName() {
33464
        return _fieldName;
33465
      }
33466
    }
33467
 
33468
    // isset id assignments
33469
    private static final int __SUCCESS_ISSET_ID = 0;
33470
    private BitSet __isset_bit_vector = new BitSet(1);
33471
 
33472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33473
    static {
33474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33475
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33476
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
33477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
33479
    }
33480
 
33481
    public getOurWarehouseIdForVendor_result() {
33482
    }
33483
 
33484
    public getOurWarehouseIdForVendor_result(
33485
      long success)
33486
    {
33487
      this();
33488
      this.success = success;
33489
      setSuccessIsSet(true);
33490
    }
33491
 
33492
    /**
33493
     * Performs a deep copy on <i>other</i>.
33494
     */
33495
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
33496
      __isset_bit_vector.clear();
33497
      __isset_bit_vector.or(other.__isset_bit_vector);
33498
      this.success = other.success;
33499
    }
33500
 
33501
    public getOurWarehouseIdForVendor_result deepCopy() {
33502
      return new getOurWarehouseIdForVendor_result(this);
33503
    }
33504
 
33505
    @Override
33506
    public void clear() {
33507
      setSuccessIsSet(false);
33508
      this.success = 0;
33509
    }
33510
 
33511
    public long getSuccess() {
33512
      return this.success;
33513
    }
33514
 
33515
    public void setSuccess(long success) {
33516
      this.success = success;
33517
      setSuccessIsSet(true);
33518
    }
33519
 
33520
    public void unsetSuccess() {
33521
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
33522
    }
33523
 
33524
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33525
    public boolean isSetSuccess() {
33526
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
33527
    }
33528
 
33529
    public void setSuccessIsSet(boolean value) {
33530
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
33531
    }
33532
 
33533
    public void setFieldValue(_Fields field, Object value) {
33534
      switch (field) {
33535
      case SUCCESS:
33536
        if (value == null) {
33537
          unsetSuccess();
33538
        } else {
33539
          setSuccess((Long)value);
33540
        }
33541
        break;
33542
 
33543
      }
33544
    }
33545
 
33546
    public Object getFieldValue(_Fields field) {
33547
      switch (field) {
33548
      case SUCCESS:
33549
        return Long.valueOf(getSuccess());
33550
 
33551
      }
33552
      throw new IllegalStateException();
33553
    }
33554
 
33555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33556
    public boolean isSet(_Fields field) {
33557
      if (field == null) {
33558
        throw new IllegalArgumentException();
33559
      }
33560
 
33561
      switch (field) {
33562
      case SUCCESS:
33563
        return isSetSuccess();
33564
      }
33565
      throw new IllegalStateException();
33566
    }
33567
 
33568
    @Override
33569
    public boolean equals(Object that) {
33570
      if (that == null)
33571
        return false;
33572
      if (that instanceof getOurWarehouseIdForVendor_result)
33573
        return this.equals((getOurWarehouseIdForVendor_result)that);
33574
      return false;
33575
    }
33576
 
33577
    public boolean equals(getOurWarehouseIdForVendor_result that) {
33578
      if (that == null)
33579
        return false;
33580
 
33581
      boolean this_present_success = true;
33582
      boolean that_present_success = true;
33583
      if (this_present_success || that_present_success) {
33584
        if (!(this_present_success && that_present_success))
33585
          return false;
33586
        if (this.success != that.success)
33587
          return false;
33588
      }
33589
 
33590
      return true;
33591
    }
33592
 
33593
    @Override
33594
    public int hashCode() {
33595
      return 0;
33596
    }
33597
 
33598
    public int compareTo(getOurWarehouseIdForVendor_result other) {
33599
      if (!getClass().equals(other.getClass())) {
33600
        return getClass().getName().compareTo(other.getClass().getName());
33601
      }
33602
 
33603
      int lastComparison = 0;
33604
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
33605
 
33606
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33607
      if (lastComparison != 0) {
33608
        return lastComparison;
33609
      }
33610
      if (isSetSuccess()) {
33611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33612
        if (lastComparison != 0) {
33613
          return lastComparison;
33614
        }
33615
      }
33616
      return 0;
33617
    }
33618
 
33619
    public _Fields fieldForId(int fieldId) {
33620
      return _Fields.findByThriftId(fieldId);
33621
    }
33622
 
33623
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33624
      org.apache.thrift.protocol.TField field;
33625
      iprot.readStructBegin();
33626
      while (true)
33627
      {
33628
        field = iprot.readFieldBegin();
33629
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33630
          break;
33631
        }
33632
        switch (field.id) {
33633
          case 0: // SUCCESS
33634
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33635
              this.success = iprot.readI64();
33636
              setSuccessIsSet(true);
33637
            } else { 
33638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33639
            }
33640
            break;
33641
          default:
33642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33643
        }
33644
        iprot.readFieldEnd();
33645
      }
33646
      iprot.readStructEnd();
33647
      validate();
33648
    }
33649
 
33650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33651
      oprot.writeStructBegin(STRUCT_DESC);
33652
 
33653
      if (this.isSetSuccess()) {
33654
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33655
        oprot.writeI64(this.success);
33656
        oprot.writeFieldEnd();
33657
      }
33658
      oprot.writeFieldStop();
33659
      oprot.writeStructEnd();
33660
    }
33661
 
33662
    @Override
33663
    public String toString() {
33664
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
33665
      boolean first = true;
33666
 
33667
      sb.append("success:");
33668
      sb.append(this.success);
33669
      first = false;
33670
      sb.append(")");
33671
      return sb.toString();
33672
    }
33673
 
33674
    public void validate() throws org.apache.thrift.TException {
33675
      // check for required fields
33676
    }
33677
 
33678
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33679
      try {
33680
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33681
      } catch (org.apache.thrift.TException te) {
33682
        throw new java.io.IOException(te);
33683
      }
33684
    }
33685
 
33686
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33687
      try {
33688
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33689
      } catch (org.apache.thrift.TException te) {
33690
        throw new java.io.IOException(te);
33691
      }
33692
    }
33693
 
33694
  }
33695
 
6484 amar.kumar 33696
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
33697
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
33698
 
33699
    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);
33700
 
33701
    private List<Long> item_ids; // required
33702
 
33703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33705
      ITEM_IDS((short)1, "item_ids");
33706
 
33707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33708
 
33709
      static {
33710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33711
          byName.put(field.getFieldName(), field);
33712
        }
33713
      }
33714
 
33715
      /**
33716
       * Find the _Fields constant that matches fieldId, or null if its not found.
33717
       */
33718
      public static _Fields findByThriftId(int fieldId) {
33719
        switch(fieldId) {
33720
          case 1: // ITEM_IDS
33721
            return ITEM_IDS;
33722
          default:
33723
            return null;
33724
        }
33725
      }
33726
 
33727
      /**
33728
       * Find the _Fields constant that matches fieldId, throwing an exception
33729
       * if it is not found.
33730
       */
33731
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33732
        _Fields fields = findByThriftId(fieldId);
33733
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33734
        return fields;
33735
      }
33736
 
33737
      /**
33738
       * Find the _Fields constant that matches name, or null if its not found.
33739
       */
33740
      public static _Fields findByName(String name) {
33741
        return byName.get(name);
33742
      }
33743
 
33744
      private final short _thriftId;
33745
      private final String _fieldName;
33746
 
33747
      _Fields(short thriftId, String fieldName) {
33748
        _thriftId = thriftId;
33749
        _fieldName = fieldName;
33750
      }
33751
 
33752
      public short getThriftFieldId() {
33753
        return _thriftId;
33754
      }
33755
 
33756
      public String getFieldName() {
33757
        return _fieldName;
33758
      }
33759
    }
33760
 
33761
    // isset id assignments
33762
 
33763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33764
    static {
33765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33766
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33767
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
33768
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
33769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
33771
    }
33772
 
33773
    public getItemAvailabilitiesAtOurWarehouses_args() {
33774
    }
33775
 
33776
    public getItemAvailabilitiesAtOurWarehouses_args(
33777
      List<Long> item_ids)
33778
    {
33779
      this();
33780
      this.item_ids = item_ids;
33781
    }
33782
 
33783
    /**
33784
     * Performs a deep copy on <i>other</i>.
33785
     */
33786
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
33787
      if (other.isSetItem_ids()) {
33788
        List<Long> __this__item_ids = new ArrayList<Long>();
33789
        for (Long other_element : other.item_ids) {
33790
          __this__item_ids.add(other_element);
33791
        }
33792
        this.item_ids = __this__item_ids;
33793
      }
33794
    }
33795
 
33796
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
33797
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
33798
    }
33799
 
33800
    @Override
33801
    public void clear() {
33802
      this.item_ids = null;
33803
    }
33804
 
33805
    public int getItem_idsSize() {
33806
      return (this.item_ids == null) ? 0 : this.item_ids.size();
33807
    }
33808
 
33809
    public java.util.Iterator<Long> getItem_idsIterator() {
33810
      return (this.item_ids == null) ? null : this.item_ids.iterator();
33811
    }
33812
 
33813
    public void addToItem_ids(long elem) {
33814
      if (this.item_ids == null) {
33815
        this.item_ids = new ArrayList<Long>();
33816
      }
33817
      this.item_ids.add(elem);
33818
    }
33819
 
33820
    public List<Long> getItem_ids() {
33821
      return this.item_ids;
33822
    }
33823
 
33824
    public void setItem_ids(List<Long> item_ids) {
33825
      this.item_ids = item_ids;
33826
    }
33827
 
33828
    public void unsetItem_ids() {
33829
      this.item_ids = null;
33830
    }
33831
 
33832
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
33833
    public boolean isSetItem_ids() {
33834
      return this.item_ids != null;
33835
    }
33836
 
33837
    public void setItem_idsIsSet(boolean value) {
33838
      if (!value) {
33839
        this.item_ids = null;
33840
      }
33841
    }
33842
 
33843
    public void setFieldValue(_Fields field, Object value) {
33844
      switch (field) {
33845
      case ITEM_IDS:
33846
        if (value == null) {
33847
          unsetItem_ids();
33848
        } else {
33849
          setItem_ids((List<Long>)value);
33850
        }
33851
        break;
33852
 
33853
      }
33854
    }
33855
 
33856
    public Object getFieldValue(_Fields field) {
33857
      switch (field) {
33858
      case ITEM_IDS:
33859
        return getItem_ids();
33860
 
33861
      }
33862
      throw new IllegalStateException();
33863
    }
33864
 
33865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33866
    public boolean isSet(_Fields field) {
33867
      if (field == null) {
33868
        throw new IllegalArgumentException();
33869
      }
33870
 
33871
      switch (field) {
33872
      case ITEM_IDS:
33873
        return isSetItem_ids();
33874
      }
33875
      throw new IllegalStateException();
33876
    }
33877
 
33878
    @Override
33879
    public boolean equals(Object that) {
33880
      if (that == null)
33881
        return false;
33882
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
33883
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
33884
      return false;
33885
    }
33886
 
33887
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
33888
      if (that == null)
33889
        return false;
33890
 
33891
      boolean this_present_item_ids = true && this.isSetItem_ids();
33892
      boolean that_present_item_ids = true && that.isSetItem_ids();
33893
      if (this_present_item_ids || that_present_item_ids) {
33894
        if (!(this_present_item_ids && that_present_item_ids))
33895
          return false;
33896
        if (!this.item_ids.equals(that.item_ids))
33897
          return false;
33898
      }
33899
 
33900
      return true;
33901
    }
33902
 
33903
    @Override
33904
    public int hashCode() {
33905
      return 0;
33906
    }
33907
 
33908
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
33909
      if (!getClass().equals(other.getClass())) {
33910
        return getClass().getName().compareTo(other.getClass().getName());
33911
      }
33912
 
33913
      int lastComparison = 0;
33914
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
33915
 
33916
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
33917
      if (lastComparison != 0) {
33918
        return lastComparison;
33919
      }
33920
      if (isSetItem_ids()) {
33921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
33922
        if (lastComparison != 0) {
33923
          return lastComparison;
33924
        }
33925
      }
33926
      return 0;
33927
    }
33928
 
33929
    public _Fields fieldForId(int fieldId) {
33930
      return _Fields.findByThriftId(fieldId);
33931
    }
33932
 
33933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33934
      org.apache.thrift.protocol.TField field;
33935
      iprot.readStructBegin();
33936
      while (true)
33937
      {
33938
        field = iprot.readFieldBegin();
33939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33940
          break;
33941
        }
33942
        switch (field.id) {
33943
          case 1: // ITEM_IDS
33944
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
33945
              {
8182 amar.kumar 33946
                org.apache.thrift.protocol.TList _list84 = iprot.readListBegin();
33947
                this.item_ids = new ArrayList<Long>(_list84.size);
33948
                for (int _i85 = 0; _i85 < _list84.size; ++_i85)
6484 amar.kumar 33949
                {
8182 amar.kumar 33950
                  long _elem86; // required
33951
                  _elem86 = iprot.readI64();
33952
                  this.item_ids.add(_elem86);
6484 amar.kumar 33953
                }
33954
                iprot.readListEnd();
33955
              }
33956
            } else { 
33957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33958
            }
33959
            break;
33960
          default:
33961
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33962
        }
33963
        iprot.readFieldEnd();
33964
      }
33965
      iprot.readStructEnd();
33966
      validate();
33967
    }
33968
 
33969
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33970
      validate();
33971
 
33972
      oprot.writeStructBegin(STRUCT_DESC);
33973
      if (this.item_ids != null) {
33974
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
33975
        {
33976
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
8182 amar.kumar 33977
          for (long _iter87 : this.item_ids)
6484 amar.kumar 33978
          {
8182 amar.kumar 33979
            oprot.writeI64(_iter87);
6484 amar.kumar 33980
          }
33981
          oprot.writeListEnd();
33982
        }
33983
        oprot.writeFieldEnd();
33984
      }
33985
      oprot.writeFieldStop();
33986
      oprot.writeStructEnd();
33987
    }
33988
 
33989
    @Override
33990
    public String toString() {
33991
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
33992
      boolean first = true;
33993
 
33994
      sb.append("item_ids:");
33995
      if (this.item_ids == null) {
33996
        sb.append("null");
33997
      } else {
33998
        sb.append(this.item_ids);
33999
      }
34000
      first = false;
34001
      sb.append(")");
34002
      return sb.toString();
34003
    }
34004
 
34005
    public void validate() throws org.apache.thrift.TException {
34006
      // check for required fields
34007
    }
34008
 
34009
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34010
      try {
34011
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34012
      } catch (org.apache.thrift.TException te) {
34013
        throw new java.io.IOException(te);
34014
      }
34015
    }
34016
 
34017
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34018
      try {
34019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34020
      } catch (org.apache.thrift.TException te) {
34021
        throw new java.io.IOException(te);
34022
      }
34023
    }
34024
 
34025
  }
34026
 
34027
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
34028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
34029
 
34030
    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);
34031
 
34032
    private Map<Long,Long> success; // required
34033
 
34034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34036
      SUCCESS((short)0, "success");
34037
 
34038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34039
 
34040
      static {
34041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34042
          byName.put(field.getFieldName(), field);
34043
        }
34044
      }
34045
 
34046
      /**
34047
       * Find the _Fields constant that matches fieldId, or null if its not found.
34048
       */
34049
      public static _Fields findByThriftId(int fieldId) {
34050
        switch(fieldId) {
34051
          case 0: // SUCCESS
34052
            return SUCCESS;
34053
          default:
34054
            return null;
34055
        }
34056
      }
34057
 
34058
      /**
34059
       * Find the _Fields constant that matches fieldId, throwing an exception
34060
       * if it is not found.
34061
       */
34062
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34063
        _Fields fields = findByThriftId(fieldId);
34064
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34065
        return fields;
34066
      }
34067
 
34068
      /**
34069
       * Find the _Fields constant that matches name, or null if its not found.
34070
       */
34071
      public static _Fields findByName(String name) {
34072
        return byName.get(name);
34073
      }
34074
 
34075
      private final short _thriftId;
34076
      private final String _fieldName;
34077
 
34078
      _Fields(short thriftId, String fieldName) {
34079
        _thriftId = thriftId;
34080
        _fieldName = fieldName;
34081
      }
34082
 
34083
      public short getThriftFieldId() {
34084
        return _thriftId;
34085
      }
34086
 
34087
      public String getFieldName() {
34088
        return _fieldName;
34089
      }
34090
    }
34091
 
34092
    // isset id assignments
34093
 
34094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34095
    static {
34096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34097
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34098
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
34099
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
34100
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
34101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
34103
    }
34104
 
34105
    public getItemAvailabilitiesAtOurWarehouses_result() {
34106
    }
34107
 
34108
    public getItemAvailabilitiesAtOurWarehouses_result(
34109
      Map<Long,Long> success)
34110
    {
34111
      this();
34112
      this.success = success;
34113
    }
34114
 
34115
    /**
34116
     * Performs a deep copy on <i>other</i>.
34117
     */
34118
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
34119
      if (other.isSetSuccess()) {
34120
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
34121
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
34122
 
34123
          Long other_element_key = other_element.getKey();
34124
          Long other_element_value = other_element.getValue();
34125
 
34126
          Long __this__success_copy_key = other_element_key;
34127
 
34128
          Long __this__success_copy_value = other_element_value;
34129
 
34130
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
34131
        }
34132
        this.success = __this__success;
34133
      }
34134
    }
34135
 
34136
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
34137
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
34138
    }
34139
 
34140
    @Override
34141
    public void clear() {
34142
      this.success = null;
34143
    }
34144
 
34145
    public int getSuccessSize() {
34146
      return (this.success == null) ? 0 : this.success.size();
34147
    }
34148
 
34149
    public void putToSuccess(long key, long val) {
34150
      if (this.success == null) {
34151
        this.success = new HashMap<Long,Long>();
34152
      }
34153
      this.success.put(key, val);
34154
    }
34155
 
34156
    public Map<Long,Long> getSuccess() {
34157
      return this.success;
34158
    }
34159
 
34160
    public void setSuccess(Map<Long,Long> success) {
34161
      this.success = success;
34162
    }
34163
 
34164
    public void unsetSuccess() {
34165
      this.success = null;
34166
    }
34167
 
34168
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34169
    public boolean isSetSuccess() {
34170
      return this.success != null;
34171
    }
34172
 
34173
    public void setSuccessIsSet(boolean value) {
34174
      if (!value) {
34175
        this.success = null;
34176
      }
34177
    }
34178
 
34179
    public void setFieldValue(_Fields field, Object value) {
34180
      switch (field) {
34181
      case SUCCESS:
34182
        if (value == null) {
34183
          unsetSuccess();
34184
        } else {
34185
          setSuccess((Map<Long,Long>)value);
34186
        }
34187
        break;
34188
 
34189
      }
34190
    }
34191
 
34192
    public Object getFieldValue(_Fields field) {
34193
      switch (field) {
34194
      case SUCCESS:
34195
        return getSuccess();
34196
 
34197
      }
34198
      throw new IllegalStateException();
34199
    }
34200
 
34201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34202
    public boolean isSet(_Fields field) {
34203
      if (field == null) {
34204
        throw new IllegalArgumentException();
34205
      }
34206
 
34207
      switch (field) {
34208
      case SUCCESS:
34209
        return isSetSuccess();
34210
      }
34211
      throw new IllegalStateException();
34212
    }
34213
 
34214
    @Override
34215
    public boolean equals(Object that) {
34216
      if (that == null)
34217
        return false;
34218
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
34219
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
34220
      return false;
34221
    }
34222
 
34223
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
34224
      if (that == null)
34225
        return false;
34226
 
34227
      boolean this_present_success = true && this.isSetSuccess();
34228
      boolean that_present_success = true && that.isSetSuccess();
34229
      if (this_present_success || that_present_success) {
34230
        if (!(this_present_success && that_present_success))
34231
          return false;
34232
        if (!this.success.equals(that.success))
34233
          return false;
34234
      }
34235
 
34236
      return true;
34237
    }
34238
 
34239
    @Override
34240
    public int hashCode() {
34241
      return 0;
34242
    }
34243
 
34244
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
34245
      if (!getClass().equals(other.getClass())) {
34246
        return getClass().getName().compareTo(other.getClass().getName());
34247
      }
34248
 
34249
      int lastComparison = 0;
34250
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
34251
 
34252
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34253
      if (lastComparison != 0) {
34254
        return lastComparison;
34255
      }
34256
      if (isSetSuccess()) {
34257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34258
        if (lastComparison != 0) {
34259
          return lastComparison;
34260
        }
34261
      }
34262
      return 0;
34263
    }
34264
 
34265
    public _Fields fieldForId(int fieldId) {
34266
      return _Fields.findByThriftId(fieldId);
34267
    }
34268
 
34269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34270
      org.apache.thrift.protocol.TField field;
34271
      iprot.readStructBegin();
34272
      while (true)
34273
      {
34274
        field = iprot.readFieldBegin();
34275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34276
          break;
34277
        }
34278
        switch (field.id) {
34279
          case 0: // SUCCESS
34280
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
34281
              {
8182 amar.kumar 34282
                org.apache.thrift.protocol.TMap _map88 = iprot.readMapBegin();
34283
                this.success = new HashMap<Long,Long>(2*_map88.size);
34284
                for (int _i89 = 0; _i89 < _map88.size; ++_i89)
6484 amar.kumar 34285
                {
8182 amar.kumar 34286
                  long _key90; // required
34287
                  long _val91; // required
34288
                  _key90 = iprot.readI64();
34289
                  _val91 = iprot.readI64();
34290
                  this.success.put(_key90, _val91);
6484 amar.kumar 34291
                }
34292
                iprot.readMapEnd();
34293
              }
34294
            } else { 
34295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34296
            }
34297
            break;
34298
          default:
34299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34300
        }
34301
        iprot.readFieldEnd();
34302
      }
34303
      iprot.readStructEnd();
34304
      validate();
34305
    }
34306
 
34307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34308
      oprot.writeStructBegin(STRUCT_DESC);
34309
 
34310
      if (this.isSetSuccess()) {
34311
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34312
        {
34313
          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 34314
          for (Map.Entry<Long, Long> _iter92 : this.success.entrySet())
6484 amar.kumar 34315
          {
8182 amar.kumar 34316
            oprot.writeI64(_iter92.getKey());
34317
            oprot.writeI64(_iter92.getValue());
6484 amar.kumar 34318
          }
34319
          oprot.writeMapEnd();
34320
        }
34321
        oprot.writeFieldEnd();
34322
      }
34323
      oprot.writeFieldStop();
34324
      oprot.writeStructEnd();
34325
    }
34326
 
34327
    @Override
34328
    public String toString() {
34329
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
34330
      boolean first = true;
34331
 
34332
      sb.append("success:");
34333
      if (this.success == null) {
34334
        sb.append("null");
34335
      } else {
34336
        sb.append(this.success);
34337
      }
34338
      first = false;
34339
      sb.append(")");
34340
      return sb.toString();
34341
    }
34342
 
34343
    public void validate() throws org.apache.thrift.TException {
34344
      // check for required fields
34345
    }
34346
 
34347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34348
      try {
34349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34350
      } catch (org.apache.thrift.TException te) {
34351
        throw new java.io.IOException(te);
34352
      }
34353
    }
34354
 
34355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34356
      try {
34357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34358
      } catch (org.apache.thrift.TException te) {
34359
        throw new java.io.IOException(te);
34360
      }
34361
    }
34362
 
34363
  }
34364
 
6531 vikram.rag 34365
  public static class getMonitoredWarehouseForVendors_args implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_args, getMonitoredWarehouseForVendors_args._Fields>, java.io.Serializable, Cloneable   {
34366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_args");
34367
 
34368
    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);
34369
 
34370
    private List<Long> vendorIds; // required
34371
 
34372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34374
      VENDOR_IDS((short)1, "vendorIds");
34375
 
34376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34377
 
34378
      static {
34379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34380
          byName.put(field.getFieldName(), field);
34381
        }
34382
      }
34383
 
34384
      /**
34385
       * Find the _Fields constant that matches fieldId, or null if its not found.
34386
       */
34387
      public static _Fields findByThriftId(int fieldId) {
34388
        switch(fieldId) {
34389
          case 1: // VENDOR_IDS
34390
            return VENDOR_IDS;
34391
          default:
34392
            return null;
34393
        }
34394
      }
34395
 
34396
      /**
34397
       * Find the _Fields constant that matches fieldId, throwing an exception
34398
       * if it is not found.
34399
       */
34400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34401
        _Fields fields = findByThriftId(fieldId);
34402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34403
        return fields;
34404
      }
34405
 
34406
      /**
34407
       * Find the _Fields constant that matches name, or null if its not found.
34408
       */
34409
      public static _Fields findByName(String name) {
34410
        return byName.get(name);
34411
      }
34412
 
34413
      private final short _thriftId;
34414
      private final String _fieldName;
34415
 
34416
      _Fields(short thriftId, String fieldName) {
34417
        _thriftId = thriftId;
34418
        _fieldName = fieldName;
34419
      }
34420
 
34421
      public short getThriftFieldId() {
34422
        return _thriftId;
34423
      }
34424
 
34425
      public String getFieldName() {
34426
        return _fieldName;
34427
      }
34428
    }
34429
 
34430
    // isset id assignments
34431
 
34432
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34433
    static {
34434
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34435
      tmpMap.put(_Fields.VENDOR_IDS, new org.apache.thrift.meta_data.FieldMetaData("vendorIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34436
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34437
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
34438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_args.class, metaDataMap);
34440
    }
34441
 
34442
    public getMonitoredWarehouseForVendors_args() {
34443
    }
34444
 
34445
    public getMonitoredWarehouseForVendors_args(
34446
      List<Long> vendorIds)
34447
    {
34448
      this();
34449
      this.vendorIds = vendorIds;
34450
    }
34451
 
34452
    /**
34453
     * Performs a deep copy on <i>other</i>.
34454
     */
34455
    public getMonitoredWarehouseForVendors_args(getMonitoredWarehouseForVendors_args other) {
34456
      if (other.isSetVendorIds()) {
34457
        List<Long> __this__vendorIds = new ArrayList<Long>();
34458
        for (Long other_element : other.vendorIds) {
34459
          __this__vendorIds.add(other_element);
34460
        }
34461
        this.vendorIds = __this__vendorIds;
34462
      }
34463
    }
34464
 
34465
    public getMonitoredWarehouseForVendors_args deepCopy() {
34466
      return new getMonitoredWarehouseForVendors_args(this);
34467
    }
34468
 
34469
    @Override
34470
    public void clear() {
34471
      this.vendorIds = null;
34472
    }
34473
 
34474
    public int getVendorIdsSize() {
34475
      return (this.vendorIds == null) ? 0 : this.vendorIds.size();
34476
    }
34477
 
34478
    public java.util.Iterator<Long> getVendorIdsIterator() {
34479
      return (this.vendorIds == null) ? null : this.vendorIds.iterator();
34480
    }
34481
 
34482
    public void addToVendorIds(long elem) {
34483
      if (this.vendorIds == null) {
34484
        this.vendorIds = new ArrayList<Long>();
34485
      }
34486
      this.vendorIds.add(elem);
34487
    }
34488
 
34489
    public List<Long> getVendorIds() {
34490
      return this.vendorIds;
34491
    }
34492
 
34493
    public void setVendorIds(List<Long> vendorIds) {
34494
      this.vendorIds = vendorIds;
34495
    }
34496
 
34497
    public void unsetVendorIds() {
34498
      this.vendorIds = null;
34499
    }
34500
 
34501
    /** Returns true if field vendorIds is set (has been assigned a value) and false otherwise */
34502
    public boolean isSetVendorIds() {
34503
      return this.vendorIds != null;
34504
    }
34505
 
34506
    public void setVendorIdsIsSet(boolean value) {
34507
      if (!value) {
34508
        this.vendorIds = null;
34509
      }
34510
    }
34511
 
34512
    public void setFieldValue(_Fields field, Object value) {
34513
      switch (field) {
34514
      case VENDOR_IDS:
34515
        if (value == null) {
34516
          unsetVendorIds();
34517
        } else {
34518
          setVendorIds((List<Long>)value);
34519
        }
34520
        break;
34521
 
34522
      }
34523
    }
34524
 
34525
    public Object getFieldValue(_Fields field) {
34526
      switch (field) {
34527
      case VENDOR_IDS:
34528
        return getVendorIds();
34529
 
34530
      }
34531
      throw new IllegalStateException();
34532
    }
34533
 
34534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34535
    public boolean isSet(_Fields field) {
34536
      if (field == null) {
34537
        throw new IllegalArgumentException();
34538
      }
34539
 
34540
      switch (field) {
34541
      case VENDOR_IDS:
34542
        return isSetVendorIds();
34543
      }
34544
      throw new IllegalStateException();
34545
    }
34546
 
34547
    @Override
34548
    public boolean equals(Object that) {
34549
      if (that == null)
34550
        return false;
34551
      if (that instanceof getMonitoredWarehouseForVendors_args)
34552
        return this.equals((getMonitoredWarehouseForVendors_args)that);
34553
      return false;
34554
    }
34555
 
34556
    public boolean equals(getMonitoredWarehouseForVendors_args that) {
34557
      if (that == null)
34558
        return false;
34559
 
34560
      boolean this_present_vendorIds = true && this.isSetVendorIds();
34561
      boolean that_present_vendorIds = true && that.isSetVendorIds();
34562
      if (this_present_vendorIds || that_present_vendorIds) {
34563
        if (!(this_present_vendorIds && that_present_vendorIds))
34564
          return false;
34565
        if (!this.vendorIds.equals(that.vendorIds))
34566
          return false;
34567
      }
34568
 
34569
      return true;
34570
    }
34571
 
34572
    @Override
34573
    public int hashCode() {
34574
      return 0;
34575
    }
34576
 
34577
    public int compareTo(getMonitoredWarehouseForVendors_args other) {
34578
      if (!getClass().equals(other.getClass())) {
34579
        return getClass().getName().compareTo(other.getClass().getName());
34580
      }
34581
 
34582
      int lastComparison = 0;
34583
      getMonitoredWarehouseForVendors_args typedOther = (getMonitoredWarehouseForVendors_args)other;
34584
 
34585
      lastComparison = Boolean.valueOf(isSetVendorIds()).compareTo(typedOther.isSetVendorIds());
34586
      if (lastComparison != 0) {
34587
        return lastComparison;
34588
      }
34589
      if (isSetVendorIds()) {
34590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorIds, typedOther.vendorIds);
34591
        if (lastComparison != 0) {
34592
          return lastComparison;
34593
        }
34594
      }
34595
      return 0;
34596
    }
34597
 
34598
    public _Fields fieldForId(int fieldId) {
34599
      return _Fields.findByThriftId(fieldId);
34600
    }
34601
 
34602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34603
      org.apache.thrift.protocol.TField field;
34604
      iprot.readStructBegin();
34605
      while (true)
34606
      {
34607
        field = iprot.readFieldBegin();
34608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34609
          break;
34610
        }
34611
        switch (field.id) {
34612
          case 1: // VENDOR_IDS
34613
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34614
              {
8182 amar.kumar 34615
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
34616
                this.vendorIds = new ArrayList<Long>(_list93.size);
34617
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
6531 vikram.rag 34618
                {
8182 amar.kumar 34619
                  long _elem95; // required
34620
                  _elem95 = iprot.readI64();
34621
                  this.vendorIds.add(_elem95);
6531 vikram.rag 34622
                }
34623
                iprot.readListEnd();
34624
              }
34625
            } else { 
34626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34627
            }
34628
            break;
34629
          default:
34630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34631
        }
34632
        iprot.readFieldEnd();
34633
      }
34634
      iprot.readStructEnd();
34635
      validate();
34636
    }
34637
 
34638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34639
      validate();
34640
 
34641
      oprot.writeStructBegin(STRUCT_DESC);
34642
      if (this.vendorIds != null) {
34643
        oprot.writeFieldBegin(VENDOR_IDS_FIELD_DESC);
34644
        {
34645
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendorIds.size()));
8182 amar.kumar 34646
          for (long _iter96 : this.vendorIds)
6531 vikram.rag 34647
          {
8182 amar.kumar 34648
            oprot.writeI64(_iter96);
6531 vikram.rag 34649
          }
34650
          oprot.writeListEnd();
34651
        }
34652
        oprot.writeFieldEnd();
34653
      }
34654
      oprot.writeFieldStop();
34655
      oprot.writeStructEnd();
34656
    }
34657
 
34658
    @Override
34659
    public String toString() {
34660
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_args(");
34661
      boolean first = true;
34662
 
34663
      sb.append("vendorIds:");
34664
      if (this.vendorIds == null) {
34665
        sb.append("null");
34666
      } else {
34667
        sb.append(this.vendorIds);
34668
      }
34669
      first = false;
34670
      sb.append(")");
34671
      return sb.toString();
34672
    }
34673
 
34674
    public void validate() throws org.apache.thrift.TException {
34675
      // check for required fields
34676
    }
34677
 
34678
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34679
      try {
34680
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34681
      } catch (org.apache.thrift.TException te) {
34682
        throw new java.io.IOException(te);
34683
      }
34684
    }
34685
 
34686
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34687
      try {
34688
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34689
      } catch (org.apache.thrift.TException te) {
34690
        throw new java.io.IOException(te);
34691
      }
34692
    }
34693
 
34694
  }
34695
 
34696
  public static class getMonitoredWarehouseForVendors_result implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_result, getMonitoredWarehouseForVendors_result._Fields>, java.io.Serializable, Cloneable   {
34697
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_result");
34698
 
34699
    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);
34700
 
34701
    private List<Long> success; // required
34702
 
34703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34705
      SUCCESS((short)0, "success");
34706
 
34707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34708
 
34709
      static {
34710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34711
          byName.put(field.getFieldName(), field);
34712
        }
34713
      }
34714
 
34715
      /**
34716
       * Find the _Fields constant that matches fieldId, or null if its not found.
34717
       */
34718
      public static _Fields findByThriftId(int fieldId) {
34719
        switch(fieldId) {
34720
          case 0: // SUCCESS
34721
            return SUCCESS;
34722
          default:
34723
            return null;
34724
        }
34725
      }
34726
 
34727
      /**
34728
       * Find the _Fields constant that matches fieldId, throwing an exception
34729
       * if it is not found.
34730
       */
34731
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34732
        _Fields fields = findByThriftId(fieldId);
34733
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34734
        return fields;
34735
      }
34736
 
34737
      /**
34738
       * Find the _Fields constant that matches name, or null if its not found.
34739
       */
34740
      public static _Fields findByName(String name) {
34741
        return byName.get(name);
34742
      }
34743
 
34744
      private final short _thriftId;
34745
      private final String _fieldName;
34746
 
34747
      _Fields(short thriftId, String fieldName) {
34748
        _thriftId = thriftId;
34749
        _fieldName = fieldName;
34750
      }
34751
 
34752
      public short getThriftFieldId() {
34753
        return _thriftId;
34754
      }
34755
 
34756
      public String getFieldName() {
34757
        return _fieldName;
34758
      }
34759
    }
34760
 
34761
    // isset id assignments
34762
 
34763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34764
    static {
34765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34766
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34767
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34768
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
34769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_result.class, metaDataMap);
34771
    }
34772
 
34773
    public getMonitoredWarehouseForVendors_result() {
34774
    }
34775
 
34776
    public getMonitoredWarehouseForVendors_result(
34777
      List<Long> success)
34778
    {
34779
      this();
34780
      this.success = success;
34781
    }
34782
 
34783
    /**
34784
     * Performs a deep copy on <i>other</i>.
34785
     */
34786
    public getMonitoredWarehouseForVendors_result(getMonitoredWarehouseForVendors_result other) {
34787
      if (other.isSetSuccess()) {
34788
        List<Long> __this__success = new ArrayList<Long>();
34789
        for (Long other_element : other.success) {
34790
          __this__success.add(other_element);
34791
        }
34792
        this.success = __this__success;
34793
      }
34794
    }
34795
 
34796
    public getMonitoredWarehouseForVendors_result deepCopy() {
34797
      return new getMonitoredWarehouseForVendors_result(this);
34798
    }
34799
 
34800
    @Override
34801
    public void clear() {
34802
      this.success = null;
34803
    }
34804
 
34805
    public int getSuccessSize() {
34806
      return (this.success == null) ? 0 : this.success.size();
34807
    }
34808
 
34809
    public java.util.Iterator<Long> getSuccessIterator() {
34810
      return (this.success == null) ? null : this.success.iterator();
34811
    }
34812
 
34813
    public void addToSuccess(long elem) {
34814
      if (this.success == null) {
34815
        this.success = new ArrayList<Long>();
34816
      }
34817
      this.success.add(elem);
34818
    }
34819
 
34820
    public List<Long> getSuccess() {
34821
      return this.success;
34822
    }
34823
 
34824
    public void setSuccess(List<Long> success) {
34825
      this.success = success;
34826
    }
34827
 
34828
    public void unsetSuccess() {
34829
      this.success = null;
34830
    }
34831
 
34832
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34833
    public boolean isSetSuccess() {
34834
      return this.success != null;
34835
    }
34836
 
34837
    public void setSuccessIsSet(boolean value) {
34838
      if (!value) {
34839
        this.success = null;
34840
      }
34841
    }
34842
 
34843
    public void setFieldValue(_Fields field, Object value) {
34844
      switch (field) {
34845
      case SUCCESS:
34846
        if (value == null) {
34847
          unsetSuccess();
34848
        } else {
34849
          setSuccess((List<Long>)value);
34850
        }
34851
        break;
34852
 
34853
      }
34854
    }
34855
 
34856
    public Object getFieldValue(_Fields field) {
34857
      switch (field) {
34858
      case SUCCESS:
34859
        return getSuccess();
34860
 
34861
      }
34862
      throw new IllegalStateException();
34863
    }
34864
 
34865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34866
    public boolean isSet(_Fields field) {
34867
      if (field == null) {
34868
        throw new IllegalArgumentException();
34869
      }
34870
 
34871
      switch (field) {
34872
      case SUCCESS:
34873
        return isSetSuccess();
34874
      }
34875
      throw new IllegalStateException();
34876
    }
34877
 
34878
    @Override
34879
    public boolean equals(Object that) {
34880
      if (that == null)
34881
        return false;
34882
      if (that instanceof getMonitoredWarehouseForVendors_result)
34883
        return this.equals((getMonitoredWarehouseForVendors_result)that);
34884
      return false;
34885
    }
34886
 
34887
    public boolean equals(getMonitoredWarehouseForVendors_result that) {
34888
      if (that == null)
34889
        return false;
34890
 
34891
      boolean this_present_success = true && this.isSetSuccess();
34892
      boolean that_present_success = true && that.isSetSuccess();
34893
      if (this_present_success || that_present_success) {
34894
        if (!(this_present_success && that_present_success))
34895
          return false;
34896
        if (!this.success.equals(that.success))
34897
          return false;
34898
      }
34899
 
34900
      return true;
34901
    }
34902
 
34903
    @Override
34904
    public int hashCode() {
34905
      return 0;
34906
    }
34907
 
34908
    public int compareTo(getMonitoredWarehouseForVendors_result other) {
34909
      if (!getClass().equals(other.getClass())) {
34910
        return getClass().getName().compareTo(other.getClass().getName());
34911
      }
34912
 
34913
      int lastComparison = 0;
34914
      getMonitoredWarehouseForVendors_result typedOther = (getMonitoredWarehouseForVendors_result)other;
34915
 
34916
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34917
      if (lastComparison != 0) {
34918
        return lastComparison;
34919
      }
34920
      if (isSetSuccess()) {
34921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34922
        if (lastComparison != 0) {
34923
          return lastComparison;
34924
        }
34925
      }
34926
      return 0;
34927
    }
34928
 
34929
    public _Fields fieldForId(int fieldId) {
34930
      return _Fields.findByThriftId(fieldId);
34931
    }
34932
 
34933
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34934
      org.apache.thrift.protocol.TField field;
34935
      iprot.readStructBegin();
34936
      while (true)
34937
      {
34938
        field = iprot.readFieldBegin();
34939
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34940
          break;
34941
        }
34942
        switch (field.id) {
34943
          case 0: // SUCCESS
34944
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34945
              {
8182 amar.kumar 34946
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
34947
                this.success = new ArrayList<Long>(_list97.size);
34948
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
6531 vikram.rag 34949
                {
8182 amar.kumar 34950
                  long _elem99; // required
34951
                  _elem99 = iprot.readI64();
34952
                  this.success.add(_elem99);
6531 vikram.rag 34953
                }
34954
                iprot.readListEnd();
34955
              }
34956
            } else { 
34957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34958
            }
34959
            break;
34960
          default:
34961
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34962
        }
34963
        iprot.readFieldEnd();
34964
      }
34965
      iprot.readStructEnd();
34966
      validate();
34967
    }
34968
 
34969
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34970
      oprot.writeStructBegin(STRUCT_DESC);
34971
 
34972
      if (this.isSetSuccess()) {
34973
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34974
        {
34975
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 34976
          for (long _iter100 : this.success)
6531 vikram.rag 34977
          {
8182 amar.kumar 34978
            oprot.writeI64(_iter100);
6531 vikram.rag 34979
          }
34980
          oprot.writeListEnd();
34981
        }
34982
        oprot.writeFieldEnd();
34983
      }
34984
      oprot.writeFieldStop();
34985
      oprot.writeStructEnd();
34986
    }
34987
 
34988
    @Override
34989
    public String toString() {
34990
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_result(");
34991
      boolean first = true;
34992
 
34993
      sb.append("success:");
34994
      if (this.success == null) {
34995
        sb.append("null");
34996
      } else {
34997
        sb.append(this.success);
34998
      }
34999
      first = false;
35000
      sb.append(")");
35001
      return sb.toString();
35002
    }
35003
 
35004
    public void validate() throws org.apache.thrift.TException {
35005
      // check for required fields
35006
    }
35007
 
35008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35009
      try {
35010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35011
      } catch (org.apache.thrift.TException te) {
35012
        throw new java.io.IOException(te);
35013
      }
35014
    }
35015
 
35016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35017
      try {
35018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35019
      } catch (org.apache.thrift.TException te) {
35020
        throw new java.io.IOException(te);
35021
      }
35022
    }
35023
 
35024
  }
35025
 
35026
  public static class getIgnoredWarehouseidsAndItemids_args implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_args, getIgnoredWarehouseidsAndItemids_args._Fields>, java.io.Serializable, Cloneable   {
35027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_args");
35028
 
35029
 
35030
 
35031
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35032
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35033
;
35034
 
35035
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35036
 
35037
      static {
35038
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35039
          byName.put(field.getFieldName(), field);
35040
        }
35041
      }
35042
 
35043
      /**
35044
       * Find the _Fields constant that matches fieldId, or null if its not found.
35045
       */
35046
      public static _Fields findByThriftId(int fieldId) {
35047
        switch(fieldId) {
35048
          default:
35049
            return null;
35050
        }
35051
      }
35052
 
35053
      /**
35054
       * Find the _Fields constant that matches fieldId, throwing an exception
35055
       * if it is not found.
35056
       */
35057
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35058
        _Fields fields = findByThriftId(fieldId);
35059
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35060
        return fields;
35061
      }
35062
 
35063
      /**
35064
       * Find the _Fields constant that matches name, or null if its not found.
35065
       */
35066
      public static _Fields findByName(String name) {
35067
        return byName.get(name);
35068
      }
35069
 
35070
      private final short _thriftId;
35071
      private final String _fieldName;
35072
 
35073
      _Fields(short thriftId, String fieldName) {
35074
        _thriftId = thriftId;
35075
        _fieldName = fieldName;
35076
      }
35077
 
35078
      public short getThriftFieldId() {
35079
        return _thriftId;
35080
      }
35081
 
35082
      public String getFieldName() {
35083
        return _fieldName;
35084
      }
35085
    }
35086
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35087
    static {
35088
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35089
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35090
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_args.class, metaDataMap);
35091
    }
35092
 
35093
    public getIgnoredWarehouseidsAndItemids_args() {
35094
    }
35095
 
35096
    /**
35097
     * Performs a deep copy on <i>other</i>.
35098
     */
35099
    public getIgnoredWarehouseidsAndItemids_args(getIgnoredWarehouseidsAndItemids_args other) {
35100
    }
35101
 
35102
    public getIgnoredWarehouseidsAndItemids_args deepCopy() {
35103
      return new getIgnoredWarehouseidsAndItemids_args(this);
35104
    }
35105
 
35106
    @Override
35107
    public void clear() {
35108
    }
35109
 
35110
    public void setFieldValue(_Fields field, Object value) {
35111
      switch (field) {
35112
      }
35113
    }
35114
 
35115
    public Object getFieldValue(_Fields field) {
35116
      switch (field) {
35117
      }
35118
      throw new IllegalStateException();
35119
    }
35120
 
35121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35122
    public boolean isSet(_Fields field) {
35123
      if (field == null) {
35124
        throw new IllegalArgumentException();
35125
      }
35126
 
35127
      switch (field) {
35128
      }
35129
      throw new IllegalStateException();
35130
    }
35131
 
35132
    @Override
35133
    public boolean equals(Object that) {
35134
      if (that == null)
35135
        return false;
35136
      if (that instanceof getIgnoredWarehouseidsAndItemids_args)
35137
        return this.equals((getIgnoredWarehouseidsAndItemids_args)that);
35138
      return false;
35139
    }
35140
 
35141
    public boolean equals(getIgnoredWarehouseidsAndItemids_args that) {
35142
      if (that == null)
35143
        return false;
35144
 
35145
      return true;
35146
    }
35147
 
35148
    @Override
35149
    public int hashCode() {
35150
      return 0;
35151
    }
35152
 
35153
    public int compareTo(getIgnoredWarehouseidsAndItemids_args other) {
35154
      if (!getClass().equals(other.getClass())) {
35155
        return getClass().getName().compareTo(other.getClass().getName());
35156
      }
35157
 
35158
      int lastComparison = 0;
35159
      getIgnoredWarehouseidsAndItemids_args typedOther = (getIgnoredWarehouseidsAndItemids_args)other;
35160
 
35161
      return 0;
35162
    }
35163
 
35164
    public _Fields fieldForId(int fieldId) {
35165
      return _Fields.findByThriftId(fieldId);
35166
    }
35167
 
35168
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35169
      org.apache.thrift.protocol.TField field;
35170
      iprot.readStructBegin();
35171
      while (true)
35172
      {
35173
        field = iprot.readFieldBegin();
35174
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35175
          break;
35176
        }
35177
        switch (field.id) {
35178
          default:
35179
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35180
        }
35181
        iprot.readFieldEnd();
35182
      }
35183
      iprot.readStructEnd();
35184
      validate();
35185
    }
35186
 
35187
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35188
      validate();
35189
 
35190
      oprot.writeStructBegin(STRUCT_DESC);
35191
      oprot.writeFieldStop();
35192
      oprot.writeStructEnd();
35193
    }
35194
 
35195
    @Override
35196
    public String toString() {
35197
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_args(");
35198
      boolean first = true;
35199
 
35200
      sb.append(")");
35201
      return sb.toString();
35202
    }
35203
 
35204
    public void validate() throws org.apache.thrift.TException {
35205
      // check for required fields
35206
    }
35207
 
35208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35209
      try {
35210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35211
      } catch (org.apache.thrift.TException te) {
35212
        throw new java.io.IOException(te);
35213
      }
35214
    }
35215
 
35216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35217
      try {
35218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35219
      } catch (org.apache.thrift.TException te) {
35220
        throw new java.io.IOException(te);
35221
      }
35222
    }
35223
 
35224
  }
35225
 
35226
  public static class getIgnoredWarehouseidsAndItemids_result implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_result, getIgnoredWarehouseidsAndItemids_result._Fields>, java.io.Serializable, Cloneable   {
35227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_result");
35228
 
35229
    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);
35230
 
35231
    private List<IgnoredInventoryUpdateItems> success; // required
35232
 
35233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35235
      SUCCESS((short)0, "success");
35236
 
35237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35238
 
35239
      static {
35240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35241
          byName.put(field.getFieldName(), field);
35242
        }
35243
      }
35244
 
35245
      /**
35246
       * Find the _Fields constant that matches fieldId, or null if its not found.
35247
       */
35248
      public static _Fields findByThriftId(int fieldId) {
35249
        switch(fieldId) {
35250
          case 0: // SUCCESS
35251
            return SUCCESS;
35252
          default:
35253
            return null;
35254
        }
35255
      }
35256
 
35257
      /**
35258
       * Find the _Fields constant that matches fieldId, throwing an exception
35259
       * if it is not found.
35260
       */
35261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35262
        _Fields fields = findByThriftId(fieldId);
35263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35264
        return fields;
35265
      }
35266
 
35267
      /**
35268
       * Find the _Fields constant that matches name, or null if its not found.
35269
       */
35270
      public static _Fields findByName(String name) {
35271
        return byName.get(name);
35272
      }
35273
 
35274
      private final short _thriftId;
35275
      private final String _fieldName;
35276
 
35277
      _Fields(short thriftId, String fieldName) {
35278
        _thriftId = thriftId;
35279
        _fieldName = fieldName;
35280
      }
35281
 
35282
      public short getThriftFieldId() {
35283
        return _thriftId;
35284
      }
35285
 
35286
      public String getFieldName() {
35287
        return _fieldName;
35288
      }
35289
    }
35290
 
35291
    // isset id assignments
35292
 
35293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35294
    static {
35295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35297
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
35298
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IgnoredInventoryUpdateItems.class))));
35299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_result.class, metaDataMap);
35301
    }
35302
 
35303
    public getIgnoredWarehouseidsAndItemids_result() {
35304
    }
35305
 
35306
    public getIgnoredWarehouseidsAndItemids_result(
35307
      List<IgnoredInventoryUpdateItems> success)
35308
    {
35309
      this();
35310
      this.success = success;
35311
    }
35312
 
35313
    /**
35314
     * Performs a deep copy on <i>other</i>.
35315
     */
35316
    public getIgnoredWarehouseidsAndItemids_result(getIgnoredWarehouseidsAndItemids_result other) {
35317
      if (other.isSetSuccess()) {
35318
        List<IgnoredInventoryUpdateItems> __this__success = new ArrayList<IgnoredInventoryUpdateItems>();
35319
        for (IgnoredInventoryUpdateItems other_element : other.success) {
35320
          __this__success.add(new IgnoredInventoryUpdateItems(other_element));
35321
        }
35322
        this.success = __this__success;
35323
      }
35324
    }
35325
 
35326
    public getIgnoredWarehouseidsAndItemids_result deepCopy() {
35327
      return new getIgnoredWarehouseidsAndItemids_result(this);
35328
    }
35329
 
35330
    @Override
35331
    public void clear() {
35332
      this.success = null;
35333
    }
35334
 
35335
    public int getSuccessSize() {
35336
      return (this.success == null) ? 0 : this.success.size();
35337
    }
35338
 
35339
    public java.util.Iterator<IgnoredInventoryUpdateItems> getSuccessIterator() {
35340
      return (this.success == null) ? null : this.success.iterator();
35341
    }
35342
 
35343
    public void addToSuccess(IgnoredInventoryUpdateItems elem) {
35344
      if (this.success == null) {
35345
        this.success = new ArrayList<IgnoredInventoryUpdateItems>();
35346
      }
35347
      this.success.add(elem);
35348
    }
35349
 
35350
    public List<IgnoredInventoryUpdateItems> getSuccess() {
35351
      return this.success;
35352
    }
35353
 
35354
    public void setSuccess(List<IgnoredInventoryUpdateItems> success) {
35355
      this.success = success;
35356
    }
35357
 
35358
    public void unsetSuccess() {
35359
      this.success = null;
35360
    }
35361
 
35362
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35363
    public boolean isSetSuccess() {
35364
      return this.success != null;
35365
    }
35366
 
35367
    public void setSuccessIsSet(boolean value) {
35368
      if (!value) {
35369
        this.success = null;
35370
      }
35371
    }
35372
 
35373
    public void setFieldValue(_Fields field, Object value) {
35374
      switch (field) {
35375
      case SUCCESS:
35376
        if (value == null) {
35377
          unsetSuccess();
35378
        } else {
35379
          setSuccess((List<IgnoredInventoryUpdateItems>)value);
35380
        }
35381
        break;
35382
 
35383
      }
35384
    }
35385
 
35386
    public Object getFieldValue(_Fields field) {
35387
      switch (field) {
35388
      case SUCCESS:
35389
        return getSuccess();
35390
 
35391
      }
35392
      throw new IllegalStateException();
35393
    }
35394
 
35395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35396
    public boolean isSet(_Fields field) {
35397
      if (field == null) {
35398
        throw new IllegalArgumentException();
35399
      }
35400
 
35401
      switch (field) {
35402
      case SUCCESS:
35403
        return isSetSuccess();
35404
      }
35405
      throw new IllegalStateException();
35406
    }
35407
 
35408
    @Override
35409
    public boolean equals(Object that) {
35410
      if (that == null)
35411
        return false;
35412
      if (that instanceof getIgnoredWarehouseidsAndItemids_result)
35413
        return this.equals((getIgnoredWarehouseidsAndItemids_result)that);
35414
      return false;
35415
    }
35416
 
35417
    public boolean equals(getIgnoredWarehouseidsAndItemids_result that) {
35418
      if (that == null)
35419
        return false;
35420
 
35421
      boolean this_present_success = true && this.isSetSuccess();
35422
      boolean that_present_success = true && that.isSetSuccess();
35423
      if (this_present_success || that_present_success) {
35424
        if (!(this_present_success && that_present_success))
35425
          return false;
35426
        if (!this.success.equals(that.success))
35427
          return false;
35428
      }
35429
 
35430
      return true;
35431
    }
35432
 
35433
    @Override
35434
    public int hashCode() {
35435
      return 0;
35436
    }
35437
 
35438
    public int compareTo(getIgnoredWarehouseidsAndItemids_result other) {
35439
      if (!getClass().equals(other.getClass())) {
35440
        return getClass().getName().compareTo(other.getClass().getName());
35441
      }
35442
 
35443
      int lastComparison = 0;
35444
      getIgnoredWarehouseidsAndItemids_result typedOther = (getIgnoredWarehouseidsAndItemids_result)other;
35445
 
35446
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35447
      if (lastComparison != 0) {
35448
        return lastComparison;
35449
      }
35450
      if (isSetSuccess()) {
35451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35452
        if (lastComparison != 0) {
35453
          return lastComparison;
35454
        }
35455
      }
35456
      return 0;
35457
    }
35458
 
35459
    public _Fields fieldForId(int fieldId) {
35460
      return _Fields.findByThriftId(fieldId);
35461
    }
35462
 
35463
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35464
      org.apache.thrift.protocol.TField field;
35465
      iprot.readStructBegin();
35466
      while (true)
35467
      {
35468
        field = iprot.readFieldBegin();
35469
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35470
          break;
35471
        }
35472
        switch (field.id) {
35473
          case 0: // SUCCESS
35474
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
35475
              {
8182 amar.kumar 35476
                org.apache.thrift.protocol.TList _list101 = iprot.readListBegin();
35477
                this.success = new ArrayList<IgnoredInventoryUpdateItems>(_list101.size);
35478
                for (int _i102 = 0; _i102 < _list101.size; ++_i102)
6531 vikram.rag 35479
                {
8182 amar.kumar 35480
                  IgnoredInventoryUpdateItems _elem103; // required
35481
                  _elem103 = new IgnoredInventoryUpdateItems();
35482
                  _elem103.read(iprot);
35483
                  this.success.add(_elem103);
6531 vikram.rag 35484
                }
35485
                iprot.readListEnd();
35486
              }
35487
            } else { 
35488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35489
            }
35490
            break;
35491
          default:
35492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35493
        }
35494
        iprot.readFieldEnd();
35495
      }
35496
      iprot.readStructEnd();
35497
      validate();
35498
    }
35499
 
35500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35501
      oprot.writeStructBegin(STRUCT_DESC);
35502
 
35503
      if (this.isSetSuccess()) {
35504
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35505
        {
35506
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 35507
          for (IgnoredInventoryUpdateItems _iter104 : this.success)
6531 vikram.rag 35508
          {
8182 amar.kumar 35509
            _iter104.write(oprot);
6531 vikram.rag 35510
          }
35511
          oprot.writeListEnd();
35512
        }
35513
        oprot.writeFieldEnd();
35514
      }
35515
      oprot.writeFieldStop();
35516
      oprot.writeStructEnd();
35517
    }
35518
 
35519
    @Override
35520
    public String toString() {
35521
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_result(");
35522
      boolean first = true;
35523
 
35524
      sb.append("success:");
35525
      if (this.success == null) {
35526
        sb.append("null");
35527
      } else {
35528
        sb.append(this.success);
35529
      }
35530
      first = false;
35531
      sb.append(")");
35532
      return sb.toString();
35533
    }
35534
 
35535
    public void validate() throws org.apache.thrift.TException {
35536
      // check for required fields
35537
    }
35538
 
35539
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35540
      try {
35541
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35542
      } catch (org.apache.thrift.TException te) {
35543
        throw new java.io.IOException(te);
35544
      }
35545
    }
35546
 
35547
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35548
      try {
35549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35550
      } catch (org.apache.thrift.TException te) {
35551
        throw new java.io.IOException(te);
35552
      }
35553
    }
35554
 
35555
  }
35556
 
35557
  public static class insertItemtoIgnoreInventoryUpdatelist_args implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_args, insertItemtoIgnoreInventoryUpdatelist_args._Fields>, java.io.Serializable, Cloneable   {
35558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_args");
35559
 
35560
    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);
35561
    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);
35562
 
35563
    private long item_id; // required
35564
    private long warehouse_id; // required
35565
 
35566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35568
      ITEM_ID((short)1, "item_id"),
35569
      WAREHOUSE_ID((short)2, "warehouse_id");
35570
 
35571
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35572
 
35573
      static {
35574
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35575
          byName.put(field.getFieldName(), field);
35576
        }
35577
      }
35578
 
35579
      /**
35580
       * Find the _Fields constant that matches fieldId, or null if its not found.
35581
       */
35582
      public static _Fields findByThriftId(int fieldId) {
35583
        switch(fieldId) {
35584
          case 1: // ITEM_ID
35585
            return ITEM_ID;
35586
          case 2: // WAREHOUSE_ID
35587
            return WAREHOUSE_ID;
35588
          default:
35589
            return null;
35590
        }
35591
      }
35592
 
35593
      /**
35594
       * Find the _Fields constant that matches fieldId, throwing an exception
35595
       * if it is not found.
35596
       */
35597
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35598
        _Fields fields = findByThriftId(fieldId);
35599
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35600
        return fields;
35601
      }
35602
 
35603
      /**
35604
       * Find the _Fields constant that matches name, or null if its not found.
35605
       */
35606
      public static _Fields findByName(String name) {
35607
        return byName.get(name);
35608
      }
35609
 
35610
      private final short _thriftId;
35611
      private final String _fieldName;
35612
 
35613
      _Fields(short thriftId, String fieldName) {
35614
        _thriftId = thriftId;
35615
        _fieldName = fieldName;
35616
      }
35617
 
35618
      public short getThriftFieldId() {
35619
        return _thriftId;
35620
      }
35621
 
35622
      public String getFieldName() {
35623
        return _fieldName;
35624
      }
35625
    }
35626
 
35627
    // isset id assignments
35628
    private static final int __ITEM_ID_ISSET_ID = 0;
35629
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
35630
    private BitSet __isset_bit_vector = new BitSet(2);
35631
 
35632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35633
    static {
35634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35635
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35637
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35639
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35640
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_args.class, metaDataMap);
35641
    }
35642
 
35643
    public insertItemtoIgnoreInventoryUpdatelist_args() {
35644
    }
35645
 
35646
    public insertItemtoIgnoreInventoryUpdatelist_args(
35647
      long item_id,
35648
      long warehouse_id)
35649
    {
35650
      this();
35651
      this.item_id = item_id;
35652
      setItem_idIsSet(true);
35653
      this.warehouse_id = warehouse_id;
35654
      setWarehouse_idIsSet(true);
35655
    }
35656
 
35657
    /**
35658
     * Performs a deep copy on <i>other</i>.
35659
     */
35660
    public insertItemtoIgnoreInventoryUpdatelist_args(insertItemtoIgnoreInventoryUpdatelist_args other) {
35661
      __isset_bit_vector.clear();
35662
      __isset_bit_vector.or(other.__isset_bit_vector);
35663
      this.item_id = other.item_id;
35664
      this.warehouse_id = other.warehouse_id;
35665
    }
35666
 
35667
    public insertItemtoIgnoreInventoryUpdatelist_args deepCopy() {
35668
      return new insertItemtoIgnoreInventoryUpdatelist_args(this);
35669
    }
35670
 
35671
    @Override
35672
    public void clear() {
35673
      setItem_idIsSet(false);
35674
      this.item_id = 0;
35675
      setWarehouse_idIsSet(false);
35676
      this.warehouse_id = 0;
35677
    }
35678
 
35679
    public long getItem_id() {
35680
      return this.item_id;
35681
    }
35682
 
35683
    public void setItem_id(long item_id) {
35684
      this.item_id = item_id;
35685
      setItem_idIsSet(true);
35686
    }
35687
 
35688
    public void unsetItem_id() {
35689
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
35690
    }
35691
 
35692
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
35693
    public boolean isSetItem_id() {
35694
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
35695
    }
35696
 
35697
    public void setItem_idIsSet(boolean value) {
35698
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
35699
    }
35700
 
35701
    public long getWarehouse_id() {
35702
      return this.warehouse_id;
35703
    }
35704
 
35705
    public void setWarehouse_id(long warehouse_id) {
35706
      this.warehouse_id = warehouse_id;
35707
      setWarehouse_idIsSet(true);
35708
    }
35709
 
35710
    public void unsetWarehouse_id() {
35711
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
35712
    }
35713
 
35714
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
35715
    public boolean isSetWarehouse_id() {
35716
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
35717
    }
35718
 
35719
    public void setWarehouse_idIsSet(boolean value) {
35720
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
35721
    }
35722
 
35723
    public void setFieldValue(_Fields field, Object value) {
35724
      switch (field) {
35725
      case ITEM_ID:
35726
        if (value == null) {
35727
          unsetItem_id();
35728
        } else {
35729
          setItem_id((Long)value);
35730
        }
35731
        break;
35732
 
35733
      case WAREHOUSE_ID:
35734
        if (value == null) {
35735
          unsetWarehouse_id();
35736
        } else {
35737
          setWarehouse_id((Long)value);
35738
        }
35739
        break;
35740
 
35741
      }
35742
    }
35743
 
35744
    public Object getFieldValue(_Fields field) {
35745
      switch (field) {
35746
      case ITEM_ID:
35747
        return Long.valueOf(getItem_id());
35748
 
35749
      case WAREHOUSE_ID:
35750
        return Long.valueOf(getWarehouse_id());
35751
 
35752
      }
35753
      throw new IllegalStateException();
35754
    }
35755
 
35756
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35757
    public boolean isSet(_Fields field) {
35758
      if (field == null) {
35759
        throw new IllegalArgumentException();
35760
      }
35761
 
35762
      switch (field) {
35763
      case ITEM_ID:
35764
        return isSetItem_id();
35765
      case WAREHOUSE_ID:
35766
        return isSetWarehouse_id();
35767
      }
35768
      throw new IllegalStateException();
35769
    }
35770
 
35771
    @Override
35772
    public boolean equals(Object that) {
35773
      if (that == null)
35774
        return false;
35775
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_args)
35776
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_args)that);
35777
      return false;
35778
    }
35779
 
35780
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_args that) {
35781
      if (that == null)
35782
        return false;
35783
 
35784
      boolean this_present_item_id = true;
35785
      boolean that_present_item_id = true;
35786
      if (this_present_item_id || that_present_item_id) {
35787
        if (!(this_present_item_id && that_present_item_id))
35788
          return false;
35789
        if (this.item_id != that.item_id)
35790
          return false;
35791
      }
35792
 
35793
      boolean this_present_warehouse_id = true;
35794
      boolean that_present_warehouse_id = true;
35795
      if (this_present_warehouse_id || that_present_warehouse_id) {
35796
        if (!(this_present_warehouse_id && that_present_warehouse_id))
35797
          return false;
35798
        if (this.warehouse_id != that.warehouse_id)
35799
          return false;
35800
      }
35801
 
35802
      return true;
35803
    }
35804
 
35805
    @Override
35806
    public int hashCode() {
35807
      return 0;
35808
    }
35809
 
35810
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_args other) {
35811
      if (!getClass().equals(other.getClass())) {
35812
        return getClass().getName().compareTo(other.getClass().getName());
35813
      }
35814
 
35815
      int lastComparison = 0;
35816
      insertItemtoIgnoreInventoryUpdatelist_args typedOther = (insertItemtoIgnoreInventoryUpdatelist_args)other;
35817
 
35818
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
35819
      if (lastComparison != 0) {
35820
        return lastComparison;
35821
      }
35822
      if (isSetItem_id()) {
35823
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
35824
        if (lastComparison != 0) {
35825
          return lastComparison;
35826
        }
35827
      }
35828
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
35829
      if (lastComparison != 0) {
35830
        return lastComparison;
35831
      }
35832
      if (isSetWarehouse_id()) {
35833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
35834
        if (lastComparison != 0) {
35835
          return lastComparison;
35836
        }
35837
      }
35838
      return 0;
35839
    }
35840
 
35841
    public _Fields fieldForId(int fieldId) {
35842
      return _Fields.findByThriftId(fieldId);
35843
    }
35844
 
35845
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35846
      org.apache.thrift.protocol.TField field;
35847
      iprot.readStructBegin();
35848
      while (true)
35849
      {
35850
        field = iprot.readFieldBegin();
35851
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35852
          break;
35853
        }
35854
        switch (field.id) {
35855
          case 1: // ITEM_ID
35856
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35857
              this.item_id = iprot.readI64();
35858
              setItem_idIsSet(true);
35859
            } else { 
35860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35861
            }
35862
            break;
35863
          case 2: // WAREHOUSE_ID
35864
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35865
              this.warehouse_id = iprot.readI64();
35866
              setWarehouse_idIsSet(true);
35867
            } else { 
35868
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35869
            }
35870
            break;
35871
          default:
35872
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35873
        }
35874
        iprot.readFieldEnd();
35875
      }
35876
      iprot.readStructEnd();
35877
      validate();
35878
    }
35879
 
35880
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35881
      validate();
35882
 
35883
      oprot.writeStructBegin(STRUCT_DESC);
35884
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
35885
      oprot.writeI64(this.item_id);
35886
      oprot.writeFieldEnd();
35887
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
35888
      oprot.writeI64(this.warehouse_id);
35889
      oprot.writeFieldEnd();
35890
      oprot.writeFieldStop();
35891
      oprot.writeStructEnd();
35892
    }
35893
 
35894
    @Override
35895
    public String toString() {
35896
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_args(");
35897
      boolean first = true;
35898
 
35899
      sb.append("item_id:");
35900
      sb.append(this.item_id);
35901
      first = false;
35902
      if (!first) sb.append(", ");
35903
      sb.append("warehouse_id:");
35904
      sb.append(this.warehouse_id);
35905
      first = false;
35906
      sb.append(")");
35907
      return sb.toString();
35908
    }
35909
 
35910
    public void validate() throws org.apache.thrift.TException {
35911
      // check for required fields
35912
    }
35913
 
35914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35915
      try {
35916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35917
      } catch (org.apache.thrift.TException te) {
35918
        throw new java.io.IOException(te);
35919
      }
35920
    }
35921
 
35922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35923
      try {
35924
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35925
        __isset_bit_vector = new BitSet(1);
35926
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35927
      } catch (org.apache.thrift.TException te) {
35928
        throw new java.io.IOException(te);
35929
      }
35930
    }
35931
 
35932
  }
35933
 
35934
  public static class insertItemtoIgnoreInventoryUpdatelist_result implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_result, insertItemtoIgnoreInventoryUpdatelist_result._Fields>, java.io.Serializable, Cloneable   {
35935
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_result");
35936
 
35937
    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);
35938
 
35939
    private boolean success; // required
35940
 
35941
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35942
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35943
      SUCCESS((short)0, "success");
35944
 
35945
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35946
 
35947
      static {
35948
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35949
          byName.put(field.getFieldName(), field);
35950
        }
35951
      }
35952
 
35953
      /**
35954
       * Find the _Fields constant that matches fieldId, or null if its not found.
35955
       */
35956
      public static _Fields findByThriftId(int fieldId) {
35957
        switch(fieldId) {
35958
          case 0: // SUCCESS
35959
            return SUCCESS;
35960
          default:
35961
            return null;
35962
        }
35963
      }
35964
 
35965
      /**
35966
       * Find the _Fields constant that matches fieldId, throwing an exception
35967
       * if it is not found.
35968
       */
35969
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35970
        _Fields fields = findByThriftId(fieldId);
35971
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35972
        return fields;
35973
      }
35974
 
35975
      /**
35976
       * Find the _Fields constant that matches name, or null if its not found.
35977
       */
35978
      public static _Fields findByName(String name) {
35979
        return byName.get(name);
35980
      }
35981
 
35982
      private final short _thriftId;
35983
      private final String _fieldName;
35984
 
35985
      _Fields(short thriftId, String fieldName) {
35986
        _thriftId = thriftId;
35987
        _fieldName = fieldName;
35988
      }
35989
 
35990
      public short getThriftFieldId() {
35991
        return _thriftId;
35992
      }
35993
 
35994
      public String getFieldName() {
35995
        return _fieldName;
35996
      }
35997
    }
35998
 
35999
    // isset id assignments
36000
    private static final int __SUCCESS_ISSET_ID = 0;
36001
    private BitSet __isset_bit_vector = new BitSet(1);
36002
 
36003
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36004
    static {
36005
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36006
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
36008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_result.class, metaDataMap);
36010
    }
36011
 
36012
    public insertItemtoIgnoreInventoryUpdatelist_result() {
36013
    }
36014
 
36015
    public insertItemtoIgnoreInventoryUpdatelist_result(
36016
      boolean success)
36017
    {
36018
      this();
36019
      this.success = success;
36020
      setSuccessIsSet(true);
36021
    }
36022
 
36023
    /**
36024
     * Performs a deep copy on <i>other</i>.
36025
     */
36026
    public insertItemtoIgnoreInventoryUpdatelist_result(insertItemtoIgnoreInventoryUpdatelist_result other) {
36027
      __isset_bit_vector.clear();
36028
      __isset_bit_vector.or(other.__isset_bit_vector);
36029
      this.success = other.success;
36030
    }
36031
 
36032
    public insertItemtoIgnoreInventoryUpdatelist_result deepCopy() {
36033
      return new insertItemtoIgnoreInventoryUpdatelist_result(this);
36034
    }
36035
 
36036
    @Override
36037
    public void clear() {
36038
      setSuccessIsSet(false);
36039
      this.success = false;
36040
    }
36041
 
36042
    public boolean isSuccess() {
36043
      return this.success;
36044
    }
36045
 
36046
    public void setSuccess(boolean success) {
36047
      this.success = success;
36048
      setSuccessIsSet(true);
36049
    }
36050
 
36051
    public void unsetSuccess() {
36052
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
36053
    }
36054
 
36055
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
36056
    public boolean isSetSuccess() {
36057
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
36058
    }
36059
 
36060
    public void setSuccessIsSet(boolean value) {
36061
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
36062
    }
36063
 
36064
    public void setFieldValue(_Fields field, Object value) {
36065
      switch (field) {
36066
      case SUCCESS:
36067
        if (value == null) {
36068
          unsetSuccess();
36069
        } else {
36070
          setSuccess((Boolean)value);
36071
        }
36072
        break;
36073
 
36074
      }
36075
    }
36076
 
36077
    public Object getFieldValue(_Fields field) {
36078
      switch (field) {
36079
      case SUCCESS:
36080
        return Boolean.valueOf(isSuccess());
36081
 
36082
      }
36083
      throw new IllegalStateException();
36084
    }
36085
 
36086
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36087
    public boolean isSet(_Fields field) {
36088
      if (field == null) {
36089
        throw new IllegalArgumentException();
36090
      }
36091
 
36092
      switch (field) {
36093
      case SUCCESS:
36094
        return isSetSuccess();
36095
      }
36096
      throw new IllegalStateException();
36097
    }
36098
 
36099
    @Override
36100
    public boolean equals(Object that) {
36101
      if (that == null)
36102
        return false;
36103
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_result)
36104
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_result)that);
36105
      return false;
36106
    }
36107
 
36108
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_result that) {
36109
      if (that == null)
36110
        return false;
36111
 
36112
      boolean this_present_success = true;
36113
      boolean that_present_success = true;
36114
      if (this_present_success || that_present_success) {
36115
        if (!(this_present_success && that_present_success))
36116
          return false;
36117
        if (this.success != that.success)
36118
          return false;
36119
      }
36120
 
36121
      return true;
36122
    }
36123
 
36124
    @Override
36125
    public int hashCode() {
36126
      return 0;
36127
    }
36128
 
36129
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_result other) {
36130
      if (!getClass().equals(other.getClass())) {
36131
        return getClass().getName().compareTo(other.getClass().getName());
36132
      }
36133
 
36134
      int lastComparison = 0;
36135
      insertItemtoIgnoreInventoryUpdatelist_result typedOther = (insertItemtoIgnoreInventoryUpdatelist_result)other;
36136
 
36137
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
36138
      if (lastComparison != 0) {
36139
        return lastComparison;
36140
      }
36141
      if (isSetSuccess()) {
36142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36143
        if (lastComparison != 0) {
36144
          return lastComparison;
36145
        }
36146
      }
36147
      return 0;
36148
    }
36149
 
36150
    public _Fields fieldForId(int fieldId) {
36151
      return _Fields.findByThriftId(fieldId);
36152
    }
36153
 
36154
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36155
      org.apache.thrift.protocol.TField field;
36156
      iprot.readStructBegin();
36157
      while (true)
36158
      {
36159
        field = iprot.readFieldBegin();
36160
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36161
          break;
36162
        }
36163
        switch (field.id) {
36164
          case 0: // SUCCESS
36165
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
36166
              this.success = iprot.readBool();
36167
              setSuccessIsSet(true);
36168
            } else { 
36169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36170
            }
36171
            break;
36172
          default:
36173
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36174
        }
36175
        iprot.readFieldEnd();
36176
      }
36177
      iprot.readStructEnd();
36178
      validate();
36179
    }
36180
 
36181
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36182
      oprot.writeStructBegin(STRUCT_DESC);
36183
 
36184
      if (this.isSetSuccess()) {
36185
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36186
        oprot.writeBool(this.success);
36187
        oprot.writeFieldEnd();
36188
      }
36189
      oprot.writeFieldStop();
36190
      oprot.writeStructEnd();
36191
    }
36192
 
36193
    @Override
36194
    public String toString() {
36195
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_result(");
36196
      boolean first = true;
36197
 
36198
      sb.append("success:");
36199
      sb.append(this.success);
36200
      first = false;
36201
      sb.append(")");
36202
      return sb.toString();
36203
    }
36204
 
36205
    public void validate() throws org.apache.thrift.TException {
36206
      // check for required fields
36207
    }
36208
 
36209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36210
      try {
36211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36212
      } catch (org.apache.thrift.TException te) {
36213
        throw new java.io.IOException(te);
36214
      }
36215
    }
36216
 
36217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36218
      try {
36219
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36220
      } catch (org.apache.thrift.TException te) {
36221
        throw new java.io.IOException(te);
36222
      }
36223
    }
36224
 
36225
  }
36226
 
36227
  public static class deleteItemFromIgnoredInventoryUpdateList_args implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_args, deleteItemFromIgnoredInventoryUpdateList_args._Fields>, java.io.Serializable, Cloneable   {
36228
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_args");
36229
 
36230
    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);
36231
    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);
36232
 
36233
    private long item_id; // required
36234
    private long warehouse_id; // required
36235
 
36236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36238
      ITEM_ID((short)1, "item_id"),
36239
      WAREHOUSE_ID((short)2, "warehouse_id");
36240
 
36241
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36242
 
36243
      static {
36244
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36245
          byName.put(field.getFieldName(), field);
36246
        }
36247
      }
36248
 
36249
      /**
36250
       * Find the _Fields constant that matches fieldId, or null if its not found.
36251
       */
36252
      public static _Fields findByThriftId(int fieldId) {
36253
        switch(fieldId) {
36254
          case 1: // ITEM_ID
36255
            return ITEM_ID;
36256
          case 2: // WAREHOUSE_ID
36257
            return WAREHOUSE_ID;
36258
          default:
36259
            return null;
36260
        }
36261
      }
36262
 
36263
      /**
36264
       * Find the _Fields constant that matches fieldId, throwing an exception
36265
       * if it is not found.
36266
       */
36267
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36268
        _Fields fields = findByThriftId(fieldId);
36269
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36270
        return fields;
36271
      }
36272
 
36273
      /**
36274
       * Find the _Fields constant that matches name, or null if its not found.
36275
       */
36276
      public static _Fields findByName(String name) {
36277
        return byName.get(name);
36278
      }
36279
 
36280
      private final short _thriftId;
36281
      private final String _fieldName;
36282
 
36283
      _Fields(short thriftId, String fieldName) {
36284
        _thriftId = thriftId;
36285
        _fieldName = fieldName;
36286
      }
36287
 
36288
      public short getThriftFieldId() {
36289
        return _thriftId;
36290
      }
36291
 
36292
      public String getFieldName() {
36293
        return _fieldName;
36294
      }
36295
    }
36296
 
36297
    // isset id assignments
36298
    private static final int __ITEM_ID_ISSET_ID = 0;
36299
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
36300
    private BitSet __isset_bit_vector = new BitSet(2);
36301
 
36302
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36303
    static {
36304
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36305
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36307
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_args.class, metaDataMap);
36311
    }
36312
 
36313
    public deleteItemFromIgnoredInventoryUpdateList_args() {
36314
    }
36315
 
36316
    public deleteItemFromIgnoredInventoryUpdateList_args(
36317
      long item_id,
36318
      long warehouse_id)
36319
    {
36320
      this();
36321
      this.item_id = item_id;
36322
      setItem_idIsSet(true);
36323
      this.warehouse_id = warehouse_id;
36324
      setWarehouse_idIsSet(true);
36325
    }
36326
 
36327
    /**
36328
     * Performs a deep copy on <i>other</i>.
36329
     */
36330
    public deleteItemFromIgnoredInventoryUpdateList_args(deleteItemFromIgnoredInventoryUpdateList_args other) {
36331
      __isset_bit_vector.clear();
36332
      __isset_bit_vector.or(other.__isset_bit_vector);
36333
      this.item_id = other.item_id;
36334
      this.warehouse_id = other.warehouse_id;
36335
    }
36336
 
36337
    public deleteItemFromIgnoredInventoryUpdateList_args deepCopy() {
36338
      return new deleteItemFromIgnoredInventoryUpdateList_args(this);
36339
    }
36340
 
36341
    @Override
36342
    public void clear() {
36343
      setItem_idIsSet(false);
36344
      this.item_id = 0;
36345
      setWarehouse_idIsSet(false);
36346
      this.warehouse_id = 0;
36347
    }
36348
 
36349
    public long getItem_id() {
36350
      return this.item_id;
36351
    }
36352
 
36353
    public void setItem_id(long item_id) {
36354
      this.item_id = item_id;
36355
      setItem_idIsSet(true);
36356
    }
36357
 
36358
    public void unsetItem_id() {
36359
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
36360
    }
36361
 
36362
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
36363
    public boolean isSetItem_id() {
36364
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
36365
    }
36366
 
36367
    public void setItem_idIsSet(boolean value) {
36368
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
36369
    }
36370
 
36371
    public long getWarehouse_id() {
36372
      return this.warehouse_id;
36373
    }
36374
 
36375
    public void setWarehouse_id(long warehouse_id) {
36376
      this.warehouse_id = warehouse_id;
36377
      setWarehouse_idIsSet(true);
36378
    }
36379
 
36380
    public void unsetWarehouse_id() {
36381
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
36382
    }
36383
 
36384
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
36385
    public boolean isSetWarehouse_id() {
36386
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
36387
    }
36388
 
36389
    public void setWarehouse_idIsSet(boolean value) {
36390
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
36391
    }
36392
 
36393
    public void setFieldValue(_Fields field, Object value) {
36394
      switch (field) {
36395
      case ITEM_ID:
36396
        if (value == null) {
36397
          unsetItem_id();
36398
        } else {
36399
          setItem_id((Long)value);
36400
        }
36401
        break;
36402
 
36403
      case WAREHOUSE_ID:
36404
        if (value == null) {
36405
          unsetWarehouse_id();
36406
        } else {
36407
          setWarehouse_id((Long)value);
36408
        }
36409
        break;
36410
 
36411
      }
36412
    }
36413
 
36414
    public Object getFieldValue(_Fields field) {
36415
      switch (field) {
36416
      case ITEM_ID:
36417
        return Long.valueOf(getItem_id());
36418
 
36419
      case WAREHOUSE_ID:
36420
        return Long.valueOf(getWarehouse_id());
36421
 
36422
      }
36423
      throw new IllegalStateException();
36424
    }
36425
 
36426
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36427
    public boolean isSet(_Fields field) {
36428
      if (field == null) {
36429
        throw new IllegalArgumentException();
36430
      }
36431
 
36432
      switch (field) {
36433
      case ITEM_ID:
36434
        return isSetItem_id();
36435
      case WAREHOUSE_ID:
36436
        return isSetWarehouse_id();
36437
      }
36438
      throw new IllegalStateException();
36439
    }
36440
 
36441
    @Override
36442
    public boolean equals(Object that) {
36443
      if (that == null)
36444
        return false;
36445
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_args)
36446
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_args)that);
36447
      return false;
36448
    }
36449
 
36450
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_args that) {
36451
      if (that == null)
36452
        return false;
36453
 
36454
      boolean this_present_item_id = true;
36455
      boolean that_present_item_id = true;
36456
      if (this_present_item_id || that_present_item_id) {
36457
        if (!(this_present_item_id && that_present_item_id))
36458
          return false;
36459
        if (this.item_id != that.item_id)
36460
          return false;
36461
      }
36462
 
36463
      boolean this_present_warehouse_id = true;
36464
      boolean that_present_warehouse_id = true;
36465
      if (this_present_warehouse_id || that_present_warehouse_id) {
36466
        if (!(this_present_warehouse_id && that_present_warehouse_id))
36467
          return false;
36468
        if (this.warehouse_id != that.warehouse_id)
36469
          return false;
36470
      }
36471
 
36472
      return true;
36473
    }
36474
 
36475
    @Override
36476
    public int hashCode() {
36477
      return 0;
36478
    }
36479
 
36480
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_args other) {
36481
      if (!getClass().equals(other.getClass())) {
36482
        return getClass().getName().compareTo(other.getClass().getName());
36483
      }
36484
 
36485
      int lastComparison = 0;
36486
      deleteItemFromIgnoredInventoryUpdateList_args typedOther = (deleteItemFromIgnoredInventoryUpdateList_args)other;
36487
 
36488
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
36489
      if (lastComparison != 0) {
36490
        return lastComparison;
36491
      }
36492
      if (isSetItem_id()) {
36493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
36494
        if (lastComparison != 0) {
36495
          return lastComparison;
36496
        }
36497
      }
36498
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
36499
      if (lastComparison != 0) {
36500
        return lastComparison;
36501
      }
36502
      if (isSetWarehouse_id()) {
36503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
36504
        if (lastComparison != 0) {
36505
          return lastComparison;
36506
        }
36507
      }
36508
      return 0;
36509
    }
36510
 
36511
    public _Fields fieldForId(int fieldId) {
36512
      return _Fields.findByThriftId(fieldId);
36513
    }
36514
 
36515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36516
      org.apache.thrift.protocol.TField field;
36517
      iprot.readStructBegin();
36518
      while (true)
36519
      {
36520
        field = iprot.readFieldBegin();
36521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36522
          break;
36523
        }
36524
        switch (field.id) {
36525
          case 1: // ITEM_ID
36526
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36527
              this.item_id = iprot.readI64();
36528
              setItem_idIsSet(true);
36529
            } else { 
36530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36531
            }
36532
            break;
36533
          case 2: // WAREHOUSE_ID
36534
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36535
              this.warehouse_id = iprot.readI64();
36536
              setWarehouse_idIsSet(true);
36537
            } else { 
36538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36539
            }
36540
            break;
36541
          default:
36542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36543
        }
36544
        iprot.readFieldEnd();
36545
      }
36546
      iprot.readStructEnd();
36547
      validate();
36548
    }
36549
 
36550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36551
      validate();
36552
 
36553
      oprot.writeStructBegin(STRUCT_DESC);
36554
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
36555
      oprot.writeI64(this.item_id);
36556
      oprot.writeFieldEnd();
36557
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
36558
      oprot.writeI64(this.warehouse_id);
36559
      oprot.writeFieldEnd();
36560
      oprot.writeFieldStop();
36561
      oprot.writeStructEnd();
36562
    }
36563
 
36564
    @Override
36565
    public String toString() {
36566
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_args(");
36567
      boolean first = true;
36568
 
36569
      sb.append("item_id:");
36570
      sb.append(this.item_id);
36571
      first = false;
36572
      if (!first) sb.append(", ");
36573
      sb.append("warehouse_id:");
36574
      sb.append(this.warehouse_id);
36575
      first = false;
36576
      sb.append(")");
36577
      return sb.toString();
36578
    }
36579
 
36580
    public void validate() throws org.apache.thrift.TException {
36581
      // check for required fields
36582
    }
36583
 
36584
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36585
      try {
36586
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36587
      } catch (org.apache.thrift.TException te) {
36588
        throw new java.io.IOException(te);
36589
      }
36590
    }
36591
 
36592
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36593
      try {
36594
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36595
        __isset_bit_vector = new BitSet(1);
36596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36597
      } catch (org.apache.thrift.TException te) {
36598
        throw new java.io.IOException(te);
36599
      }
36600
    }
36601
 
36602
  }
36603
 
36604
  public static class deleteItemFromIgnoredInventoryUpdateList_result implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_result, deleteItemFromIgnoredInventoryUpdateList_result._Fields>, java.io.Serializable, Cloneable   {
36605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_result");
36606
 
36607
    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);
36608
 
36609
    private boolean success; // required
36610
 
36611
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36612
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36613
      SUCCESS((short)0, "success");
36614
 
36615
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36616
 
36617
      static {
36618
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36619
          byName.put(field.getFieldName(), field);
36620
        }
36621
      }
36622
 
36623
      /**
36624
       * Find the _Fields constant that matches fieldId, or null if its not found.
36625
       */
36626
      public static _Fields findByThriftId(int fieldId) {
36627
        switch(fieldId) {
36628
          case 0: // SUCCESS
36629
            return SUCCESS;
36630
          default:
36631
            return null;
36632
        }
36633
      }
36634
 
36635
      /**
36636
       * Find the _Fields constant that matches fieldId, throwing an exception
36637
       * if it is not found.
36638
       */
36639
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36640
        _Fields fields = findByThriftId(fieldId);
36641
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36642
        return fields;
36643
      }
36644
 
36645
      /**
36646
       * Find the _Fields constant that matches name, or null if its not found.
36647
       */
36648
      public static _Fields findByName(String name) {
36649
        return byName.get(name);
36650
      }
36651
 
36652
      private final short _thriftId;
36653
      private final String _fieldName;
36654
 
36655
      _Fields(short thriftId, String fieldName) {
36656
        _thriftId = thriftId;
36657
        _fieldName = fieldName;
36658
      }
36659
 
36660
      public short getThriftFieldId() {
36661
        return _thriftId;
36662
      }
36663
 
36664
      public String getFieldName() {
36665
        return _fieldName;
36666
      }
36667
    }
36668
 
36669
    // isset id assignments
36670
    private static final int __SUCCESS_ISSET_ID = 0;
36671
    private BitSet __isset_bit_vector = new BitSet(1);
36672
 
36673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36674
    static {
36675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36676
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
36678
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36679
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_result.class, metaDataMap);
36680
    }
36681
 
36682
    public deleteItemFromIgnoredInventoryUpdateList_result() {
36683
    }
36684
 
36685
    public deleteItemFromIgnoredInventoryUpdateList_result(
36686
      boolean success)
36687
    {
36688
      this();
36689
      this.success = success;
36690
      setSuccessIsSet(true);
36691
    }
36692
 
36693
    /**
36694
     * Performs a deep copy on <i>other</i>.
36695
     */
36696
    public deleteItemFromIgnoredInventoryUpdateList_result(deleteItemFromIgnoredInventoryUpdateList_result other) {
36697
      __isset_bit_vector.clear();
36698
      __isset_bit_vector.or(other.__isset_bit_vector);
36699
      this.success = other.success;
36700
    }
36701
 
36702
    public deleteItemFromIgnoredInventoryUpdateList_result deepCopy() {
36703
      return new deleteItemFromIgnoredInventoryUpdateList_result(this);
36704
    }
36705
 
36706
    @Override
36707
    public void clear() {
36708
      setSuccessIsSet(false);
36709
      this.success = false;
36710
    }
36711
 
36712
    public boolean isSuccess() {
36713
      return this.success;
36714
    }
36715
 
36716
    public void setSuccess(boolean success) {
36717
      this.success = success;
36718
      setSuccessIsSet(true);
36719
    }
36720
 
36721
    public void unsetSuccess() {
36722
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
36723
    }
36724
 
36725
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
36726
    public boolean isSetSuccess() {
36727
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
36728
    }
36729
 
36730
    public void setSuccessIsSet(boolean value) {
36731
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
36732
    }
36733
 
36734
    public void setFieldValue(_Fields field, Object value) {
36735
      switch (field) {
36736
      case SUCCESS:
36737
        if (value == null) {
36738
          unsetSuccess();
36739
        } else {
36740
          setSuccess((Boolean)value);
36741
        }
36742
        break;
36743
 
36744
      }
36745
    }
36746
 
36747
    public Object getFieldValue(_Fields field) {
36748
      switch (field) {
36749
      case SUCCESS:
36750
        return Boolean.valueOf(isSuccess());
36751
 
36752
      }
36753
      throw new IllegalStateException();
36754
    }
36755
 
36756
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36757
    public boolean isSet(_Fields field) {
36758
      if (field == null) {
36759
        throw new IllegalArgumentException();
36760
      }
36761
 
36762
      switch (field) {
36763
      case SUCCESS:
36764
        return isSetSuccess();
36765
      }
36766
      throw new IllegalStateException();
36767
    }
36768
 
36769
    @Override
36770
    public boolean equals(Object that) {
36771
      if (that == null)
36772
        return false;
36773
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_result)
36774
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_result)that);
36775
      return false;
36776
    }
36777
 
36778
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_result that) {
36779
      if (that == null)
36780
        return false;
36781
 
36782
      boolean this_present_success = true;
36783
      boolean that_present_success = true;
36784
      if (this_present_success || that_present_success) {
36785
        if (!(this_present_success && that_present_success))
36786
          return false;
36787
        if (this.success != that.success)
36788
          return false;
36789
      }
36790
 
36791
      return true;
36792
    }
36793
 
36794
    @Override
36795
    public int hashCode() {
36796
      return 0;
36797
    }
36798
 
36799
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_result other) {
36800
      if (!getClass().equals(other.getClass())) {
36801
        return getClass().getName().compareTo(other.getClass().getName());
36802
      }
36803
 
36804
      int lastComparison = 0;
36805
      deleteItemFromIgnoredInventoryUpdateList_result typedOther = (deleteItemFromIgnoredInventoryUpdateList_result)other;
36806
 
36807
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
36808
      if (lastComparison != 0) {
36809
        return lastComparison;
36810
      }
36811
      if (isSetSuccess()) {
36812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
36813
        if (lastComparison != 0) {
36814
          return lastComparison;
36815
        }
36816
      }
36817
      return 0;
36818
    }
36819
 
36820
    public _Fields fieldForId(int fieldId) {
36821
      return _Fields.findByThriftId(fieldId);
36822
    }
36823
 
36824
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36825
      org.apache.thrift.protocol.TField field;
36826
      iprot.readStructBegin();
36827
      while (true)
36828
      {
36829
        field = iprot.readFieldBegin();
36830
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36831
          break;
36832
        }
36833
        switch (field.id) {
36834
          case 0: // SUCCESS
36835
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
36836
              this.success = iprot.readBool();
36837
              setSuccessIsSet(true);
36838
            } else { 
36839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36840
            }
36841
            break;
36842
          default:
36843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36844
        }
36845
        iprot.readFieldEnd();
36846
      }
36847
      iprot.readStructEnd();
36848
      validate();
36849
    }
36850
 
36851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36852
      oprot.writeStructBegin(STRUCT_DESC);
36853
 
36854
      if (this.isSetSuccess()) {
36855
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
36856
        oprot.writeBool(this.success);
36857
        oprot.writeFieldEnd();
36858
      }
36859
      oprot.writeFieldStop();
36860
      oprot.writeStructEnd();
36861
    }
36862
 
36863
    @Override
36864
    public String toString() {
36865
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_result(");
36866
      boolean first = true;
36867
 
36868
      sb.append("success:");
36869
      sb.append(this.success);
36870
      first = false;
36871
      sb.append(")");
36872
      return sb.toString();
36873
    }
36874
 
36875
    public void validate() throws org.apache.thrift.TException {
36876
      // check for required fields
36877
    }
36878
 
36879
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36880
      try {
36881
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36882
      } catch (org.apache.thrift.TException te) {
36883
        throw new java.io.IOException(te);
36884
      }
36885
    }
36886
 
36887
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36888
      try {
36889
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36890
      } catch (org.apache.thrift.TException te) {
36891
        throw new java.io.IOException(te);
36892
      }
36893
    }
36894
 
36895
  }
36896
 
36897
  public static class getAllIgnoredInventoryupdateItemsCount_args implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_args, getAllIgnoredInventoryupdateItemsCount_args._Fields>, java.io.Serializable, Cloneable   {
36898
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_args");
36899
 
36900
 
36901
 
36902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36904
;
36905
 
36906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36907
 
36908
      static {
36909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36910
          byName.put(field.getFieldName(), field);
36911
        }
36912
      }
36913
 
36914
      /**
36915
       * Find the _Fields constant that matches fieldId, or null if its not found.
36916
       */
36917
      public static _Fields findByThriftId(int fieldId) {
36918
        switch(fieldId) {
36919
          default:
36920
            return null;
36921
        }
36922
      }
36923
 
36924
      /**
36925
       * Find the _Fields constant that matches fieldId, throwing an exception
36926
       * if it is not found.
36927
       */
36928
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36929
        _Fields fields = findByThriftId(fieldId);
36930
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36931
        return fields;
36932
      }
36933
 
36934
      /**
36935
       * Find the _Fields constant that matches name, or null if its not found.
36936
       */
36937
      public static _Fields findByName(String name) {
36938
        return byName.get(name);
36939
      }
36940
 
36941
      private final short _thriftId;
36942
      private final String _fieldName;
36943
 
36944
      _Fields(short thriftId, String fieldName) {
36945
        _thriftId = thriftId;
36946
        _fieldName = fieldName;
36947
      }
36948
 
36949
      public short getThriftFieldId() {
36950
        return _thriftId;
36951
      }
36952
 
36953
      public String getFieldName() {
36954
        return _fieldName;
36955
      }
36956
    }
36957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36958
    static {
36959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36960
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36961
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_args.class, metaDataMap);
36962
    }
36963
 
36964
    public getAllIgnoredInventoryupdateItemsCount_args() {
36965
    }
36966
 
36967
    /**
36968
     * Performs a deep copy on <i>other</i>.
36969
     */
36970
    public getAllIgnoredInventoryupdateItemsCount_args(getAllIgnoredInventoryupdateItemsCount_args other) {
36971
    }
36972
 
36973
    public getAllIgnoredInventoryupdateItemsCount_args deepCopy() {
36974
      return new getAllIgnoredInventoryupdateItemsCount_args(this);
36975
    }
36976
 
36977
    @Override
36978
    public void clear() {
36979
    }
36980
 
36981
    public void setFieldValue(_Fields field, Object value) {
36982
      switch (field) {
36983
      }
36984
    }
36985
 
36986
    public Object getFieldValue(_Fields field) {
36987
      switch (field) {
36988
      }
36989
      throw new IllegalStateException();
36990
    }
36991
 
36992
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36993
    public boolean isSet(_Fields field) {
36994
      if (field == null) {
36995
        throw new IllegalArgumentException();
36996
      }
36997
 
36998
      switch (field) {
36999
      }
37000
      throw new IllegalStateException();
37001
    }
37002
 
37003
    @Override
37004
    public boolean equals(Object that) {
37005
      if (that == null)
37006
        return false;
37007
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_args)
37008
        return this.equals((getAllIgnoredInventoryupdateItemsCount_args)that);
37009
      return false;
37010
    }
37011
 
37012
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_args that) {
37013
      if (that == null)
37014
        return false;
37015
 
37016
      return true;
37017
    }
37018
 
37019
    @Override
37020
    public int hashCode() {
37021
      return 0;
37022
    }
37023
 
37024
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_args other) {
37025
      if (!getClass().equals(other.getClass())) {
37026
        return getClass().getName().compareTo(other.getClass().getName());
37027
      }
37028
 
37029
      int lastComparison = 0;
37030
      getAllIgnoredInventoryupdateItemsCount_args typedOther = (getAllIgnoredInventoryupdateItemsCount_args)other;
37031
 
37032
      return 0;
37033
    }
37034
 
37035
    public _Fields fieldForId(int fieldId) {
37036
      return _Fields.findByThriftId(fieldId);
37037
    }
37038
 
37039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37040
      org.apache.thrift.protocol.TField field;
37041
      iprot.readStructBegin();
37042
      while (true)
37043
      {
37044
        field = iprot.readFieldBegin();
37045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37046
          break;
37047
        }
37048
        switch (field.id) {
37049
          default:
37050
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37051
        }
37052
        iprot.readFieldEnd();
37053
      }
37054
      iprot.readStructEnd();
37055
      validate();
37056
    }
37057
 
37058
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37059
      validate();
37060
 
37061
      oprot.writeStructBegin(STRUCT_DESC);
37062
      oprot.writeFieldStop();
37063
      oprot.writeStructEnd();
37064
    }
37065
 
37066
    @Override
37067
    public String toString() {
37068
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_args(");
37069
      boolean first = true;
37070
 
37071
      sb.append(")");
37072
      return sb.toString();
37073
    }
37074
 
37075
    public void validate() throws org.apache.thrift.TException {
37076
      // check for required fields
37077
    }
37078
 
37079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37080
      try {
37081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37082
      } catch (org.apache.thrift.TException te) {
37083
        throw new java.io.IOException(te);
37084
      }
37085
    }
37086
 
37087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37088
      try {
37089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37090
      } catch (org.apache.thrift.TException te) {
37091
        throw new java.io.IOException(te);
37092
      }
37093
    }
37094
 
37095
  }
37096
 
37097
  public static class getAllIgnoredInventoryupdateItemsCount_result implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_result, getAllIgnoredInventoryupdateItemsCount_result._Fields>, java.io.Serializable, Cloneable   {
37098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_result");
37099
 
37100
    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);
37101
 
37102
    private int success; // required
37103
 
37104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37106
      SUCCESS((short)0, "success");
37107
 
37108
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37109
 
37110
      static {
37111
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37112
          byName.put(field.getFieldName(), field);
37113
        }
37114
      }
37115
 
37116
      /**
37117
       * Find the _Fields constant that matches fieldId, or null if its not found.
37118
       */
37119
      public static _Fields findByThriftId(int fieldId) {
37120
        switch(fieldId) {
37121
          case 0: // SUCCESS
37122
            return SUCCESS;
37123
          default:
37124
            return null;
37125
        }
37126
      }
37127
 
37128
      /**
37129
       * Find the _Fields constant that matches fieldId, throwing an exception
37130
       * if it is not found.
37131
       */
37132
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37133
        _Fields fields = findByThriftId(fieldId);
37134
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37135
        return fields;
37136
      }
37137
 
37138
      /**
37139
       * Find the _Fields constant that matches name, or null if its not found.
37140
       */
37141
      public static _Fields findByName(String name) {
37142
        return byName.get(name);
37143
      }
37144
 
37145
      private final short _thriftId;
37146
      private final String _fieldName;
37147
 
37148
      _Fields(short thriftId, String fieldName) {
37149
        _thriftId = thriftId;
37150
        _fieldName = fieldName;
37151
      }
37152
 
37153
      public short getThriftFieldId() {
37154
        return _thriftId;
37155
      }
37156
 
37157
      public String getFieldName() {
37158
        return _fieldName;
37159
      }
37160
    }
37161
 
37162
    // isset id assignments
37163
    private static final int __SUCCESS_ISSET_ID = 0;
37164
    private BitSet __isset_bit_vector = new BitSet(1);
37165
 
37166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37167
    static {
37168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37169
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
37171
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37172
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_result.class, metaDataMap);
37173
    }
37174
 
37175
    public getAllIgnoredInventoryupdateItemsCount_result() {
37176
    }
37177
 
37178
    public getAllIgnoredInventoryupdateItemsCount_result(
37179
      int success)
37180
    {
37181
      this();
37182
      this.success = success;
37183
      setSuccessIsSet(true);
37184
    }
37185
 
37186
    /**
37187
     * Performs a deep copy on <i>other</i>.
37188
     */
37189
    public getAllIgnoredInventoryupdateItemsCount_result(getAllIgnoredInventoryupdateItemsCount_result other) {
37190
      __isset_bit_vector.clear();
37191
      __isset_bit_vector.or(other.__isset_bit_vector);
37192
      this.success = other.success;
37193
    }
37194
 
37195
    public getAllIgnoredInventoryupdateItemsCount_result deepCopy() {
37196
      return new getAllIgnoredInventoryupdateItemsCount_result(this);
37197
    }
37198
 
37199
    @Override
37200
    public void clear() {
37201
      setSuccessIsSet(false);
37202
      this.success = 0;
37203
    }
37204
 
37205
    public int getSuccess() {
37206
      return this.success;
37207
    }
37208
 
37209
    public void setSuccess(int success) {
37210
      this.success = success;
37211
      setSuccessIsSet(true);
37212
    }
37213
 
37214
    public void unsetSuccess() {
37215
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
37216
    }
37217
 
37218
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
37219
    public boolean isSetSuccess() {
37220
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
37221
    }
37222
 
37223
    public void setSuccessIsSet(boolean value) {
37224
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
37225
    }
37226
 
37227
    public void setFieldValue(_Fields field, Object value) {
37228
      switch (field) {
37229
      case SUCCESS:
37230
        if (value == null) {
37231
          unsetSuccess();
37232
        } else {
37233
          setSuccess((Integer)value);
37234
        }
37235
        break;
37236
 
37237
      }
37238
    }
37239
 
37240
    public Object getFieldValue(_Fields field) {
37241
      switch (field) {
37242
      case SUCCESS:
37243
        return Integer.valueOf(getSuccess());
37244
 
37245
      }
37246
      throw new IllegalStateException();
37247
    }
37248
 
37249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37250
    public boolean isSet(_Fields field) {
37251
      if (field == null) {
37252
        throw new IllegalArgumentException();
37253
      }
37254
 
37255
      switch (field) {
37256
      case SUCCESS:
37257
        return isSetSuccess();
37258
      }
37259
      throw new IllegalStateException();
37260
    }
37261
 
37262
    @Override
37263
    public boolean equals(Object that) {
37264
      if (that == null)
37265
        return false;
37266
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_result)
37267
        return this.equals((getAllIgnoredInventoryupdateItemsCount_result)that);
37268
      return false;
37269
    }
37270
 
37271
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_result that) {
37272
      if (that == null)
37273
        return false;
37274
 
37275
      boolean this_present_success = true;
37276
      boolean that_present_success = true;
37277
      if (this_present_success || that_present_success) {
37278
        if (!(this_present_success && that_present_success))
37279
          return false;
37280
        if (this.success != that.success)
37281
          return false;
37282
      }
37283
 
37284
      return true;
37285
    }
37286
 
37287
    @Override
37288
    public int hashCode() {
37289
      return 0;
37290
    }
37291
 
37292
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_result other) {
37293
      if (!getClass().equals(other.getClass())) {
37294
        return getClass().getName().compareTo(other.getClass().getName());
37295
      }
37296
 
37297
      int lastComparison = 0;
37298
      getAllIgnoredInventoryupdateItemsCount_result typedOther = (getAllIgnoredInventoryupdateItemsCount_result)other;
37299
 
37300
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37301
      if (lastComparison != 0) {
37302
        return lastComparison;
37303
      }
37304
      if (isSetSuccess()) {
37305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37306
        if (lastComparison != 0) {
37307
          return lastComparison;
37308
        }
37309
      }
37310
      return 0;
37311
    }
37312
 
37313
    public _Fields fieldForId(int fieldId) {
37314
      return _Fields.findByThriftId(fieldId);
37315
    }
37316
 
37317
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37318
      org.apache.thrift.protocol.TField field;
37319
      iprot.readStructBegin();
37320
      while (true)
37321
      {
37322
        field = iprot.readFieldBegin();
37323
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37324
          break;
37325
        }
37326
        switch (field.id) {
37327
          case 0: // SUCCESS
37328
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37329
              this.success = iprot.readI32();
37330
              setSuccessIsSet(true);
37331
            } else { 
37332
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37333
            }
37334
            break;
37335
          default:
37336
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37337
        }
37338
        iprot.readFieldEnd();
37339
      }
37340
      iprot.readStructEnd();
37341
      validate();
37342
    }
37343
 
37344
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37345
      oprot.writeStructBegin(STRUCT_DESC);
37346
 
37347
      if (this.isSetSuccess()) {
37348
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37349
        oprot.writeI32(this.success);
37350
        oprot.writeFieldEnd();
37351
      }
37352
      oprot.writeFieldStop();
37353
      oprot.writeStructEnd();
37354
    }
37355
 
37356
    @Override
37357
    public String toString() {
37358
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_result(");
37359
      boolean first = true;
37360
 
37361
      sb.append("success:");
37362
      sb.append(this.success);
37363
      first = false;
37364
      sb.append(")");
37365
      return sb.toString();
37366
    }
37367
 
37368
    public void validate() throws org.apache.thrift.TException {
37369
      // check for required fields
37370
    }
37371
 
37372
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37373
      try {
37374
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37375
      } catch (org.apache.thrift.TException te) {
37376
        throw new java.io.IOException(te);
37377
      }
37378
    }
37379
 
37380
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37381
      try {
37382
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37383
      } catch (org.apache.thrift.TException te) {
37384
        throw new java.io.IOException(te);
37385
      }
37386
    }
37387
 
37388
  }
37389
 
37390
  public static class getIgnoredInventoryUpdateItemids_args implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_args, getIgnoredInventoryUpdateItemids_args._Fields>, java.io.Serializable, Cloneable   {
37391
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_args");
37392
 
37393
    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);
37394
    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);
37395
 
37396
    private int offset; // required
37397
    private int limit; // required
37398
 
37399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37400
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37401
      OFFSET((short)1, "offset"),
37402
      LIMIT((short)2, "limit");
37403
 
37404
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37405
 
37406
      static {
37407
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37408
          byName.put(field.getFieldName(), field);
37409
        }
37410
      }
37411
 
37412
      /**
37413
       * Find the _Fields constant that matches fieldId, or null if its not found.
37414
       */
37415
      public static _Fields findByThriftId(int fieldId) {
37416
        switch(fieldId) {
37417
          case 1: // OFFSET
37418
            return OFFSET;
37419
          case 2: // LIMIT
37420
            return LIMIT;
37421
          default:
37422
            return null;
37423
        }
37424
      }
37425
 
37426
      /**
37427
       * Find the _Fields constant that matches fieldId, throwing an exception
37428
       * if it is not found.
37429
       */
37430
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37431
        _Fields fields = findByThriftId(fieldId);
37432
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37433
        return fields;
37434
      }
37435
 
37436
      /**
37437
       * Find the _Fields constant that matches name, or null if its not found.
37438
       */
37439
      public static _Fields findByName(String name) {
37440
        return byName.get(name);
37441
      }
37442
 
37443
      private final short _thriftId;
37444
      private final String _fieldName;
37445
 
37446
      _Fields(short thriftId, String fieldName) {
37447
        _thriftId = thriftId;
37448
        _fieldName = fieldName;
37449
      }
37450
 
37451
      public short getThriftFieldId() {
37452
        return _thriftId;
37453
      }
37454
 
37455
      public String getFieldName() {
37456
        return _fieldName;
37457
      }
37458
    }
37459
 
37460
    // isset id assignments
37461
    private static final int __OFFSET_ISSET_ID = 0;
37462
    private static final int __LIMIT_ISSET_ID = 1;
37463
    private BitSet __isset_bit_vector = new BitSet(2);
37464
 
37465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37466
    static {
37467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37468
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37469
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
37470
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37471
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
37472
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37473
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_args.class, metaDataMap);
37474
    }
37475
 
37476
    public getIgnoredInventoryUpdateItemids_args() {
37477
    }
37478
 
37479
    public getIgnoredInventoryUpdateItemids_args(
37480
      int offset,
37481
      int limit)
37482
    {
37483
      this();
37484
      this.offset = offset;
37485
      setOffsetIsSet(true);
37486
      this.limit = limit;
37487
      setLimitIsSet(true);
37488
    }
37489
 
37490
    /**
37491
     * Performs a deep copy on <i>other</i>.
37492
     */
37493
    public getIgnoredInventoryUpdateItemids_args(getIgnoredInventoryUpdateItemids_args other) {
37494
      __isset_bit_vector.clear();
37495
      __isset_bit_vector.or(other.__isset_bit_vector);
37496
      this.offset = other.offset;
37497
      this.limit = other.limit;
37498
    }
37499
 
37500
    public getIgnoredInventoryUpdateItemids_args deepCopy() {
37501
      return new getIgnoredInventoryUpdateItemids_args(this);
37502
    }
37503
 
37504
    @Override
37505
    public void clear() {
37506
      setOffsetIsSet(false);
37507
      this.offset = 0;
37508
      setLimitIsSet(false);
37509
      this.limit = 0;
37510
    }
37511
 
37512
    public int getOffset() {
37513
      return this.offset;
37514
    }
37515
 
37516
    public void setOffset(int offset) {
37517
      this.offset = offset;
37518
      setOffsetIsSet(true);
37519
    }
37520
 
37521
    public void unsetOffset() {
37522
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
37523
    }
37524
 
37525
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
37526
    public boolean isSetOffset() {
37527
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
37528
    }
37529
 
37530
    public void setOffsetIsSet(boolean value) {
37531
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
37532
    }
37533
 
37534
    public int getLimit() {
37535
      return this.limit;
37536
    }
37537
 
37538
    public void setLimit(int limit) {
37539
      this.limit = limit;
37540
      setLimitIsSet(true);
37541
    }
37542
 
37543
    public void unsetLimit() {
37544
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
37545
    }
37546
 
37547
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
37548
    public boolean isSetLimit() {
37549
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
37550
    }
37551
 
37552
    public void setLimitIsSet(boolean value) {
37553
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
37554
    }
37555
 
37556
    public void setFieldValue(_Fields field, Object value) {
37557
      switch (field) {
37558
      case OFFSET:
37559
        if (value == null) {
37560
          unsetOffset();
37561
        } else {
37562
          setOffset((Integer)value);
37563
        }
37564
        break;
37565
 
37566
      case LIMIT:
37567
        if (value == null) {
37568
          unsetLimit();
37569
        } else {
37570
          setLimit((Integer)value);
37571
        }
37572
        break;
37573
 
37574
      }
37575
    }
37576
 
37577
    public Object getFieldValue(_Fields field) {
37578
      switch (field) {
37579
      case OFFSET:
37580
        return Integer.valueOf(getOffset());
37581
 
37582
      case LIMIT:
37583
        return Integer.valueOf(getLimit());
37584
 
37585
      }
37586
      throw new IllegalStateException();
37587
    }
37588
 
37589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37590
    public boolean isSet(_Fields field) {
37591
      if (field == null) {
37592
        throw new IllegalArgumentException();
37593
      }
37594
 
37595
      switch (field) {
37596
      case OFFSET:
37597
        return isSetOffset();
37598
      case LIMIT:
37599
        return isSetLimit();
37600
      }
37601
      throw new IllegalStateException();
37602
    }
37603
 
37604
    @Override
37605
    public boolean equals(Object that) {
37606
      if (that == null)
37607
        return false;
37608
      if (that instanceof getIgnoredInventoryUpdateItemids_args)
37609
        return this.equals((getIgnoredInventoryUpdateItemids_args)that);
37610
      return false;
37611
    }
37612
 
37613
    public boolean equals(getIgnoredInventoryUpdateItemids_args that) {
37614
      if (that == null)
37615
        return false;
37616
 
37617
      boolean this_present_offset = true;
37618
      boolean that_present_offset = true;
37619
      if (this_present_offset || that_present_offset) {
37620
        if (!(this_present_offset && that_present_offset))
37621
          return false;
37622
        if (this.offset != that.offset)
37623
          return false;
37624
      }
37625
 
37626
      boolean this_present_limit = true;
37627
      boolean that_present_limit = true;
37628
      if (this_present_limit || that_present_limit) {
37629
        if (!(this_present_limit && that_present_limit))
37630
          return false;
37631
        if (this.limit != that.limit)
37632
          return false;
37633
      }
37634
 
37635
      return true;
37636
    }
37637
 
37638
    @Override
37639
    public int hashCode() {
37640
      return 0;
37641
    }
37642
 
37643
    public int compareTo(getIgnoredInventoryUpdateItemids_args other) {
37644
      if (!getClass().equals(other.getClass())) {
37645
        return getClass().getName().compareTo(other.getClass().getName());
37646
      }
37647
 
37648
      int lastComparison = 0;
37649
      getIgnoredInventoryUpdateItemids_args typedOther = (getIgnoredInventoryUpdateItemids_args)other;
37650
 
37651
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
37652
      if (lastComparison != 0) {
37653
        return lastComparison;
37654
      }
37655
      if (isSetOffset()) {
37656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
37657
        if (lastComparison != 0) {
37658
          return lastComparison;
37659
        }
37660
      }
37661
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
37662
      if (lastComparison != 0) {
37663
        return lastComparison;
37664
      }
37665
      if (isSetLimit()) {
37666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
37667
        if (lastComparison != 0) {
37668
          return lastComparison;
37669
        }
37670
      }
37671
      return 0;
37672
    }
37673
 
37674
    public _Fields fieldForId(int fieldId) {
37675
      return _Fields.findByThriftId(fieldId);
37676
    }
37677
 
37678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37679
      org.apache.thrift.protocol.TField field;
37680
      iprot.readStructBegin();
37681
      while (true)
37682
      {
37683
        field = iprot.readFieldBegin();
37684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37685
          break;
37686
        }
37687
        switch (field.id) {
37688
          case 1: // OFFSET
37689
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37690
              this.offset = iprot.readI32();
37691
              setOffsetIsSet(true);
37692
            } else { 
37693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37694
            }
37695
            break;
37696
          case 2: // LIMIT
37697
            if (field.type == org.apache.thrift.protocol.TType.I32) {
37698
              this.limit = iprot.readI32();
37699
              setLimitIsSet(true);
37700
            } else { 
37701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37702
            }
37703
            break;
37704
          default:
37705
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37706
        }
37707
        iprot.readFieldEnd();
37708
      }
37709
      iprot.readStructEnd();
37710
      validate();
37711
    }
37712
 
37713
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37714
      validate();
37715
 
37716
      oprot.writeStructBegin(STRUCT_DESC);
37717
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
37718
      oprot.writeI32(this.offset);
37719
      oprot.writeFieldEnd();
37720
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
37721
      oprot.writeI32(this.limit);
37722
      oprot.writeFieldEnd();
37723
      oprot.writeFieldStop();
37724
      oprot.writeStructEnd();
37725
    }
37726
 
37727
    @Override
37728
    public String toString() {
37729
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_args(");
37730
      boolean first = true;
37731
 
37732
      sb.append("offset:");
37733
      sb.append(this.offset);
37734
      first = false;
37735
      if (!first) sb.append(", ");
37736
      sb.append("limit:");
37737
      sb.append(this.limit);
37738
      first = false;
37739
      sb.append(")");
37740
      return sb.toString();
37741
    }
37742
 
37743
    public void validate() throws org.apache.thrift.TException {
37744
      // check for required fields
37745
    }
37746
 
37747
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37748
      try {
37749
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37750
      } catch (org.apache.thrift.TException te) {
37751
        throw new java.io.IOException(te);
37752
      }
37753
    }
37754
 
37755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37756
      try {
37757
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
37758
        __isset_bit_vector = new BitSet(1);
37759
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37760
      } catch (org.apache.thrift.TException te) {
37761
        throw new java.io.IOException(te);
37762
      }
37763
    }
37764
 
37765
  }
37766
 
37767
  public static class getIgnoredInventoryUpdateItemids_result implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_result, getIgnoredInventoryUpdateItemids_result._Fields>, java.io.Serializable, Cloneable   {
37768
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_result");
37769
 
37770
    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);
37771
 
37772
    private List<Long> success; // required
37773
 
37774
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37775
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37776
      SUCCESS((short)0, "success");
37777
 
37778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37779
 
37780
      static {
37781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37782
          byName.put(field.getFieldName(), field);
37783
        }
37784
      }
37785
 
37786
      /**
37787
       * Find the _Fields constant that matches fieldId, or null if its not found.
37788
       */
37789
      public static _Fields findByThriftId(int fieldId) {
37790
        switch(fieldId) {
37791
          case 0: // SUCCESS
37792
            return SUCCESS;
37793
          default:
37794
            return null;
37795
        }
37796
      }
37797
 
37798
      /**
37799
       * Find the _Fields constant that matches fieldId, throwing an exception
37800
       * if it is not found.
37801
       */
37802
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37803
        _Fields fields = findByThriftId(fieldId);
37804
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37805
        return fields;
37806
      }
37807
 
37808
      /**
37809
       * Find the _Fields constant that matches name, or null if its not found.
37810
       */
37811
      public static _Fields findByName(String name) {
37812
        return byName.get(name);
37813
      }
37814
 
37815
      private final short _thriftId;
37816
      private final String _fieldName;
37817
 
37818
      _Fields(short thriftId, String fieldName) {
37819
        _thriftId = thriftId;
37820
        _fieldName = fieldName;
37821
      }
37822
 
37823
      public short getThriftFieldId() {
37824
        return _thriftId;
37825
      }
37826
 
37827
      public String getFieldName() {
37828
        return _fieldName;
37829
      }
37830
    }
37831
 
37832
    // isset id assignments
37833
 
37834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37835
    static {
37836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37837
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37838
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37839
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
37840
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37841
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_result.class, metaDataMap);
37842
    }
37843
 
37844
    public getIgnoredInventoryUpdateItemids_result() {
37845
    }
37846
 
37847
    public getIgnoredInventoryUpdateItemids_result(
37848
      List<Long> success)
37849
    {
37850
      this();
37851
      this.success = success;
37852
    }
37853
 
37854
    /**
37855
     * Performs a deep copy on <i>other</i>.
37856
     */
37857
    public getIgnoredInventoryUpdateItemids_result(getIgnoredInventoryUpdateItemids_result other) {
37858
      if (other.isSetSuccess()) {
37859
        List<Long> __this__success = new ArrayList<Long>();
37860
        for (Long other_element : other.success) {
37861
          __this__success.add(other_element);
37862
        }
37863
        this.success = __this__success;
37864
      }
37865
    }
37866
 
37867
    public getIgnoredInventoryUpdateItemids_result deepCopy() {
37868
      return new getIgnoredInventoryUpdateItemids_result(this);
37869
    }
37870
 
37871
    @Override
37872
    public void clear() {
37873
      this.success = null;
37874
    }
37875
 
37876
    public int getSuccessSize() {
37877
      return (this.success == null) ? 0 : this.success.size();
37878
    }
37879
 
37880
    public java.util.Iterator<Long> getSuccessIterator() {
37881
      return (this.success == null) ? null : this.success.iterator();
37882
    }
37883
 
37884
    public void addToSuccess(long elem) {
37885
      if (this.success == null) {
37886
        this.success = new ArrayList<Long>();
37887
      }
37888
      this.success.add(elem);
37889
    }
37890
 
37891
    public List<Long> getSuccess() {
37892
      return this.success;
37893
    }
37894
 
37895
    public void setSuccess(List<Long> success) {
37896
      this.success = success;
37897
    }
37898
 
37899
    public void unsetSuccess() {
37900
      this.success = null;
37901
    }
37902
 
37903
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
37904
    public boolean isSetSuccess() {
37905
      return this.success != null;
37906
    }
37907
 
37908
    public void setSuccessIsSet(boolean value) {
37909
      if (!value) {
37910
        this.success = null;
37911
      }
37912
    }
37913
 
37914
    public void setFieldValue(_Fields field, Object value) {
37915
      switch (field) {
37916
      case SUCCESS:
37917
        if (value == null) {
37918
          unsetSuccess();
37919
        } else {
37920
          setSuccess((List<Long>)value);
37921
        }
37922
        break;
37923
 
37924
      }
37925
    }
37926
 
37927
    public Object getFieldValue(_Fields field) {
37928
      switch (field) {
37929
      case SUCCESS:
37930
        return getSuccess();
37931
 
37932
      }
37933
      throw new IllegalStateException();
37934
    }
37935
 
37936
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37937
    public boolean isSet(_Fields field) {
37938
      if (field == null) {
37939
        throw new IllegalArgumentException();
37940
      }
37941
 
37942
      switch (field) {
37943
      case SUCCESS:
37944
        return isSetSuccess();
37945
      }
37946
      throw new IllegalStateException();
37947
    }
37948
 
37949
    @Override
37950
    public boolean equals(Object that) {
37951
      if (that == null)
37952
        return false;
37953
      if (that instanceof getIgnoredInventoryUpdateItemids_result)
37954
        return this.equals((getIgnoredInventoryUpdateItemids_result)that);
37955
      return false;
37956
    }
37957
 
37958
    public boolean equals(getIgnoredInventoryUpdateItemids_result that) {
37959
      if (that == null)
37960
        return false;
37961
 
37962
      boolean this_present_success = true && this.isSetSuccess();
37963
      boolean that_present_success = true && that.isSetSuccess();
37964
      if (this_present_success || that_present_success) {
37965
        if (!(this_present_success && that_present_success))
37966
          return false;
37967
        if (!this.success.equals(that.success))
37968
          return false;
37969
      }
37970
 
37971
      return true;
37972
    }
37973
 
37974
    @Override
37975
    public int hashCode() {
37976
      return 0;
37977
    }
37978
 
37979
    public int compareTo(getIgnoredInventoryUpdateItemids_result other) {
37980
      if (!getClass().equals(other.getClass())) {
37981
        return getClass().getName().compareTo(other.getClass().getName());
37982
      }
37983
 
37984
      int lastComparison = 0;
37985
      getIgnoredInventoryUpdateItemids_result typedOther = (getIgnoredInventoryUpdateItemids_result)other;
37986
 
37987
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37988
      if (lastComparison != 0) {
37989
        return lastComparison;
37990
      }
37991
      if (isSetSuccess()) {
37992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37993
        if (lastComparison != 0) {
37994
          return lastComparison;
37995
        }
37996
      }
37997
      return 0;
37998
    }
37999
 
38000
    public _Fields fieldForId(int fieldId) {
38001
      return _Fields.findByThriftId(fieldId);
38002
    }
38003
 
38004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38005
      org.apache.thrift.protocol.TField field;
38006
      iprot.readStructBegin();
38007
      while (true)
38008
      {
38009
        field = iprot.readFieldBegin();
38010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38011
          break;
38012
        }
38013
        switch (field.id) {
38014
          case 0: // SUCCESS
38015
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38016
              {
8182 amar.kumar 38017
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
38018
                this.success = new ArrayList<Long>(_list105.size);
38019
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
6531 vikram.rag 38020
                {
8182 amar.kumar 38021
                  long _elem107; // required
38022
                  _elem107 = iprot.readI64();
38023
                  this.success.add(_elem107);
6531 vikram.rag 38024
                }
38025
                iprot.readListEnd();
38026
              }
38027
            } else { 
38028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38029
            }
38030
            break;
38031
          default:
38032
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38033
        }
38034
        iprot.readFieldEnd();
38035
      }
38036
      iprot.readStructEnd();
38037
      validate();
38038
    }
38039
 
38040
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38041
      oprot.writeStructBegin(STRUCT_DESC);
38042
 
38043
      if (this.isSetSuccess()) {
38044
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38045
        {
38046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
8182 amar.kumar 38047
          for (long _iter108 : this.success)
6531 vikram.rag 38048
          {
8182 amar.kumar 38049
            oprot.writeI64(_iter108);
6531 vikram.rag 38050
          }
38051
          oprot.writeListEnd();
38052
        }
38053
        oprot.writeFieldEnd();
38054
      }
38055
      oprot.writeFieldStop();
38056
      oprot.writeStructEnd();
38057
    }
38058
 
38059
    @Override
38060
    public String toString() {
38061
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_result(");
38062
      boolean first = true;
38063
 
38064
      sb.append("success:");
38065
      if (this.success == null) {
38066
        sb.append("null");
38067
      } else {
38068
        sb.append(this.success);
38069
      }
38070
      first = false;
38071
      sb.append(")");
38072
      return sb.toString();
38073
    }
38074
 
38075
    public void validate() throws org.apache.thrift.TException {
38076
      // check for required fields
38077
    }
38078
 
38079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38080
      try {
38081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38082
      } catch (org.apache.thrift.TException te) {
38083
        throw new java.io.IOException(te);
38084
      }
38085
    }
38086
 
38087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38088
      try {
38089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38090
      } catch (org.apache.thrift.TException te) {
38091
        throw new java.io.IOException(te);
38092
      }
38093
    }
38094
 
38095
  }
38096
 
6821 amar.kumar 38097
  public static class updateItemStockPurchaseParams_args implements org.apache.thrift.TBase<updateItemStockPurchaseParams_args, updateItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
38098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_args");
38099
 
38100
    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);
38101
    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);
38102
    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);
38103
 
38104
    private long item_id; // required
38105
    private int numOfDaysStock; // required
38106
    private long minStockLevel; // required
38107
 
38108
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38109
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38110
      ITEM_ID((short)1, "item_id"),
38111
      NUM_OF_DAYS_STOCK((short)2, "numOfDaysStock"),
38112
      MIN_STOCK_LEVEL((short)3, "minStockLevel");
38113
 
38114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38115
 
38116
      static {
38117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38118
          byName.put(field.getFieldName(), field);
38119
        }
38120
      }
38121
 
38122
      /**
38123
       * Find the _Fields constant that matches fieldId, or null if its not found.
38124
       */
38125
      public static _Fields findByThriftId(int fieldId) {
38126
        switch(fieldId) {
38127
          case 1: // ITEM_ID
38128
            return ITEM_ID;
38129
          case 2: // NUM_OF_DAYS_STOCK
38130
            return NUM_OF_DAYS_STOCK;
38131
          case 3: // MIN_STOCK_LEVEL
38132
            return MIN_STOCK_LEVEL;
38133
          default:
38134
            return null;
38135
        }
38136
      }
38137
 
38138
      /**
38139
       * Find the _Fields constant that matches fieldId, throwing an exception
38140
       * if it is not found.
38141
       */
38142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38143
        _Fields fields = findByThriftId(fieldId);
38144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38145
        return fields;
38146
      }
38147
 
38148
      /**
38149
       * Find the _Fields constant that matches name, or null if its not found.
38150
       */
38151
      public static _Fields findByName(String name) {
38152
        return byName.get(name);
38153
      }
38154
 
38155
      private final short _thriftId;
38156
      private final String _fieldName;
38157
 
38158
      _Fields(short thriftId, String fieldName) {
38159
        _thriftId = thriftId;
38160
        _fieldName = fieldName;
38161
      }
38162
 
38163
      public short getThriftFieldId() {
38164
        return _thriftId;
38165
      }
38166
 
38167
      public String getFieldName() {
38168
        return _fieldName;
38169
      }
38170
    }
38171
 
38172
    // isset id assignments
38173
    private static final int __ITEM_ID_ISSET_ID = 0;
38174
    private static final int __NUMOFDAYSSTOCK_ISSET_ID = 1;
38175
    private static final int __MINSTOCKLEVEL_ISSET_ID = 2;
38176
    private BitSet __isset_bit_vector = new BitSet(3);
38177
 
38178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38179
    static {
38180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38181
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38183
      tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
38185
      tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38186
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38187
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38188
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_args.class, metaDataMap);
38189
    }
38190
 
38191
    public updateItemStockPurchaseParams_args() {
38192
    }
38193
 
38194
    public updateItemStockPurchaseParams_args(
38195
      long item_id,
38196
      int numOfDaysStock,
38197
      long minStockLevel)
38198
    {
38199
      this();
38200
      this.item_id = item_id;
38201
      setItem_idIsSet(true);
38202
      this.numOfDaysStock = numOfDaysStock;
38203
      setNumOfDaysStockIsSet(true);
38204
      this.minStockLevel = minStockLevel;
38205
      setMinStockLevelIsSet(true);
38206
    }
38207
 
38208
    /**
38209
     * Performs a deep copy on <i>other</i>.
38210
     */
38211
    public updateItemStockPurchaseParams_args(updateItemStockPurchaseParams_args other) {
38212
      __isset_bit_vector.clear();
38213
      __isset_bit_vector.or(other.__isset_bit_vector);
38214
      this.item_id = other.item_id;
38215
      this.numOfDaysStock = other.numOfDaysStock;
38216
      this.minStockLevel = other.minStockLevel;
38217
    }
38218
 
38219
    public updateItemStockPurchaseParams_args deepCopy() {
38220
      return new updateItemStockPurchaseParams_args(this);
38221
    }
38222
 
38223
    @Override
38224
    public void clear() {
38225
      setItem_idIsSet(false);
38226
      this.item_id = 0;
38227
      setNumOfDaysStockIsSet(false);
38228
      this.numOfDaysStock = 0;
38229
      setMinStockLevelIsSet(false);
38230
      this.minStockLevel = 0;
38231
    }
38232
 
38233
    public long getItem_id() {
38234
      return this.item_id;
38235
    }
38236
 
38237
    public void setItem_id(long item_id) {
38238
      this.item_id = item_id;
38239
      setItem_idIsSet(true);
38240
    }
38241
 
38242
    public void unsetItem_id() {
38243
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
38244
    }
38245
 
38246
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
38247
    public boolean isSetItem_id() {
38248
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
38249
    }
38250
 
38251
    public void setItem_idIsSet(boolean value) {
38252
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
38253
    }
38254
 
38255
    public int getNumOfDaysStock() {
38256
      return this.numOfDaysStock;
38257
    }
38258
 
38259
    public void setNumOfDaysStock(int numOfDaysStock) {
38260
      this.numOfDaysStock = numOfDaysStock;
38261
      setNumOfDaysStockIsSet(true);
38262
    }
38263
 
38264
    public void unsetNumOfDaysStock() {
38265
      __isset_bit_vector.clear(__NUMOFDAYSSTOCK_ISSET_ID);
38266
    }
38267
 
38268
    /** Returns true if field numOfDaysStock is set (has been assigned a value) and false otherwise */
38269
    public boolean isSetNumOfDaysStock() {
38270
      return __isset_bit_vector.get(__NUMOFDAYSSTOCK_ISSET_ID);
38271
    }
38272
 
38273
    public void setNumOfDaysStockIsSet(boolean value) {
38274
      __isset_bit_vector.set(__NUMOFDAYSSTOCK_ISSET_ID, value);
38275
    }
38276
 
38277
    public long getMinStockLevel() {
38278
      return this.minStockLevel;
38279
    }
38280
 
38281
    public void setMinStockLevel(long minStockLevel) {
38282
      this.minStockLevel = minStockLevel;
38283
      setMinStockLevelIsSet(true);
38284
    }
38285
 
38286
    public void unsetMinStockLevel() {
38287
      __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
38288
    }
38289
 
38290
    /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
38291
    public boolean isSetMinStockLevel() {
38292
      return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
38293
    }
38294
 
38295
    public void setMinStockLevelIsSet(boolean value) {
38296
      __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
38297
    }
38298
 
38299
    public void setFieldValue(_Fields field, Object value) {
38300
      switch (field) {
38301
      case ITEM_ID:
38302
        if (value == null) {
38303
          unsetItem_id();
38304
        } else {
38305
          setItem_id((Long)value);
38306
        }
38307
        break;
38308
 
38309
      case NUM_OF_DAYS_STOCK:
38310
        if (value == null) {
38311
          unsetNumOfDaysStock();
38312
        } else {
38313
          setNumOfDaysStock((Integer)value);
38314
        }
38315
        break;
38316
 
38317
      case MIN_STOCK_LEVEL:
38318
        if (value == null) {
38319
          unsetMinStockLevel();
38320
        } else {
38321
          setMinStockLevel((Long)value);
38322
        }
38323
        break;
38324
 
38325
      }
38326
    }
38327
 
38328
    public Object getFieldValue(_Fields field) {
38329
      switch (field) {
38330
      case ITEM_ID:
38331
        return Long.valueOf(getItem_id());
38332
 
38333
      case NUM_OF_DAYS_STOCK:
38334
        return Integer.valueOf(getNumOfDaysStock());
38335
 
38336
      case MIN_STOCK_LEVEL:
38337
        return Long.valueOf(getMinStockLevel());
38338
 
38339
      }
38340
      throw new IllegalStateException();
38341
    }
38342
 
38343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38344
    public boolean isSet(_Fields field) {
38345
      if (field == null) {
38346
        throw new IllegalArgumentException();
38347
      }
38348
 
38349
      switch (field) {
38350
      case ITEM_ID:
38351
        return isSetItem_id();
38352
      case NUM_OF_DAYS_STOCK:
38353
        return isSetNumOfDaysStock();
38354
      case MIN_STOCK_LEVEL:
38355
        return isSetMinStockLevel();
38356
      }
38357
      throw new IllegalStateException();
38358
    }
38359
 
38360
    @Override
38361
    public boolean equals(Object that) {
38362
      if (that == null)
38363
        return false;
38364
      if (that instanceof updateItemStockPurchaseParams_args)
38365
        return this.equals((updateItemStockPurchaseParams_args)that);
38366
      return false;
38367
    }
38368
 
38369
    public boolean equals(updateItemStockPurchaseParams_args that) {
38370
      if (that == null)
38371
        return false;
38372
 
38373
      boolean this_present_item_id = true;
38374
      boolean that_present_item_id = true;
38375
      if (this_present_item_id || that_present_item_id) {
38376
        if (!(this_present_item_id && that_present_item_id))
38377
          return false;
38378
        if (this.item_id != that.item_id)
38379
          return false;
38380
      }
38381
 
38382
      boolean this_present_numOfDaysStock = true;
38383
      boolean that_present_numOfDaysStock = true;
38384
      if (this_present_numOfDaysStock || that_present_numOfDaysStock) {
38385
        if (!(this_present_numOfDaysStock && that_present_numOfDaysStock))
38386
          return false;
38387
        if (this.numOfDaysStock != that.numOfDaysStock)
38388
          return false;
38389
      }
38390
 
38391
      boolean this_present_minStockLevel = true;
38392
      boolean that_present_minStockLevel = true;
38393
      if (this_present_minStockLevel || that_present_minStockLevel) {
38394
        if (!(this_present_minStockLevel && that_present_minStockLevel))
38395
          return false;
38396
        if (this.minStockLevel != that.minStockLevel)
38397
          return false;
38398
      }
38399
 
38400
      return true;
38401
    }
38402
 
38403
    @Override
38404
    public int hashCode() {
38405
      return 0;
38406
    }
38407
 
38408
    public int compareTo(updateItemStockPurchaseParams_args other) {
38409
      if (!getClass().equals(other.getClass())) {
38410
        return getClass().getName().compareTo(other.getClass().getName());
38411
      }
38412
 
38413
      int lastComparison = 0;
38414
      updateItemStockPurchaseParams_args typedOther = (updateItemStockPurchaseParams_args)other;
38415
 
38416
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
38417
      if (lastComparison != 0) {
38418
        return lastComparison;
38419
      }
38420
      if (isSetItem_id()) {
38421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
38422
        if (lastComparison != 0) {
38423
          return lastComparison;
38424
        }
38425
      }
38426
      lastComparison = Boolean.valueOf(isSetNumOfDaysStock()).compareTo(typedOther.isSetNumOfDaysStock());
38427
      if (lastComparison != 0) {
38428
        return lastComparison;
38429
      }
38430
      if (isSetNumOfDaysStock()) {
38431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numOfDaysStock, typedOther.numOfDaysStock);
38432
        if (lastComparison != 0) {
38433
          return lastComparison;
38434
        }
38435
      }
38436
      lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
38437
      if (lastComparison != 0) {
38438
        return lastComparison;
38439
      }
38440
      if (isSetMinStockLevel()) {
38441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
38442
        if (lastComparison != 0) {
38443
          return lastComparison;
38444
        }
38445
      }
38446
      return 0;
38447
    }
38448
 
38449
    public _Fields fieldForId(int fieldId) {
38450
      return _Fields.findByThriftId(fieldId);
38451
    }
38452
 
38453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38454
      org.apache.thrift.protocol.TField field;
38455
      iprot.readStructBegin();
38456
      while (true)
38457
      {
38458
        field = iprot.readFieldBegin();
38459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38460
          break;
38461
        }
38462
        switch (field.id) {
38463
          case 1: // ITEM_ID
38464
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38465
              this.item_id = iprot.readI64();
38466
              setItem_idIsSet(true);
38467
            } else { 
38468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38469
            }
38470
            break;
38471
          case 2: // NUM_OF_DAYS_STOCK
38472
            if (field.type == org.apache.thrift.protocol.TType.I32) {
38473
              this.numOfDaysStock = iprot.readI32();
38474
              setNumOfDaysStockIsSet(true);
38475
            } else { 
38476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38477
            }
38478
            break;
38479
          case 3: // MIN_STOCK_LEVEL
38480
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38481
              this.minStockLevel = iprot.readI64();
38482
              setMinStockLevelIsSet(true);
38483
            } else { 
38484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38485
            }
38486
            break;
38487
          default:
38488
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38489
        }
38490
        iprot.readFieldEnd();
38491
      }
38492
      iprot.readStructEnd();
38493
      validate();
38494
    }
38495
 
38496
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38497
      validate();
38498
 
38499
      oprot.writeStructBegin(STRUCT_DESC);
38500
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
38501
      oprot.writeI64(this.item_id);
38502
      oprot.writeFieldEnd();
38503
      oprot.writeFieldBegin(NUM_OF_DAYS_STOCK_FIELD_DESC);
38504
      oprot.writeI32(this.numOfDaysStock);
38505
      oprot.writeFieldEnd();
38506
      oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
38507
      oprot.writeI64(this.minStockLevel);
38508
      oprot.writeFieldEnd();
38509
      oprot.writeFieldStop();
38510
      oprot.writeStructEnd();
38511
    }
38512
 
38513
    @Override
38514
    public String toString() {
38515
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_args(");
38516
      boolean first = true;
38517
 
38518
      sb.append("item_id:");
38519
      sb.append(this.item_id);
38520
      first = false;
38521
      if (!first) sb.append(", ");
38522
      sb.append("numOfDaysStock:");
38523
      sb.append(this.numOfDaysStock);
38524
      first = false;
38525
      if (!first) sb.append(", ");
38526
      sb.append("minStockLevel:");
38527
      sb.append(this.minStockLevel);
38528
      first = false;
38529
      sb.append(")");
38530
      return sb.toString();
38531
    }
38532
 
38533
    public void validate() throws org.apache.thrift.TException {
38534
      // check for required fields
38535
    }
38536
 
38537
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38538
      try {
38539
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38540
      } catch (org.apache.thrift.TException te) {
38541
        throw new java.io.IOException(te);
38542
      }
38543
    }
38544
 
38545
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38546
      try {
38547
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
38548
        __isset_bit_vector = new BitSet(1);
38549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38550
      } catch (org.apache.thrift.TException te) {
38551
        throw new java.io.IOException(te);
38552
      }
38553
    }
38554
 
38555
  }
38556
 
38557
  public static class updateItemStockPurchaseParams_result implements org.apache.thrift.TBase<updateItemStockPurchaseParams_result, updateItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
38558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_result");
38559
 
38560
 
38561
 
38562
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38563
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38564
;
38565
 
38566
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38567
 
38568
      static {
38569
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38570
          byName.put(field.getFieldName(), field);
38571
        }
38572
      }
38573
 
38574
      /**
38575
       * Find the _Fields constant that matches fieldId, or null if its not found.
38576
       */
38577
      public static _Fields findByThriftId(int fieldId) {
38578
        switch(fieldId) {
38579
          default:
38580
            return null;
38581
        }
38582
      }
38583
 
38584
      /**
38585
       * Find the _Fields constant that matches fieldId, throwing an exception
38586
       * if it is not found.
38587
       */
38588
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38589
        _Fields fields = findByThriftId(fieldId);
38590
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38591
        return fields;
38592
      }
38593
 
38594
      /**
38595
       * Find the _Fields constant that matches name, or null if its not found.
38596
       */
38597
      public static _Fields findByName(String name) {
38598
        return byName.get(name);
38599
      }
38600
 
38601
      private final short _thriftId;
38602
      private final String _fieldName;
38603
 
38604
      _Fields(short thriftId, String fieldName) {
38605
        _thriftId = thriftId;
38606
        _fieldName = fieldName;
38607
      }
38608
 
38609
      public short getThriftFieldId() {
38610
        return _thriftId;
38611
      }
38612
 
38613
      public String getFieldName() {
38614
        return _fieldName;
38615
      }
38616
    }
38617
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38618
    static {
38619
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38620
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38621
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_result.class, metaDataMap);
38622
    }
38623
 
38624
    public updateItemStockPurchaseParams_result() {
38625
    }
38626
 
38627
    /**
38628
     * Performs a deep copy on <i>other</i>.
38629
     */
38630
    public updateItemStockPurchaseParams_result(updateItemStockPurchaseParams_result other) {
38631
    }
38632
 
38633
    public updateItemStockPurchaseParams_result deepCopy() {
38634
      return new updateItemStockPurchaseParams_result(this);
38635
    }
38636
 
38637
    @Override
38638
    public void clear() {
38639
    }
38640
 
38641
    public void setFieldValue(_Fields field, Object value) {
38642
      switch (field) {
38643
      }
38644
    }
38645
 
38646
    public Object getFieldValue(_Fields field) {
38647
      switch (field) {
38648
      }
38649
      throw new IllegalStateException();
38650
    }
38651
 
38652
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38653
    public boolean isSet(_Fields field) {
38654
      if (field == null) {
38655
        throw new IllegalArgumentException();
38656
      }
38657
 
38658
      switch (field) {
38659
      }
38660
      throw new IllegalStateException();
38661
    }
38662
 
38663
    @Override
38664
    public boolean equals(Object that) {
38665
      if (that == null)
38666
        return false;
38667
      if (that instanceof updateItemStockPurchaseParams_result)
38668
        return this.equals((updateItemStockPurchaseParams_result)that);
38669
      return false;
38670
    }
38671
 
38672
    public boolean equals(updateItemStockPurchaseParams_result that) {
38673
      if (that == null)
38674
        return false;
38675
 
38676
      return true;
38677
    }
38678
 
38679
    @Override
38680
    public int hashCode() {
38681
      return 0;
38682
    }
38683
 
38684
    public int compareTo(updateItemStockPurchaseParams_result other) {
38685
      if (!getClass().equals(other.getClass())) {
38686
        return getClass().getName().compareTo(other.getClass().getName());
38687
      }
38688
 
38689
      int lastComparison = 0;
38690
      updateItemStockPurchaseParams_result typedOther = (updateItemStockPurchaseParams_result)other;
38691
 
38692
      return 0;
38693
    }
38694
 
38695
    public _Fields fieldForId(int fieldId) {
38696
      return _Fields.findByThriftId(fieldId);
38697
    }
38698
 
38699
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38700
      org.apache.thrift.protocol.TField field;
38701
      iprot.readStructBegin();
38702
      while (true)
38703
      {
38704
        field = iprot.readFieldBegin();
38705
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38706
          break;
38707
        }
38708
        switch (field.id) {
38709
          default:
38710
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38711
        }
38712
        iprot.readFieldEnd();
38713
      }
38714
      iprot.readStructEnd();
38715
      validate();
38716
    }
38717
 
38718
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38719
      oprot.writeStructBegin(STRUCT_DESC);
38720
 
38721
      oprot.writeFieldStop();
38722
      oprot.writeStructEnd();
38723
    }
38724
 
38725
    @Override
38726
    public String toString() {
38727
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_result(");
38728
      boolean first = true;
38729
 
38730
      sb.append(")");
38731
      return sb.toString();
38732
    }
38733
 
38734
    public void validate() throws org.apache.thrift.TException {
38735
      // check for required fields
38736
    }
38737
 
38738
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38739
      try {
38740
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38741
      } catch (org.apache.thrift.TException te) {
38742
        throw new java.io.IOException(te);
38743
      }
38744
    }
38745
 
38746
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38747
      try {
38748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38749
      } catch (org.apache.thrift.TException te) {
38750
        throw new java.io.IOException(te);
38751
      }
38752
    }
38753
 
38754
  }
38755
 
38756
  public static class getItemStockPurchaseParams_args implements org.apache.thrift.TBase<getItemStockPurchaseParams_args, getItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
38757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_args");
38758
 
38759
    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);
38760
 
38761
    private long itemId; // required
38762
 
38763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38765
      ITEM_ID((short)1, "itemId");
38766
 
38767
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38768
 
38769
      static {
38770
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38771
          byName.put(field.getFieldName(), field);
38772
        }
38773
      }
38774
 
38775
      /**
38776
       * Find the _Fields constant that matches fieldId, or null if its not found.
38777
       */
38778
      public static _Fields findByThriftId(int fieldId) {
38779
        switch(fieldId) {
38780
          case 1: // ITEM_ID
38781
            return ITEM_ID;
38782
          default:
38783
            return null;
38784
        }
38785
      }
38786
 
38787
      /**
38788
       * Find the _Fields constant that matches fieldId, throwing an exception
38789
       * if it is not found.
38790
       */
38791
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38792
        _Fields fields = findByThriftId(fieldId);
38793
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38794
        return fields;
38795
      }
38796
 
38797
      /**
38798
       * Find the _Fields constant that matches name, or null if its not found.
38799
       */
38800
      public static _Fields findByName(String name) {
38801
        return byName.get(name);
38802
      }
38803
 
38804
      private final short _thriftId;
38805
      private final String _fieldName;
38806
 
38807
      _Fields(short thriftId, String fieldName) {
38808
        _thriftId = thriftId;
38809
        _fieldName = fieldName;
38810
      }
38811
 
38812
      public short getThriftFieldId() {
38813
        return _thriftId;
38814
      }
38815
 
38816
      public String getFieldName() {
38817
        return _fieldName;
38818
      }
38819
    }
38820
 
38821
    // isset id assignments
38822
    private static final int __ITEMID_ISSET_ID = 0;
38823
    private BitSet __isset_bit_vector = new BitSet(1);
38824
 
38825
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38826
    static {
38827
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38828
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38829
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38830
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38831
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_args.class, metaDataMap);
38832
    }
38833
 
38834
    public getItemStockPurchaseParams_args() {
38835
    }
38836
 
38837
    public getItemStockPurchaseParams_args(
38838
      long itemId)
38839
    {
38840
      this();
38841
      this.itemId = itemId;
38842
      setItemIdIsSet(true);
38843
    }
38844
 
38845
    /**
38846
     * Performs a deep copy on <i>other</i>.
38847
     */
38848
    public getItemStockPurchaseParams_args(getItemStockPurchaseParams_args other) {
38849
      __isset_bit_vector.clear();
38850
      __isset_bit_vector.or(other.__isset_bit_vector);
38851
      this.itemId = other.itemId;
38852
    }
38853
 
38854
    public getItemStockPurchaseParams_args deepCopy() {
38855
      return new getItemStockPurchaseParams_args(this);
38856
    }
38857
 
38858
    @Override
38859
    public void clear() {
38860
      setItemIdIsSet(false);
38861
      this.itemId = 0;
38862
    }
38863
 
38864
    public long getItemId() {
38865
      return this.itemId;
38866
    }
38867
 
38868
    public void setItemId(long itemId) {
38869
      this.itemId = itemId;
38870
      setItemIdIsSet(true);
38871
    }
38872
 
38873
    public void unsetItemId() {
38874
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
38875
    }
38876
 
38877
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
38878
    public boolean isSetItemId() {
38879
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
38880
    }
38881
 
38882
    public void setItemIdIsSet(boolean value) {
38883
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
38884
    }
38885
 
38886
    public void setFieldValue(_Fields field, Object value) {
38887
      switch (field) {
38888
      case ITEM_ID:
38889
        if (value == null) {
38890
          unsetItemId();
38891
        } else {
38892
          setItemId((Long)value);
38893
        }
38894
        break;
38895
 
38896
      }
38897
    }
38898
 
38899
    public Object getFieldValue(_Fields field) {
38900
      switch (field) {
38901
      case ITEM_ID:
38902
        return Long.valueOf(getItemId());
38903
 
38904
      }
38905
      throw new IllegalStateException();
38906
    }
38907
 
38908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38909
    public boolean isSet(_Fields field) {
38910
      if (field == null) {
38911
        throw new IllegalArgumentException();
38912
      }
38913
 
38914
      switch (field) {
38915
      case ITEM_ID:
38916
        return isSetItemId();
38917
      }
38918
      throw new IllegalStateException();
38919
    }
38920
 
38921
    @Override
38922
    public boolean equals(Object that) {
38923
      if (that == null)
38924
        return false;
38925
      if (that instanceof getItemStockPurchaseParams_args)
38926
        return this.equals((getItemStockPurchaseParams_args)that);
38927
      return false;
38928
    }
38929
 
38930
    public boolean equals(getItemStockPurchaseParams_args that) {
38931
      if (that == null)
38932
        return false;
38933
 
38934
      boolean this_present_itemId = true;
38935
      boolean that_present_itemId = true;
38936
      if (this_present_itemId || that_present_itemId) {
38937
        if (!(this_present_itemId && that_present_itemId))
38938
          return false;
38939
        if (this.itemId != that.itemId)
38940
          return false;
38941
      }
38942
 
38943
      return true;
38944
    }
38945
 
38946
    @Override
38947
    public int hashCode() {
38948
      return 0;
38949
    }
38950
 
38951
    public int compareTo(getItemStockPurchaseParams_args other) {
38952
      if (!getClass().equals(other.getClass())) {
38953
        return getClass().getName().compareTo(other.getClass().getName());
38954
      }
38955
 
38956
      int lastComparison = 0;
38957
      getItemStockPurchaseParams_args typedOther = (getItemStockPurchaseParams_args)other;
38958
 
38959
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
38960
      if (lastComparison != 0) {
38961
        return lastComparison;
38962
      }
38963
      if (isSetItemId()) {
38964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
38965
        if (lastComparison != 0) {
38966
          return lastComparison;
38967
        }
38968
      }
38969
      return 0;
38970
    }
38971
 
38972
    public _Fields fieldForId(int fieldId) {
38973
      return _Fields.findByThriftId(fieldId);
38974
    }
38975
 
38976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38977
      org.apache.thrift.protocol.TField field;
38978
      iprot.readStructBegin();
38979
      while (true)
38980
      {
38981
        field = iprot.readFieldBegin();
38982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38983
          break;
38984
        }
38985
        switch (field.id) {
38986
          case 1: // ITEM_ID
38987
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38988
              this.itemId = iprot.readI64();
38989
              setItemIdIsSet(true);
38990
            } else { 
38991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38992
            }
38993
            break;
38994
          default:
38995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38996
        }
38997
        iprot.readFieldEnd();
38998
      }
38999
      iprot.readStructEnd();
39000
      validate();
39001
    }
39002
 
39003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39004
      validate();
39005
 
39006
      oprot.writeStructBegin(STRUCT_DESC);
39007
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
39008
      oprot.writeI64(this.itemId);
39009
      oprot.writeFieldEnd();
39010
      oprot.writeFieldStop();
39011
      oprot.writeStructEnd();
39012
    }
39013
 
39014
    @Override
39015
    public String toString() {
39016
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_args(");
39017
      boolean first = true;
39018
 
39019
      sb.append("itemId:");
39020
      sb.append(this.itemId);
39021
      first = false;
39022
      sb.append(")");
39023
      return sb.toString();
39024
    }
39025
 
39026
    public void validate() throws org.apache.thrift.TException {
39027
      // check for required fields
39028
    }
39029
 
39030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39031
      try {
39032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39033
      } catch (org.apache.thrift.TException te) {
39034
        throw new java.io.IOException(te);
39035
      }
39036
    }
39037
 
39038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39039
      try {
39040
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39041
        __isset_bit_vector = new BitSet(1);
39042
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39043
      } catch (org.apache.thrift.TException te) {
39044
        throw new java.io.IOException(te);
39045
      }
39046
    }
39047
 
39048
  }
39049
 
39050
  public static class getItemStockPurchaseParams_result implements org.apache.thrift.TBase<getItemStockPurchaseParams_result, getItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
39051
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_result");
39052
 
39053
    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);
39054
 
39055
    private ItemStockPurchaseParams success; // required
39056
 
39057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39059
      SUCCESS((short)0, "success");
39060
 
39061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39062
 
39063
      static {
39064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39065
          byName.put(field.getFieldName(), field);
39066
        }
39067
      }
39068
 
39069
      /**
39070
       * Find the _Fields constant that matches fieldId, or null if its not found.
39071
       */
39072
      public static _Fields findByThriftId(int fieldId) {
39073
        switch(fieldId) {
39074
          case 0: // SUCCESS
39075
            return SUCCESS;
39076
          default:
39077
            return null;
39078
        }
39079
      }
39080
 
39081
      /**
39082
       * Find the _Fields constant that matches fieldId, throwing an exception
39083
       * if it is not found.
39084
       */
39085
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39086
        _Fields fields = findByThriftId(fieldId);
39087
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39088
        return fields;
39089
      }
39090
 
39091
      /**
39092
       * Find the _Fields constant that matches name, or null if its not found.
39093
       */
39094
      public static _Fields findByName(String name) {
39095
        return byName.get(name);
39096
      }
39097
 
39098
      private final short _thriftId;
39099
      private final String _fieldName;
39100
 
39101
      _Fields(short thriftId, String fieldName) {
39102
        _thriftId = thriftId;
39103
        _fieldName = fieldName;
39104
      }
39105
 
39106
      public short getThriftFieldId() {
39107
        return _thriftId;
39108
      }
39109
 
39110
      public String getFieldName() {
39111
        return _fieldName;
39112
      }
39113
    }
39114
 
39115
    // isset id assignments
39116
 
39117
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39118
    static {
39119
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39120
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39121
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class)));
39122
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39123
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_result.class, metaDataMap);
39124
    }
39125
 
39126
    public getItemStockPurchaseParams_result() {
39127
    }
39128
 
39129
    public getItemStockPurchaseParams_result(
39130
      ItemStockPurchaseParams success)
39131
    {
39132
      this();
39133
      this.success = success;
39134
    }
39135
 
39136
    /**
39137
     * Performs a deep copy on <i>other</i>.
39138
     */
39139
    public getItemStockPurchaseParams_result(getItemStockPurchaseParams_result other) {
39140
      if (other.isSetSuccess()) {
39141
        this.success = new ItemStockPurchaseParams(other.success);
39142
      }
39143
    }
39144
 
39145
    public getItemStockPurchaseParams_result deepCopy() {
39146
      return new getItemStockPurchaseParams_result(this);
39147
    }
39148
 
39149
    @Override
39150
    public void clear() {
39151
      this.success = null;
39152
    }
39153
 
39154
    public ItemStockPurchaseParams getSuccess() {
39155
      return this.success;
39156
    }
39157
 
39158
    public void setSuccess(ItemStockPurchaseParams success) {
39159
      this.success = success;
39160
    }
39161
 
39162
    public void unsetSuccess() {
39163
      this.success = null;
39164
    }
39165
 
39166
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
39167
    public boolean isSetSuccess() {
39168
      return this.success != null;
39169
    }
39170
 
39171
    public void setSuccessIsSet(boolean value) {
39172
      if (!value) {
39173
        this.success = null;
39174
      }
39175
    }
39176
 
39177
    public void setFieldValue(_Fields field, Object value) {
39178
      switch (field) {
39179
      case SUCCESS:
39180
        if (value == null) {
39181
          unsetSuccess();
39182
        } else {
39183
          setSuccess((ItemStockPurchaseParams)value);
39184
        }
39185
        break;
39186
 
39187
      }
39188
    }
39189
 
39190
    public Object getFieldValue(_Fields field) {
39191
      switch (field) {
39192
      case SUCCESS:
39193
        return getSuccess();
39194
 
39195
      }
39196
      throw new IllegalStateException();
39197
    }
39198
 
39199
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39200
    public boolean isSet(_Fields field) {
39201
      if (field == null) {
39202
        throw new IllegalArgumentException();
39203
      }
39204
 
39205
      switch (field) {
39206
      case SUCCESS:
39207
        return isSetSuccess();
39208
      }
39209
      throw new IllegalStateException();
39210
    }
39211
 
39212
    @Override
39213
    public boolean equals(Object that) {
39214
      if (that == null)
39215
        return false;
39216
      if (that instanceof getItemStockPurchaseParams_result)
39217
        return this.equals((getItemStockPurchaseParams_result)that);
39218
      return false;
39219
    }
39220
 
39221
    public boolean equals(getItemStockPurchaseParams_result that) {
39222
      if (that == null)
39223
        return false;
39224
 
39225
      boolean this_present_success = true && this.isSetSuccess();
39226
      boolean that_present_success = true && that.isSetSuccess();
39227
      if (this_present_success || that_present_success) {
39228
        if (!(this_present_success && that_present_success))
39229
          return false;
39230
        if (!this.success.equals(that.success))
39231
          return false;
39232
      }
39233
 
39234
      return true;
39235
    }
39236
 
39237
    @Override
39238
    public int hashCode() {
39239
      return 0;
39240
    }
39241
 
39242
    public int compareTo(getItemStockPurchaseParams_result other) {
39243
      if (!getClass().equals(other.getClass())) {
39244
        return getClass().getName().compareTo(other.getClass().getName());
39245
      }
39246
 
39247
      int lastComparison = 0;
39248
      getItemStockPurchaseParams_result typedOther = (getItemStockPurchaseParams_result)other;
39249
 
39250
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
39251
      if (lastComparison != 0) {
39252
        return lastComparison;
39253
      }
39254
      if (isSetSuccess()) {
39255
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39256
        if (lastComparison != 0) {
39257
          return lastComparison;
39258
        }
39259
      }
39260
      return 0;
39261
    }
39262
 
39263
    public _Fields fieldForId(int fieldId) {
39264
      return _Fields.findByThriftId(fieldId);
39265
    }
39266
 
39267
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39268
      org.apache.thrift.protocol.TField field;
39269
      iprot.readStructBegin();
39270
      while (true)
39271
      {
39272
        field = iprot.readFieldBegin();
39273
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39274
          break;
39275
        }
39276
        switch (field.id) {
39277
          case 0: // SUCCESS
39278
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39279
              this.success = new ItemStockPurchaseParams();
39280
              this.success.read(iprot);
39281
            } else { 
39282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39283
            }
39284
            break;
39285
          default:
39286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39287
        }
39288
        iprot.readFieldEnd();
39289
      }
39290
      iprot.readStructEnd();
39291
      validate();
39292
    }
39293
 
39294
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39295
      oprot.writeStructBegin(STRUCT_DESC);
39296
 
39297
      if (this.isSetSuccess()) {
39298
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39299
        this.success.write(oprot);
39300
        oprot.writeFieldEnd();
39301
      }
39302
      oprot.writeFieldStop();
39303
      oprot.writeStructEnd();
39304
    }
39305
 
39306
    @Override
39307
    public String toString() {
39308
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_result(");
39309
      boolean first = true;
39310
 
39311
      sb.append("success:");
39312
      if (this.success == null) {
39313
        sb.append("null");
39314
      } else {
39315
        sb.append(this.success);
39316
      }
39317
      first = false;
39318
      sb.append(")");
39319
      return sb.toString();
39320
    }
39321
 
39322
    public void validate() throws org.apache.thrift.TException {
39323
      // check for required fields
39324
    }
39325
 
39326
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39327
      try {
39328
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39329
      } catch (org.apache.thrift.TException te) {
39330
        throw new java.io.IOException(te);
39331
      }
39332
    }
39333
 
39334
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39335
      try {
39336
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39337
      } catch (org.apache.thrift.TException te) {
39338
        throw new java.io.IOException(te);
39339
      }
39340
    }
39341
 
39342
  }
39343
 
39344
  public static class addOosStatusForItem_args implements org.apache.thrift.TBase<addOosStatusForItem_args, addOosStatusForItem_args._Fields>, java.io.Serializable, Cloneable   {
39345
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_args");
39346
 
39347
    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);
39348
    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);
39349
 
39350
    private Map<Long,Boolean> oosStatusMap; // required
39351
    private long date; // required
39352
 
39353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39354
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39355
      OOS_STATUS_MAP((short)1, "oosStatusMap"),
39356
      DATE((short)2, "date");
39357
 
39358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39359
 
39360
      static {
39361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39362
          byName.put(field.getFieldName(), field);
39363
        }
39364
      }
39365
 
39366
      /**
39367
       * Find the _Fields constant that matches fieldId, or null if its not found.
39368
       */
39369
      public static _Fields findByThriftId(int fieldId) {
39370
        switch(fieldId) {
39371
          case 1: // OOS_STATUS_MAP
39372
            return OOS_STATUS_MAP;
39373
          case 2: // DATE
39374
            return DATE;
39375
          default:
39376
            return null;
39377
        }
39378
      }
39379
 
39380
      /**
39381
       * Find the _Fields constant that matches fieldId, throwing an exception
39382
       * if it is not found.
39383
       */
39384
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39385
        _Fields fields = findByThriftId(fieldId);
39386
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39387
        return fields;
39388
      }
39389
 
39390
      /**
39391
       * Find the _Fields constant that matches name, or null if its not found.
39392
       */
39393
      public static _Fields findByName(String name) {
39394
        return byName.get(name);
39395
      }
39396
 
39397
      private final short _thriftId;
39398
      private final String _fieldName;
39399
 
39400
      _Fields(short thriftId, String fieldName) {
39401
        _thriftId = thriftId;
39402
        _fieldName = fieldName;
39403
      }
39404
 
39405
      public short getThriftFieldId() {
39406
        return _thriftId;
39407
      }
39408
 
39409
      public String getFieldName() {
39410
        return _fieldName;
39411
      }
39412
    }
39413
 
39414
    // isset id assignments
39415
    private static final int __DATE_ISSET_ID = 0;
39416
    private BitSet __isset_bit_vector = new BitSet(1);
39417
 
39418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39419
    static {
39420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39421
      tmpMap.put(_Fields.OOS_STATUS_MAP, new org.apache.thrift.meta_data.FieldMetaData("oosStatusMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39422
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
39423
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
39424
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
39425
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
39427
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39428
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_args.class, metaDataMap);
39429
    }
39430
 
39431
    public addOosStatusForItem_args() {
39432
    }
39433
 
39434
    public addOosStatusForItem_args(
39435
      Map<Long,Boolean> oosStatusMap,
39436
      long date)
39437
    {
39438
      this();
39439
      this.oosStatusMap = oosStatusMap;
39440
      this.date = date;
39441
      setDateIsSet(true);
39442
    }
39443
 
39444
    /**
39445
     * Performs a deep copy on <i>other</i>.
39446
     */
39447
    public addOosStatusForItem_args(addOosStatusForItem_args other) {
39448
      __isset_bit_vector.clear();
39449
      __isset_bit_vector.or(other.__isset_bit_vector);
39450
      if (other.isSetOosStatusMap()) {
39451
        Map<Long,Boolean> __this__oosStatusMap = new HashMap<Long,Boolean>();
39452
        for (Map.Entry<Long, Boolean> other_element : other.oosStatusMap.entrySet()) {
39453
 
39454
          Long other_element_key = other_element.getKey();
39455
          Boolean other_element_value = other_element.getValue();
39456
 
39457
          Long __this__oosStatusMap_copy_key = other_element_key;
39458
 
39459
          Boolean __this__oosStatusMap_copy_value = other_element_value;
39460
 
39461
          __this__oosStatusMap.put(__this__oosStatusMap_copy_key, __this__oosStatusMap_copy_value);
39462
        }
39463
        this.oosStatusMap = __this__oosStatusMap;
39464
      }
39465
      this.date = other.date;
39466
    }
39467
 
39468
    public addOosStatusForItem_args deepCopy() {
39469
      return new addOosStatusForItem_args(this);
39470
    }
39471
 
39472
    @Override
39473
    public void clear() {
39474
      this.oosStatusMap = null;
39475
      setDateIsSet(false);
39476
      this.date = 0;
39477
    }
39478
 
39479
    public int getOosStatusMapSize() {
39480
      return (this.oosStatusMap == null) ? 0 : this.oosStatusMap.size();
39481
    }
39482
 
39483
    public void putToOosStatusMap(long key, boolean val) {
39484
      if (this.oosStatusMap == null) {
39485
        this.oosStatusMap = new HashMap<Long,Boolean>();
39486
      }
39487
      this.oosStatusMap.put(key, val);
39488
    }
39489
 
39490
    public Map<Long,Boolean> getOosStatusMap() {
39491
      return this.oosStatusMap;
39492
    }
39493
 
39494
    public void setOosStatusMap(Map<Long,Boolean> oosStatusMap) {
39495
      this.oosStatusMap = oosStatusMap;
39496
    }
39497
 
39498
    public void unsetOosStatusMap() {
39499
      this.oosStatusMap = null;
39500
    }
39501
 
39502
    /** Returns true if field oosStatusMap is set (has been assigned a value) and false otherwise */
39503
    public boolean isSetOosStatusMap() {
39504
      return this.oosStatusMap != null;
39505
    }
39506
 
39507
    public void setOosStatusMapIsSet(boolean value) {
39508
      if (!value) {
39509
        this.oosStatusMap = null;
39510
      }
39511
    }
39512
 
39513
    public long getDate() {
39514
      return this.date;
39515
    }
39516
 
39517
    public void setDate(long date) {
39518
      this.date = date;
39519
      setDateIsSet(true);
39520
    }
39521
 
39522
    public void unsetDate() {
39523
      __isset_bit_vector.clear(__DATE_ISSET_ID);
39524
    }
39525
 
39526
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
39527
    public boolean isSetDate() {
39528
      return __isset_bit_vector.get(__DATE_ISSET_ID);
39529
    }
39530
 
39531
    public void setDateIsSet(boolean value) {
39532
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
39533
    }
39534
 
39535
    public void setFieldValue(_Fields field, Object value) {
39536
      switch (field) {
39537
      case OOS_STATUS_MAP:
39538
        if (value == null) {
39539
          unsetOosStatusMap();
39540
        } else {
39541
          setOosStatusMap((Map<Long,Boolean>)value);
39542
        }
39543
        break;
39544
 
39545
      case DATE:
39546
        if (value == null) {
39547
          unsetDate();
39548
        } else {
39549
          setDate((Long)value);
39550
        }
39551
        break;
39552
 
39553
      }
39554
    }
39555
 
39556
    public Object getFieldValue(_Fields field) {
39557
      switch (field) {
39558
      case OOS_STATUS_MAP:
39559
        return getOosStatusMap();
39560
 
39561
      case DATE:
39562
        return Long.valueOf(getDate());
39563
 
39564
      }
39565
      throw new IllegalStateException();
39566
    }
39567
 
39568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39569
    public boolean isSet(_Fields field) {
39570
      if (field == null) {
39571
        throw new IllegalArgumentException();
39572
      }
39573
 
39574
      switch (field) {
39575
      case OOS_STATUS_MAP:
39576
        return isSetOosStatusMap();
39577
      case DATE:
39578
        return isSetDate();
39579
      }
39580
      throw new IllegalStateException();
39581
    }
39582
 
39583
    @Override
39584
    public boolean equals(Object that) {
39585
      if (that == null)
39586
        return false;
39587
      if (that instanceof addOosStatusForItem_args)
39588
        return this.equals((addOosStatusForItem_args)that);
39589
      return false;
39590
    }
39591
 
39592
    public boolean equals(addOosStatusForItem_args that) {
39593
      if (that == null)
39594
        return false;
39595
 
39596
      boolean this_present_oosStatusMap = true && this.isSetOosStatusMap();
39597
      boolean that_present_oosStatusMap = true && that.isSetOosStatusMap();
39598
      if (this_present_oosStatusMap || that_present_oosStatusMap) {
39599
        if (!(this_present_oosStatusMap && that_present_oosStatusMap))
39600
          return false;
39601
        if (!this.oosStatusMap.equals(that.oosStatusMap))
39602
          return false;
39603
      }
39604
 
39605
      boolean this_present_date = true;
39606
      boolean that_present_date = true;
39607
      if (this_present_date || that_present_date) {
39608
        if (!(this_present_date && that_present_date))
39609
          return false;
39610
        if (this.date != that.date)
39611
          return false;
39612
      }
39613
 
39614
      return true;
39615
    }
39616
 
39617
    @Override
39618
    public int hashCode() {
39619
      return 0;
39620
    }
39621
 
39622
    public int compareTo(addOosStatusForItem_args other) {
39623
      if (!getClass().equals(other.getClass())) {
39624
        return getClass().getName().compareTo(other.getClass().getName());
39625
      }
39626
 
39627
      int lastComparison = 0;
39628
      addOosStatusForItem_args typedOther = (addOosStatusForItem_args)other;
39629
 
39630
      lastComparison = Boolean.valueOf(isSetOosStatusMap()).compareTo(typedOther.isSetOosStatusMap());
39631
      if (lastComparison != 0) {
39632
        return lastComparison;
39633
      }
39634
      if (isSetOosStatusMap()) {
39635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oosStatusMap, typedOther.oosStatusMap);
39636
        if (lastComparison != 0) {
39637
          return lastComparison;
39638
        }
39639
      }
39640
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
39641
      if (lastComparison != 0) {
39642
        return lastComparison;
39643
      }
39644
      if (isSetDate()) {
39645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
39646
        if (lastComparison != 0) {
39647
          return lastComparison;
39648
        }
39649
      }
39650
      return 0;
39651
    }
39652
 
39653
    public _Fields fieldForId(int fieldId) {
39654
      return _Fields.findByThriftId(fieldId);
39655
    }
39656
 
39657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39658
      org.apache.thrift.protocol.TField field;
39659
      iprot.readStructBegin();
39660
      while (true)
39661
      {
39662
        field = iprot.readFieldBegin();
39663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39664
          break;
39665
        }
39666
        switch (field.id) {
39667
          case 1: // OOS_STATUS_MAP
39668
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
39669
              {
8182 amar.kumar 39670
                org.apache.thrift.protocol.TMap _map109 = iprot.readMapBegin();
39671
                this.oosStatusMap = new HashMap<Long,Boolean>(2*_map109.size);
39672
                for (int _i110 = 0; _i110 < _map109.size; ++_i110)
6821 amar.kumar 39673
                {
8182 amar.kumar 39674
                  long _key111; // required
39675
                  boolean _val112; // required
39676
                  _key111 = iprot.readI64();
39677
                  _val112 = iprot.readBool();
39678
                  this.oosStatusMap.put(_key111, _val112);
6821 amar.kumar 39679
                }
39680
                iprot.readMapEnd();
39681
              }
39682
            } else { 
39683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39684
            }
39685
            break;
39686
          case 2: // DATE
39687
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39688
              this.date = iprot.readI64();
39689
              setDateIsSet(true);
39690
            } else { 
39691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39692
            }
39693
            break;
39694
          default:
39695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39696
        }
39697
        iprot.readFieldEnd();
39698
      }
39699
      iprot.readStructEnd();
39700
      validate();
39701
    }
39702
 
39703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39704
      validate();
39705
 
39706
      oprot.writeStructBegin(STRUCT_DESC);
39707
      if (this.oosStatusMap != null) {
39708
        oprot.writeFieldBegin(OOS_STATUS_MAP_FIELD_DESC);
39709
        {
39710
          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 39711
          for (Map.Entry<Long, Boolean> _iter113 : this.oosStatusMap.entrySet())
6821 amar.kumar 39712
          {
8182 amar.kumar 39713
            oprot.writeI64(_iter113.getKey());
39714
            oprot.writeBool(_iter113.getValue());
6821 amar.kumar 39715
          }
39716
          oprot.writeMapEnd();
39717
        }
39718
        oprot.writeFieldEnd();
39719
      }
39720
      oprot.writeFieldBegin(DATE_FIELD_DESC);
39721
      oprot.writeI64(this.date);
39722
      oprot.writeFieldEnd();
39723
      oprot.writeFieldStop();
39724
      oprot.writeStructEnd();
39725
    }
39726
 
39727
    @Override
39728
    public String toString() {
39729
      StringBuilder sb = new StringBuilder("addOosStatusForItem_args(");
39730
      boolean first = true;
39731
 
39732
      sb.append("oosStatusMap:");
39733
      if (this.oosStatusMap == null) {
39734
        sb.append("null");
39735
      } else {
39736
        sb.append(this.oosStatusMap);
39737
      }
39738
      first = false;
39739
      if (!first) sb.append(", ");
39740
      sb.append("date:");
39741
      sb.append(this.date);
39742
      first = false;
39743
      sb.append(")");
39744
      return sb.toString();
39745
    }
39746
 
39747
    public void validate() throws org.apache.thrift.TException {
39748
      // check for required fields
39749
    }
39750
 
39751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39752
      try {
39753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39754
      } catch (org.apache.thrift.TException te) {
39755
        throw new java.io.IOException(te);
39756
      }
39757
    }
39758
 
39759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39760
      try {
39761
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39762
        __isset_bit_vector = new BitSet(1);
39763
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39764
      } catch (org.apache.thrift.TException te) {
39765
        throw new java.io.IOException(te);
39766
      }
39767
    }
39768
 
39769
  }
39770
 
39771
  public static class addOosStatusForItem_result implements org.apache.thrift.TBase<addOosStatusForItem_result, addOosStatusForItem_result._Fields>, java.io.Serializable, Cloneable   {
39772
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_result");
39773
 
39774
 
39775
 
39776
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39777
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39778
;
39779
 
39780
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39781
 
39782
      static {
39783
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39784
          byName.put(field.getFieldName(), field);
39785
        }
39786
      }
39787
 
39788
      /**
39789
       * Find the _Fields constant that matches fieldId, or null if its not found.
39790
       */
39791
      public static _Fields findByThriftId(int fieldId) {
39792
        switch(fieldId) {
39793
          default:
39794
            return null;
39795
        }
39796
      }
39797
 
39798
      /**
39799
       * Find the _Fields constant that matches fieldId, throwing an exception
39800
       * if it is not found.
39801
       */
39802
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39803
        _Fields fields = findByThriftId(fieldId);
39804
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39805
        return fields;
39806
      }
39807
 
39808
      /**
39809
       * Find the _Fields constant that matches name, or null if its not found.
39810
       */
39811
      public static _Fields findByName(String name) {
39812
        return byName.get(name);
39813
      }
39814
 
39815
      private final short _thriftId;
39816
      private final String _fieldName;
39817
 
39818
      _Fields(short thriftId, String fieldName) {
39819
        _thriftId = thriftId;
39820
        _fieldName = fieldName;
39821
      }
39822
 
39823
      public short getThriftFieldId() {
39824
        return _thriftId;
39825
      }
39826
 
39827
      public String getFieldName() {
39828
        return _fieldName;
39829
      }
39830
    }
39831
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39832
    static {
39833
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39834
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39835
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_result.class, metaDataMap);
39836
    }
39837
 
39838
    public addOosStatusForItem_result() {
39839
    }
39840
 
39841
    /**
39842
     * Performs a deep copy on <i>other</i>.
39843
     */
39844
    public addOosStatusForItem_result(addOosStatusForItem_result other) {
39845
    }
39846
 
39847
    public addOosStatusForItem_result deepCopy() {
39848
      return new addOosStatusForItem_result(this);
39849
    }
39850
 
39851
    @Override
39852
    public void clear() {
39853
    }
39854
 
39855
    public void setFieldValue(_Fields field, Object value) {
39856
      switch (field) {
39857
      }
39858
    }
39859
 
39860
    public Object getFieldValue(_Fields field) {
39861
      switch (field) {
39862
      }
39863
      throw new IllegalStateException();
39864
    }
39865
 
39866
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39867
    public boolean isSet(_Fields field) {
39868
      if (field == null) {
39869
        throw new IllegalArgumentException();
39870
      }
39871
 
39872
      switch (field) {
39873
      }
39874
      throw new IllegalStateException();
39875
    }
39876
 
39877
    @Override
39878
    public boolean equals(Object that) {
39879
      if (that == null)
39880
        return false;
39881
      if (that instanceof addOosStatusForItem_result)
39882
        return this.equals((addOosStatusForItem_result)that);
39883
      return false;
39884
    }
39885
 
39886
    public boolean equals(addOosStatusForItem_result that) {
39887
      if (that == null)
39888
        return false;
39889
 
39890
      return true;
39891
    }
39892
 
39893
    @Override
39894
    public int hashCode() {
39895
      return 0;
39896
    }
39897
 
39898
    public int compareTo(addOosStatusForItem_result other) {
39899
      if (!getClass().equals(other.getClass())) {
39900
        return getClass().getName().compareTo(other.getClass().getName());
39901
      }
39902
 
39903
      int lastComparison = 0;
39904
      addOosStatusForItem_result typedOther = (addOosStatusForItem_result)other;
39905
 
39906
      return 0;
39907
    }
39908
 
39909
    public _Fields fieldForId(int fieldId) {
39910
      return _Fields.findByThriftId(fieldId);
39911
    }
39912
 
39913
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39914
      org.apache.thrift.protocol.TField field;
39915
      iprot.readStructBegin();
39916
      while (true)
39917
      {
39918
        field = iprot.readFieldBegin();
39919
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39920
          break;
39921
        }
39922
        switch (field.id) {
39923
          default:
39924
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39925
        }
39926
        iprot.readFieldEnd();
39927
      }
39928
      iprot.readStructEnd();
39929
      validate();
39930
    }
39931
 
39932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39933
      oprot.writeStructBegin(STRUCT_DESC);
39934
 
39935
      oprot.writeFieldStop();
39936
      oprot.writeStructEnd();
39937
    }
39938
 
39939
    @Override
39940
    public String toString() {
39941
      StringBuilder sb = new StringBuilder("addOosStatusForItem_result(");
39942
      boolean first = true;
39943
 
39944
      sb.append(")");
39945
      return sb.toString();
39946
    }
39947
 
39948
    public void validate() throws org.apache.thrift.TException {
39949
      // check for required fields
39950
    }
39951
 
39952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39953
      try {
39954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39955
      } catch (org.apache.thrift.TException te) {
39956
        throw new java.io.IOException(te);
39957
      }
39958
    }
39959
 
39960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39961
      try {
39962
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39963
      } catch (org.apache.thrift.TException te) {
39964
        throw new java.io.IOException(te);
39965
      }
39966
    }
39967
 
39968
  }
39969
 
6832 amar.kumar 39970
  public static class getOosStatusesForXDaysForItem_args implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_args, getOosStatusesForXDaysForItem_args._Fields>, java.io.Serializable, Cloneable   {
39971
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_args");
39972
 
39973
    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 39974
    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);
39975
    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 39976
 
39977
    private long itemId; // required
9665 rajveer 39978
    private int sourceId; // required
6832 amar.kumar 39979
    private int days; // required
39980
 
39981
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39982
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39983
      ITEM_ID((short)1, "itemId"),
9665 rajveer 39984
      SOURCE_ID((short)2, "sourceId"),
39985
      DAYS((short)3, "days");
6832 amar.kumar 39986
 
39987
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39988
 
39989
      static {
39990
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39991
          byName.put(field.getFieldName(), field);
39992
        }
39993
      }
39994
 
39995
      /**
39996
       * Find the _Fields constant that matches fieldId, or null if its not found.
39997
       */
39998
      public static _Fields findByThriftId(int fieldId) {
39999
        switch(fieldId) {
40000
          case 1: // ITEM_ID
40001
            return ITEM_ID;
9665 rajveer 40002
          case 2: // SOURCE_ID
40003
            return SOURCE_ID;
40004
          case 3: // DAYS
6832 amar.kumar 40005
            return DAYS;
40006
          default:
40007
            return null;
40008
        }
40009
      }
40010
 
40011
      /**
40012
       * Find the _Fields constant that matches fieldId, throwing an exception
40013
       * if it is not found.
40014
       */
40015
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40016
        _Fields fields = findByThriftId(fieldId);
40017
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40018
        return fields;
40019
      }
40020
 
40021
      /**
40022
       * Find the _Fields constant that matches name, or null if its not found.
40023
       */
40024
      public static _Fields findByName(String name) {
40025
        return byName.get(name);
40026
      }
40027
 
40028
      private final short _thriftId;
40029
      private final String _fieldName;
40030
 
40031
      _Fields(short thriftId, String fieldName) {
40032
        _thriftId = thriftId;
40033
        _fieldName = fieldName;
40034
      }
40035
 
40036
      public short getThriftFieldId() {
40037
        return _thriftId;
40038
      }
40039
 
40040
      public String getFieldName() {
40041
        return _fieldName;
40042
      }
40043
    }
40044
 
40045
    // isset id assignments
40046
    private static final int __ITEMID_ISSET_ID = 0;
9665 rajveer 40047
    private static final int __SOURCEID_ISSET_ID = 1;
40048
    private static final int __DAYS_ISSET_ID = 2;
40049
    private BitSet __isset_bit_vector = new BitSet(3);
6832 amar.kumar 40050
 
40051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40052
    static {
40053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40054
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40055
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9665 rajveer 40056
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40057
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6832 amar.kumar 40058
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
40060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_args.class, metaDataMap);
40062
    }
40063
 
40064
    public getOosStatusesForXDaysForItem_args() {
40065
    }
40066
 
40067
    public getOosStatusesForXDaysForItem_args(
40068
      long itemId,
9665 rajveer 40069
      int sourceId,
6832 amar.kumar 40070
      int days)
40071
    {
40072
      this();
40073
      this.itemId = itemId;
40074
      setItemIdIsSet(true);
9665 rajveer 40075
      this.sourceId = sourceId;
40076
      setSourceIdIsSet(true);
6832 amar.kumar 40077
      this.days = days;
40078
      setDaysIsSet(true);
40079
    }
40080
 
40081
    /**
40082
     * Performs a deep copy on <i>other</i>.
40083
     */
40084
    public getOosStatusesForXDaysForItem_args(getOosStatusesForXDaysForItem_args other) {
40085
      __isset_bit_vector.clear();
40086
      __isset_bit_vector.or(other.__isset_bit_vector);
40087
      this.itemId = other.itemId;
9665 rajveer 40088
      this.sourceId = other.sourceId;
6832 amar.kumar 40089
      this.days = other.days;
40090
    }
40091
 
40092
    public getOosStatusesForXDaysForItem_args deepCopy() {
40093
      return new getOosStatusesForXDaysForItem_args(this);
40094
    }
40095
 
40096
    @Override
40097
    public void clear() {
40098
      setItemIdIsSet(false);
40099
      this.itemId = 0;
9665 rajveer 40100
      setSourceIdIsSet(false);
40101
      this.sourceId = 0;
6832 amar.kumar 40102
      setDaysIsSet(false);
40103
      this.days = 0;
40104
    }
40105
 
40106
    public long getItemId() {
40107
      return this.itemId;
40108
    }
40109
 
40110
    public void setItemId(long itemId) {
40111
      this.itemId = itemId;
40112
      setItemIdIsSet(true);
40113
    }
40114
 
40115
    public void unsetItemId() {
40116
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
40117
    }
40118
 
40119
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
40120
    public boolean isSetItemId() {
40121
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
40122
    }
40123
 
40124
    public void setItemIdIsSet(boolean value) {
40125
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
40126
    }
40127
 
9665 rajveer 40128
    public int getSourceId() {
40129
      return this.sourceId;
40130
    }
40131
 
40132
    public void setSourceId(int sourceId) {
40133
      this.sourceId = sourceId;
40134
      setSourceIdIsSet(true);
40135
    }
40136
 
40137
    public void unsetSourceId() {
40138
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
40139
    }
40140
 
40141
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
40142
    public boolean isSetSourceId() {
40143
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
40144
    }
40145
 
40146
    public void setSourceIdIsSet(boolean value) {
40147
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
40148
    }
40149
 
6832 amar.kumar 40150
    public int getDays() {
40151
      return this.days;
40152
    }
40153
 
40154
    public void setDays(int days) {
40155
      this.days = days;
40156
      setDaysIsSet(true);
40157
    }
40158
 
40159
    public void unsetDays() {
40160
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
40161
    }
40162
 
40163
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
40164
    public boolean isSetDays() {
40165
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
40166
    }
40167
 
40168
    public void setDaysIsSet(boolean value) {
40169
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
40170
    }
40171
 
40172
    public void setFieldValue(_Fields field, Object value) {
40173
      switch (field) {
40174
      case ITEM_ID:
40175
        if (value == null) {
40176
          unsetItemId();
40177
        } else {
40178
          setItemId((Long)value);
40179
        }
40180
        break;
40181
 
9665 rajveer 40182
      case SOURCE_ID:
40183
        if (value == null) {
40184
          unsetSourceId();
40185
        } else {
40186
          setSourceId((Integer)value);
40187
        }
40188
        break;
40189
 
6832 amar.kumar 40190
      case DAYS:
40191
        if (value == null) {
40192
          unsetDays();
40193
        } else {
40194
          setDays((Integer)value);
40195
        }
40196
        break;
40197
 
40198
      }
40199
    }
40200
 
40201
    public Object getFieldValue(_Fields field) {
40202
      switch (field) {
40203
      case ITEM_ID:
40204
        return Long.valueOf(getItemId());
40205
 
9665 rajveer 40206
      case SOURCE_ID:
40207
        return Integer.valueOf(getSourceId());
40208
 
6832 amar.kumar 40209
      case DAYS:
40210
        return Integer.valueOf(getDays());
40211
 
40212
      }
40213
      throw new IllegalStateException();
40214
    }
40215
 
40216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40217
    public boolean isSet(_Fields field) {
40218
      if (field == null) {
40219
        throw new IllegalArgumentException();
40220
      }
40221
 
40222
      switch (field) {
40223
      case ITEM_ID:
40224
        return isSetItemId();
9665 rajveer 40225
      case SOURCE_ID:
40226
        return isSetSourceId();
6832 amar.kumar 40227
      case DAYS:
40228
        return isSetDays();
40229
      }
40230
      throw new IllegalStateException();
40231
    }
40232
 
40233
    @Override
40234
    public boolean equals(Object that) {
40235
      if (that == null)
40236
        return false;
40237
      if (that instanceof getOosStatusesForXDaysForItem_args)
40238
        return this.equals((getOosStatusesForXDaysForItem_args)that);
40239
      return false;
40240
    }
40241
 
40242
    public boolean equals(getOosStatusesForXDaysForItem_args that) {
40243
      if (that == null)
40244
        return false;
40245
 
40246
      boolean this_present_itemId = true;
40247
      boolean that_present_itemId = true;
40248
      if (this_present_itemId || that_present_itemId) {
40249
        if (!(this_present_itemId && that_present_itemId))
40250
          return false;
40251
        if (this.itemId != that.itemId)
40252
          return false;
40253
      }
40254
 
9665 rajveer 40255
      boolean this_present_sourceId = true;
40256
      boolean that_present_sourceId = true;
40257
      if (this_present_sourceId || that_present_sourceId) {
40258
        if (!(this_present_sourceId && that_present_sourceId))
40259
          return false;
40260
        if (this.sourceId != that.sourceId)
40261
          return false;
40262
      }
40263
 
6832 amar.kumar 40264
      boolean this_present_days = true;
40265
      boolean that_present_days = true;
40266
      if (this_present_days || that_present_days) {
40267
        if (!(this_present_days && that_present_days))
40268
          return false;
40269
        if (this.days != that.days)
40270
          return false;
40271
      }
40272
 
40273
      return true;
40274
    }
40275
 
40276
    @Override
40277
    public int hashCode() {
40278
      return 0;
40279
    }
40280
 
40281
    public int compareTo(getOosStatusesForXDaysForItem_args other) {
40282
      if (!getClass().equals(other.getClass())) {
40283
        return getClass().getName().compareTo(other.getClass().getName());
40284
      }
40285
 
40286
      int lastComparison = 0;
40287
      getOosStatusesForXDaysForItem_args typedOther = (getOosStatusesForXDaysForItem_args)other;
40288
 
40289
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
40290
      if (lastComparison != 0) {
40291
        return lastComparison;
40292
      }
40293
      if (isSetItemId()) {
40294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
40295
        if (lastComparison != 0) {
40296
          return lastComparison;
40297
        }
40298
      }
9665 rajveer 40299
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
40300
      if (lastComparison != 0) {
40301
        return lastComparison;
40302
      }
40303
      if (isSetSourceId()) {
40304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
40305
        if (lastComparison != 0) {
40306
          return lastComparison;
40307
        }
40308
      }
6832 amar.kumar 40309
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
40310
      if (lastComparison != 0) {
40311
        return lastComparison;
40312
      }
40313
      if (isSetDays()) {
40314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
40315
        if (lastComparison != 0) {
40316
          return lastComparison;
40317
        }
40318
      }
40319
      return 0;
40320
    }
40321
 
40322
    public _Fields fieldForId(int fieldId) {
40323
      return _Fields.findByThriftId(fieldId);
40324
    }
40325
 
40326
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40327
      org.apache.thrift.protocol.TField field;
40328
      iprot.readStructBegin();
40329
      while (true)
40330
      {
40331
        field = iprot.readFieldBegin();
40332
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40333
          break;
40334
        }
40335
        switch (field.id) {
40336
          case 1: // ITEM_ID
40337
            if (field.type == org.apache.thrift.protocol.TType.I64) {
40338
              this.itemId = iprot.readI64();
40339
              setItemIdIsSet(true);
40340
            } else { 
40341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40342
            }
40343
            break;
9665 rajveer 40344
          case 2: // SOURCE_ID
6832 amar.kumar 40345
            if (field.type == org.apache.thrift.protocol.TType.I32) {
9665 rajveer 40346
              this.sourceId = iprot.readI32();
40347
              setSourceIdIsSet(true);
40348
            } else { 
40349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40350
            }
40351
            break;
40352
          case 3: // DAYS
40353
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6832 amar.kumar 40354
              this.days = iprot.readI32();
40355
              setDaysIsSet(true);
40356
            } else { 
40357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40358
            }
40359
            break;
40360
          default:
40361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40362
        }
40363
        iprot.readFieldEnd();
40364
      }
40365
      iprot.readStructEnd();
40366
      validate();
40367
    }
40368
 
40369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40370
      validate();
40371
 
40372
      oprot.writeStructBegin(STRUCT_DESC);
40373
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
40374
      oprot.writeI64(this.itemId);
40375
      oprot.writeFieldEnd();
9665 rajveer 40376
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
40377
      oprot.writeI32(this.sourceId);
40378
      oprot.writeFieldEnd();
6832 amar.kumar 40379
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
40380
      oprot.writeI32(this.days);
40381
      oprot.writeFieldEnd();
40382
      oprot.writeFieldStop();
40383
      oprot.writeStructEnd();
40384
    }
40385
 
40386
    @Override
40387
    public String toString() {
40388
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_args(");
40389
      boolean first = true;
40390
 
40391
      sb.append("itemId:");
40392
      sb.append(this.itemId);
40393
      first = false;
40394
      if (!first) sb.append(", ");
9665 rajveer 40395
      sb.append("sourceId:");
40396
      sb.append(this.sourceId);
40397
      first = false;
40398
      if (!first) sb.append(", ");
6832 amar.kumar 40399
      sb.append("days:");
40400
      sb.append(this.days);
40401
      first = false;
40402
      sb.append(")");
40403
      return sb.toString();
40404
    }
40405
 
40406
    public void validate() throws org.apache.thrift.TException {
40407
      // check for required fields
40408
    }
40409
 
40410
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40411
      try {
40412
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40413
      } catch (org.apache.thrift.TException te) {
40414
        throw new java.io.IOException(te);
40415
      }
40416
    }
40417
 
40418
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40419
      try {
40420
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
40421
        __isset_bit_vector = new BitSet(1);
40422
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40423
      } catch (org.apache.thrift.TException te) {
40424
        throw new java.io.IOException(te);
40425
      }
40426
    }
40427
 
40428
  }
40429
 
40430
  public static class getOosStatusesForXDaysForItem_result implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_result, getOosStatusesForXDaysForItem_result._Fields>, java.io.Serializable, Cloneable   {
40431
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_result");
40432
 
40433
    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);
40434
 
40435
    private List<OOSStatus> success; // required
40436
 
40437
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40438
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40439
      SUCCESS((short)0, "success");
40440
 
40441
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40442
 
40443
      static {
40444
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40445
          byName.put(field.getFieldName(), field);
40446
        }
40447
      }
40448
 
40449
      /**
40450
       * Find the _Fields constant that matches fieldId, or null if its not found.
40451
       */
40452
      public static _Fields findByThriftId(int fieldId) {
40453
        switch(fieldId) {
40454
          case 0: // SUCCESS
40455
            return SUCCESS;
40456
          default:
40457
            return null;
40458
        }
40459
      }
40460
 
40461
      /**
40462
       * Find the _Fields constant that matches fieldId, throwing an exception
40463
       * if it is not found.
40464
       */
40465
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40466
        _Fields fields = findByThriftId(fieldId);
40467
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40468
        return fields;
40469
      }
40470
 
40471
      /**
40472
       * Find the _Fields constant that matches name, or null if its not found.
40473
       */
40474
      public static _Fields findByName(String name) {
40475
        return byName.get(name);
40476
      }
40477
 
40478
      private final short _thriftId;
40479
      private final String _fieldName;
40480
 
40481
      _Fields(short thriftId, String fieldName) {
40482
        _thriftId = thriftId;
40483
        _fieldName = fieldName;
40484
      }
40485
 
40486
      public short getThriftFieldId() {
40487
        return _thriftId;
40488
      }
40489
 
40490
      public String getFieldName() {
40491
        return _fieldName;
40492
      }
40493
    }
40494
 
40495
    // isset id assignments
40496
 
40497
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40498
    static {
40499
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40500
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40501
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
40502
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OOSStatus.class))));
40503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_result.class, metaDataMap);
40505
    }
40506
 
40507
    public getOosStatusesForXDaysForItem_result() {
40508
    }
40509
 
40510
    public getOosStatusesForXDaysForItem_result(
40511
      List<OOSStatus> success)
40512
    {
40513
      this();
40514
      this.success = success;
40515
    }
40516
 
40517
    /**
40518
     * Performs a deep copy on <i>other</i>.
40519
     */
40520
    public getOosStatusesForXDaysForItem_result(getOosStatusesForXDaysForItem_result other) {
40521
      if (other.isSetSuccess()) {
40522
        List<OOSStatus> __this__success = new ArrayList<OOSStatus>();
40523
        for (OOSStatus other_element : other.success) {
40524
          __this__success.add(new OOSStatus(other_element));
40525
        }
40526
        this.success = __this__success;
40527
      }
40528
    }
40529
 
40530
    public getOosStatusesForXDaysForItem_result deepCopy() {
40531
      return new getOosStatusesForXDaysForItem_result(this);
40532
    }
40533
 
40534
    @Override
40535
    public void clear() {
40536
      this.success = null;
40537
    }
40538
 
40539
    public int getSuccessSize() {
40540
      return (this.success == null) ? 0 : this.success.size();
40541
    }
40542
 
40543
    public java.util.Iterator<OOSStatus> getSuccessIterator() {
40544
      return (this.success == null) ? null : this.success.iterator();
40545
    }
40546
 
40547
    public void addToSuccess(OOSStatus elem) {
40548
      if (this.success == null) {
40549
        this.success = new ArrayList<OOSStatus>();
40550
      }
40551
      this.success.add(elem);
40552
    }
40553
 
40554
    public List<OOSStatus> getSuccess() {
40555
      return this.success;
40556
    }
40557
 
40558
    public void setSuccess(List<OOSStatus> success) {
40559
      this.success = success;
40560
    }
40561
 
40562
    public void unsetSuccess() {
40563
      this.success = null;
40564
    }
40565
 
40566
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
40567
    public boolean isSetSuccess() {
40568
      return this.success != null;
40569
    }
40570
 
40571
    public void setSuccessIsSet(boolean value) {
40572
      if (!value) {
40573
        this.success = null;
40574
      }
40575
    }
40576
 
40577
    public void setFieldValue(_Fields field, Object value) {
40578
      switch (field) {
40579
      case SUCCESS:
40580
        if (value == null) {
40581
          unsetSuccess();
40582
        } else {
40583
          setSuccess((List<OOSStatus>)value);
40584
        }
40585
        break;
40586
 
40587
      }
40588
    }
40589
 
40590
    public Object getFieldValue(_Fields field) {
40591
      switch (field) {
40592
      case SUCCESS:
40593
        return getSuccess();
40594
 
40595
      }
40596
      throw new IllegalStateException();
40597
    }
40598
 
40599
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40600
    public boolean isSet(_Fields field) {
40601
      if (field == null) {
40602
        throw new IllegalArgumentException();
40603
      }
40604
 
40605
      switch (field) {
40606
      case SUCCESS:
40607
        return isSetSuccess();
40608
      }
40609
      throw new IllegalStateException();
40610
    }
40611
 
40612
    @Override
40613
    public boolean equals(Object that) {
40614
      if (that == null)
40615
        return false;
40616
      if (that instanceof getOosStatusesForXDaysForItem_result)
40617
        return this.equals((getOosStatusesForXDaysForItem_result)that);
40618
      return false;
40619
    }
40620
 
40621
    public boolean equals(getOosStatusesForXDaysForItem_result that) {
40622
      if (that == null)
40623
        return false;
40624
 
40625
      boolean this_present_success = true && this.isSetSuccess();
40626
      boolean that_present_success = true && that.isSetSuccess();
40627
      if (this_present_success || that_present_success) {
40628
        if (!(this_present_success && that_present_success))
40629
          return false;
40630
        if (!this.success.equals(that.success))
40631
          return false;
40632
      }
40633
 
40634
      return true;
40635
    }
40636
 
40637
    @Override
40638
    public int hashCode() {
40639
      return 0;
40640
    }
40641
 
40642
    public int compareTo(getOosStatusesForXDaysForItem_result other) {
40643
      if (!getClass().equals(other.getClass())) {
40644
        return getClass().getName().compareTo(other.getClass().getName());
40645
      }
40646
 
40647
      int lastComparison = 0;
40648
      getOosStatusesForXDaysForItem_result typedOther = (getOosStatusesForXDaysForItem_result)other;
40649
 
40650
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
40651
      if (lastComparison != 0) {
40652
        return lastComparison;
40653
      }
40654
      if (isSetSuccess()) {
40655
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
40656
        if (lastComparison != 0) {
40657
          return lastComparison;
40658
        }
40659
      }
40660
      return 0;
40661
    }
40662
 
40663
    public _Fields fieldForId(int fieldId) {
40664
      return _Fields.findByThriftId(fieldId);
40665
    }
40666
 
40667
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40668
      org.apache.thrift.protocol.TField field;
40669
      iprot.readStructBegin();
40670
      while (true)
40671
      {
40672
        field = iprot.readFieldBegin();
40673
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40674
          break;
40675
        }
40676
        switch (field.id) {
40677
          case 0: // SUCCESS
40678
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
40679
              {
8182 amar.kumar 40680
                org.apache.thrift.protocol.TList _list114 = iprot.readListBegin();
40681
                this.success = new ArrayList<OOSStatus>(_list114.size);
40682
                for (int _i115 = 0; _i115 < _list114.size; ++_i115)
6832 amar.kumar 40683
                {
8182 amar.kumar 40684
                  OOSStatus _elem116; // required
40685
                  _elem116 = new OOSStatus();
40686
                  _elem116.read(iprot);
40687
                  this.success.add(_elem116);
6832 amar.kumar 40688
                }
40689
                iprot.readListEnd();
40690
              }
40691
            } else { 
40692
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40693
            }
40694
            break;
40695
          default:
40696
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40697
        }
40698
        iprot.readFieldEnd();
40699
      }
40700
      iprot.readStructEnd();
40701
      validate();
40702
    }
40703
 
40704
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40705
      oprot.writeStructBegin(STRUCT_DESC);
40706
 
40707
      if (this.isSetSuccess()) {
40708
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
40709
        {
40710
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8182 amar.kumar 40711
          for (OOSStatus _iter117 : this.success)
6832 amar.kumar 40712
          {
8182 amar.kumar 40713
            _iter117.write(oprot);
6832 amar.kumar 40714
          }
40715
          oprot.writeListEnd();
40716
        }
40717
        oprot.writeFieldEnd();
40718
      }
40719
      oprot.writeFieldStop();
40720
      oprot.writeStructEnd();
40721
    }
40722
 
40723
    @Override
40724
    public String toString() {
40725
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_result(");
40726
      boolean first = true;
40727
 
40728
      sb.append("success:");
40729
      if (this.success == null) {
40730
        sb.append("null");
40731
      } else {
40732
        sb.append(this.success);
40733
      }
40734
      first = false;
40735
      sb.append(")");
40736
      return sb.toString();
40737
    }
40738
 
40739
    public void validate() throws org.apache.thrift.TException {
40740
      // check for required fields
40741
    }
40742
 
40743
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40744
      try {
40745
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40746
      } catch (org.apache.thrift.TException te) {
40747
        throw new java.io.IOException(te);
40748
      }
40749
    }
40750
 
40751
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40752
      try {
40753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40754
      } catch (org.apache.thrift.TException te) {
40755
        throw new java.io.IOException(te);
40756
      }
40757
    }
40758
 
40759
  }
40760
 
10126 amar.kumar 40761
  public static class getOosStatusesForXDays_args implements org.apache.thrift.TBase<getOosStatusesForXDays_args, getOosStatusesForXDays_args._Fields>, java.io.Serializable, Cloneable   {
40762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDays_args");
40763
 
40764
    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);
40765
    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);
40766
 
40767
    private int sourceId; // required
40768
    private int days; // required
40769
 
40770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40772
      SOURCE_ID((short)1, "sourceId"),
40773
      DAYS((short)2, "days");
40774
 
40775
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40776
 
40777
      static {
40778
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40779
          byName.put(field.getFieldName(), field);
40780
        }
40781
      }
40782
 
40783
      /**
40784
       * Find the _Fields constant that matches fieldId, or null if its not found.
40785
       */
40786
      public static _Fields findByThriftId(int fieldId) {
40787
        switch(fieldId) {
40788
          case 1: // SOURCE_ID
40789
            return SOURCE_ID;
40790
          case 2: // DAYS
40791
            return DAYS;
40792
          default:
40793
            return null;
40794
        }
40795
      }
40796
 
40797
      /**
40798
       * Find the _Fields constant that matches fieldId, throwing an exception
40799
       * if it is not found.
40800
       */
40801
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40802
        _Fields fields = findByThriftId(fieldId);
40803
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40804
        return fields;
40805
      }
40806
 
40807
      /**
40808
       * Find the _Fields constant that matches name, or null if its not found.
40809
       */
40810
      public static _Fields findByName(String name) {
40811
        return byName.get(name);
40812
      }
40813
 
40814
      private final short _thriftId;
40815
      private final String _fieldName;
40816
 
40817
      _Fields(short thriftId, String fieldName) {
40818
        _thriftId = thriftId;
40819
        _fieldName = fieldName;
40820
      }
40821
 
40822
      public short getThriftFieldId() {
40823
        return _thriftId;
40824
      }
40825
 
40826
      public String getFieldName() {
40827
        return _fieldName;
40828
      }
40829
    }
40830
 
40831
    // isset id assignments
40832
    private static final int __SOURCEID_ISSET_ID = 0;
40833
    private static final int __DAYS_ISSET_ID = 1;
40834
    private BitSet __isset_bit_vector = new BitSet(2);
40835
 
40836
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40837
    static {
40838
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40839
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
40841
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
40842
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
40843
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40844
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDays_args.class, metaDataMap);
40845
    }
40846
 
40847
    public getOosStatusesForXDays_args() {
40848
    }
40849
 
40850
    public getOosStatusesForXDays_args(
40851
      int sourceId,
40852
      int days)
40853
    {
40854
      this();
40855
      this.sourceId = sourceId;
40856
      setSourceIdIsSet(true);
40857
      this.days = days;
40858
      setDaysIsSet(true);
40859
    }
40860
 
40861
    /**
40862
     * Performs a deep copy on <i>other</i>.
40863
     */
40864
    public getOosStatusesForXDays_args(getOosStatusesForXDays_args other) {
40865
      __isset_bit_vector.clear();
40866
      __isset_bit_vector.or(other.__isset_bit_vector);
40867
      this.sourceId = other.sourceId;
40868
      this.days = other.days;
40869
    }
40870
 
40871
    public getOosStatusesForXDays_args deepCopy() {
40872
      return new getOosStatusesForXDays_args(this);
40873
    }
40874
 
40875
    @Override
40876
    public void clear() {
40877
      setSourceIdIsSet(false);
40878
      this.sourceId = 0;
40879
      setDaysIsSet(false);
40880
      this.days = 0;
40881
    }
40882
 
40883
    public int getSourceId() {
40884
      return this.sourceId;
40885
    }
40886
 
40887
    public void setSourceId(int sourceId) {
40888
      this.sourceId = sourceId;
40889
      setSourceIdIsSet(true);
40890
    }
40891
 
40892
    public void unsetSourceId() {
40893
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
40894
    }
40895
 
40896
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
40897
    public boolean isSetSourceId() {
40898
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
40899
    }
40900
 
40901
    public void setSourceIdIsSet(boolean value) {
40902
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
40903
    }
40904
 
40905
    public int getDays() {
40906
      return this.days;
40907
    }
40908
 
40909
    public void setDays(int days) {
40910
      this.days = days;
40911
      setDaysIsSet(true);
40912
    }
40913
 
40914
    public void unsetDays() {
40915
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
40916
    }
40917
 
40918
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
40919
    public boolean isSetDays() {
40920
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
40921
    }
40922
 
40923
    public void setDaysIsSet(boolean value) {
40924
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
40925
    }
40926
 
40927
    public void setFieldValue(_Fields field, Object value) {
40928
      switch (field) {
40929
      case SOURCE_ID:
40930
        if (value == null) {
40931
          unsetSourceId();
40932
        } else {
40933
          setSourceId((Integer)value);
40934
        }
40935
        break;
40936
 
40937
      case DAYS:
40938
        if (value == null) {
40939
          unsetDays();
40940
        } else {
40941
          setDays((Integer)value);
40942
        }
40943
        break;
40944
 
40945
      }
40946
    }
40947
 
40948
    public Object getFieldValue(_Fields field) {
40949
      switch (field) {
40950
      case SOURCE_ID:
40951
        return Integer.valueOf(getSourceId());
40952
 
40953
      case DAYS:
40954
        return Integer.valueOf(getDays());
40955
 
40956
      }
40957
      throw new IllegalStateException();
40958
    }
40959
 
40960
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40961
    public boolean isSet(_Fields field) {
40962
      if (field == null) {
40963
        throw new IllegalArgumentException();
40964
      }
40965
 
40966
      switch (field) {
40967
      case SOURCE_ID:
40968
        return isSetSourceId();
40969
      case DAYS:
40970
        return isSetDays();
40971
      }
40972
      throw new IllegalStateException();
40973
    }
40974
 
40975
    @Override
40976
    public boolean equals(Object that) {
40977
      if (that == null)
40978
        return false;
40979
      if (that instanceof getOosStatusesForXDays_args)
40980
        return this.equals((getOosStatusesForXDays_args)that);
40981
      return false;
40982
    }
40983
 
40984
    public boolean equals(getOosStatusesForXDays_args that) {
40985
      if (that == null)
40986
        return false;
40987
 
40988
      boolean this_present_sourceId = true;
40989
      boolean that_present_sourceId = true;
40990
      if (this_present_sourceId || that_present_sourceId) {
40991
        if (!(this_present_sourceId && that_present_sourceId))
40992
          return false;
40993
        if (this.sourceId != that.sourceId)
40994
          return false;
40995
      }
40996
 
40997
      boolean this_present_days = true;
40998
      boolean that_present_days = true;
40999
      if (this_present_days || that_present_days) {
41000
        if (!(this_present_days && that_present_days))
41001
          return false;
41002
        if (this.days != that.days)
41003
          return false;
41004
      }
41005
 
41006
      return true;
41007
    }
41008
 
41009
    @Override
41010
    public int hashCode() {
41011
      return 0;
41012
    }
41013
 
41014
    public int compareTo(getOosStatusesForXDays_args other) {
41015
      if (!getClass().equals(other.getClass())) {
41016
        return getClass().getName().compareTo(other.getClass().getName());
41017
      }
41018
 
41019
      int lastComparison = 0;
41020
      getOosStatusesForXDays_args typedOther = (getOosStatusesForXDays_args)other;
41021
 
41022
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
41023
      if (lastComparison != 0) {
41024
        return lastComparison;
41025
      }
41026
      if (isSetSourceId()) {
41027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
41028
        if (lastComparison != 0) {
41029
          return lastComparison;
41030
        }
41031
      }
41032
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
41033
      if (lastComparison != 0) {
41034
        return lastComparison;
41035
      }
41036
      if (isSetDays()) {
41037
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
41038
        if (lastComparison != 0) {
41039
          return lastComparison;
41040
        }
41041
      }
41042
      return 0;
41043
    }
41044
 
41045
    public _Fields fieldForId(int fieldId) {
41046
      return _Fields.findByThriftId(fieldId);
41047
    }
41048
 
41049
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41050
      org.apache.thrift.protocol.TField field;
41051
      iprot.readStructBegin();
41052
      while (true)
41053
      {
41054
        field = iprot.readFieldBegin();
41055
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41056
          break;
41057
        }
41058
        switch (field.id) {
41059
          case 1: // SOURCE_ID
41060
            if (field.type == org.apache.thrift.protocol.TType.I32) {
41061
              this.sourceId = iprot.readI32();
41062
              setSourceIdIsSet(true);
41063
            } else { 
41064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41065
            }
41066
            break;
41067
          case 2: // DAYS
41068
            if (field.type == org.apache.thrift.protocol.TType.I32) {
41069
              this.days = iprot.readI32();
41070
              setDaysIsSet(true);
41071
            } else { 
41072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41073
            }
41074
            break;
41075
          default:
41076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41077
        }
41078
        iprot.readFieldEnd();
41079
      }
41080
      iprot.readStructEnd();
41081
      validate();
41082
    }
41083
 
41084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41085
      validate();
41086
 
41087
      oprot.writeStructBegin(STRUCT_DESC);
41088
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
41089
      oprot.writeI32(this.sourceId);
41090
      oprot.writeFieldEnd();
41091
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
41092
      oprot.writeI32(this.days);
41093
      oprot.writeFieldEnd();
41094
      oprot.writeFieldStop();
41095
      oprot.writeStructEnd();
41096
    }
41097
 
41098
    @Override
41099
    public String toString() {
41100
      StringBuilder sb = new StringBuilder("getOosStatusesForXDays_args(");
41101
      boolean first = true;
41102
 
41103
      sb.append("sourceId:");
41104
      sb.append(this.sourceId);
41105
      first = false;
41106
      if (!first) sb.append(", ");
41107
      sb.append("days:");
41108
      sb.append(this.days);
41109
      first = false;
41110
      sb.append(")");
41111
      return sb.toString();
41112
    }
41113
 
41114
    public void validate() throws org.apache.thrift.TException {
41115
      // check for required fields
41116
    }
41117
 
41118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41119
      try {
41120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41121
      } catch (org.apache.thrift.TException te) {
41122
        throw new java.io.IOException(te);
41123
      }
41124
    }
41125
 
41126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41127
      try {
41128
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
41129
        __isset_bit_vector = new BitSet(1);
41130
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41131
      } catch (org.apache.thrift.TException te) {
41132
        throw new java.io.IOException(te);
41133
      }
41134
    }
41135
 
41136
  }
41137
 
41138
  public static class getOosStatusesForXDays_result implements org.apache.thrift.TBase<getOosStatusesForXDays_result, getOosStatusesForXDays_result._Fields>, java.io.Serializable, Cloneable   {
41139
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDays_result");
41140
 
41141
    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);
41142
 
41143
    private List<OOSStatus> success; // required
41144
 
41145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41147
      SUCCESS((short)0, "success");
41148
 
41149
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41150
 
41151
      static {
41152
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41153
          byName.put(field.getFieldName(), field);
41154
        }
41155
      }
41156
 
41157
      /**
41158
       * Find the _Fields constant that matches fieldId, or null if its not found.
41159
       */
41160
      public static _Fields findByThriftId(int fieldId) {
41161
        switch(fieldId) {
41162
          case 0: // SUCCESS
41163
            return SUCCESS;
41164
          default:
41165
            return null;
41166
        }
41167
      }
41168
 
41169
      /**
41170
       * Find the _Fields constant that matches fieldId, throwing an exception
41171
       * if it is not found.
41172
       */
41173
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41174
        _Fields fields = findByThriftId(fieldId);
41175
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41176
        return fields;
41177
      }
41178
 
41179
      /**
41180
       * Find the _Fields constant that matches name, or null if its not found.
41181
       */
41182
      public static _Fields findByName(String name) {
41183
        return byName.get(name);
41184
      }
41185
 
41186
      private final short _thriftId;
41187
      private final String _fieldName;
41188
 
41189
      _Fields(short thriftId, String fieldName) {
41190
        _thriftId = thriftId;
41191
        _fieldName = fieldName;
41192
      }
41193
 
41194
      public short getThriftFieldId() {
41195
        return _thriftId;
41196
      }
41197
 
41198
      public String getFieldName() {
41199
        return _fieldName;
41200
      }
41201
    }
41202
 
41203
    // isset id assignments
41204
 
41205
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41206
    static {
41207
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41208
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41209
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
41210
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OOSStatus.class))));
41211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDays_result.class, metaDataMap);
41213
    }
41214
 
41215
    public getOosStatusesForXDays_result() {
41216
    }
41217
 
41218
    public getOosStatusesForXDays_result(
41219
      List<OOSStatus> success)
41220
    {
41221
      this();
41222
      this.success = success;
41223
    }
41224
 
41225
    /**
41226
     * Performs a deep copy on <i>other</i>.
41227
     */
41228
    public getOosStatusesForXDays_result(getOosStatusesForXDays_result other) {
41229
      if (other.isSetSuccess()) {
41230
        List<OOSStatus> __this__success = new ArrayList<OOSStatus>();
41231
        for (OOSStatus other_element : other.success) {
41232
          __this__success.add(new OOSStatus(other_element));
41233
        }
41234
        this.success = __this__success;
41235
      }
41236
    }
41237
 
41238
    public getOosStatusesForXDays_result deepCopy() {
41239
      return new getOosStatusesForXDays_result(this);
41240
    }
41241
 
41242
    @Override
41243
    public void clear() {
41244
      this.success = null;
41245
    }
41246
 
41247
    public int getSuccessSize() {
41248
      return (this.success == null) ? 0 : this.success.size();
41249
    }
41250
 
41251
    public java.util.Iterator<OOSStatus> getSuccessIterator() {
41252
      return (this.success == null) ? null : this.success.iterator();
41253
    }
41254
 
41255
    public void addToSuccess(OOSStatus elem) {
41256
      if (this.success == null) {
41257
        this.success = new ArrayList<OOSStatus>();
41258
      }
41259
      this.success.add(elem);
41260
    }
41261
 
41262
    public List<OOSStatus> getSuccess() {
41263
      return this.success;
41264
    }
41265
 
41266
    public void setSuccess(List<OOSStatus> success) {
41267
      this.success = success;
41268
    }
41269
 
41270
    public void unsetSuccess() {
41271
      this.success = null;
41272
    }
41273
 
41274
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
41275
    public boolean isSetSuccess() {
41276
      return this.success != null;
41277
    }
41278
 
41279
    public void setSuccessIsSet(boolean value) {
41280
      if (!value) {
41281
        this.success = null;
41282
      }
41283
    }
41284
 
41285
    public void setFieldValue(_Fields field, Object value) {
41286
      switch (field) {
41287
      case SUCCESS:
41288
        if (value == null) {
41289
          unsetSuccess();
41290
        } else {
41291
          setSuccess((List<OOSStatus>)value);
41292
        }
41293
        break;
41294
 
41295
      }
41296
    }
41297
 
41298
    public Object getFieldValue(_Fields field) {
41299
      switch (field) {
41300
      case SUCCESS:
41301
        return getSuccess();
41302
 
41303
      }
41304
      throw new IllegalStateException();
41305
    }
41306
 
41307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41308
    public boolean isSet(_Fields field) {
41309
      if (field == null) {
41310
        throw new IllegalArgumentException();
41311
      }
41312
 
41313
      switch (field) {
41314
      case SUCCESS:
41315
        return isSetSuccess();
41316
      }
41317
      throw new IllegalStateException();
41318
    }
41319
 
41320
    @Override
41321
    public boolean equals(Object that) {
41322
      if (that == null)
41323
        return false;
41324
      if (that instanceof getOosStatusesForXDays_result)
41325
        return this.equals((getOosStatusesForXDays_result)that);
41326
      return false;
41327
    }
41328
 
41329
    public boolean equals(getOosStatusesForXDays_result that) {
41330
      if (that == null)
41331
        return false;
41332
 
41333
      boolean this_present_success = true && this.isSetSuccess();
41334
      boolean that_present_success = true && that.isSetSuccess();
41335
      if (this_present_success || that_present_success) {
41336
        if (!(this_present_success && that_present_success))
41337
          return false;
41338
        if (!this.success.equals(that.success))
41339
          return false;
41340
      }
41341
 
41342
      return true;
41343
    }
41344
 
41345
    @Override
41346
    public int hashCode() {
41347
      return 0;
41348
    }
41349
 
41350
    public int compareTo(getOosStatusesForXDays_result other) {
41351
      if (!getClass().equals(other.getClass())) {
41352
        return getClass().getName().compareTo(other.getClass().getName());
41353
      }
41354
 
41355
      int lastComparison = 0;
41356
      getOosStatusesForXDays_result typedOther = (getOosStatusesForXDays_result)other;
41357
 
41358
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
41359
      if (lastComparison != 0) {
41360
        return lastComparison;
41361
      }
41362
      if (isSetSuccess()) {
41363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
41364
        if (lastComparison != 0) {
41365
          return lastComparison;
41366
        }
41367
      }
41368
      return 0;
41369
    }
41370
 
41371
    public _Fields fieldForId(int fieldId) {
41372
      return _Fields.findByThriftId(fieldId);
41373
    }
41374
 
41375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41376
      org.apache.thrift.protocol.TField field;
41377
      iprot.readStructBegin();
41378
      while (true)
41379
      {
41380
        field = iprot.readFieldBegin();
41381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41382
          break;
41383
        }
41384
        switch (field.id) {
41385
          case 0: // SUCCESS
41386
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
41387
              {
41388
                org.apache.thrift.protocol.TList _list118 = iprot.readListBegin();
41389
                this.success = new ArrayList<OOSStatus>(_list118.size);
41390
                for (int _i119 = 0; _i119 < _list118.size; ++_i119)
41391
                {
41392
                  OOSStatus _elem120; // required
41393
                  _elem120 = new OOSStatus();
41394
                  _elem120.read(iprot);
41395
                  this.success.add(_elem120);
41396
                }
41397
                iprot.readListEnd();
41398
              }
41399
            } else { 
41400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41401
            }
41402
            break;
41403
          default:
41404
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41405
        }
41406
        iprot.readFieldEnd();
41407
      }
41408
      iprot.readStructEnd();
41409
      validate();
41410
    }
41411
 
41412
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41413
      oprot.writeStructBegin(STRUCT_DESC);
41414
 
41415
      if (this.isSetSuccess()) {
41416
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
41417
        {
41418
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
41419
          for (OOSStatus _iter121 : this.success)
41420
          {
41421
            _iter121.write(oprot);
41422
          }
41423
          oprot.writeListEnd();
41424
        }
41425
        oprot.writeFieldEnd();
41426
      }
41427
      oprot.writeFieldStop();
41428
      oprot.writeStructEnd();
41429
    }
41430
 
41431
    @Override
41432
    public String toString() {
41433
      StringBuilder sb = new StringBuilder("getOosStatusesForXDays_result(");
41434
      boolean first = true;
41435
 
41436
      sb.append("success:");
41437
      if (this.success == null) {
41438
        sb.append("null");
41439
      } else {
41440
        sb.append(this.success);
41441
      }
41442
      first = false;
41443
      sb.append(")");
41444
      return sb.toString();
41445
    }
41446
 
41447
    public void validate() throws org.apache.thrift.TException {
41448
      // check for required fields
41449
    }
41450
 
41451
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41452
      try {
41453
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41454
      } catch (org.apache.thrift.TException te) {
41455
        throw new java.io.IOException(te);
41456
      }
41457
    }
41458
 
41459
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41460
      try {
41461
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41462
      } catch (org.apache.thrift.TException te) {
41463
        throw new java.io.IOException(te);
41464
      }
41465
    }
41466
 
41467
  }
41468
 
41469
  public static class getAllVendorItemPricing_args implements org.apache.thrift.TBase<getAllVendorItemPricing_args, getAllVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
41470
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemPricing_args");
41471
 
41472
    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);
41473
    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);
41474
 
41475
    private long itemId; // required
41476
    private long vendorId; // required
41477
 
41478
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41479
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41480
      ITEM_ID((short)1, "itemId"),
41481
      VENDOR_ID((short)2, "vendorId");
41482
 
41483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41484
 
41485
      static {
41486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41487
          byName.put(field.getFieldName(), field);
41488
        }
41489
      }
41490
 
41491
      /**
41492
       * Find the _Fields constant that matches fieldId, or null if its not found.
41493
       */
41494
      public static _Fields findByThriftId(int fieldId) {
41495
        switch(fieldId) {
41496
          case 1: // ITEM_ID
41497
            return ITEM_ID;
41498
          case 2: // VENDOR_ID
41499
            return VENDOR_ID;
41500
          default:
41501
            return null;
41502
        }
41503
      }
41504
 
41505
      /**
41506
       * Find the _Fields constant that matches fieldId, throwing an exception
41507
       * if it is not found.
41508
       */
41509
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41510
        _Fields fields = findByThriftId(fieldId);
41511
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41512
        return fields;
41513
      }
41514
 
41515
      /**
41516
       * Find the _Fields constant that matches name, or null if its not found.
41517
       */
41518
      public static _Fields findByName(String name) {
41519
        return byName.get(name);
41520
      }
41521
 
41522
      private final short _thriftId;
41523
      private final String _fieldName;
41524
 
41525
      _Fields(short thriftId, String fieldName) {
41526
        _thriftId = thriftId;
41527
        _fieldName = fieldName;
41528
      }
41529
 
41530
      public short getThriftFieldId() {
41531
        return _thriftId;
41532
      }
41533
 
41534
      public String getFieldName() {
41535
        return _fieldName;
41536
      }
41537
    }
41538
 
41539
    // isset id assignments
41540
    private static final int __ITEMID_ISSET_ID = 0;
41541
    private static final int __VENDORID_ISSET_ID = 1;
41542
    private BitSet __isset_bit_vector = new BitSet(2);
41543
 
41544
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41545
    static {
41546
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41547
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41548
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41549
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41550
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
41551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemPricing_args.class, metaDataMap);
41553
    }
41554
 
41555
    public getAllVendorItemPricing_args() {
41556
    }
41557
 
41558
    public getAllVendorItemPricing_args(
41559
      long itemId,
41560
      long vendorId)
41561
    {
41562
      this();
41563
      this.itemId = itemId;
41564
      setItemIdIsSet(true);
41565
      this.vendorId = vendorId;
41566
      setVendorIdIsSet(true);
41567
    }
41568
 
41569
    /**
41570
     * Performs a deep copy on <i>other</i>.
41571
     */
41572
    public getAllVendorItemPricing_args(getAllVendorItemPricing_args other) {
41573
      __isset_bit_vector.clear();
41574
      __isset_bit_vector.or(other.__isset_bit_vector);
41575
      this.itemId = other.itemId;
41576
      this.vendorId = other.vendorId;
41577
    }
41578
 
41579
    public getAllVendorItemPricing_args deepCopy() {
41580
      return new getAllVendorItemPricing_args(this);
41581
    }
41582
 
41583
    @Override
41584
    public void clear() {
41585
      setItemIdIsSet(false);
41586
      this.itemId = 0;
41587
      setVendorIdIsSet(false);
41588
      this.vendorId = 0;
41589
    }
41590
 
41591
    public long getItemId() {
41592
      return this.itemId;
41593
    }
41594
 
41595
    public void setItemId(long itemId) {
41596
      this.itemId = itemId;
41597
      setItemIdIsSet(true);
41598
    }
41599
 
41600
    public void unsetItemId() {
41601
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
41602
    }
41603
 
41604
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
41605
    public boolean isSetItemId() {
41606
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
41607
    }
41608
 
41609
    public void setItemIdIsSet(boolean value) {
41610
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
41611
    }
41612
 
41613
    public long getVendorId() {
41614
      return this.vendorId;
41615
    }
41616
 
41617
    public void setVendorId(long vendorId) {
41618
      this.vendorId = vendorId;
41619
      setVendorIdIsSet(true);
41620
    }
41621
 
41622
    public void unsetVendorId() {
41623
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
41624
    }
41625
 
41626
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
41627
    public boolean isSetVendorId() {
41628
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
41629
    }
41630
 
41631
    public void setVendorIdIsSet(boolean value) {
41632
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
41633
    }
41634
 
41635
    public void setFieldValue(_Fields field, Object value) {
41636
      switch (field) {
41637
      case ITEM_ID:
41638
        if (value == null) {
41639
          unsetItemId();
41640
        } else {
41641
          setItemId((Long)value);
41642
        }
41643
        break;
41644
 
41645
      case VENDOR_ID:
41646
        if (value == null) {
41647
          unsetVendorId();
41648
        } else {
41649
          setVendorId((Long)value);
41650
        }
41651
        break;
41652
 
41653
      }
41654
    }
41655
 
41656
    public Object getFieldValue(_Fields field) {
41657
      switch (field) {
41658
      case ITEM_ID:
41659
        return Long.valueOf(getItemId());
41660
 
41661
      case VENDOR_ID:
41662
        return Long.valueOf(getVendorId());
41663
 
41664
      }
41665
      throw new IllegalStateException();
41666
    }
41667
 
41668
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41669
    public boolean isSet(_Fields field) {
41670
      if (field == null) {
41671
        throw new IllegalArgumentException();
41672
      }
41673
 
41674
      switch (field) {
41675
      case ITEM_ID:
41676
        return isSetItemId();
41677
      case VENDOR_ID:
41678
        return isSetVendorId();
41679
      }
41680
      throw new IllegalStateException();
41681
    }
41682
 
41683
    @Override
41684
    public boolean equals(Object that) {
41685
      if (that == null)
41686
        return false;
41687
      if (that instanceof getAllVendorItemPricing_args)
41688
        return this.equals((getAllVendorItemPricing_args)that);
41689
      return false;
41690
    }
41691
 
41692
    public boolean equals(getAllVendorItemPricing_args that) {
41693
      if (that == null)
41694
        return false;
41695
 
41696
      boolean this_present_itemId = true;
41697
      boolean that_present_itemId = true;
41698
      if (this_present_itemId || that_present_itemId) {
41699
        if (!(this_present_itemId && that_present_itemId))
41700
          return false;
41701
        if (this.itemId != that.itemId)
41702
          return false;
41703
      }
41704
 
41705
      boolean this_present_vendorId = true;
41706
      boolean that_present_vendorId = true;
41707
      if (this_present_vendorId || that_present_vendorId) {
41708
        if (!(this_present_vendorId && that_present_vendorId))
41709
          return false;
41710
        if (this.vendorId != that.vendorId)
41711
          return false;
41712
      }
41713
 
41714
      return true;
41715
    }
41716
 
41717
    @Override
41718
    public int hashCode() {
41719
      return 0;
41720
    }
41721
 
41722
    public int compareTo(getAllVendorItemPricing_args other) {
41723
      if (!getClass().equals(other.getClass())) {
41724
        return getClass().getName().compareTo(other.getClass().getName());
41725
      }
41726
 
41727
      int lastComparison = 0;
41728
      getAllVendorItemPricing_args typedOther = (getAllVendorItemPricing_args)other;
41729
 
41730
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
41731
      if (lastComparison != 0) {
41732
        return lastComparison;
41733
      }
41734
      if (isSetItemId()) {
41735
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
41736
        if (lastComparison != 0) {
41737
          return lastComparison;
41738
        }
41739
      }
41740
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
41741
      if (lastComparison != 0) {
41742
        return lastComparison;
41743
      }
41744
      if (isSetVendorId()) {
41745
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
41746
        if (lastComparison != 0) {
41747
          return lastComparison;
41748
        }
41749
      }
41750
      return 0;
41751
    }
41752
 
41753
    public _Fields fieldForId(int fieldId) {
41754
      return _Fields.findByThriftId(fieldId);
41755
    }
41756
 
41757
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
41758
      org.apache.thrift.protocol.TField field;
41759
      iprot.readStructBegin();
41760
      while (true)
41761
      {
41762
        field = iprot.readFieldBegin();
41763
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41764
          break;
41765
        }
41766
        switch (field.id) {
41767
          case 1: // ITEM_ID
41768
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41769
              this.itemId = iprot.readI64();
41770
              setItemIdIsSet(true);
41771
            } else { 
41772
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41773
            }
41774
            break;
41775
          case 2: // VENDOR_ID
41776
            if (field.type == org.apache.thrift.protocol.TType.I64) {
41777
              this.vendorId = iprot.readI64();
41778
              setVendorIdIsSet(true);
41779
            } else { 
41780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41781
            }
41782
            break;
41783
          default:
41784
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41785
        }
41786
        iprot.readFieldEnd();
41787
      }
41788
      iprot.readStructEnd();
41789
      validate();
41790
    }
41791
 
41792
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41793
      validate();
41794
 
41795
      oprot.writeStructBegin(STRUCT_DESC);
41796
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
41797
      oprot.writeI64(this.itemId);
41798
      oprot.writeFieldEnd();
41799
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
41800
      oprot.writeI64(this.vendorId);
41801
      oprot.writeFieldEnd();
41802
      oprot.writeFieldStop();
41803
      oprot.writeStructEnd();
41804
    }
41805
 
41806
    @Override
41807
    public String toString() {
41808
      StringBuilder sb = new StringBuilder("getAllVendorItemPricing_args(");
41809
      boolean first = true;
41810
 
41811
      sb.append("itemId:");
41812
      sb.append(this.itemId);
41813
      first = false;
41814
      if (!first) sb.append(", ");
41815
      sb.append("vendorId:");
41816
      sb.append(this.vendorId);
41817
      first = false;
41818
      sb.append(")");
41819
      return sb.toString();
41820
    }
41821
 
41822
    public void validate() throws org.apache.thrift.TException {
41823
      // check for required fields
41824
    }
41825
 
41826
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
41827
      try {
41828
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
41829
      } catch (org.apache.thrift.TException te) {
41830
        throw new java.io.IOException(te);
41831
      }
41832
    }
41833
 
41834
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
41835
      try {
41836
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
41837
        __isset_bit_vector = new BitSet(1);
41838
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
41839
      } catch (org.apache.thrift.TException te) {
41840
        throw new java.io.IOException(te);
41841
      }
41842
    }
41843
 
41844
  }
41845
 
41846
  public static class getAllVendorItemPricing_result implements org.apache.thrift.TBase<getAllVendorItemPricing_result, getAllVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
41847
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemPricing_result");
41848
 
41849
    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);
41850
 
41851
    private List<VendorItemPricing> success; // required
41852
 
41853
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41854
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41855
      SUCCESS((short)0, "success");
41856
 
41857
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41858
 
41859
      static {
41860
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41861
          byName.put(field.getFieldName(), field);
41862
        }
41863
      }
41864
 
41865
      /**
41866
       * Find the _Fields constant that matches fieldId, or null if its not found.
41867
       */
41868
      public static _Fields findByThriftId(int fieldId) {
41869
        switch(fieldId) {
41870
          case 0: // SUCCESS
41871
            return SUCCESS;
41872
          default:
41873
            return null;
41874
        }
41875
      }
41876
 
41877
      /**
41878
       * Find the _Fields constant that matches fieldId, throwing an exception
41879
       * if it is not found.
41880
       */
41881
      public static _Fields findByThriftIdOrThrow(int fieldId) {
41882
        _Fields fields = findByThriftId(fieldId);
41883
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
41884
        return fields;
41885
      }
41886
 
41887
      /**
41888
       * Find the _Fields constant that matches name, or null if its not found.
41889
       */
41890
      public static _Fields findByName(String name) {
41891
        return byName.get(name);
41892
      }
41893
 
41894
      private final short _thriftId;
41895
      private final String _fieldName;
41896
 
41897
      _Fields(short thriftId, String fieldName) {
41898
        _thriftId = thriftId;
41899
        _fieldName = fieldName;
41900
      }
41901
 
41902
      public short getThriftFieldId() {
41903
        return _thriftId;
41904
      }
41905
 
41906
      public String getFieldName() {
41907
        return _fieldName;
41908
      }
41909
    }
41910
 
41911
    // isset id assignments
41912
 
41913
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41914
    static {
41915
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41916
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
41917
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
41918
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
41919
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41920
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemPricing_result.class, metaDataMap);
41921
    }
41922
 
41923
    public getAllVendorItemPricing_result() {
41924
    }
41925
 
41926
    public getAllVendorItemPricing_result(
41927
      List<VendorItemPricing> success)
41928
    {
41929
      this();
41930
      this.success = success;
41931
    }
41932
 
41933
    /**
41934
     * Performs a deep copy on <i>other</i>.
41935
     */
41936
    public getAllVendorItemPricing_result(getAllVendorItemPricing_result other) {
41937
      if (other.isSetSuccess()) {
41938
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
41939
        for (VendorItemPricing other_element : other.success) {
41940
          __this__success.add(new VendorItemPricing(other_element));
41941
        }
41942
        this.success = __this__success;
41943
      }
41944
    }
41945
 
41946
    public getAllVendorItemPricing_result deepCopy() {
41947
      return new getAllVendorItemPricing_result(this);
41948
    }
41949
 
41950
    @Override
41951
    public void clear() {
41952
      this.success = null;
41953
    }
41954
 
41955
    public int getSuccessSize() {
41956
      return (this.success == null) ? 0 : this.success.size();
41957
    }
41958
 
41959
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
41960
      return (this.success == null) ? null : this.success.iterator();
41961
    }
41962
 
41963
    public void addToSuccess(VendorItemPricing elem) {
41964
      if (this.success == null) {
41965
        this.success = new ArrayList<VendorItemPricing>();
41966
      }
41967
      this.success.add(elem);
41968
    }
41969
 
41970
    public List<VendorItemPricing> getSuccess() {
41971
      return this.success;
41972
    }
41973
 
41974
    public void setSuccess(List<VendorItemPricing> success) {
41975
      this.success = success;
41976
    }
41977
 
41978
    public void unsetSuccess() {
41979
      this.success = null;
41980
    }
41981
 
41982
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
41983
    public boolean isSetSuccess() {
41984
      return this.success != null;
41985
    }
41986
 
41987
    public void setSuccessIsSet(boolean value) {
41988
      if (!value) {
41989
        this.success = null;
41990
      }
41991
    }
41992
 
41993
    public void setFieldValue(_Fields field, Object value) {
41994
      switch (field) {
41995
      case SUCCESS:
41996
        if (value == null) {
41997
          unsetSuccess();
41998
        } else {
41999
          setSuccess((List<VendorItemPricing>)value);
42000
        }
42001
        break;
42002
 
42003
      }
42004
    }
42005
 
42006
    public Object getFieldValue(_Fields field) {
42007
      switch (field) {
42008
      case SUCCESS:
42009
        return getSuccess();
42010
 
42011
      }
42012
      throw new IllegalStateException();
42013
    }
42014
 
42015
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42016
    public boolean isSet(_Fields field) {
42017
      if (field == null) {
42018
        throw new IllegalArgumentException();
42019
      }
42020
 
42021
      switch (field) {
42022
      case SUCCESS:
42023
        return isSetSuccess();
42024
      }
42025
      throw new IllegalStateException();
42026
    }
42027
 
42028
    @Override
42029
    public boolean equals(Object that) {
42030
      if (that == null)
42031
        return false;
42032
      if (that instanceof getAllVendorItemPricing_result)
42033
        return this.equals((getAllVendorItemPricing_result)that);
42034
      return false;
42035
    }
42036
 
42037
    public boolean equals(getAllVendorItemPricing_result that) {
42038
      if (that == null)
42039
        return false;
42040
 
42041
      boolean this_present_success = true && this.isSetSuccess();
42042
      boolean that_present_success = true && that.isSetSuccess();
42043
      if (this_present_success || that_present_success) {
42044
        if (!(this_present_success && that_present_success))
42045
          return false;
42046
        if (!this.success.equals(that.success))
42047
          return false;
42048
      }
42049
 
42050
      return true;
42051
    }
42052
 
42053
    @Override
42054
    public int hashCode() {
42055
      return 0;
42056
    }
42057
 
42058
    public int compareTo(getAllVendorItemPricing_result other) {
42059
      if (!getClass().equals(other.getClass())) {
42060
        return getClass().getName().compareTo(other.getClass().getName());
42061
      }
42062
 
42063
      int lastComparison = 0;
42064
      getAllVendorItemPricing_result typedOther = (getAllVendorItemPricing_result)other;
42065
 
42066
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42067
      if (lastComparison != 0) {
42068
        return lastComparison;
42069
      }
42070
      if (isSetSuccess()) {
42071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42072
        if (lastComparison != 0) {
42073
          return lastComparison;
42074
        }
42075
      }
42076
      return 0;
42077
    }
42078
 
42079
    public _Fields fieldForId(int fieldId) {
42080
      return _Fields.findByThriftId(fieldId);
42081
    }
42082
 
42083
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42084
      org.apache.thrift.protocol.TField field;
42085
      iprot.readStructBegin();
42086
      while (true)
42087
      {
42088
        field = iprot.readFieldBegin();
42089
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42090
          break;
42091
        }
42092
        switch (field.id) {
42093
          case 0: // SUCCESS
42094
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42095
              {
42096
                org.apache.thrift.protocol.TList _list122 = iprot.readListBegin();
42097
                this.success = new ArrayList<VendorItemPricing>(_list122.size);
42098
                for (int _i123 = 0; _i123 < _list122.size; ++_i123)
42099
                {
42100
                  VendorItemPricing _elem124; // required
42101
                  _elem124 = new VendorItemPricing();
42102
                  _elem124.read(iprot);
42103
                  this.success.add(_elem124);
42104
                }
42105
                iprot.readListEnd();
42106
              }
42107
            } else { 
42108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42109
            }
42110
            break;
42111
          default:
42112
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42113
        }
42114
        iprot.readFieldEnd();
42115
      }
42116
      iprot.readStructEnd();
42117
      validate();
42118
    }
42119
 
42120
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42121
      oprot.writeStructBegin(STRUCT_DESC);
42122
 
42123
      if (this.isSetSuccess()) {
42124
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42125
        {
42126
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
42127
          for (VendorItemPricing _iter125 : this.success)
42128
          {
42129
            _iter125.write(oprot);
42130
          }
42131
          oprot.writeListEnd();
42132
        }
42133
        oprot.writeFieldEnd();
42134
      }
42135
      oprot.writeFieldStop();
42136
      oprot.writeStructEnd();
42137
    }
42138
 
42139
    @Override
42140
    public String toString() {
42141
      StringBuilder sb = new StringBuilder("getAllVendorItemPricing_result(");
42142
      boolean first = true;
42143
 
42144
      sb.append("success:");
42145
      if (this.success == null) {
42146
        sb.append("null");
42147
      } else {
42148
        sb.append(this.success);
42149
      }
42150
      first = false;
42151
      sb.append(")");
42152
      return sb.toString();
42153
    }
42154
 
42155
    public void validate() throws org.apache.thrift.TException {
42156
      // check for required fields
42157
    }
42158
 
42159
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42160
      try {
42161
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42162
      } catch (org.apache.thrift.TException te) {
42163
        throw new java.io.IOException(te);
42164
      }
42165
    }
42166
 
42167
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42168
      try {
42169
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42170
      } catch (org.apache.thrift.TException te) {
42171
        throw new java.io.IOException(te);
42172
      }
42173
    }
42174
 
42175
  }
42176
 
6857 amar.kumar 42177
  public static class getNonZeroItemStockPurchaseParams_args implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_args, getNonZeroItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
42178
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_args");
42179
 
42180
 
42181
 
42182
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42183
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42184
;
42185
 
42186
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42187
 
42188
      static {
42189
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42190
          byName.put(field.getFieldName(), field);
42191
        }
42192
      }
42193
 
42194
      /**
42195
       * Find the _Fields constant that matches fieldId, or null if its not found.
42196
       */
42197
      public static _Fields findByThriftId(int fieldId) {
42198
        switch(fieldId) {
42199
          default:
42200
            return null;
42201
        }
42202
      }
42203
 
42204
      /**
42205
       * Find the _Fields constant that matches fieldId, throwing an exception
42206
       * if it is not found.
42207
       */
42208
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42209
        _Fields fields = findByThriftId(fieldId);
42210
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42211
        return fields;
42212
      }
42213
 
42214
      /**
42215
       * Find the _Fields constant that matches name, or null if its not found.
42216
       */
42217
      public static _Fields findByName(String name) {
42218
        return byName.get(name);
42219
      }
42220
 
42221
      private final short _thriftId;
42222
      private final String _fieldName;
42223
 
42224
      _Fields(short thriftId, String fieldName) {
42225
        _thriftId = thriftId;
42226
        _fieldName = fieldName;
42227
      }
42228
 
42229
      public short getThriftFieldId() {
42230
        return _thriftId;
42231
      }
42232
 
42233
      public String getFieldName() {
42234
        return _fieldName;
42235
      }
42236
    }
42237
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42238
    static {
42239
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42240
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42241
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_args.class, metaDataMap);
42242
    }
42243
 
42244
    public getNonZeroItemStockPurchaseParams_args() {
42245
    }
42246
 
42247
    /**
42248
     * Performs a deep copy on <i>other</i>.
42249
     */
42250
    public getNonZeroItemStockPurchaseParams_args(getNonZeroItemStockPurchaseParams_args other) {
42251
    }
42252
 
42253
    public getNonZeroItemStockPurchaseParams_args deepCopy() {
42254
      return new getNonZeroItemStockPurchaseParams_args(this);
42255
    }
42256
 
42257
    @Override
42258
    public void clear() {
42259
    }
42260
 
42261
    public void setFieldValue(_Fields field, Object value) {
42262
      switch (field) {
42263
      }
42264
    }
42265
 
42266
    public Object getFieldValue(_Fields field) {
42267
      switch (field) {
42268
      }
42269
      throw new IllegalStateException();
42270
    }
42271
 
42272
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42273
    public boolean isSet(_Fields field) {
42274
      if (field == null) {
42275
        throw new IllegalArgumentException();
42276
      }
42277
 
42278
      switch (field) {
42279
      }
42280
      throw new IllegalStateException();
42281
    }
42282
 
42283
    @Override
42284
    public boolean equals(Object that) {
42285
      if (that == null)
42286
        return false;
42287
      if (that instanceof getNonZeroItemStockPurchaseParams_args)
42288
        return this.equals((getNonZeroItemStockPurchaseParams_args)that);
42289
      return false;
42290
    }
42291
 
42292
    public boolean equals(getNonZeroItemStockPurchaseParams_args that) {
42293
      if (that == null)
42294
        return false;
42295
 
42296
      return true;
42297
    }
42298
 
42299
    @Override
42300
    public int hashCode() {
42301
      return 0;
42302
    }
42303
 
42304
    public int compareTo(getNonZeroItemStockPurchaseParams_args other) {
42305
      if (!getClass().equals(other.getClass())) {
42306
        return getClass().getName().compareTo(other.getClass().getName());
42307
      }
42308
 
42309
      int lastComparison = 0;
42310
      getNonZeroItemStockPurchaseParams_args typedOther = (getNonZeroItemStockPurchaseParams_args)other;
42311
 
42312
      return 0;
42313
    }
42314
 
42315
    public _Fields fieldForId(int fieldId) {
42316
      return _Fields.findByThriftId(fieldId);
42317
    }
42318
 
42319
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42320
      org.apache.thrift.protocol.TField field;
42321
      iprot.readStructBegin();
42322
      while (true)
42323
      {
42324
        field = iprot.readFieldBegin();
42325
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42326
          break;
42327
        }
42328
        switch (field.id) {
42329
          default:
42330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42331
        }
42332
        iprot.readFieldEnd();
42333
      }
42334
      iprot.readStructEnd();
42335
      validate();
42336
    }
42337
 
42338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42339
      validate();
42340
 
42341
      oprot.writeStructBegin(STRUCT_DESC);
42342
      oprot.writeFieldStop();
42343
      oprot.writeStructEnd();
42344
    }
42345
 
42346
    @Override
42347
    public String toString() {
42348
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_args(");
42349
      boolean first = true;
42350
 
42351
      sb.append(")");
42352
      return sb.toString();
42353
    }
42354
 
42355
    public void validate() throws org.apache.thrift.TException {
42356
      // check for required fields
42357
    }
42358
 
42359
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42360
      try {
42361
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42362
      } catch (org.apache.thrift.TException te) {
42363
        throw new java.io.IOException(te);
42364
      }
42365
    }
42366
 
42367
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42368
      try {
42369
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42370
      } catch (org.apache.thrift.TException te) {
42371
        throw new java.io.IOException(te);
42372
      }
42373
    }
42374
 
42375
  }
42376
 
42377
  public static class getNonZeroItemStockPurchaseParams_result implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_result, getNonZeroItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
42378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_result");
42379
 
42380
    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);
42381
 
42382
    private List<ItemStockPurchaseParams> success; // required
42383
 
42384
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42385
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42386
      SUCCESS((short)0, "success");
42387
 
42388
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42389
 
42390
      static {
42391
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42392
          byName.put(field.getFieldName(), field);
42393
        }
42394
      }
42395
 
42396
      /**
42397
       * Find the _Fields constant that matches fieldId, or null if its not found.
42398
       */
42399
      public static _Fields findByThriftId(int fieldId) {
42400
        switch(fieldId) {
42401
          case 0: // SUCCESS
42402
            return SUCCESS;
42403
          default:
42404
            return null;
42405
        }
42406
      }
42407
 
42408
      /**
42409
       * Find the _Fields constant that matches fieldId, throwing an exception
42410
       * if it is not found.
42411
       */
42412
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42413
        _Fields fields = findByThriftId(fieldId);
42414
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42415
        return fields;
42416
      }
42417
 
42418
      /**
42419
       * Find the _Fields constant that matches name, or null if its not found.
42420
       */
42421
      public static _Fields findByName(String name) {
42422
        return byName.get(name);
42423
      }
42424
 
42425
      private final short _thriftId;
42426
      private final String _fieldName;
42427
 
42428
      _Fields(short thriftId, String fieldName) {
42429
        _thriftId = thriftId;
42430
        _fieldName = fieldName;
42431
      }
42432
 
42433
      public short getThriftFieldId() {
42434
        return _thriftId;
42435
      }
42436
 
42437
      public String getFieldName() {
42438
        return _fieldName;
42439
      }
42440
    }
42441
 
42442
    // isset id assignments
42443
 
42444
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42445
    static {
42446
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42447
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42448
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
42449
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class))));
42450
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42451
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_result.class, metaDataMap);
42452
    }
42453
 
42454
    public getNonZeroItemStockPurchaseParams_result() {
42455
    }
42456
 
42457
    public getNonZeroItemStockPurchaseParams_result(
42458
      List<ItemStockPurchaseParams> success)
42459
    {
42460
      this();
42461
      this.success = success;
42462
    }
42463
 
42464
    /**
42465
     * Performs a deep copy on <i>other</i>.
42466
     */
42467
    public getNonZeroItemStockPurchaseParams_result(getNonZeroItemStockPurchaseParams_result other) {
42468
      if (other.isSetSuccess()) {
42469
        List<ItemStockPurchaseParams> __this__success = new ArrayList<ItemStockPurchaseParams>();
42470
        for (ItemStockPurchaseParams other_element : other.success) {
42471
          __this__success.add(new ItemStockPurchaseParams(other_element));
42472
        }
42473
        this.success = __this__success;
42474
      }
42475
    }
42476
 
42477
    public getNonZeroItemStockPurchaseParams_result deepCopy() {
42478
      return new getNonZeroItemStockPurchaseParams_result(this);
42479
    }
42480
 
42481
    @Override
42482
    public void clear() {
42483
      this.success = null;
42484
    }
42485
 
42486
    public int getSuccessSize() {
42487
      return (this.success == null) ? 0 : this.success.size();
42488
    }
42489
 
42490
    public java.util.Iterator<ItemStockPurchaseParams> getSuccessIterator() {
42491
      return (this.success == null) ? null : this.success.iterator();
42492
    }
42493
 
42494
    public void addToSuccess(ItemStockPurchaseParams elem) {
42495
      if (this.success == null) {
42496
        this.success = new ArrayList<ItemStockPurchaseParams>();
42497
      }
42498
      this.success.add(elem);
42499
    }
42500
 
42501
    public List<ItemStockPurchaseParams> getSuccess() {
42502
      return this.success;
42503
    }
42504
 
42505
    public void setSuccess(List<ItemStockPurchaseParams> success) {
42506
      this.success = success;
42507
    }
42508
 
42509
    public void unsetSuccess() {
42510
      this.success = null;
42511
    }
42512
 
42513
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
42514
    public boolean isSetSuccess() {
42515
      return this.success != null;
42516
    }
42517
 
42518
    public void setSuccessIsSet(boolean value) {
42519
      if (!value) {
42520
        this.success = null;
42521
      }
42522
    }
42523
 
42524
    public void setFieldValue(_Fields field, Object value) {
42525
      switch (field) {
42526
      case SUCCESS:
42527
        if (value == null) {
42528
          unsetSuccess();
42529
        } else {
42530
          setSuccess((List<ItemStockPurchaseParams>)value);
42531
        }
42532
        break;
42533
 
42534
      }
42535
    }
42536
 
42537
    public Object getFieldValue(_Fields field) {
42538
      switch (field) {
42539
      case SUCCESS:
42540
        return getSuccess();
42541
 
42542
      }
42543
      throw new IllegalStateException();
42544
    }
42545
 
42546
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42547
    public boolean isSet(_Fields field) {
42548
      if (field == null) {
42549
        throw new IllegalArgumentException();
42550
      }
42551
 
42552
      switch (field) {
42553
      case SUCCESS:
42554
        return isSetSuccess();
42555
      }
42556
      throw new IllegalStateException();
42557
    }
42558
 
42559
    @Override
42560
    public boolean equals(Object that) {
42561
      if (that == null)
42562
        return false;
42563
      if (that instanceof getNonZeroItemStockPurchaseParams_result)
42564
        return this.equals((getNonZeroItemStockPurchaseParams_result)that);
42565
      return false;
42566
    }
42567
 
42568
    public boolean equals(getNonZeroItemStockPurchaseParams_result that) {
42569
      if (that == null)
42570
        return false;
42571
 
42572
      boolean this_present_success = true && this.isSetSuccess();
42573
      boolean that_present_success = true && that.isSetSuccess();
42574
      if (this_present_success || that_present_success) {
42575
        if (!(this_present_success && that_present_success))
42576
          return false;
42577
        if (!this.success.equals(that.success))
42578
          return false;
42579
      }
42580
 
42581
      return true;
42582
    }
42583
 
42584
    @Override
42585
    public int hashCode() {
42586
      return 0;
42587
    }
42588
 
42589
    public int compareTo(getNonZeroItemStockPurchaseParams_result other) {
42590
      if (!getClass().equals(other.getClass())) {
42591
        return getClass().getName().compareTo(other.getClass().getName());
42592
      }
42593
 
42594
      int lastComparison = 0;
42595
      getNonZeroItemStockPurchaseParams_result typedOther = (getNonZeroItemStockPurchaseParams_result)other;
42596
 
42597
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
42598
      if (lastComparison != 0) {
42599
        return lastComparison;
42600
      }
42601
      if (isSetSuccess()) {
42602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
42603
        if (lastComparison != 0) {
42604
          return lastComparison;
42605
        }
42606
      }
42607
      return 0;
42608
    }
42609
 
42610
    public _Fields fieldForId(int fieldId) {
42611
      return _Fields.findByThriftId(fieldId);
42612
    }
42613
 
42614
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42615
      org.apache.thrift.protocol.TField field;
42616
      iprot.readStructBegin();
42617
      while (true)
42618
      {
42619
        field = iprot.readFieldBegin();
42620
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42621
          break;
42622
        }
42623
        switch (field.id) {
42624
          case 0: // SUCCESS
42625
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
42626
              {
10126 amar.kumar 42627
                org.apache.thrift.protocol.TList _list126 = iprot.readListBegin();
42628
                this.success = new ArrayList<ItemStockPurchaseParams>(_list126.size);
42629
                for (int _i127 = 0; _i127 < _list126.size; ++_i127)
6857 amar.kumar 42630
                {
10126 amar.kumar 42631
                  ItemStockPurchaseParams _elem128; // required
42632
                  _elem128 = new ItemStockPurchaseParams();
42633
                  _elem128.read(iprot);
42634
                  this.success.add(_elem128);
6857 amar.kumar 42635
                }
42636
                iprot.readListEnd();
42637
              }
42638
            } else { 
42639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42640
            }
42641
            break;
42642
          default:
42643
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42644
        }
42645
        iprot.readFieldEnd();
42646
      }
42647
      iprot.readStructEnd();
42648
      validate();
42649
    }
42650
 
42651
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42652
      oprot.writeStructBegin(STRUCT_DESC);
42653
 
42654
      if (this.isSetSuccess()) {
42655
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
42656
        {
42657
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10126 amar.kumar 42658
          for (ItemStockPurchaseParams _iter129 : this.success)
6857 amar.kumar 42659
          {
10126 amar.kumar 42660
            _iter129.write(oprot);
6857 amar.kumar 42661
          }
42662
          oprot.writeListEnd();
42663
        }
42664
        oprot.writeFieldEnd();
42665
      }
42666
      oprot.writeFieldStop();
42667
      oprot.writeStructEnd();
42668
    }
42669
 
42670
    @Override
42671
    public String toString() {
42672
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_result(");
42673
      boolean first = true;
42674
 
42675
      sb.append("success:");
42676
      if (this.success == null) {
42677
        sb.append("null");
42678
      } else {
42679
        sb.append(this.success);
42680
      }
42681
      first = false;
42682
      sb.append(")");
42683
      return sb.toString();
42684
    }
42685
 
42686
    public void validate() throws org.apache.thrift.TException {
42687
      // check for required fields
42688
    }
42689
 
42690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42691
      try {
42692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42693
      } catch (org.apache.thrift.TException te) {
42694
        throw new java.io.IOException(te);
42695
      }
42696
    }
42697
 
42698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42699
      try {
42700
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42701
      } catch (org.apache.thrift.TException te) {
42702
        throw new java.io.IOException(te);
42703
      }
42704
    }
42705
 
42706
  }
42707
 
7149 amar.kumar 42708
  public static class getBillableInventoryAndPendingOrders_args implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_args, getBillableInventoryAndPendingOrders_args._Fields>, java.io.Serializable, Cloneable   {
42709
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_args");
42710
 
42711
 
42712
 
42713
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42714
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42715
;
42716
 
42717
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42718
 
42719
      static {
42720
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42721
          byName.put(field.getFieldName(), field);
42722
        }
42723
      }
42724
 
42725
      /**
42726
       * Find the _Fields constant that matches fieldId, or null if its not found.
42727
       */
42728
      public static _Fields findByThriftId(int fieldId) {
42729
        switch(fieldId) {
42730
          default:
42731
            return null;
42732
        }
42733
      }
42734
 
42735
      /**
42736
       * Find the _Fields constant that matches fieldId, throwing an exception
42737
       * if it is not found.
42738
       */
42739
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42740
        _Fields fields = findByThriftId(fieldId);
42741
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42742
        return fields;
42743
      }
42744
 
42745
      /**
42746
       * Find the _Fields constant that matches name, or null if its not found.
42747
       */
42748
      public static _Fields findByName(String name) {
42749
        return byName.get(name);
42750
      }
42751
 
42752
      private final short _thriftId;
42753
      private final String _fieldName;
42754
 
42755
      _Fields(short thriftId, String fieldName) {
42756
        _thriftId = thriftId;
42757
        _fieldName = fieldName;
42758
      }
42759
 
42760
      public short getThriftFieldId() {
42761
        return _thriftId;
42762
      }
42763
 
42764
      public String getFieldName() {
42765
        return _fieldName;
42766
      }
42767
    }
42768
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42769
    static {
42770
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42771
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42772
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_args.class, metaDataMap);
42773
    }
42774
 
42775
    public getBillableInventoryAndPendingOrders_args() {
42776
    }
42777
 
42778
    /**
42779
     * Performs a deep copy on <i>other</i>.
42780
     */
42781
    public getBillableInventoryAndPendingOrders_args(getBillableInventoryAndPendingOrders_args other) {
42782
    }
42783
 
42784
    public getBillableInventoryAndPendingOrders_args deepCopy() {
42785
      return new getBillableInventoryAndPendingOrders_args(this);
42786
    }
42787
 
42788
    @Override
42789
    public void clear() {
42790
    }
42791
 
42792
    public void setFieldValue(_Fields field, Object value) {
42793
      switch (field) {
42794
      }
42795
    }
42796
 
42797
    public Object getFieldValue(_Fields field) {
42798
      switch (field) {
42799
      }
42800
      throw new IllegalStateException();
42801
    }
42802
 
42803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
42804
    public boolean isSet(_Fields field) {
42805
      if (field == null) {
42806
        throw new IllegalArgumentException();
42807
      }
42808
 
42809
      switch (field) {
42810
      }
42811
      throw new IllegalStateException();
42812
    }
42813
 
42814
    @Override
42815
    public boolean equals(Object that) {
42816
      if (that == null)
42817
        return false;
42818
      if (that instanceof getBillableInventoryAndPendingOrders_args)
42819
        return this.equals((getBillableInventoryAndPendingOrders_args)that);
42820
      return false;
42821
    }
42822
 
42823
    public boolean equals(getBillableInventoryAndPendingOrders_args that) {
42824
      if (that == null)
42825
        return false;
42826
 
42827
      return true;
42828
    }
42829
 
42830
    @Override
42831
    public int hashCode() {
42832
      return 0;
42833
    }
42834
 
42835
    public int compareTo(getBillableInventoryAndPendingOrders_args other) {
42836
      if (!getClass().equals(other.getClass())) {
42837
        return getClass().getName().compareTo(other.getClass().getName());
42838
      }
42839
 
42840
      int lastComparison = 0;
42841
      getBillableInventoryAndPendingOrders_args typedOther = (getBillableInventoryAndPendingOrders_args)other;
42842
 
42843
      return 0;
42844
    }
42845
 
42846
    public _Fields fieldForId(int fieldId) {
42847
      return _Fields.findByThriftId(fieldId);
42848
    }
42849
 
42850
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
42851
      org.apache.thrift.protocol.TField field;
42852
      iprot.readStructBegin();
42853
      while (true)
42854
      {
42855
        field = iprot.readFieldBegin();
42856
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
42857
          break;
42858
        }
42859
        switch (field.id) {
42860
          default:
42861
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
42862
        }
42863
        iprot.readFieldEnd();
42864
      }
42865
      iprot.readStructEnd();
42866
      validate();
42867
    }
42868
 
42869
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
42870
      validate();
42871
 
42872
      oprot.writeStructBegin(STRUCT_DESC);
42873
      oprot.writeFieldStop();
42874
      oprot.writeStructEnd();
42875
    }
42876
 
42877
    @Override
42878
    public String toString() {
42879
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_args(");
42880
      boolean first = true;
42881
 
42882
      sb.append(")");
42883
      return sb.toString();
42884
    }
42885
 
42886
    public void validate() throws org.apache.thrift.TException {
42887
      // check for required fields
42888
    }
42889
 
42890
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
42891
      try {
42892
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
42893
      } catch (org.apache.thrift.TException te) {
42894
        throw new java.io.IOException(te);
42895
      }
42896
    }
42897
 
42898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
42899
      try {
42900
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
42901
      } catch (org.apache.thrift.TException te) {
42902
        throw new java.io.IOException(te);
42903
      }
42904
    }
42905
 
42906
  }
42907
 
42908
  public static class getBillableInventoryAndPendingOrders_result implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_result, getBillableInventoryAndPendingOrders_result._Fields>, java.io.Serializable, Cloneable   {
42909
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_result");
42910
 
42911
    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);
42912
 
42913
    private List<AvailableAndReservedStock> success; // required
42914
 
42915
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42916
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42917
      SUCCESS((short)0, "success");
42918
 
42919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
42920
 
42921
      static {
42922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
42923
          byName.put(field.getFieldName(), field);
42924
        }
42925
      }
42926
 
42927
      /**
42928
       * Find the _Fields constant that matches fieldId, or null if its not found.
42929
       */
42930
      public static _Fields findByThriftId(int fieldId) {
42931
        switch(fieldId) {
42932
          case 0: // SUCCESS
42933
            return SUCCESS;
42934
          default:
42935
            return null;
42936
        }
42937
      }
42938
 
42939
      /**
42940
       * Find the _Fields constant that matches fieldId, throwing an exception
42941
       * if it is not found.
42942
       */
42943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
42944
        _Fields fields = findByThriftId(fieldId);
42945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
42946
        return fields;
42947
      }
42948
 
42949
      /**
42950
       * Find the _Fields constant that matches name, or null if its not found.
42951
       */
42952
      public static _Fields findByName(String name) {
42953
        return byName.get(name);
42954
      }
42955
 
42956
      private final short _thriftId;
42957
      private final String _fieldName;
42958
 
42959
      _Fields(short thriftId, String fieldName) {
42960
        _thriftId = thriftId;
42961
        _fieldName = fieldName;
42962
      }
42963
 
42964
      public short getThriftFieldId() {
42965
        return _thriftId;
42966
      }
42967
 
42968
      public String getFieldName() {
42969
        return _fieldName;
42970
      }
42971
    }
42972
 
42973
    // isset id assignments
42974
 
42975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
42976
    static {
42977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
42978
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
42979
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
42980
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
42981
      metaDataMap = Collections.unmodifiableMap(tmpMap);
42982
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_result.class, metaDataMap);
42983
    }
42984
 
42985
    public getBillableInventoryAndPendingOrders_result() {
42986
    }
42987
 
42988
    public getBillableInventoryAndPendingOrders_result(
42989
      List<AvailableAndReservedStock> success)
42990
    {
42991
      this();
42992
      this.success = success;
42993
    }
42994
 
42995
    /**
42996
     * Performs a deep copy on <i>other</i>.
42997
     */
42998
    public getBillableInventoryAndPendingOrders_result(getBillableInventoryAndPendingOrders_result other) {
42999
      if (other.isSetSuccess()) {
43000
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
43001
        for (AvailableAndReservedStock other_element : other.success) {
43002
          __this__success.add(new AvailableAndReservedStock(other_element));
43003
        }
43004
        this.success = __this__success;
43005
      }
43006
    }
43007
 
43008
    public getBillableInventoryAndPendingOrders_result deepCopy() {
43009
      return new getBillableInventoryAndPendingOrders_result(this);
43010
    }
43011
 
43012
    @Override
43013
    public void clear() {
43014
      this.success = null;
43015
    }
43016
 
43017
    public int getSuccessSize() {
43018
      return (this.success == null) ? 0 : this.success.size();
43019
    }
43020
 
43021
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
43022
      return (this.success == null) ? null : this.success.iterator();
43023
    }
43024
 
43025
    public void addToSuccess(AvailableAndReservedStock elem) {
43026
      if (this.success == null) {
43027
        this.success = new ArrayList<AvailableAndReservedStock>();
43028
      }
43029
      this.success.add(elem);
43030
    }
43031
 
43032
    public List<AvailableAndReservedStock> getSuccess() {
43033
      return this.success;
43034
    }
43035
 
43036
    public void setSuccess(List<AvailableAndReservedStock> success) {
43037
      this.success = success;
43038
    }
43039
 
43040
    public void unsetSuccess() {
43041
      this.success = null;
43042
    }
43043
 
43044
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
43045
    public boolean isSetSuccess() {
43046
      return this.success != null;
43047
    }
43048
 
43049
    public void setSuccessIsSet(boolean value) {
43050
      if (!value) {
43051
        this.success = null;
43052
      }
43053
    }
43054
 
43055
    public void setFieldValue(_Fields field, Object value) {
43056
      switch (field) {
43057
      case SUCCESS:
43058
        if (value == null) {
43059
          unsetSuccess();
43060
        } else {
43061
          setSuccess((List<AvailableAndReservedStock>)value);
43062
        }
43063
        break;
43064
 
43065
      }
43066
    }
43067
 
43068
    public Object getFieldValue(_Fields field) {
43069
      switch (field) {
43070
      case SUCCESS:
43071
        return getSuccess();
43072
 
43073
      }
43074
      throw new IllegalStateException();
43075
    }
43076
 
43077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43078
    public boolean isSet(_Fields field) {
43079
      if (field == null) {
43080
        throw new IllegalArgumentException();
43081
      }
43082
 
43083
      switch (field) {
43084
      case SUCCESS:
43085
        return isSetSuccess();
43086
      }
43087
      throw new IllegalStateException();
43088
    }
43089
 
43090
    @Override
43091
    public boolean equals(Object that) {
43092
      if (that == null)
43093
        return false;
43094
      if (that instanceof getBillableInventoryAndPendingOrders_result)
43095
        return this.equals((getBillableInventoryAndPendingOrders_result)that);
43096
      return false;
43097
    }
43098
 
43099
    public boolean equals(getBillableInventoryAndPendingOrders_result that) {
43100
      if (that == null)
43101
        return false;
43102
 
43103
      boolean this_present_success = true && this.isSetSuccess();
43104
      boolean that_present_success = true && that.isSetSuccess();
43105
      if (this_present_success || that_present_success) {
43106
        if (!(this_present_success && that_present_success))
43107
          return false;
43108
        if (!this.success.equals(that.success))
43109
          return false;
43110
      }
43111
 
43112
      return true;
43113
    }
43114
 
43115
    @Override
43116
    public int hashCode() {
43117
      return 0;
43118
    }
43119
 
43120
    public int compareTo(getBillableInventoryAndPendingOrders_result other) {
43121
      if (!getClass().equals(other.getClass())) {
43122
        return getClass().getName().compareTo(other.getClass().getName());
43123
      }
43124
 
43125
      int lastComparison = 0;
43126
      getBillableInventoryAndPendingOrders_result typedOther = (getBillableInventoryAndPendingOrders_result)other;
43127
 
43128
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43129
      if (lastComparison != 0) {
43130
        return lastComparison;
43131
      }
43132
      if (isSetSuccess()) {
43133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43134
        if (lastComparison != 0) {
43135
          return lastComparison;
43136
        }
43137
      }
43138
      return 0;
43139
    }
43140
 
43141
    public _Fields fieldForId(int fieldId) {
43142
      return _Fields.findByThriftId(fieldId);
43143
    }
43144
 
43145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43146
      org.apache.thrift.protocol.TField field;
43147
      iprot.readStructBegin();
43148
      while (true)
43149
      {
43150
        field = iprot.readFieldBegin();
43151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43152
          break;
43153
        }
43154
        switch (field.id) {
43155
          case 0: // SUCCESS
43156
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
43157
              {
10126 amar.kumar 43158
                org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
43159
                this.success = new ArrayList<AvailableAndReservedStock>(_list130.size);
43160
                for (int _i131 = 0; _i131 < _list130.size; ++_i131)
7149 amar.kumar 43161
                {
10126 amar.kumar 43162
                  AvailableAndReservedStock _elem132; // required
43163
                  _elem132 = new AvailableAndReservedStock();
43164
                  _elem132.read(iprot);
43165
                  this.success.add(_elem132);
7149 amar.kumar 43166
                }
43167
                iprot.readListEnd();
43168
              }
43169
            } else { 
43170
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43171
            }
43172
            break;
43173
          default:
43174
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43175
        }
43176
        iprot.readFieldEnd();
43177
      }
43178
      iprot.readStructEnd();
43179
      validate();
43180
    }
43181
 
43182
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43183
      oprot.writeStructBegin(STRUCT_DESC);
43184
 
43185
      if (this.isSetSuccess()) {
43186
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43187
        {
43188
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10126 amar.kumar 43189
          for (AvailableAndReservedStock _iter133 : this.success)
7149 amar.kumar 43190
          {
10126 amar.kumar 43191
            _iter133.write(oprot);
7149 amar.kumar 43192
          }
43193
          oprot.writeListEnd();
43194
        }
43195
        oprot.writeFieldEnd();
43196
      }
43197
      oprot.writeFieldStop();
43198
      oprot.writeStructEnd();
43199
    }
43200
 
43201
    @Override
43202
    public String toString() {
43203
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_result(");
43204
      boolean first = true;
43205
 
43206
      sb.append("success:");
43207
      if (this.success == null) {
43208
        sb.append("null");
43209
      } else {
43210
        sb.append(this.success);
43211
      }
43212
      first = false;
43213
      sb.append(")");
43214
      return sb.toString();
43215
    }
43216
 
43217
    public void validate() throws org.apache.thrift.TException {
43218
      // check for required fields
43219
    }
43220
 
43221
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43222
      try {
43223
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43224
      } catch (org.apache.thrift.TException te) {
43225
        throw new java.io.IOException(te);
43226
      }
43227
    }
43228
 
43229
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43230
      try {
43231
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43232
      } catch (org.apache.thrift.TException te) {
43233
        throw new java.io.IOException(te);
43234
      }
43235
    }
43236
 
43237
  }
43238
 
7281 kshitij.so 43239
  public static class getWarehouseName_args implements org.apache.thrift.TBase<getWarehouseName_args, getWarehouseName_args._Fields>, java.io.Serializable, Cloneable   {
43240
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_args");
43241
 
43242
    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);
43243
 
43244
    private long warehouse_id; // required
43245
 
43246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43248
      WAREHOUSE_ID((short)1, "warehouse_id");
43249
 
43250
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43251
 
43252
      static {
43253
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43254
          byName.put(field.getFieldName(), field);
43255
        }
43256
      }
43257
 
43258
      /**
43259
       * Find the _Fields constant that matches fieldId, or null if its not found.
43260
       */
43261
      public static _Fields findByThriftId(int fieldId) {
43262
        switch(fieldId) {
43263
          case 1: // WAREHOUSE_ID
43264
            return WAREHOUSE_ID;
43265
          default:
43266
            return null;
43267
        }
43268
      }
43269
 
43270
      /**
43271
       * Find the _Fields constant that matches fieldId, throwing an exception
43272
       * if it is not found.
43273
       */
43274
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43275
        _Fields fields = findByThriftId(fieldId);
43276
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43277
        return fields;
43278
      }
43279
 
43280
      /**
43281
       * Find the _Fields constant that matches name, or null if its not found.
43282
       */
43283
      public static _Fields findByName(String name) {
43284
        return byName.get(name);
43285
      }
43286
 
43287
      private final short _thriftId;
43288
      private final String _fieldName;
43289
 
43290
      _Fields(short thriftId, String fieldName) {
43291
        _thriftId = thriftId;
43292
        _fieldName = fieldName;
43293
      }
43294
 
43295
      public short getThriftFieldId() {
43296
        return _thriftId;
43297
      }
43298
 
43299
      public String getFieldName() {
43300
        return _fieldName;
43301
      }
43302
    }
43303
 
43304
    // isset id assignments
43305
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
43306
    private BitSet __isset_bit_vector = new BitSet(1);
43307
 
43308
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43309
    static {
43310
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43311
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43312
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43313
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43314
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_args.class, metaDataMap);
43315
    }
43316
 
43317
    public getWarehouseName_args() {
43318
    }
43319
 
43320
    public getWarehouseName_args(
43321
      long warehouse_id)
43322
    {
43323
      this();
43324
      this.warehouse_id = warehouse_id;
43325
      setWarehouse_idIsSet(true);
43326
    }
43327
 
43328
    /**
43329
     * Performs a deep copy on <i>other</i>.
43330
     */
43331
    public getWarehouseName_args(getWarehouseName_args other) {
43332
      __isset_bit_vector.clear();
43333
      __isset_bit_vector.or(other.__isset_bit_vector);
43334
      this.warehouse_id = other.warehouse_id;
43335
    }
43336
 
43337
    public getWarehouseName_args deepCopy() {
43338
      return new getWarehouseName_args(this);
43339
    }
43340
 
43341
    @Override
43342
    public void clear() {
43343
      setWarehouse_idIsSet(false);
43344
      this.warehouse_id = 0;
43345
    }
43346
 
43347
    public long getWarehouse_id() {
43348
      return this.warehouse_id;
43349
    }
43350
 
43351
    public void setWarehouse_id(long warehouse_id) {
43352
      this.warehouse_id = warehouse_id;
43353
      setWarehouse_idIsSet(true);
43354
    }
43355
 
43356
    public void unsetWarehouse_id() {
43357
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
43358
    }
43359
 
43360
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
43361
    public boolean isSetWarehouse_id() {
43362
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
43363
    }
43364
 
43365
    public void setWarehouse_idIsSet(boolean value) {
43366
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
43367
    }
43368
 
43369
    public void setFieldValue(_Fields field, Object value) {
43370
      switch (field) {
43371
      case WAREHOUSE_ID:
43372
        if (value == null) {
43373
          unsetWarehouse_id();
43374
        } else {
43375
          setWarehouse_id((Long)value);
43376
        }
43377
        break;
43378
 
43379
      }
43380
    }
43381
 
43382
    public Object getFieldValue(_Fields field) {
43383
      switch (field) {
43384
      case WAREHOUSE_ID:
43385
        return Long.valueOf(getWarehouse_id());
43386
 
43387
      }
43388
      throw new IllegalStateException();
43389
    }
43390
 
43391
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43392
    public boolean isSet(_Fields field) {
43393
      if (field == null) {
43394
        throw new IllegalArgumentException();
43395
      }
43396
 
43397
      switch (field) {
43398
      case WAREHOUSE_ID:
43399
        return isSetWarehouse_id();
43400
      }
43401
      throw new IllegalStateException();
43402
    }
43403
 
43404
    @Override
43405
    public boolean equals(Object that) {
43406
      if (that == null)
43407
        return false;
43408
      if (that instanceof getWarehouseName_args)
43409
        return this.equals((getWarehouseName_args)that);
43410
      return false;
43411
    }
43412
 
43413
    public boolean equals(getWarehouseName_args that) {
43414
      if (that == null)
43415
        return false;
43416
 
43417
      boolean this_present_warehouse_id = true;
43418
      boolean that_present_warehouse_id = true;
43419
      if (this_present_warehouse_id || that_present_warehouse_id) {
43420
        if (!(this_present_warehouse_id && that_present_warehouse_id))
43421
          return false;
43422
        if (this.warehouse_id != that.warehouse_id)
43423
          return false;
43424
      }
43425
 
43426
      return true;
43427
    }
43428
 
43429
    @Override
43430
    public int hashCode() {
43431
      return 0;
43432
    }
43433
 
43434
    public int compareTo(getWarehouseName_args other) {
43435
      if (!getClass().equals(other.getClass())) {
43436
        return getClass().getName().compareTo(other.getClass().getName());
43437
      }
43438
 
43439
      int lastComparison = 0;
43440
      getWarehouseName_args typedOther = (getWarehouseName_args)other;
43441
 
43442
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
43443
      if (lastComparison != 0) {
43444
        return lastComparison;
43445
      }
43446
      if (isSetWarehouse_id()) {
43447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
43448
        if (lastComparison != 0) {
43449
          return lastComparison;
43450
        }
43451
      }
43452
      return 0;
43453
    }
43454
 
43455
    public _Fields fieldForId(int fieldId) {
43456
      return _Fields.findByThriftId(fieldId);
43457
    }
43458
 
43459
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43460
      org.apache.thrift.protocol.TField field;
43461
      iprot.readStructBegin();
43462
      while (true)
43463
      {
43464
        field = iprot.readFieldBegin();
43465
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43466
          break;
43467
        }
43468
        switch (field.id) {
43469
          case 1: // WAREHOUSE_ID
43470
            if (field.type == org.apache.thrift.protocol.TType.I64) {
43471
              this.warehouse_id = iprot.readI64();
43472
              setWarehouse_idIsSet(true);
43473
            } else { 
43474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43475
            }
43476
            break;
43477
          default:
43478
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43479
        }
43480
        iprot.readFieldEnd();
43481
      }
43482
      iprot.readStructEnd();
43483
      validate();
43484
    }
43485
 
43486
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43487
      validate();
43488
 
43489
      oprot.writeStructBegin(STRUCT_DESC);
43490
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
43491
      oprot.writeI64(this.warehouse_id);
43492
      oprot.writeFieldEnd();
43493
      oprot.writeFieldStop();
43494
      oprot.writeStructEnd();
43495
    }
43496
 
43497
    @Override
43498
    public String toString() {
43499
      StringBuilder sb = new StringBuilder("getWarehouseName_args(");
43500
      boolean first = true;
43501
 
43502
      sb.append("warehouse_id:");
43503
      sb.append(this.warehouse_id);
43504
      first = false;
43505
      sb.append(")");
43506
      return sb.toString();
43507
    }
43508
 
43509
    public void validate() throws org.apache.thrift.TException {
43510
      // check for required fields
43511
    }
43512
 
43513
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43514
      try {
43515
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43516
      } catch (org.apache.thrift.TException te) {
43517
        throw new java.io.IOException(te);
43518
      }
43519
    }
43520
 
43521
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43522
      try {
43523
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
43524
        __isset_bit_vector = new BitSet(1);
43525
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43526
      } catch (org.apache.thrift.TException te) {
43527
        throw new java.io.IOException(te);
43528
      }
43529
    }
43530
 
43531
  }
43532
 
43533
  public static class getWarehouseName_result implements org.apache.thrift.TBase<getWarehouseName_result, getWarehouseName_result._Fields>, java.io.Serializable, Cloneable   {
43534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_result");
43535
 
43536
    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);
43537
 
43538
    private String success; // required
43539
 
43540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43541
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43542
      SUCCESS((short)0, "success");
43543
 
43544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43545
 
43546
      static {
43547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43548
          byName.put(field.getFieldName(), field);
43549
        }
43550
      }
43551
 
43552
      /**
43553
       * Find the _Fields constant that matches fieldId, or null if its not found.
43554
       */
43555
      public static _Fields findByThriftId(int fieldId) {
43556
        switch(fieldId) {
43557
          case 0: // SUCCESS
43558
            return SUCCESS;
43559
          default:
43560
            return null;
43561
        }
43562
      }
43563
 
43564
      /**
43565
       * Find the _Fields constant that matches fieldId, throwing an exception
43566
       * if it is not found.
43567
       */
43568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43569
        _Fields fields = findByThriftId(fieldId);
43570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43571
        return fields;
43572
      }
43573
 
43574
      /**
43575
       * Find the _Fields constant that matches name, or null if its not found.
43576
       */
43577
      public static _Fields findByName(String name) {
43578
        return byName.get(name);
43579
      }
43580
 
43581
      private final short _thriftId;
43582
      private final String _fieldName;
43583
 
43584
      _Fields(short thriftId, String fieldName) {
43585
        _thriftId = thriftId;
43586
        _fieldName = fieldName;
43587
      }
43588
 
43589
      public short getThriftFieldId() {
43590
        return _thriftId;
43591
      }
43592
 
43593
      public String getFieldName() {
43594
        return _fieldName;
43595
      }
43596
    }
43597
 
43598
    // isset id assignments
43599
 
43600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43601
    static {
43602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43603
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43604
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
43605
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43606
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_result.class, metaDataMap);
43607
    }
43608
 
43609
    public getWarehouseName_result() {
43610
    }
43611
 
43612
    public getWarehouseName_result(
43613
      String success)
43614
    {
43615
      this();
43616
      this.success = success;
43617
    }
43618
 
43619
    /**
43620
     * Performs a deep copy on <i>other</i>.
43621
     */
43622
    public getWarehouseName_result(getWarehouseName_result other) {
43623
      if (other.isSetSuccess()) {
43624
        this.success = other.success;
43625
      }
43626
    }
43627
 
43628
    public getWarehouseName_result deepCopy() {
43629
      return new getWarehouseName_result(this);
43630
    }
43631
 
43632
    @Override
43633
    public void clear() {
43634
      this.success = null;
43635
    }
43636
 
43637
    public String getSuccess() {
43638
      return this.success;
43639
    }
43640
 
43641
    public void setSuccess(String success) {
43642
      this.success = success;
43643
    }
43644
 
43645
    public void unsetSuccess() {
43646
      this.success = null;
43647
    }
43648
 
43649
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
43650
    public boolean isSetSuccess() {
43651
      return this.success != null;
43652
    }
43653
 
43654
    public void setSuccessIsSet(boolean value) {
43655
      if (!value) {
43656
        this.success = null;
43657
      }
43658
    }
43659
 
43660
    public void setFieldValue(_Fields field, Object value) {
43661
      switch (field) {
43662
      case SUCCESS:
43663
        if (value == null) {
43664
          unsetSuccess();
43665
        } else {
43666
          setSuccess((String)value);
43667
        }
43668
        break;
43669
 
43670
      }
43671
    }
43672
 
43673
    public Object getFieldValue(_Fields field) {
43674
      switch (field) {
43675
      case SUCCESS:
43676
        return getSuccess();
43677
 
43678
      }
43679
      throw new IllegalStateException();
43680
    }
43681
 
43682
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43683
    public boolean isSet(_Fields field) {
43684
      if (field == null) {
43685
        throw new IllegalArgumentException();
43686
      }
43687
 
43688
      switch (field) {
43689
      case SUCCESS:
43690
        return isSetSuccess();
43691
      }
43692
      throw new IllegalStateException();
43693
    }
43694
 
43695
    @Override
43696
    public boolean equals(Object that) {
43697
      if (that == null)
43698
        return false;
43699
      if (that instanceof getWarehouseName_result)
43700
        return this.equals((getWarehouseName_result)that);
43701
      return false;
43702
    }
43703
 
43704
    public boolean equals(getWarehouseName_result that) {
43705
      if (that == null)
43706
        return false;
43707
 
43708
      boolean this_present_success = true && this.isSetSuccess();
43709
      boolean that_present_success = true && that.isSetSuccess();
43710
      if (this_present_success || that_present_success) {
43711
        if (!(this_present_success && that_present_success))
43712
          return false;
43713
        if (!this.success.equals(that.success))
43714
          return false;
43715
      }
43716
 
43717
      return true;
43718
    }
43719
 
43720
    @Override
43721
    public int hashCode() {
43722
      return 0;
43723
    }
43724
 
43725
    public int compareTo(getWarehouseName_result other) {
43726
      if (!getClass().equals(other.getClass())) {
43727
        return getClass().getName().compareTo(other.getClass().getName());
43728
      }
43729
 
43730
      int lastComparison = 0;
43731
      getWarehouseName_result typedOther = (getWarehouseName_result)other;
43732
 
43733
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
43734
      if (lastComparison != 0) {
43735
        return lastComparison;
43736
      }
43737
      if (isSetSuccess()) {
43738
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
43739
        if (lastComparison != 0) {
43740
          return lastComparison;
43741
        }
43742
      }
43743
      return 0;
43744
    }
43745
 
43746
    public _Fields fieldForId(int fieldId) {
43747
      return _Fields.findByThriftId(fieldId);
43748
    }
43749
 
43750
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
43751
      org.apache.thrift.protocol.TField field;
43752
      iprot.readStructBegin();
43753
      while (true)
43754
      {
43755
        field = iprot.readFieldBegin();
43756
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
43757
          break;
43758
        }
43759
        switch (field.id) {
43760
          case 0: // SUCCESS
43761
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
43762
              this.success = iprot.readString();
43763
            } else { 
43764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43765
            }
43766
            break;
43767
          default:
43768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
43769
        }
43770
        iprot.readFieldEnd();
43771
      }
43772
      iprot.readStructEnd();
43773
      validate();
43774
    }
43775
 
43776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
43777
      oprot.writeStructBegin(STRUCT_DESC);
43778
 
43779
      if (this.isSetSuccess()) {
43780
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
43781
        oprot.writeString(this.success);
43782
        oprot.writeFieldEnd();
43783
      }
43784
      oprot.writeFieldStop();
43785
      oprot.writeStructEnd();
43786
    }
43787
 
43788
    @Override
43789
    public String toString() {
43790
      StringBuilder sb = new StringBuilder("getWarehouseName_result(");
43791
      boolean first = true;
43792
 
43793
      sb.append("success:");
43794
      if (this.success == null) {
43795
        sb.append("null");
43796
      } else {
43797
        sb.append(this.success);
43798
      }
43799
      first = false;
43800
      sb.append(")");
43801
      return sb.toString();
43802
    }
43803
 
43804
    public void validate() throws org.apache.thrift.TException {
43805
      // check for required fields
43806
    }
43807
 
43808
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
43809
      try {
43810
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
43811
      } catch (org.apache.thrift.TException te) {
43812
        throw new java.io.IOException(te);
43813
      }
43814
    }
43815
 
43816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
43817
      try {
43818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
43819
      } catch (org.apache.thrift.TException te) {
43820
        throw new java.io.IOException(te);
43821
      }
43822
    }
43823
 
43824
  }
43825
 
43826
  public static class getAmazonInventoryForItem_args implements org.apache.thrift.TBase<getAmazonInventoryForItem_args, getAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
43827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_args");
43828
 
43829
    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);
43830
 
43831
    private long item_id; // required
43832
 
43833
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43834
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43835
      ITEM_ID((short)1, "item_id");
43836
 
43837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43838
 
43839
      static {
43840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
43841
          byName.put(field.getFieldName(), field);
43842
        }
43843
      }
43844
 
43845
      /**
43846
       * Find the _Fields constant that matches fieldId, or null if its not found.
43847
       */
43848
      public static _Fields findByThriftId(int fieldId) {
43849
        switch(fieldId) {
43850
          case 1: // ITEM_ID
43851
            return ITEM_ID;
43852
          default:
43853
            return null;
43854
        }
43855
      }
43856
 
43857
      /**
43858
       * Find the _Fields constant that matches fieldId, throwing an exception
43859
       * if it is not found.
43860
       */
43861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
43862
        _Fields fields = findByThriftId(fieldId);
43863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
43864
        return fields;
43865
      }
43866
 
43867
      /**
43868
       * Find the _Fields constant that matches name, or null if its not found.
43869
       */
43870
      public static _Fields findByName(String name) {
43871
        return byName.get(name);
43872
      }
43873
 
43874
      private final short _thriftId;
43875
      private final String _fieldName;
43876
 
43877
      _Fields(short thriftId, String fieldName) {
43878
        _thriftId = thriftId;
43879
        _fieldName = fieldName;
43880
      }
43881
 
43882
      public short getThriftFieldId() {
43883
        return _thriftId;
43884
      }
43885
 
43886
      public String getFieldName() {
43887
        return _fieldName;
43888
      }
43889
    }
43890
 
43891
    // isset id assignments
43892
    private static final int __ITEM_ID_ISSET_ID = 0;
43893
    private BitSet __isset_bit_vector = new BitSet(1);
43894
 
43895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
43896
    static {
43897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
43898
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
43899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
43900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
43901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_args.class, metaDataMap);
43902
    }
43903
 
43904
    public getAmazonInventoryForItem_args() {
43905
    }
43906
 
43907
    public getAmazonInventoryForItem_args(
43908
      long item_id)
43909
    {
43910
      this();
43911
      this.item_id = item_id;
43912
      setItem_idIsSet(true);
43913
    }
43914
 
43915
    /**
43916
     * Performs a deep copy on <i>other</i>.
43917
     */
43918
    public getAmazonInventoryForItem_args(getAmazonInventoryForItem_args other) {
43919
      __isset_bit_vector.clear();
43920
      __isset_bit_vector.or(other.__isset_bit_vector);
43921
      this.item_id = other.item_id;
43922
    }
43923
 
43924
    public getAmazonInventoryForItem_args deepCopy() {
43925
      return new getAmazonInventoryForItem_args(this);
43926
    }
43927
 
43928
    @Override
43929
    public void clear() {
43930
      setItem_idIsSet(false);
43931
      this.item_id = 0;
43932
    }
43933
 
43934
    public long getItem_id() {
43935
      return this.item_id;
43936
    }
43937
 
43938
    public void setItem_id(long item_id) {
43939
      this.item_id = item_id;
43940
      setItem_idIsSet(true);
43941
    }
43942
 
43943
    public void unsetItem_id() {
43944
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
43945
    }
43946
 
43947
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
43948
    public boolean isSetItem_id() {
43949
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
43950
    }
43951
 
43952
    public void setItem_idIsSet(boolean value) {
43953
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
43954
    }
43955
 
43956
    public void setFieldValue(_Fields field, Object value) {
43957
      switch (field) {
43958
      case ITEM_ID:
43959
        if (value == null) {
43960
          unsetItem_id();
43961
        } else {
43962
          setItem_id((Long)value);
43963
        }
43964
        break;
43965
 
43966
      }
43967
    }
43968
 
43969
    public Object getFieldValue(_Fields field) {
43970
      switch (field) {
43971
      case ITEM_ID:
43972
        return Long.valueOf(getItem_id());
43973
 
43974
      }
43975
      throw new IllegalStateException();
43976
    }
43977
 
43978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
43979
    public boolean isSet(_Fields field) {
43980
      if (field == null) {
43981
        throw new IllegalArgumentException();
43982
      }
43983
 
43984
      switch (field) {
43985
      case ITEM_ID:
43986
        return isSetItem_id();
43987
      }
43988
      throw new IllegalStateException();
43989
    }
43990
 
43991
    @Override
43992
    public boolean equals(Object that) {
43993
      if (that == null)
43994
        return false;
43995
      if (that instanceof getAmazonInventoryForItem_args)
43996
        return this.equals((getAmazonInventoryForItem_args)that);
43997
      return false;
43998
    }
43999
 
44000
    public boolean equals(getAmazonInventoryForItem_args that) {
44001
      if (that == null)
44002
        return false;
44003
 
44004
      boolean this_present_item_id = true;
44005
      boolean that_present_item_id = true;
44006
      if (this_present_item_id || that_present_item_id) {
44007
        if (!(this_present_item_id && that_present_item_id))
44008
          return false;
44009
        if (this.item_id != that.item_id)
44010
          return false;
44011
      }
44012
 
44013
      return true;
44014
    }
44015
 
44016
    @Override
44017
    public int hashCode() {
44018
      return 0;
44019
    }
44020
 
44021
    public int compareTo(getAmazonInventoryForItem_args other) {
44022
      if (!getClass().equals(other.getClass())) {
44023
        return getClass().getName().compareTo(other.getClass().getName());
44024
      }
44025
 
44026
      int lastComparison = 0;
44027
      getAmazonInventoryForItem_args typedOther = (getAmazonInventoryForItem_args)other;
44028
 
44029
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
44030
      if (lastComparison != 0) {
44031
        return lastComparison;
44032
      }
44033
      if (isSetItem_id()) {
44034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
44035
        if (lastComparison != 0) {
44036
          return lastComparison;
44037
        }
44038
      }
44039
      return 0;
44040
    }
44041
 
44042
    public _Fields fieldForId(int fieldId) {
44043
      return _Fields.findByThriftId(fieldId);
44044
    }
44045
 
44046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44047
      org.apache.thrift.protocol.TField field;
44048
      iprot.readStructBegin();
44049
      while (true)
44050
      {
44051
        field = iprot.readFieldBegin();
44052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44053
          break;
44054
        }
44055
        switch (field.id) {
44056
          case 1: // ITEM_ID
44057
            if (field.type == org.apache.thrift.protocol.TType.I64) {
44058
              this.item_id = iprot.readI64();
44059
              setItem_idIsSet(true);
44060
            } else { 
44061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44062
            }
44063
            break;
44064
          default:
44065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44066
        }
44067
        iprot.readFieldEnd();
44068
      }
44069
      iprot.readStructEnd();
44070
      validate();
44071
    }
44072
 
44073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44074
      validate();
44075
 
44076
      oprot.writeStructBegin(STRUCT_DESC);
44077
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
44078
      oprot.writeI64(this.item_id);
44079
      oprot.writeFieldEnd();
44080
      oprot.writeFieldStop();
44081
      oprot.writeStructEnd();
44082
    }
44083
 
44084
    @Override
44085
    public String toString() {
44086
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_args(");
44087
      boolean first = true;
44088
 
44089
      sb.append("item_id:");
44090
      sb.append(this.item_id);
44091
      first = false;
44092
      sb.append(")");
44093
      return sb.toString();
44094
    }
44095
 
44096
    public void validate() throws org.apache.thrift.TException {
44097
      // check for required fields
44098
    }
44099
 
44100
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44101
      try {
44102
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44103
      } catch (org.apache.thrift.TException te) {
44104
        throw new java.io.IOException(te);
44105
      }
44106
    }
44107
 
44108
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44109
      try {
44110
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
44111
        __isset_bit_vector = new BitSet(1);
44112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44113
      } catch (org.apache.thrift.TException te) {
44114
        throw new java.io.IOException(te);
44115
      }
44116
    }
44117
 
44118
  }
44119
 
44120
  public static class getAmazonInventoryForItem_result implements org.apache.thrift.TBase<getAmazonInventoryForItem_result, getAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
44121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_result");
44122
 
44123
    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);
44124
 
44125
    private AmazonInventorySnapshot success; // required
44126
 
44127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44129
      SUCCESS((short)0, "success");
44130
 
44131
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44132
 
44133
      static {
44134
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44135
          byName.put(field.getFieldName(), field);
44136
        }
44137
      }
44138
 
44139
      /**
44140
       * Find the _Fields constant that matches fieldId, or null if its not found.
44141
       */
44142
      public static _Fields findByThriftId(int fieldId) {
44143
        switch(fieldId) {
44144
          case 0: // SUCCESS
44145
            return SUCCESS;
44146
          default:
44147
            return null;
44148
        }
44149
      }
44150
 
44151
      /**
44152
       * Find the _Fields constant that matches fieldId, throwing an exception
44153
       * if it is not found.
44154
       */
44155
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44156
        _Fields fields = findByThriftId(fieldId);
44157
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44158
        return fields;
44159
      }
44160
 
44161
      /**
44162
       * Find the _Fields constant that matches name, or null if its not found.
44163
       */
44164
      public static _Fields findByName(String name) {
44165
        return byName.get(name);
44166
      }
44167
 
44168
      private final short _thriftId;
44169
      private final String _fieldName;
44170
 
44171
      _Fields(short thriftId, String fieldName) {
44172
        _thriftId = thriftId;
44173
        _fieldName = fieldName;
44174
      }
44175
 
44176
      public short getThriftFieldId() {
44177
        return _thriftId;
44178
      }
44179
 
44180
      public String getFieldName() {
44181
        return _fieldName;
44182
      }
44183
    }
44184
 
44185
    // isset id assignments
44186
 
44187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44188
    static {
44189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44190
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44191
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
44192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_result.class, metaDataMap);
44194
    }
44195
 
44196
    public getAmazonInventoryForItem_result() {
44197
    }
44198
 
44199
    public getAmazonInventoryForItem_result(
44200
      AmazonInventorySnapshot success)
44201
    {
44202
      this();
44203
      this.success = success;
44204
    }
44205
 
44206
    /**
44207
     * Performs a deep copy on <i>other</i>.
44208
     */
44209
    public getAmazonInventoryForItem_result(getAmazonInventoryForItem_result other) {
44210
      if (other.isSetSuccess()) {
44211
        this.success = new AmazonInventorySnapshot(other.success);
44212
      }
44213
    }
44214
 
44215
    public getAmazonInventoryForItem_result deepCopy() {
44216
      return new getAmazonInventoryForItem_result(this);
44217
    }
44218
 
44219
    @Override
44220
    public void clear() {
44221
      this.success = null;
44222
    }
44223
 
44224
    public AmazonInventorySnapshot getSuccess() {
44225
      return this.success;
44226
    }
44227
 
44228
    public void setSuccess(AmazonInventorySnapshot success) {
44229
      this.success = success;
44230
    }
44231
 
44232
    public void unsetSuccess() {
44233
      this.success = null;
44234
    }
44235
 
44236
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
44237
    public boolean isSetSuccess() {
44238
      return this.success != null;
44239
    }
44240
 
44241
    public void setSuccessIsSet(boolean value) {
44242
      if (!value) {
44243
        this.success = null;
44244
      }
44245
    }
44246
 
44247
    public void setFieldValue(_Fields field, Object value) {
44248
      switch (field) {
44249
      case SUCCESS:
44250
        if (value == null) {
44251
          unsetSuccess();
44252
        } else {
44253
          setSuccess((AmazonInventorySnapshot)value);
44254
        }
44255
        break;
44256
 
44257
      }
44258
    }
44259
 
44260
    public Object getFieldValue(_Fields field) {
44261
      switch (field) {
44262
      case SUCCESS:
44263
        return getSuccess();
44264
 
44265
      }
44266
      throw new IllegalStateException();
44267
    }
44268
 
44269
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44270
    public boolean isSet(_Fields field) {
44271
      if (field == null) {
44272
        throw new IllegalArgumentException();
44273
      }
44274
 
44275
      switch (field) {
44276
      case SUCCESS:
44277
        return isSetSuccess();
44278
      }
44279
      throw new IllegalStateException();
44280
    }
44281
 
44282
    @Override
44283
    public boolean equals(Object that) {
44284
      if (that == null)
44285
        return false;
44286
      if (that instanceof getAmazonInventoryForItem_result)
44287
        return this.equals((getAmazonInventoryForItem_result)that);
44288
      return false;
44289
    }
44290
 
44291
    public boolean equals(getAmazonInventoryForItem_result that) {
44292
      if (that == null)
44293
        return false;
44294
 
44295
      boolean this_present_success = true && this.isSetSuccess();
44296
      boolean that_present_success = true && that.isSetSuccess();
44297
      if (this_present_success || that_present_success) {
44298
        if (!(this_present_success && that_present_success))
44299
          return false;
44300
        if (!this.success.equals(that.success))
44301
          return false;
44302
      }
44303
 
44304
      return true;
44305
    }
44306
 
44307
    @Override
44308
    public int hashCode() {
44309
      return 0;
44310
    }
44311
 
44312
    public int compareTo(getAmazonInventoryForItem_result other) {
44313
      if (!getClass().equals(other.getClass())) {
44314
        return getClass().getName().compareTo(other.getClass().getName());
44315
      }
44316
 
44317
      int lastComparison = 0;
44318
      getAmazonInventoryForItem_result typedOther = (getAmazonInventoryForItem_result)other;
44319
 
44320
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
44321
      if (lastComparison != 0) {
44322
        return lastComparison;
44323
      }
44324
      if (isSetSuccess()) {
44325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
44326
        if (lastComparison != 0) {
44327
          return lastComparison;
44328
        }
44329
      }
44330
      return 0;
44331
    }
44332
 
44333
    public _Fields fieldForId(int fieldId) {
44334
      return _Fields.findByThriftId(fieldId);
44335
    }
44336
 
44337
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44338
      org.apache.thrift.protocol.TField field;
44339
      iprot.readStructBegin();
44340
      while (true)
44341
      {
44342
        field = iprot.readFieldBegin();
44343
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44344
          break;
44345
        }
44346
        switch (field.id) {
44347
          case 0: // SUCCESS
44348
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
44349
              this.success = new AmazonInventorySnapshot();
44350
              this.success.read(iprot);
44351
            } else { 
44352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44353
            }
44354
            break;
44355
          default:
44356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44357
        }
44358
        iprot.readFieldEnd();
44359
      }
44360
      iprot.readStructEnd();
44361
      validate();
44362
    }
44363
 
44364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44365
      oprot.writeStructBegin(STRUCT_DESC);
44366
 
44367
      if (this.isSetSuccess()) {
44368
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44369
        this.success.write(oprot);
44370
        oprot.writeFieldEnd();
44371
      }
44372
      oprot.writeFieldStop();
44373
      oprot.writeStructEnd();
44374
    }
44375
 
44376
    @Override
44377
    public String toString() {
44378
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_result(");
44379
      boolean first = true;
44380
 
44381
      sb.append("success:");
44382
      if (this.success == null) {
44383
        sb.append("null");
44384
      } else {
44385
        sb.append(this.success);
44386
      }
44387
      first = false;
44388
      sb.append(")");
44389
      return sb.toString();
44390
    }
44391
 
44392
    public void validate() throws org.apache.thrift.TException {
44393
      // check for required fields
44394
    }
44395
 
44396
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44397
      try {
44398
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44399
      } catch (org.apache.thrift.TException te) {
44400
        throw new java.io.IOException(te);
44401
      }
44402
    }
44403
 
44404
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44405
      try {
44406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44407
      } catch (org.apache.thrift.TException te) {
44408
        throw new java.io.IOException(te);
44409
      }
44410
    }
44411
 
44412
  }
44413
 
44414
  public static class getAllAmazonInventory_args implements org.apache.thrift.TBase<getAllAmazonInventory_args, getAllAmazonInventory_args._Fields>, java.io.Serializable, Cloneable   {
44415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_args");
44416
 
44417
 
44418
 
44419
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44420
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44421
;
44422
 
44423
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44424
 
44425
      static {
44426
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44427
          byName.put(field.getFieldName(), field);
44428
        }
44429
      }
44430
 
44431
      /**
44432
       * Find the _Fields constant that matches fieldId, or null if its not found.
44433
       */
44434
      public static _Fields findByThriftId(int fieldId) {
44435
        switch(fieldId) {
44436
          default:
44437
            return null;
44438
        }
44439
      }
44440
 
44441
      /**
44442
       * Find the _Fields constant that matches fieldId, throwing an exception
44443
       * if it is not found.
44444
       */
44445
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44446
        _Fields fields = findByThriftId(fieldId);
44447
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44448
        return fields;
44449
      }
44450
 
44451
      /**
44452
       * Find the _Fields constant that matches name, or null if its not found.
44453
       */
44454
      public static _Fields findByName(String name) {
44455
        return byName.get(name);
44456
      }
44457
 
44458
      private final short _thriftId;
44459
      private final String _fieldName;
44460
 
44461
      _Fields(short thriftId, String fieldName) {
44462
        _thriftId = thriftId;
44463
        _fieldName = fieldName;
44464
      }
44465
 
44466
      public short getThriftFieldId() {
44467
        return _thriftId;
44468
      }
44469
 
44470
      public String getFieldName() {
44471
        return _fieldName;
44472
      }
44473
    }
44474
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44475
    static {
44476
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_args.class, metaDataMap);
44479
    }
44480
 
44481
    public getAllAmazonInventory_args() {
44482
    }
44483
 
44484
    /**
44485
     * Performs a deep copy on <i>other</i>.
44486
     */
44487
    public getAllAmazonInventory_args(getAllAmazonInventory_args other) {
44488
    }
44489
 
44490
    public getAllAmazonInventory_args deepCopy() {
44491
      return new getAllAmazonInventory_args(this);
44492
    }
44493
 
44494
    @Override
44495
    public void clear() {
44496
    }
44497
 
44498
    public void setFieldValue(_Fields field, Object value) {
44499
      switch (field) {
44500
      }
44501
    }
44502
 
44503
    public Object getFieldValue(_Fields field) {
44504
      switch (field) {
44505
      }
44506
      throw new IllegalStateException();
44507
    }
44508
 
44509
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44510
    public boolean isSet(_Fields field) {
44511
      if (field == null) {
44512
        throw new IllegalArgumentException();
44513
      }
44514
 
44515
      switch (field) {
44516
      }
44517
      throw new IllegalStateException();
44518
    }
44519
 
44520
    @Override
44521
    public boolean equals(Object that) {
44522
      if (that == null)
44523
        return false;
44524
      if (that instanceof getAllAmazonInventory_args)
44525
        return this.equals((getAllAmazonInventory_args)that);
44526
      return false;
44527
    }
44528
 
44529
    public boolean equals(getAllAmazonInventory_args that) {
44530
      if (that == null)
44531
        return false;
44532
 
44533
      return true;
44534
    }
44535
 
44536
    @Override
44537
    public int hashCode() {
44538
      return 0;
44539
    }
44540
 
44541
    public int compareTo(getAllAmazonInventory_args other) {
44542
      if (!getClass().equals(other.getClass())) {
44543
        return getClass().getName().compareTo(other.getClass().getName());
44544
      }
44545
 
44546
      int lastComparison = 0;
44547
      getAllAmazonInventory_args typedOther = (getAllAmazonInventory_args)other;
44548
 
44549
      return 0;
44550
    }
44551
 
44552
    public _Fields fieldForId(int fieldId) {
44553
      return _Fields.findByThriftId(fieldId);
44554
    }
44555
 
44556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44557
      org.apache.thrift.protocol.TField field;
44558
      iprot.readStructBegin();
44559
      while (true)
44560
      {
44561
        field = iprot.readFieldBegin();
44562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44563
          break;
44564
        }
44565
        switch (field.id) {
44566
          default:
44567
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44568
        }
44569
        iprot.readFieldEnd();
44570
      }
44571
      iprot.readStructEnd();
44572
      validate();
44573
    }
44574
 
44575
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44576
      validate();
44577
 
44578
      oprot.writeStructBegin(STRUCT_DESC);
44579
      oprot.writeFieldStop();
44580
      oprot.writeStructEnd();
44581
    }
44582
 
44583
    @Override
44584
    public String toString() {
44585
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_args(");
44586
      boolean first = true;
44587
 
44588
      sb.append(")");
44589
      return sb.toString();
44590
    }
44591
 
44592
    public void validate() throws org.apache.thrift.TException {
44593
      // check for required fields
44594
    }
44595
 
44596
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44597
      try {
44598
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44599
      } catch (org.apache.thrift.TException te) {
44600
        throw new java.io.IOException(te);
44601
      }
44602
    }
44603
 
44604
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44605
      try {
44606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44607
      } catch (org.apache.thrift.TException te) {
44608
        throw new java.io.IOException(te);
44609
      }
44610
    }
44611
 
44612
  }
44613
 
44614
  public static class getAllAmazonInventory_result implements org.apache.thrift.TBase<getAllAmazonInventory_result, getAllAmazonInventory_result._Fields>, java.io.Serializable, Cloneable   {
44615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_result");
44616
 
44617
    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);
44618
 
44619
    private List<AmazonInventorySnapshot> success; // required
44620
 
44621
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44622
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44623
      SUCCESS((short)0, "success");
44624
 
44625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44626
 
44627
      static {
44628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44629
          byName.put(field.getFieldName(), field);
44630
        }
44631
      }
44632
 
44633
      /**
44634
       * Find the _Fields constant that matches fieldId, or null if its not found.
44635
       */
44636
      public static _Fields findByThriftId(int fieldId) {
44637
        switch(fieldId) {
44638
          case 0: // SUCCESS
44639
            return SUCCESS;
44640
          default:
44641
            return null;
44642
        }
44643
      }
44644
 
44645
      /**
44646
       * Find the _Fields constant that matches fieldId, throwing an exception
44647
       * if it is not found.
44648
       */
44649
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44650
        _Fields fields = findByThriftId(fieldId);
44651
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44652
        return fields;
44653
      }
44654
 
44655
      /**
44656
       * Find the _Fields constant that matches name, or null if its not found.
44657
       */
44658
      public static _Fields findByName(String name) {
44659
        return byName.get(name);
44660
      }
44661
 
44662
      private final short _thriftId;
44663
      private final String _fieldName;
44664
 
44665
      _Fields(short thriftId, String fieldName) {
44666
        _thriftId = thriftId;
44667
        _fieldName = fieldName;
44668
      }
44669
 
44670
      public short getThriftFieldId() {
44671
        return _thriftId;
44672
      }
44673
 
44674
      public String getFieldName() {
44675
        return _fieldName;
44676
      }
44677
    }
44678
 
44679
    // isset id assignments
44680
 
44681
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44682
    static {
44683
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44684
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44685
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
44686
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class))));
44687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_result.class, metaDataMap);
44689
    }
44690
 
44691
    public getAllAmazonInventory_result() {
44692
    }
44693
 
44694
    public getAllAmazonInventory_result(
44695
      List<AmazonInventorySnapshot> success)
44696
    {
44697
      this();
44698
      this.success = success;
44699
    }
44700
 
44701
    /**
44702
     * Performs a deep copy on <i>other</i>.
44703
     */
44704
    public getAllAmazonInventory_result(getAllAmazonInventory_result other) {
44705
      if (other.isSetSuccess()) {
44706
        List<AmazonInventorySnapshot> __this__success = new ArrayList<AmazonInventorySnapshot>();
44707
        for (AmazonInventorySnapshot other_element : other.success) {
44708
          __this__success.add(new AmazonInventorySnapshot(other_element));
44709
        }
44710
        this.success = __this__success;
44711
      }
44712
    }
44713
 
44714
    public getAllAmazonInventory_result deepCopy() {
44715
      return new getAllAmazonInventory_result(this);
44716
    }
44717
 
44718
    @Override
44719
    public void clear() {
44720
      this.success = null;
44721
    }
44722
 
44723
    public int getSuccessSize() {
44724
      return (this.success == null) ? 0 : this.success.size();
44725
    }
44726
 
44727
    public java.util.Iterator<AmazonInventorySnapshot> getSuccessIterator() {
44728
      return (this.success == null) ? null : this.success.iterator();
44729
    }
44730
 
44731
    public void addToSuccess(AmazonInventorySnapshot elem) {
44732
      if (this.success == null) {
44733
        this.success = new ArrayList<AmazonInventorySnapshot>();
44734
      }
44735
      this.success.add(elem);
44736
    }
44737
 
44738
    public List<AmazonInventorySnapshot> getSuccess() {
44739
      return this.success;
44740
    }
44741
 
44742
    public void setSuccess(List<AmazonInventorySnapshot> success) {
44743
      this.success = success;
44744
    }
44745
 
44746
    public void unsetSuccess() {
44747
      this.success = null;
44748
    }
44749
 
44750
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
44751
    public boolean isSetSuccess() {
44752
      return this.success != null;
44753
    }
44754
 
44755
    public void setSuccessIsSet(boolean value) {
44756
      if (!value) {
44757
        this.success = null;
44758
      }
44759
    }
44760
 
44761
    public void setFieldValue(_Fields field, Object value) {
44762
      switch (field) {
44763
      case SUCCESS:
44764
        if (value == null) {
44765
          unsetSuccess();
44766
        } else {
44767
          setSuccess((List<AmazonInventorySnapshot>)value);
44768
        }
44769
        break;
44770
 
44771
      }
44772
    }
44773
 
44774
    public Object getFieldValue(_Fields field) {
44775
      switch (field) {
44776
      case SUCCESS:
44777
        return getSuccess();
44778
 
44779
      }
44780
      throw new IllegalStateException();
44781
    }
44782
 
44783
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
44784
    public boolean isSet(_Fields field) {
44785
      if (field == null) {
44786
        throw new IllegalArgumentException();
44787
      }
44788
 
44789
      switch (field) {
44790
      case SUCCESS:
44791
        return isSetSuccess();
44792
      }
44793
      throw new IllegalStateException();
44794
    }
44795
 
44796
    @Override
44797
    public boolean equals(Object that) {
44798
      if (that == null)
44799
        return false;
44800
      if (that instanceof getAllAmazonInventory_result)
44801
        return this.equals((getAllAmazonInventory_result)that);
44802
      return false;
44803
    }
44804
 
44805
    public boolean equals(getAllAmazonInventory_result that) {
44806
      if (that == null)
44807
        return false;
44808
 
44809
      boolean this_present_success = true && this.isSetSuccess();
44810
      boolean that_present_success = true && that.isSetSuccess();
44811
      if (this_present_success || that_present_success) {
44812
        if (!(this_present_success && that_present_success))
44813
          return false;
44814
        if (!this.success.equals(that.success))
44815
          return false;
44816
      }
44817
 
44818
      return true;
44819
    }
44820
 
44821
    @Override
44822
    public int hashCode() {
44823
      return 0;
44824
    }
44825
 
44826
    public int compareTo(getAllAmazonInventory_result other) {
44827
      if (!getClass().equals(other.getClass())) {
44828
        return getClass().getName().compareTo(other.getClass().getName());
44829
      }
44830
 
44831
      int lastComparison = 0;
44832
      getAllAmazonInventory_result typedOther = (getAllAmazonInventory_result)other;
44833
 
44834
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
44835
      if (lastComparison != 0) {
44836
        return lastComparison;
44837
      }
44838
      if (isSetSuccess()) {
44839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
44840
        if (lastComparison != 0) {
44841
          return lastComparison;
44842
        }
44843
      }
44844
      return 0;
44845
    }
44846
 
44847
    public _Fields fieldForId(int fieldId) {
44848
      return _Fields.findByThriftId(fieldId);
44849
    }
44850
 
44851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
44852
      org.apache.thrift.protocol.TField field;
44853
      iprot.readStructBegin();
44854
      while (true)
44855
      {
44856
        field = iprot.readFieldBegin();
44857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
44858
          break;
44859
        }
44860
        switch (field.id) {
44861
          case 0: // SUCCESS
44862
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
44863
              {
10126 amar.kumar 44864
                org.apache.thrift.protocol.TList _list134 = iprot.readListBegin();
44865
                this.success = new ArrayList<AmazonInventorySnapshot>(_list134.size);
44866
                for (int _i135 = 0; _i135 < _list134.size; ++_i135)
7281 kshitij.so 44867
                {
10126 amar.kumar 44868
                  AmazonInventorySnapshot _elem136; // required
44869
                  _elem136 = new AmazonInventorySnapshot();
44870
                  _elem136.read(iprot);
44871
                  this.success.add(_elem136);
7281 kshitij.so 44872
                }
44873
                iprot.readListEnd();
44874
              }
44875
            } else { 
44876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44877
            }
44878
            break;
44879
          default:
44880
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
44881
        }
44882
        iprot.readFieldEnd();
44883
      }
44884
      iprot.readStructEnd();
44885
      validate();
44886
    }
44887
 
44888
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
44889
      oprot.writeStructBegin(STRUCT_DESC);
44890
 
44891
      if (this.isSetSuccess()) {
44892
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
44893
        {
44894
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10126 amar.kumar 44895
          for (AmazonInventorySnapshot _iter137 : this.success)
7281 kshitij.so 44896
          {
10126 amar.kumar 44897
            _iter137.write(oprot);
7281 kshitij.so 44898
          }
44899
          oprot.writeListEnd();
44900
        }
44901
        oprot.writeFieldEnd();
44902
      }
44903
      oprot.writeFieldStop();
44904
      oprot.writeStructEnd();
44905
    }
44906
 
44907
    @Override
44908
    public String toString() {
44909
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_result(");
44910
      boolean first = true;
44911
 
44912
      sb.append("success:");
44913
      if (this.success == null) {
44914
        sb.append("null");
44915
      } else {
44916
        sb.append(this.success);
44917
      }
44918
      first = false;
44919
      sb.append(")");
44920
      return sb.toString();
44921
    }
44922
 
44923
    public void validate() throws org.apache.thrift.TException {
44924
      // check for required fields
44925
    }
44926
 
44927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
44928
      try {
44929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
44930
      } catch (org.apache.thrift.TException te) {
44931
        throw new java.io.IOException(te);
44932
      }
44933
    }
44934
 
44935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
44936
      try {
44937
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
44938
      } catch (org.apache.thrift.TException te) {
44939
        throw new java.io.IOException(te);
44940
      }
44941
    }
44942
 
44943
  }
44944
 
44945
  public static class addOrUpdateAmazonInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_args, addOrUpdateAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
44946
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_args");
44947
 
44948
    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 44949
    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 44950
 
44951
    private AmazonInventorySnapshot amazonInventorySnapshot; // required
10450 vikram.rag 44952
    private long time; // required
7281 kshitij.so 44953
 
44954
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44955
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10450 vikram.rag 44956
      AMAZON_INVENTORY_SNAPSHOT((short)1, "amazonInventorySnapshot"),
44957
      TIME((short)2, "time");
7281 kshitij.so 44958
 
44959
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44960
 
44961
      static {
44962
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44963
          byName.put(field.getFieldName(), field);
44964
        }
44965
      }
44966
 
44967
      /**
44968
       * Find the _Fields constant that matches fieldId, or null if its not found.
44969
       */
44970
      public static _Fields findByThriftId(int fieldId) {
44971
        switch(fieldId) {
44972
          case 1: // AMAZON_INVENTORY_SNAPSHOT
44973
            return AMAZON_INVENTORY_SNAPSHOT;
10450 vikram.rag 44974
          case 2: // TIME
44975
            return TIME;
7281 kshitij.so 44976
          default:
44977
            return null;
44978
        }
44979
      }
44980
 
44981
      /**
44982
       * Find the _Fields constant that matches fieldId, throwing an exception
44983
       * if it is not found.
44984
       */
44985
      public static _Fields findByThriftIdOrThrow(int fieldId) {
44986
        _Fields fields = findByThriftId(fieldId);
44987
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
44988
        return fields;
44989
      }
44990
 
44991
      /**
44992
       * Find the _Fields constant that matches name, or null if its not found.
44993
       */
44994
      public static _Fields findByName(String name) {
44995
        return byName.get(name);
44996
      }
44997
 
44998
      private final short _thriftId;
44999
      private final String _fieldName;
45000
 
45001
      _Fields(short thriftId, String fieldName) {
45002
        _thriftId = thriftId;
45003
        _fieldName = fieldName;
45004
      }
45005
 
45006
      public short getThriftFieldId() {
45007
        return _thriftId;
45008
      }
45009
 
45010
      public String getFieldName() {
45011
        return _fieldName;
45012
      }
45013
    }
45014
 
45015
    // isset id assignments
10450 vikram.rag 45016
    private static final int __TIME_ISSET_ID = 0;
45017
    private BitSet __isset_bit_vector = new BitSet(1);
7281 kshitij.so 45018
 
45019
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45020
    static {
45021
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45022
      tmpMap.put(_Fields.AMAZON_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45023
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
10450 vikram.rag 45024
      tmpMap.put(_Fields.TIME, new org.apache.thrift.meta_data.FieldMetaData("time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45025
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7281 kshitij.so 45026
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45027
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_args.class, metaDataMap);
45028
    }
45029
 
45030
    public addOrUpdateAmazonInventoryForItem_args() {
45031
    }
45032
 
45033
    public addOrUpdateAmazonInventoryForItem_args(
10450 vikram.rag 45034
      AmazonInventorySnapshot amazonInventorySnapshot,
45035
      long time)
7281 kshitij.so 45036
    {
45037
      this();
45038
      this.amazonInventorySnapshot = amazonInventorySnapshot;
10450 vikram.rag 45039
      this.time = time;
45040
      setTimeIsSet(true);
7281 kshitij.so 45041
    }
45042
 
45043
    /**
45044
     * Performs a deep copy on <i>other</i>.
45045
     */
45046
    public addOrUpdateAmazonInventoryForItem_args(addOrUpdateAmazonInventoryForItem_args other) {
10450 vikram.rag 45047
      __isset_bit_vector.clear();
45048
      __isset_bit_vector.or(other.__isset_bit_vector);
7281 kshitij.so 45049
      if (other.isSetAmazonInventorySnapshot()) {
45050
        this.amazonInventorySnapshot = new AmazonInventorySnapshot(other.amazonInventorySnapshot);
45051
      }
10450 vikram.rag 45052
      this.time = other.time;
7281 kshitij.so 45053
    }
45054
 
45055
    public addOrUpdateAmazonInventoryForItem_args deepCopy() {
45056
      return new addOrUpdateAmazonInventoryForItem_args(this);
45057
    }
45058
 
45059
    @Override
45060
    public void clear() {
45061
      this.amazonInventorySnapshot = null;
10450 vikram.rag 45062
      setTimeIsSet(false);
45063
      this.time = 0;
7281 kshitij.so 45064
    }
45065
 
45066
    public AmazonInventorySnapshot getAmazonInventorySnapshot() {
45067
      return this.amazonInventorySnapshot;
45068
    }
45069
 
45070
    public void setAmazonInventorySnapshot(AmazonInventorySnapshot amazonInventorySnapshot) {
45071
      this.amazonInventorySnapshot = amazonInventorySnapshot;
45072
    }
45073
 
45074
    public void unsetAmazonInventorySnapshot() {
45075
      this.amazonInventorySnapshot = null;
45076
    }
45077
 
45078
    /** Returns true if field amazonInventorySnapshot is set (has been assigned a value) and false otherwise */
45079
    public boolean isSetAmazonInventorySnapshot() {
45080
      return this.amazonInventorySnapshot != null;
45081
    }
45082
 
45083
    public void setAmazonInventorySnapshotIsSet(boolean value) {
45084
      if (!value) {
45085
        this.amazonInventorySnapshot = null;
45086
      }
45087
    }
45088
 
10450 vikram.rag 45089
    public long getTime() {
45090
      return this.time;
45091
    }
45092
 
45093
    public void setTime(long time) {
45094
      this.time = time;
45095
      setTimeIsSet(true);
45096
    }
45097
 
45098
    public void unsetTime() {
45099
      __isset_bit_vector.clear(__TIME_ISSET_ID);
45100
    }
45101
 
45102
    /** Returns true if field time is set (has been assigned a value) and false otherwise */
45103
    public boolean isSetTime() {
45104
      return __isset_bit_vector.get(__TIME_ISSET_ID);
45105
    }
45106
 
45107
    public void setTimeIsSet(boolean value) {
45108
      __isset_bit_vector.set(__TIME_ISSET_ID, value);
45109
    }
45110
 
7281 kshitij.so 45111
    public void setFieldValue(_Fields field, Object value) {
45112
      switch (field) {
45113
      case AMAZON_INVENTORY_SNAPSHOT:
45114
        if (value == null) {
45115
          unsetAmazonInventorySnapshot();
45116
        } else {
45117
          setAmazonInventorySnapshot((AmazonInventorySnapshot)value);
45118
        }
45119
        break;
45120
 
10450 vikram.rag 45121
      case TIME:
45122
        if (value == null) {
45123
          unsetTime();
45124
        } else {
45125
          setTime((Long)value);
45126
        }
45127
        break;
45128
 
7281 kshitij.so 45129
      }
45130
    }
45131
 
45132
    public Object getFieldValue(_Fields field) {
45133
      switch (field) {
45134
      case AMAZON_INVENTORY_SNAPSHOT:
45135
        return getAmazonInventorySnapshot();
45136
 
10450 vikram.rag 45137
      case TIME:
45138
        return Long.valueOf(getTime());
45139
 
7281 kshitij.so 45140
      }
45141
      throw new IllegalStateException();
45142
    }
45143
 
45144
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45145
    public boolean isSet(_Fields field) {
45146
      if (field == null) {
45147
        throw new IllegalArgumentException();
45148
      }
45149
 
45150
      switch (field) {
45151
      case AMAZON_INVENTORY_SNAPSHOT:
45152
        return isSetAmazonInventorySnapshot();
10450 vikram.rag 45153
      case TIME:
45154
        return isSetTime();
7281 kshitij.so 45155
      }
45156
      throw new IllegalStateException();
45157
    }
45158
 
45159
    @Override
45160
    public boolean equals(Object that) {
45161
      if (that == null)
45162
        return false;
45163
      if (that instanceof addOrUpdateAmazonInventoryForItem_args)
45164
        return this.equals((addOrUpdateAmazonInventoryForItem_args)that);
45165
      return false;
45166
    }
45167
 
45168
    public boolean equals(addOrUpdateAmazonInventoryForItem_args that) {
45169
      if (that == null)
45170
        return false;
45171
 
45172
      boolean this_present_amazonInventorySnapshot = true && this.isSetAmazonInventorySnapshot();
45173
      boolean that_present_amazonInventorySnapshot = true && that.isSetAmazonInventorySnapshot();
45174
      if (this_present_amazonInventorySnapshot || that_present_amazonInventorySnapshot) {
45175
        if (!(this_present_amazonInventorySnapshot && that_present_amazonInventorySnapshot))
45176
          return false;
45177
        if (!this.amazonInventorySnapshot.equals(that.amazonInventorySnapshot))
45178
          return false;
45179
      }
45180
 
10450 vikram.rag 45181
      boolean this_present_time = true;
45182
      boolean that_present_time = true;
45183
      if (this_present_time || that_present_time) {
45184
        if (!(this_present_time && that_present_time))
45185
          return false;
45186
        if (this.time != that.time)
45187
          return false;
45188
      }
45189
 
7281 kshitij.so 45190
      return true;
45191
    }
45192
 
45193
    @Override
45194
    public int hashCode() {
45195
      return 0;
45196
    }
45197
 
45198
    public int compareTo(addOrUpdateAmazonInventoryForItem_args other) {
45199
      if (!getClass().equals(other.getClass())) {
45200
        return getClass().getName().compareTo(other.getClass().getName());
45201
      }
45202
 
45203
      int lastComparison = 0;
45204
      addOrUpdateAmazonInventoryForItem_args typedOther = (addOrUpdateAmazonInventoryForItem_args)other;
45205
 
45206
      lastComparison = Boolean.valueOf(isSetAmazonInventorySnapshot()).compareTo(typedOther.isSetAmazonInventorySnapshot());
45207
      if (lastComparison != 0) {
45208
        return lastComparison;
45209
      }
45210
      if (isSetAmazonInventorySnapshot()) {
45211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonInventorySnapshot, typedOther.amazonInventorySnapshot);
45212
        if (lastComparison != 0) {
45213
          return lastComparison;
45214
        }
45215
      }
10450 vikram.rag 45216
      lastComparison = Boolean.valueOf(isSetTime()).compareTo(typedOther.isSetTime());
45217
      if (lastComparison != 0) {
45218
        return lastComparison;
45219
      }
45220
      if (isSetTime()) {
45221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time, typedOther.time);
45222
        if (lastComparison != 0) {
45223
          return lastComparison;
45224
        }
45225
      }
7281 kshitij.so 45226
      return 0;
45227
    }
45228
 
45229
    public _Fields fieldForId(int fieldId) {
45230
      return _Fields.findByThriftId(fieldId);
45231
    }
45232
 
45233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45234
      org.apache.thrift.protocol.TField field;
45235
      iprot.readStructBegin();
45236
      while (true)
45237
      {
45238
        field = iprot.readFieldBegin();
45239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45240
          break;
45241
        }
45242
        switch (field.id) {
45243
          case 1: // AMAZON_INVENTORY_SNAPSHOT
45244
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
45245
              this.amazonInventorySnapshot = new AmazonInventorySnapshot();
45246
              this.amazonInventorySnapshot.read(iprot);
45247
            } else { 
45248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45249
            }
45250
            break;
10450 vikram.rag 45251
          case 2: // TIME
45252
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45253
              this.time = iprot.readI64();
45254
              setTimeIsSet(true);
45255
            } else { 
45256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45257
            }
45258
            break;
7281 kshitij.so 45259
          default:
45260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45261
        }
45262
        iprot.readFieldEnd();
45263
      }
45264
      iprot.readStructEnd();
45265
      validate();
45266
    }
45267
 
45268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45269
      validate();
45270
 
45271
      oprot.writeStructBegin(STRUCT_DESC);
45272
      if (this.amazonInventorySnapshot != null) {
45273
        oprot.writeFieldBegin(AMAZON_INVENTORY_SNAPSHOT_FIELD_DESC);
45274
        this.amazonInventorySnapshot.write(oprot);
45275
        oprot.writeFieldEnd();
45276
      }
10450 vikram.rag 45277
      oprot.writeFieldBegin(TIME_FIELD_DESC);
45278
      oprot.writeI64(this.time);
45279
      oprot.writeFieldEnd();
7281 kshitij.so 45280
      oprot.writeFieldStop();
45281
      oprot.writeStructEnd();
45282
    }
45283
 
45284
    @Override
45285
    public String toString() {
45286
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_args(");
45287
      boolean first = true;
45288
 
45289
      sb.append("amazonInventorySnapshot:");
45290
      if (this.amazonInventorySnapshot == null) {
45291
        sb.append("null");
45292
      } else {
45293
        sb.append(this.amazonInventorySnapshot);
45294
      }
45295
      first = false;
10450 vikram.rag 45296
      if (!first) sb.append(", ");
45297
      sb.append("time:");
45298
      sb.append(this.time);
45299
      first = false;
7281 kshitij.so 45300
      sb.append(")");
45301
      return sb.toString();
45302
    }
45303
 
45304
    public void validate() throws org.apache.thrift.TException {
45305
      // check for required fields
45306
    }
45307
 
45308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45309
      try {
45310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45311
      } catch (org.apache.thrift.TException te) {
45312
        throw new java.io.IOException(te);
45313
      }
45314
    }
45315
 
45316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45317
      try {
10450 vikram.rag 45318
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45319
        __isset_bit_vector = new BitSet(1);
7281 kshitij.so 45320
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45321
      } catch (org.apache.thrift.TException te) {
45322
        throw new java.io.IOException(te);
45323
      }
45324
    }
45325
 
45326
  }
45327
 
45328
  public static class addOrUpdateAmazonInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_result, addOrUpdateAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
45329
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_result");
45330
 
45331
 
45332
 
45333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45334
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45335
;
45336
 
45337
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45338
 
45339
      static {
45340
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45341
          byName.put(field.getFieldName(), field);
45342
        }
45343
      }
45344
 
45345
      /**
45346
       * Find the _Fields constant that matches fieldId, or null if its not found.
45347
       */
45348
      public static _Fields findByThriftId(int fieldId) {
45349
        switch(fieldId) {
45350
          default:
45351
            return null;
45352
        }
45353
      }
45354
 
45355
      /**
45356
       * Find the _Fields constant that matches fieldId, throwing an exception
45357
       * if it is not found.
45358
       */
45359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45360
        _Fields fields = findByThriftId(fieldId);
45361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45362
        return fields;
45363
      }
45364
 
45365
      /**
45366
       * Find the _Fields constant that matches name, or null if its not found.
45367
       */
45368
      public static _Fields findByName(String name) {
45369
        return byName.get(name);
45370
      }
45371
 
45372
      private final short _thriftId;
45373
      private final String _fieldName;
45374
 
45375
      _Fields(short thriftId, String fieldName) {
45376
        _thriftId = thriftId;
45377
        _fieldName = fieldName;
45378
      }
45379
 
45380
      public short getThriftFieldId() {
45381
        return _thriftId;
45382
      }
45383
 
45384
      public String getFieldName() {
45385
        return _fieldName;
45386
      }
45387
    }
45388
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45389
    static {
45390
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45391
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45392
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_result.class, metaDataMap);
45393
    }
45394
 
45395
    public addOrUpdateAmazonInventoryForItem_result() {
45396
    }
45397
 
45398
    /**
45399
     * Performs a deep copy on <i>other</i>.
45400
     */
45401
    public addOrUpdateAmazonInventoryForItem_result(addOrUpdateAmazonInventoryForItem_result other) {
45402
    }
45403
 
45404
    public addOrUpdateAmazonInventoryForItem_result deepCopy() {
45405
      return new addOrUpdateAmazonInventoryForItem_result(this);
45406
    }
45407
 
45408
    @Override
45409
    public void clear() {
45410
    }
45411
 
45412
    public void setFieldValue(_Fields field, Object value) {
45413
      switch (field) {
45414
      }
45415
    }
45416
 
45417
    public Object getFieldValue(_Fields field) {
45418
      switch (field) {
45419
      }
45420
      throw new IllegalStateException();
45421
    }
45422
 
45423
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45424
    public boolean isSet(_Fields field) {
45425
      if (field == null) {
45426
        throw new IllegalArgumentException();
45427
      }
45428
 
45429
      switch (field) {
45430
      }
45431
      throw new IllegalStateException();
45432
    }
45433
 
45434
    @Override
45435
    public boolean equals(Object that) {
45436
      if (that == null)
45437
        return false;
45438
      if (that instanceof addOrUpdateAmazonInventoryForItem_result)
45439
        return this.equals((addOrUpdateAmazonInventoryForItem_result)that);
45440
      return false;
45441
    }
45442
 
45443
    public boolean equals(addOrUpdateAmazonInventoryForItem_result that) {
45444
      if (that == null)
45445
        return false;
45446
 
45447
      return true;
45448
    }
45449
 
45450
    @Override
45451
    public int hashCode() {
45452
      return 0;
45453
    }
45454
 
45455
    public int compareTo(addOrUpdateAmazonInventoryForItem_result other) {
45456
      if (!getClass().equals(other.getClass())) {
45457
        return getClass().getName().compareTo(other.getClass().getName());
45458
      }
45459
 
45460
      int lastComparison = 0;
45461
      addOrUpdateAmazonInventoryForItem_result typedOther = (addOrUpdateAmazonInventoryForItem_result)other;
45462
 
45463
      return 0;
45464
    }
45465
 
45466
    public _Fields fieldForId(int fieldId) {
45467
      return _Fields.findByThriftId(fieldId);
45468
    }
45469
 
45470
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45471
      org.apache.thrift.protocol.TField field;
45472
      iprot.readStructBegin();
45473
      while (true)
45474
      {
45475
        field = iprot.readFieldBegin();
45476
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45477
          break;
45478
        }
45479
        switch (field.id) {
45480
          default:
45481
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45482
        }
45483
        iprot.readFieldEnd();
45484
      }
45485
      iprot.readStructEnd();
45486
      validate();
45487
    }
45488
 
45489
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45490
      oprot.writeStructBegin(STRUCT_DESC);
45491
 
45492
      oprot.writeFieldStop();
45493
      oprot.writeStructEnd();
45494
    }
45495
 
45496
    @Override
45497
    public String toString() {
45498
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_result(");
45499
      boolean first = true;
45500
 
45501
      sb.append(")");
45502
      return sb.toString();
45503
    }
45504
 
45505
    public void validate() throws org.apache.thrift.TException {
45506
      // check for required fields
45507
    }
45508
 
45509
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45510
      try {
45511
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45512
      } catch (org.apache.thrift.TException te) {
45513
        throw new java.io.IOException(te);
45514
      }
45515
    }
45516
 
45517
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45518
      try {
45519
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45520
      } catch (org.apache.thrift.TException te) {
45521
        throw new java.io.IOException(te);
45522
      }
45523
    }
45524
 
45525
  }
45526
 
7972 amar.kumar 45527
  public static class getLastNdaySaleForItem_args implements org.apache.thrift.TBase<getLastNdaySaleForItem_args, getLastNdaySaleForItem_args._Fields>, java.io.Serializable, Cloneable   {
45528
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastNdaySaleForItem_args");
45529
 
45530
    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);
45531
    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);
45532
 
45533
    private long itemId; // required
45534
    private long numberOfDays; // required
45535
 
45536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45537
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45538
      ITEM_ID((short)1, "itemId"),
45539
      NUMBER_OF_DAYS((short)2, "numberOfDays");
45540
 
45541
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45542
 
45543
      static {
45544
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45545
          byName.put(field.getFieldName(), field);
45546
        }
45547
      }
45548
 
45549
      /**
45550
       * Find the _Fields constant that matches fieldId, or null if its not found.
45551
       */
45552
      public static _Fields findByThriftId(int fieldId) {
45553
        switch(fieldId) {
45554
          case 1: // ITEM_ID
45555
            return ITEM_ID;
45556
          case 2: // NUMBER_OF_DAYS
45557
            return NUMBER_OF_DAYS;
45558
          default:
45559
            return null;
45560
        }
45561
      }
45562
 
45563
      /**
45564
       * Find the _Fields constant that matches fieldId, throwing an exception
45565
       * if it is not found.
45566
       */
45567
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45568
        _Fields fields = findByThriftId(fieldId);
45569
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45570
        return fields;
45571
      }
45572
 
45573
      /**
45574
       * Find the _Fields constant that matches name, or null if its not found.
45575
       */
45576
      public static _Fields findByName(String name) {
45577
        return byName.get(name);
45578
      }
45579
 
45580
      private final short _thriftId;
45581
      private final String _fieldName;
45582
 
45583
      _Fields(short thriftId, String fieldName) {
45584
        _thriftId = thriftId;
45585
        _fieldName = fieldName;
45586
      }
45587
 
45588
      public short getThriftFieldId() {
45589
        return _thriftId;
45590
      }
45591
 
45592
      public String getFieldName() {
45593
        return _fieldName;
45594
      }
45595
    }
45596
 
45597
    // isset id assignments
45598
    private static final int __ITEMID_ISSET_ID = 0;
45599
    private static final int __NUMBEROFDAYS_ISSET_ID = 1;
45600
    private BitSet __isset_bit_vector = new BitSet(2);
45601
 
45602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45603
    static {
45604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45605
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45607
      tmpMap.put(_Fields.NUMBER_OF_DAYS, new org.apache.thrift.meta_data.FieldMetaData("numberOfDays", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
45609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastNdaySaleForItem_args.class, metaDataMap);
45611
    }
45612
 
45613
    public getLastNdaySaleForItem_args() {
45614
    }
45615
 
45616
    public getLastNdaySaleForItem_args(
45617
      long itemId,
45618
      long numberOfDays)
45619
    {
45620
      this();
45621
      this.itemId = itemId;
45622
      setItemIdIsSet(true);
45623
      this.numberOfDays = numberOfDays;
45624
      setNumberOfDaysIsSet(true);
45625
    }
45626
 
45627
    /**
45628
     * Performs a deep copy on <i>other</i>.
45629
     */
45630
    public getLastNdaySaleForItem_args(getLastNdaySaleForItem_args other) {
45631
      __isset_bit_vector.clear();
45632
      __isset_bit_vector.or(other.__isset_bit_vector);
45633
      this.itemId = other.itemId;
45634
      this.numberOfDays = other.numberOfDays;
45635
    }
45636
 
45637
    public getLastNdaySaleForItem_args deepCopy() {
45638
      return new getLastNdaySaleForItem_args(this);
45639
    }
45640
 
45641
    @Override
45642
    public void clear() {
45643
      setItemIdIsSet(false);
45644
      this.itemId = 0;
45645
      setNumberOfDaysIsSet(false);
45646
      this.numberOfDays = 0;
45647
    }
45648
 
45649
    public long getItemId() {
45650
      return this.itemId;
45651
    }
45652
 
45653
    public void setItemId(long itemId) {
45654
      this.itemId = itemId;
45655
      setItemIdIsSet(true);
45656
    }
45657
 
45658
    public void unsetItemId() {
45659
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
45660
    }
45661
 
45662
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
45663
    public boolean isSetItemId() {
45664
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
45665
    }
45666
 
45667
    public void setItemIdIsSet(boolean value) {
45668
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
45669
    }
45670
 
45671
    public long getNumberOfDays() {
45672
      return this.numberOfDays;
45673
    }
45674
 
45675
    public void setNumberOfDays(long numberOfDays) {
45676
      this.numberOfDays = numberOfDays;
45677
      setNumberOfDaysIsSet(true);
45678
    }
45679
 
45680
    public void unsetNumberOfDays() {
45681
      __isset_bit_vector.clear(__NUMBEROFDAYS_ISSET_ID);
45682
    }
45683
 
45684
    /** Returns true if field numberOfDays is set (has been assigned a value) and false otherwise */
45685
    public boolean isSetNumberOfDays() {
45686
      return __isset_bit_vector.get(__NUMBEROFDAYS_ISSET_ID);
45687
    }
45688
 
45689
    public void setNumberOfDaysIsSet(boolean value) {
45690
      __isset_bit_vector.set(__NUMBEROFDAYS_ISSET_ID, value);
45691
    }
45692
 
45693
    public void setFieldValue(_Fields field, Object value) {
45694
      switch (field) {
45695
      case ITEM_ID:
45696
        if (value == null) {
45697
          unsetItemId();
45698
        } else {
45699
          setItemId((Long)value);
45700
        }
45701
        break;
45702
 
45703
      case NUMBER_OF_DAYS:
45704
        if (value == null) {
45705
          unsetNumberOfDays();
45706
        } else {
45707
          setNumberOfDays((Long)value);
45708
        }
45709
        break;
45710
 
45711
      }
45712
    }
45713
 
45714
    public Object getFieldValue(_Fields field) {
45715
      switch (field) {
45716
      case ITEM_ID:
45717
        return Long.valueOf(getItemId());
45718
 
45719
      case NUMBER_OF_DAYS:
45720
        return Long.valueOf(getNumberOfDays());
45721
 
45722
      }
45723
      throw new IllegalStateException();
45724
    }
45725
 
45726
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45727
    public boolean isSet(_Fields field) {
45728
      if (field == null) {
45729
        throw new IllegalArgumentException();
45730
      }
45731
 
45732
      switch (field) {
45733
      case ITEM_ID:
45734
        return isSetItemId();
45735
      case NUMBER_OF_DAYS:
45736
        return isSetNumberOfDays();
45737
      }
45738
      throw new IllegalStateException();
45739
    }
45740
 
45741
    @Override
45742
    public boolean equals(Object that) {
45743
      if (that == null)
45744
        return false;
45745
      if (that instanceof getLastNdaySaleForItem_args)
45746
        return this.equals((getLastNdaySaleForItem_args)that);
45747
      return false;
45748
    }
45749
 
45750
    public boolean equals(getLastNdaySaleForItem_args that) {
45751
      if (that == null)
45752
        return false;
45753
 
45754
      boolean this_present_itemId = true;
45755
      boolean that_present_itemId = true;
45756
      if (this_present_itemId || that_present_itemId) {
45757
        if (!(this_present_itemId && that_present_itemId))
45758
          return false;
45759
        if (this.itemId != that.itemId)
45760
          return false;
45761
      }
45762
 
45763
      boolean this_present_numberOfDays = true;
45764
      boolean that_present_numberOfDays = true;
45765
      if (this_present_numberOfDays || that_present_numberOfDays) {
45766
        if (!(this_present_numberOfDays && that_present_numberOfDays))
45767
          return false;
45768
        if (this.numberOfDays != that.numberOfDays)
45769
          return false;
45770
      }
45771
 
45772
      return true;
45773
    }
45774
 
45775
    @Override
45776
    public int hashCode() {
45777
      return 0;
45778
    }
45779
 
45780
    public int compareTo(getLastNdaySaleForItem_args other) {
45781
      if (!getClass().equals(other.getClass())) {
45782
        return getClass().getName().compareTo(other.getClass().getName());
45783
      }
45784
 
45785
      int lastComparison = 0;
45786
      getLastNdaySaleForItem_args typedOther = (getLastNdaySaleForItem_args)other;
45787
 
45788
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
45789
      if (lastComparison != 0) {
45790
        return lastComparison;
45791
      }
45792
      if (isSetItemId()) {
45793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
45794
        if (lastComparison != 0) {
45795
          return lastComparison;
45796
        }
45797
      }
45798
      lastComparison = Boolean.valueOf(isSetNumberOfDays()).compareTo(typedOther.isSetNumberOfDays());
45799
      if (lastComparison != 0) {
45800
        return lastComparison;
45801
      }
45802
      if (isSetNumberOfDays()) {
45803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDays, typedOther.numberOfDays);
45804
        if (lastComparison != 0) {
45805
          return lastComparison;
45806
        }
45807
      }
45808
      return 0;
45809
    }
45810
 
45811
    public _Fields fieldForId(int fieldId) {
45812
      return _Fields.findByThriftId(fieldId);
45813
    }
45814
 
45815
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
45816
      org.apache.thrift.protocol.TField field;
45817
      iprot.readStructBegin();
45818
      while (true)
45819
      {
45820
        field = iprot.readFieldBegin();
45821
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
45822
          break;
45823
        }
45824
        switch (field.id) {
45825
          case 1: // ITEM_ID
45826
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45827
              this.itemId = iprot.readI64();
45828
              setItemIdIsSet(true);
45829
            } else { 
45830
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45831
            }
45832
            break;
45833
          case 2: // NUMBER_OF_DAYS
45834
            if (field.type == org.apache.thrift.protocol.TType.I64) {
45835
              this.numberOfDays = iprot.readI64();
45836
              setNumberOfDaysIsSet(true);
45837
            } else { 
45838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45839
            }
45840
            break;
45841
          default:
45842
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45843
        }
45844
        iprot.readFieldEnd();
45845
      }
45846
      iprot.readStructEnd();
45847
      validate();
45848
    }
45849
 
45850
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
45851
      validate();
45852
 
45853
      oprot.writeStructBegin(STRUCT_DESC);
45854
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
45855
      oprot.writeI64(this.itemId);
45856
      oprot.writeFieldEnd();
45857
      oprot.writeFieldBegin(NUMBER_OF_DAYS_FIELD_DESC);
45858
      oprot.writeI64(this.numberOfDays);
45859
      oprot.writeFieldEnd();
45860
      oprot.writeFieldStop();
45861
      oprot.writeStructEnd();
45862
    }
45863
 
45864
    @Override
45865
    public String toString() {
45866
      StringBuilder sb = new StringBuilder("getLastNdaySaleForItem_args(");
45867
      boolean first = true;
45868
 
45869
      sb.append("itemId:");
45870
      sb.append(this.itemId);
45871
      first = false;
45872
      if (!first) sb.append(", ");
45873
      sb.append("numberOfDays:");
45874
      sb.append(this.numberOfDays);
45875
      first = false;
45876
      sb.append(")");
45877
      return sb.toString();
45878
    }
45879
 
45880
    public void validate() throws org.apache.thrift.TException {
45881
      // check for required fields
45882
    }
45883
 
45884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
45885
      try {
45886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
45887
      } catch (org.apache.thrift.TException te) {
45888
        throw new java.io.IOException(te);
45889
      }
45890
    }
45891
 
45892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
45893
      try {
45894
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
45895
        __isset_bit_vector = new BitSet(1);
45896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
45897
      } catch (org.apache.thrift.TException te) {
45898
        throw new java.io.IOException(te);
45899
      }
45900
    }
45901
 
45902
  }
45903
 
45904
  public static class getLastNdaySaleForItem_result implements org.apache.thrift.TBase<getLastNdaySaleForItem_result, getLastNdaySaleForItem_result._Fields>, java.io.Serializable, Cloneable   {
45905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastNdaySaleForItem_result");
45906
 
45907
    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);
45908
 
45909
    private String success; // required
45910
 
45911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
45913
      SUCCESS((short)0, "success");
45914
 
45915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
45916
 
45917
      static {
45918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
45919
          byName.put(field.getFieldName(), field);
45920
        }
45921
      }
45922
 
45923
      /**
45924
       * Find the _Fields constant that matches fieldId, or null if its not found.
45925
       */
45926
      public static _Fields findByThriftId(int fieldId) {
45927
        switch(fieldId) {
45928
          case 0: // SUCCESS
45929
            return SUCCESS;
45930
          default:
45931
            return null;
45932
        }
45933
      }
45934
 
45935
      /**
45936
       * Find the _Fields constant that matches fieldId, throwing an exception
45937
       * if it is not found.
45938
       */
45939
      public static _Fields findByThriftIdOrThrow(int fieldId) {
45940
        _Fields fields = findByThriftId(fieldId);
45941
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
45942
        return fields;
45943
      }
45944
 
45945
      /**
45946
       * Find the _Fields constant that matches name, or null if its not found.
45947
       */
45948
      public static _Fields findByName(String name) {
45949
        return byName.get(name);
45950
      }
45951
 
45952
      private final short _thriftId;
45953
      private final String _fieldName;
45954
 
45955
      _Fields(short thriftId, String fieldName) {
45956
        _thriftId = thriftId;
45957
        _fieldName = fieldName;
45958
      }
45959
 
45960
      public short getThriftFieldId() {
45961
        return _thriftId;
45962
      }
45963
 
45964
      public String getFieldName() {
45965
        return _fieldName;
45966
      }
45967
    }
45968
 
45969
    // isset id assignments
45970
 
45971
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
45972
    static {
45973
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
45974
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
45975
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
45976
      metaDataMap = Collections.unmodifiableMap(tmpMap);
45977
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastNdaySaleForItem_result.class, metaDataMap);
45978
    }
45979
 
45980
    public getLastNdaySaleForItem_result() {
45981
    }
45982
 
45983
    public getLastNdaySaleForItem_result(
45984
      String success)
45985
    {
45986
      this();
45987
      this.success = success;
45988
    }
45989
 
45990
    /**
45991
     * Performs a deep copy on <i>other</i>.
45992
     */
45993
    public getLastNdaySaleForItem_result(getLastNdaySaleForItem_result other) {
45994
      if (other.isSetSuccess()) {
45995
        this.success = other.success;
45996
      }
45997
    }
45998
 
45999
    public getLastNdaySaleForItem_result deepCopy() {
46000
      return new getLastNdaySaleForItem_result(this);
46001
    }
46002
 
46003
    @Override
46004
    public void clear() {
46005
      this.success = null;
46006
    }
46007
 
46008
    public String getSuccess() {
46009
      return this.success;
46010
    }
46011
 
46012
    public void setSuccess(String success) {
46013
      this.success = success;
46014
    }
46015
 
46016
    public void unsetSuccess() {
46017
      this.success = null;
46018
    }
46019
 
46020
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
46021
    public boolean isSetSuccess() {
46022
      return this.success != null;
46023
    }
46024
 
46025
    public void setSuccessIsSet(boolean value) {
46026
      if (!value) {
46027
        this.success = null;
46028
      }
46029
    }
46030
 
46031
    public void setFieldValue(_Fields field, Object value) {
46032
      switch (field) {
46033
      case SUCCESS:
46034
        if (value == null) {
46035
          unsetSuccess();
46036
        } else {
46037
          setSuccess((String)value);
46038
        }
46039
        break;
46040
 
46041
      }
46042
    }
46043
 
46044
    public Object getFieldValue(_Fields field) {
46045
      switch (field) {
46046
      case SUCCESS:
46047
        return getSuccess();
46048
 
46049
      }
46050
      throw new IllegalStateException();
46051
    }
46052
 
46053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46054
    public boolean isSet(_Fields field) {
46055
      if (field == null) {
46056
        throw new IllegalArgumentException();
46057
      }
46058
 
46059
      switch (field) {
46060
      case SUCCESS:
46061
        return isSetSuccess();
46062
      }
46063
      throw new IllegalStateException();
46064
    }
46065
 
46066
    @Override
46067
    public boolean equals(Object that) {
46068
      if (that == null)
46069
        return false;
46070
      if (that instanceof getLastNdaySaleForItem_result)
46071
        return this.equals((getLastNdaySaleForItem_result)that);
46072
      return false;
46073
    }
46074
 
46075
    public boolean equals(getLastNdaySaleForItem_result that) {
46076
      if (that == null)
46077
        return false;
46078
 
46079
      boolean this_present_success = true && this.isSetSuccess();
46080
      boolean that_present_success = true && that.isSetSuccess();
46081
      if (this_present_success || that_present_success) {
46082
        if (!(this_present_success && that_present_success))
46083
          return false;
46084
        if (!this.success.equals(that.success))
46085
          return false;
46086
      }
46087
 
46088
      return true;
46089
    }
46090
 
46091
    @Override
46092
    public int hashCode() {
46093
      return 0;
46094
    }
46095
 
46096
    public int compareTo(getLastNdaySaleForItem_result other) {
46097
      if (!getClass().equals(other.getClass())) {
46098
        return getClass().getName().compareTo(other.getClass().getName());
46099
      }
46100
 
46101
      int lastComparison = 0;
46102
      getLastNdaySaleForItem_result typedOther = (getLastNdaySaleForItem_result)other;
46103
 
46104
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
46105
      if (lastComparison != 0) {
46106
        return lastComparison;
46107
      }
46108
      if (isSetSuccess()) {
46109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
46110
        if (lastComparison != 0) {
46111
          return lastComparison;
46112
        }
46113
      }
46114
      return 0;
46115
    }
46116
 
46117
    public _Fields fieldForId(int fieldId) {
46118
      return _Fields.findByThriftId(fieldId);
46119
    }
46120
 
46121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46122
      org.apache.thrift.protocol.TField field;
46123
      iprot.readStructBegin();
46124
      while (true)
46125
      {
46126
        field = iprot.readFieldBegin();
46127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46128
          break;
46129
        }
46130
        switch (field.id) {
46131
          case 0: // SUCCESS
46132
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
46133
              this.success = iprot.readString();
46134
            } else { 
46135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46136
            }
46137
            break;
46138
          default:
46139
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46140
        }
46141
        iprot.readFieldEnd();
46142
      }
46143
      iprot.readStructEnd();
46144
      validate();
46145
    }
46146
 
46147
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46148
      oprot.writeStructBegin(STRUCT_DESC);
46149
 
46150
      if (this.isSetSuccess()) {
46151
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
46152
        oprot.writeString(this.success);
46153
        oprot.writeFieldEnd();
46154
      }
46155
      oprot.writeFieldStop();
46156
      oprot.writeStructEnd();
46157
    }
46158
 
46159
    @Override
46160
    public String toString() {
46161
      StringBuilder sb = new StringBuilder("getLastNdaySaleForItem_result(");
46162
      boolean first = true;
46163
 
46164
      sb.append("success:");
46165
      if (this.success == null) {
46166
        sb.append("null");
46167
      } else {
46168
        sb.append(this.success);
46169
      }
46170
      first = false;
46171
      sb.append(")");
46172
      return sb.toString();
46173
    }
46174
 
46175
    public void validate() throws org.apache.thrift.TException {
46176
      // check for required fields
46177
    }
46178
 
46179
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46180
      try {
46181
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46182
      } catch (org.apache.thrift.TException te) {
46183
        throw new java.io.IOException(te);
46184
      }
46185
    }
46186
 
46187
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46188
      try {
46189
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46190
      } catch (org.apache.thrift.TException te) {
46191
        throw new java.io.IOException(te);
46192
      }
46193
    }
46194
 
46195
  }
46196
 
8282 kshitij.so 46197
  public static class addOrUpdateAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAmazonFbaInventory_args, addOrUpdateAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable   {
46198
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaInventory_args");
46199
 
46200
    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);
46201
 
46202
    private AmazonFbaInventorySnapshot amazonfbainventorysnapshot; // required
46203
 
46204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46206
      AMAZONFBAINVENTORYSNAPSHOT((short)1, "amazonfbainventorysnapshot");
46207
 
46208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46209
 
46210
      static {
46211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46212
          byName.put(field.getFieldName(), field);
46213
        }
46214
      }
46215
 
46216
      /**
46217
       * Find the _Fields constant that matches fieldId, or null if its not found.
46218
       */
46219
      public static _Fields findByThriftId(int fieldId) {
46220
        switch(fieldId) {
46221
          case 1: // AMAZONFBAINVENTORYSNAPSHOT
46222
            return AMAZONFBAINVENTORYSNAPSHOT;
46223
          default:
46224
            return null;
46225
        }
46226
      }
46227
 
46228
      /**
46229
       * Find the _Fields constant that matches fieldId, throwing an exception
46230
       * if it is not found.
46231
       */
46232
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46233
        _Fields fields = findByThriftId(fieldId);
46234
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46235
        return fields;
46236
      }
46237
 
46238
      /**
46239
       * Find the _Fields constant that matches name, or null if its not found.
46240
       */
46241
      public static _Fields findByName(String name) {
46242
        return byName.get(name);
46243
      }
46244
 
46245
      private final short _thriftId;
46246
      private final String _fieldName;
46247
 
46248
      _Fields(short thriftId, String fieldName) {
46249
        _thriftId = thriftId;
46250
        _fieldName = fieldName;
46251
      }
46252
 
46253
      public short getThriftFieldId() {
46254
        return _thriftId;
46255
      }
46256
 
46257
      public String getFieldName() {
46258
        return _fieldName;
46259
      }
46260
    }
46261
 
46262
    // isset id assignments
46263
 
46264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46265
    static {
46266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46267
      tmpMap.put(_Fields.AMAZONFBAINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonfbainventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46268
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class)));
46269
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46270
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaInventory_args.class, metaDataMap);
46271
    }
46272
 
46273
    public addOrUpdateAmazonFbaInventory_args() {
46274
    }
46275
 
46276
    public addOrUpdateAmazonFbaInventory_args(
46277
      AmazonFbaInventorySnapshot amazonfbainventorysnapshot)
46278
    {
46279
      this();
46280
      this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
46281
    }
46282
 
46283
    /**
46284
     * Performs a deep copy on <i>other</i>.
46285
     */
46286
    public addOrUpdateAmazonFbaInventory_args(addOrUpdateAmazonFbaInventory_args other) {
46287
      if (other.isSetAmazonfbainventorysnapshot()) {
46288
        this.amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot(other.amazonfbainventorysnapshot);
46289
      }
46290
    }
46291
 
46292
    public addOrUpdateAmazonFbaInventory_args deepCopy() {
46293
      return new addOrUpdateAmazonFbaInventory_args(this);
46294
    }
46295
 
46296
    @Override
46297
    public void clear() {
46298
      this.amazonfbainventorysnapshot = null;
46299
    }
46300
 
46301
    public AmazonFbaInventorySnapshot getAmazonfbainventorysnapshot() {
46302
      return this.amazonfbainventorysnapshot;
46303
    }
46304
 
46305
    public void setAmazonfbainventorysnapshot(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) {
46306
      this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
46307
    }
46308
 
46309
    public void unsetAmazonfbainventorysnapshot() {
46310
      this.amazonfbainventorysnapshot = null;
46311
    }
46312
 
46313
    /** Returns true if field amazonfbainventorysnapshot is set (has been assigned a value) and false otherwise */
46314
    public boolean isSetAmazonfbainventorysnapshot() {
46315
      return this.amazonfbainventorysnapshot != null;
46316
    }
46317
 
46318
    public void setAmazonfbainventorysnapshotIsSet(boolean value) {
46319
      if (!value) {
46320
        this.amazonfbainventorysnapshot = null;
46321
      }
46322
    }
46323
 
46324
    public void setFieldValue(_Fields field, Object value) {
46325
      switch (field) {
46326
      case AMAZONFBAINVENTORYSNAPSHOT:
46327
        if (value == null) {
46328
          unsetAmazonfbainventorysnapshot();
46329
        } else {
46330
          setAmazonfbainventorysnapshot((AmazonFbaInventorySnapshot)value);
46331
        }
46332
        break;
46333
 
46334
      }
46335
    }
46336
 
46337
    public Object getFieldValue(_Fields field) {
46338
      switch (field) {
46339
      case AMAZONFBAINVENTORYSNAPSHOT:
46340
        return getAmazonfbainventorysnapshot();
46341
 
46342
      }
46343
      throw new IllegalStateException();
46344
    }
46345
 
46346
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46347
    public boolean isSet(_Fields field) {
46348
      if (field == null) {
46349
        throw new IllegalArgumentException();
46350
      }
46351
 
46352
      switch (field) {
46353
      case AMAZONFBAINVENTORYSNAPSHOT:
46354
        return isSetAmazonfbainventorysnapshot();
46355
      }
46356
      throw new IllegalStateException();
46357
    }
46358
 
46359
    @Override
46360
    public boolean equals(Object that) {
46361
      if (that == null)
46362
        return false;
46363
      if (that instanceof addOrUpdateAmazonFbaInventory_args)
46364
        return this.equals((addOrUpdateAmazonFbaInventory_args)that);
46365
      return false;
46366
    }
46367
 
46368
    public boolean equals(addOrUpdateAmazonFbaInventory_args that) {
46369
      if (that == null)
46370
        return false;
46371
 
46372
      boolean this_present_amazonfbainventorysnapshot = true && this.isSetAmazonfbainventorysnapshot();
46373
      boolean that_present_amazonfbainventorysnapshot = true && that.isSetAmazonfbainventorysnapshot();
46374
      if (this_present_amazonfbainventorysnapshot || that_present_amazonfbainventorysnapshot) {
46375
        if (!(this_present_amazonfbainventorysnapshot && that_present_amazonfbainventorysnapshot))
46376
          return false;
46377
        if (!this.amazonfbainventorysnapshot.equals(that.amazonfbainventorysnapshot))
46378
          return false;
46379
      }
46380
 
46381
      return true;
46382
    }
46383
 
46384
    @Override
46385
    public int hashCode() {
46386
      return 0;
46387
    }
46388
 
46389
    public int compareTo(addOrUpdateAmazonFbaInventory_args other) {
46390
      if (!getClass().equals(other.getClass())) {
46391
        return getClass().getName().compareTo(other.getClass().getName());
46392
      }
46393
 
46394
      int lastComparison = 0;
46395
      addOrUpdateAmazonFbaInventory_args typedOther = (addOrUpdateAmazonFbaInventory_args)other;
46396
 
46397
      lastComparison = Boolean.valueOf(isSetAmazonfbainventorysnapshot()).compareTo(typedOther.isSetAmazonfbainventorysnapshot());
46398
      if (lastComparison != 0) {
46399
        return lastComparison;
46400
      }
46401
      if (isSetAmazonfbainventorysnapshot()) {
46402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonfbainventorysnapshot, typedOther.amazonfbainventorysnapshot);
46403
        if (lastComparison != 0) {
46404
          return lastComparison;
46405
        }
46406
      }
46407
      return 0;
46408
    }
46409
 
46410
    public _Fields fieldForId(int fieldId) {
46411
      return _Fields.findByThriftId(fieldId);
46412
    }
46413
 
46414
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46415
      org.apache.thrift.protocol.TField field;
46416
      iprot.readStructBegin();
46417
      while (true)
46418
      {
46419
        field = iprot.readFieldBegin();
46420
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46421
          break;
46422
        }
46423
        switch (field.id) {
46424
          case 1: // AMAZONFBAINVENTORYSNAPSHOT
46425
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
46426
              this.amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot();
46427
              this.amazonfbainventorysnapshot.read(iprot);
46428
            } else { 
46429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46430
            }
46431
            break;
46432
          default:
46433
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46434
        }
46435
        iprot.readFieldEnd();
46436
      }
46437
      iprot.readStructEnd();
46438
      validate();
46439
    }
46440
 
46441
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46442
      validate();
46443
 
46444
      oprot.writeStructBegin(STRUCT_DESC);
46445
      if (this.amazonfbainventorysnapshot != null) {
46446
        oprot.writeFieldBegin(AMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
46447
        this.amazonfbainventorysnapshot.write(oprot);
46448
        oprot.writeFieldEnd();
46449
      }
46450
      oprot.writeFieldStop();
46451
      oprot.writeStructEnd();
46452
    }
46453
 
46454
    @Override
46455
    public String toString() {
46456
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaInventory_args(");
46457
      boolean first = true;
46458
 
46459
      sb.append("amazonfbainventorysnapshot:");
46460
      if (this.amazonfbainventorysnapshot == null) {
46461
        sb.append("null");
46462
      } else {
46463
        sb.append(this.amazonfbainventorysnapshot);
46464
      }
46465
      first = false;
46466
      sb.append(")");
46467
      return sb.toString();
46468
    }
46469
 
46470
    public void validate() throws org.apache.thrift.TException {
46471
      // check for required fields
46472
    }
46473
 
46474
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46475
      try {
46476
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46477
      } catch (org.apache.thrift.TException te) {
46478
        throw new java.io.IOException(te);
46479
      }
46480
    }
46481
 
46482
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46483
      try {
46484
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46485
      } catch (org.apache.thrift.TException te) {
46486
        throw new java.io.IOException(te);
46487
      }
46488
    }
46489
 
46490
  }
46491
 
46492
  public static class addOrUpdateAmazonFbaInventory_result implements org.apache.thrift.TBase<addOrUpdateAmazonFbaInventory_result, addOrUpdateAmazonFbaInventory_result._Fields>, java.io.Serializable, Cloneable   {
46493
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaInventory_result");
46494
 
46495
 
46496
 
46497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46499
;
46500
 
46501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46502
 
46503
      static {
46504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46505
          byName.put(field.getFieldName(), field);
46506
        }
46507
      }
46508
 
46509
      /**
46510
       * Find the _Fields constant that matches fieldId, or null if its not found.
46511
       */
46512
      public static _Fields findByThriftId(int fieldId) {
46513
        switch(fieldId) {
46514
          default:
46515
            return null;
46516
        }
46517
      }
46518
 
46519
      /**
46520
       * Find the _Fields constant that matches fieldId, throwing an exception
46521
       * if it is not found.
46522
       */
46523
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46524
        _Fields fields = findByThriftId(fieldId);
46525
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46526
        return fields;
46527
      }
46528
 
46529
      /**
46530
       * Find the _Fields constant that matches name, or null if its not found.
46531
       */
46532
      public static _Fields findByName(String name) {
46533
        return byName.get(name);
46534
      }
46535
 
46536
      private final short _thriftId;
46537
      private final String _fieldName;
46538
 
46539
      _Fields(short thriftId, String fieldName) {
46540
        _thriftId = thriftId;
46541
        _fieldName = fieldName;
46542
      }
46543
 
46544
      public short getThriftFieldId() {
46545
        return _thriftId;
46546
      }
46547
 
46548
      public String getFieldName() {
46549
        return _fieldName;
46550
      }
46551
    }
46552
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46553
    static {
46554
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46555
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46556
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaInventory_result.class, metaDataMap);
46557
    }
46558
 
46559
    public addOrUpdateAmazonFbaInventory_result() {
46560
    }
46561
 
46562
    /**
46563
     * Performs a deep copy on <i>other</i>.
46564
     */
46565
    public addOrUpdateAmazonFbaInventory_result(addOrUpdateAmazonFbaInventory_result other) {
46566
    }
46567
 
46568
    public addOrUpdateAmazonFbaInventory_result deepCopy() {
46569
      return new addOrUpdateAmazonFbaInventory_result(this);
46570
    }
46571
 
46572
    @Override
46573
    public void clear() {
46574
    }
46575
 
46576
    public void setFieldValue(_Fields field, Object value) {
46577
      switch (field) {
46578
      }
46579
    }
46580
 
46581
    public Object getFieldValue(_Fields field) {
46582
      switch (field) {
46583
      }
46584
      throw new IllegalStateException();
46585
    }
46586
 
46587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46588
    public boolean isSet(_Fields field) {
46589
      if (field == null) {
46590
        throw new IllegalArgumentException();
46591
      }
46592
 
46593
      switch (field) {
46594
      }
46595
      throw new IllegalStateException();
46596
    }
46597
 
46598
    @Override
46599
    public boolean equals(Object that) {
46600
      if (that == null)
46601
        return false;
46602
      if (that instanceof addOrUpdateAmazonFbaInventory_result)
46603
        return this.equals((addOrUpdateAmazonFbaInventory_result)that);
46604
      return false;
46605
    }
46606
 
46607
    public boolean equals(addOrUpdateAmazonFbaInventory_result that) {
46608
      if (that == null)
46609
        return false;
46610
 
46611
      return true;
46612
    }
46613
 
46614
    @Override
46615
    public int hashCode() {
46616
      return 0;
46617
    }
46618
 
46619
    public int compareTo(addOrUpdateAmazonFbaInventory_result other) {
46620
      if (!getClass().equals(other.getClass())) {
46621
        return getClass().getName().compareTo(other.getClass().getName());
46622
      }
46623
 
46624
      int lastComparison = 0;
46625
      addOrUpdateAmazonFbaInventory_result typedOther = (addOrUpdateAmazonFbaInventory_result)other;
46626
 
46627
      return 0;
46628
    }
46629
 
46630
    public _Fields fieldForId(int fieldId) {
46631
      return _Fields.findByThriftId(fieldId);
46632
    }
46633
 
46634
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
46635
      org.apache.thrift.protocol.TField field;
46636
      iprot.readStructBegin();
46637
      while (true)
46638
      {
46639
        field = iprot.readFieldBegin();
46640
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
46641
          break;
46642
        }
46643
        switch (field.id) {
46644
          default:
46645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
46646
        }
46647
        iprot.readFieldEnd();
46648
      }
46649
      iprot.readStructEnd();
46650
      validate();
46651
    }
46652
 
46653
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
46654
      oprot.writeStructBegin(STRUCT_DESC);
46655
 
46656
      oprot.writeFieldStop();
46657
      oprot.writeStructEnd();
46658
    }
46659
 
46660
    @Override
46661
    public String toString() {
46662
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaInventory_result(");
46663
      boolean first = true;
46664
 
46665
      sb.append(")");
46666
      return sb.toString();
46667
    }
46668
 
46669
    public void validate() throws org.apache.thrift.TException {
46670
      // check for required fields
46671
    }
46672
 
46673
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
46674
      try {
46675
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
46676
      } catch (org.apache.thrift.TException te) {
46677
        throw new java.io.IOException(te);
46678
      }
46679
    }
46680
 
46681
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
46682
      try {
46683
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
46684
      } catch (org.apache.thrift.TException te) {
46685
        throw new java.io.IOException(te);
46686
      }
46687
    }
46688
 
46689
  }
46690
 
8182 amar.kumar 46691
  public static class addUpdateHoldInventory_args implements org.apache.thrift.TBase<addUpdateHoldInventory_args, addUpdateHoldInventory_args._Fields>, java.io.Serializable, Cloneable   {
46692
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_args");
46693
 
46694
    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);
46695
    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);
46696
    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);
46697
    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);
46698
 
46699
    private long itemId; // required
46700
    private long warehouseId; // required
46701
    private long holdQuantity; // required
46702
    private long source; // required
46703
 
46704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
46706
      ITEM_ID((short)1, "itemId"),
46707
      WAREHOUSE_ID((short)2, "warehouseId"),
46708
      HOLD_QUANTITY((short)3, "holdQuantity"),
46709
      SOURCE((short)4, "source");
46710
 
46711
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46712
 
46713
      static {
46714
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
46715
          byName.put(field.getFieldName(), field);
46716
        }
46717
      }
46718
 
46719
      /**
46720
       * Find the _Fields constant that matches fieldId, or null if its not found.
46721
       */
46722
      public static _Fields findByThriftId(int fieldId) {
46723
        switch(fieldId) {
46724
          case 1: // ITEM_ID
46725
            return ITEM_ID;
46726
          case 2: // WAREHOUSE_ID
46727
            return WAREHOUSE_ID;
46728
          case 3: // HOLD_QUANTITY
46729
            return HOLD_QUANTITY;
46730
          case 4: // SOURCE
46731
            return SOURCE;
46732
          default:
46733
            return null;
46734
        }
46735
      }
46736
 
46737
      /**
46738
       * Find the _Fields constant that matches fieldId, throwing an exception
46739
       * if it is not found.
46740
       */
46741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
46742
        _Fields fields = findByThriftId(fieldId);
46743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
46744
        return fields;
46745
      }
46746
 
46747
      /**
46748
       * Find the _Fields constant that matches name, or null if its not found.
46749
       */
46750
      public static _Fields findByName(String name) {
46751
        return byName.get(name);
46752
      }
46753
 
46754
      private final short _thriftId;
46755
      private final String _fieldName;
46756
 
46757
      _Fields(short thriftId, String fieldName) {
46758
        _thriftId = thriftId;
46759
        _fieldName = fieldName;
46760
      }
46761
 
46762
      public short getThriftFieldId() {
46763
        return _thriftId;
46764
      }
46765
 
46766
      public String getFieldName() {
46767
        return _fieldName;
46768
      }
46769
    }
46770
 
46771
    // isset id assignments
46772
    private static final int __ITEMID_ISSET_ID = 0;
46773
    private static final int __WAREHOUSEID_ISSET_ID = 1;
46774
    private static final int __HOLDQUANTITY_ISSET_ID = 2;
46775
    private static final int __SOURCE_ISSET_ID = 3;
46776
    private BitSet __isset_bit_vector = new BitSet(4);
46777
 
46778
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
46779
    static {
46780
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
46781
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46783
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46784
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46785
      tmpMap.put(_Fields.HOLD_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("holdQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46787
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
46788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
46789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
46790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateHoldInventory_args.class, metaDataMap);
46791
    }
46792
 
46793
    public addUpdateHoldInventory_args() {
46794
    }
46795
 
46796
    public addUpdateHoldInventory_args(
46797
      long itemId,
46798
      long warehouseId,
46799
      long holdQuantity,
46800
      long source)
46801
    {
46802
      this();
46803
      this.itemId = itemId;
46804
      setItemIdIsSet(true);
46805
      this.warehouseId = warehouseId;
46806
      setWarehouseIdIsSet(true);
46807
      this.holdQuantity = holdQuantity;
46808
      setHoldQuantityIsSet(true);
46809
      this.source = source;
46810
      setSourceIsSet(true);
46811
    }
46812
 
46813
    /**
46814
     * Performs a deep copy on <i>other</i>.
46815
     */
46816
    public addUpdateHoldInventory_args(addUpdateHoldInventory_args other) {
46817
      __isset_bit_vector.clear();
46818
      __isset_bit_vector.or(other.__isset_bit_vector);
46819
      this.itemId = other.itemId;
46820
      this.warehouseId = other.warehouseId;
46821
      this.holdQuantity = other.holdQuantity;
46822
      this.source = other.source;
46823
    }
46824
 
46825
    public addUpdateHoldInventory_args deepCopy() {
46826
      return new addUpdateHoldInventory_args(this);
46827
    }
46828
 
46829
    @Override
46830
    public void clear() {
46831
      setItemIdIsSet(false);
46832
      this.itemId = 0;
46833
      setWarehouseIdIsSet(false);
46834
      this.warehouseId = 0;
46835
      setHoldQuantityIsSet(false);
46836
      this.holdQuantity = 0;
46837
      setSourceIsSet(false);
46838
      this.source = 0;
46839
    }
46840
 
46841
    public long getItemId() {
46842
      return this.itemId;
46843
    }
46844
 
46845
    public void setItemId(long itemId) {
46846
      this.itemId = itemId;
46847
      setItemIdIsSet(true);
46848
    }
46849
 
46850
    public void unsetItemId() {
46851
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
46852
    }
46853
 
46854
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
46855
    public boolean isSetItemId() {
46856
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
46857
    }
46858
 
46859
    public void setItemIdIsSet(boolean value) {
46860
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
46861
    }
46862
 
46863
    public long getWarehouseId() {
46864
      return this.warehouseId;
46865
    }
46866
 
46867
    public void setWarehouseId(long warehouseId) {
46868
      this.warehouseId = warehouseId;
46869
      setWarehouseIdIsSet(true);
46870
    }
46871
 
46872
    public void unsetWarehouseId() {
46873
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
46874
    }
46875
 
46876
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
46877
    public boolean isSetWarehouseId() {
46878
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
46879
    }
46880
 
46881
    public void setWarehouseIdIsSet(boolean value) {
46882
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
46883
    }
46884
 
46885
    public long getHoldQuantity() {
46886
      return this.holdQuantity;
46887
    }
46888
 
46889
    public void setHoldQuantity(long holdQuantity) {
46890
      this.holdQuantity = holdQuantity;
46891
      setHoldQuantityIsSet(true);
46892
    }
46893
 
46894
    public void unsetHoldQuantity() {
46895
      __isset_bit_vector.clear(__HOLDQUANTITY_ISSET_ID);
46896
    }
46897
 
46898
    /** Returns true if field holdQuantity is set (has been assigned a value) and false otherwise */
46899
    public boolean isSetHoldQuantity() {
46900
      return __isset_bit_vector.get(__HOLDQUANTITY_ISSET_ID);
46901
    }
46902
 
46903
    public void setHoldQuantityIsSet(boolean value) {
46904
      __isset_bit_vector.set(__HOLDQUANTITY_ISSET_ID, value);
46905
    }
46906
 
46907
    public long getSource() {
46908
      return this.source;
46909
    }
46910
 
46911
    public void setSource(long source) {
46912
      this.source = source;
46913
      setSourceIsSet(true);
46914
    }
46915
 
46916
    public void unsetSource() {
46917
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
46918
    }
46919
 
46920
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
46921
    public boolean isSetSource() {
46922
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
46923
    }
46924
 
46925
    public void setSourceIsSet(boolean value) {
46926
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
46927
    }
46928
 
46929
    public void setFieldValue(_Fields field, Object value) {
46930
      switch (field) {
46931
      case ITEM_ID:
46932
        if (value == null) {
46933
          unsetItemId();
46934
        } else {
46935
          setItemId((Long)value);
46936
        }
46937
        break;
46938
 
46939
      case WAREHOUSE_ID:
46940
        if (value == null) {
46941
          unsetWarehouseId();
46942
        } else {
46943
          setWarehouseId((Long)value);
46944
        }
46945
        break;
46946
 
46947
      case HOLD_QUANTITY:
46948
        if (value == null) {
46949
          unsetHoldQuantity();
46950
        } else {
46951
          setHoldQuantity((Long)value);
46952
        }
46953
        break;
46954
 
46955
      case SOURCE:
46956
        if (value == null) {
46957
          unsetSource();
46958
        } else {
46959
          setSource((Long)value);
46960
        }
46961
        break;
46962
 
46963
      }
46964
    }
46965
 
46966
    public Object getFieldValue(_Fields field) {
46967
      switch (field) {
46968
      case ITEM_ID:
46969
        return Long.valueOf(getItemId());
46970
 
46971
      case WAREHOUSE_ID:
46972
        return Long.valueOf(getWarehouseId());
46973
 
46974
      case HOLD_QUANTITY:
46975
        return Long.valueOf(getHoldQuantity());
46976
 
46977
      case SOURCE:
46978
        return Long.valueOf(getSource());
46979
 
46980
      }
46981
      throw new IllegalStateException();
46982
    }
46983
 
46984
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
46985
    public boolean isSet(_Fields field) {
46986
      if (field == null) {
46987
        throw new IllegalArgumentException();
46988
      }
46989
 
46990
      switch (field) {
46991
      case ITEM_ID:
46992
        return isSetItemId();
46993
      case WAREHOUSE_ID:
46994
        return isSetWarehouseId();
46995
      case HOLD_QUANTITY:
46996
        return isSetHoldQuantity();
46997
      case SOURCE:
46998
        return isSetSource();
46999
      }
47000
      throw new IllegalStateException();
47001
    }
47002
 
47003
    @Override
47004
    public boolean equals(Object that) {
47005
      if (that == null)
47006
        return false;
47007
      if (that instanceof addUpdateHoldInventory_args)
47008
        return this.equals((addUpdateHoldInventory_args)that);
47009
      return false;
47010
    }
47011
 
47012
    public boolean equals(addUpdateHoldInventory_args that) {
47013
      if (that == null)
47014
        return false;
47015
 
47016
      boolean this_present_itemId = true;
47017
      boolean that_present_itemId = true;
47018
      if (this_present_itemId || that_present_itemId) {
47019
        if (!(this_present_itemId && that_present_itemId))
47020
          return false;
47021
        if (this.itemId != that.itemId)
47022
          return false;
47023
      }
47024
 
47025
      boolean this_present_warehouseId = true;
47026
      boolean that_present_warehouseId = true;
47027
      if (this_present_warehouseId || that_present_warehouseId) {
47028
        if (!(this_present_warehouseId && that_present_warehouseId))
47029
          return false;
47030
        if (this.warehouseId != that.warehouseId)
47031
          return false;
47032
      }
47033
 
47034
      boolean this_present_holdQuantity = true;
47035
      boolean that_present_holdQuantity = true;
47036
      if (this_present_holdQuantity || that_present_holdQuantity) {
47037
        if (!(this_present_holdQuantity && that_present_holdQuantity))
47038
          return false;
47039
        if (this.holdQuantity != that.holdQuantity)
47040
          return false;
47041
      }
47042
 
47043
      boolean this_present_source = true;
47044
      boolean that_present_source = true;
47045
      if (this_present_source || that_present_source) {
47046
        if (!(this_present_source && that_present_source))
47047
          return false;
47048
        if (this.source != that.source)
47049
          return false;
47050
      }
47051
 
47052
      return true;
47053
    }
47054
 
47055
    @Override
47056
    public int hashCode() {
47057
      return 0;
47058
    }
47059
 
47060
    public int compareTo(addUpdateHoldInventory_args other) {
47061
      if (!getClass().equals(other.getClass())) {
47062
        return getClass().getName().compareTo(other.getClass().getName());
47063
      }
47064
 
47065
      int lastComparison = 0;
47066
      addUpdateHoldInventory_args typedOther = (addUpdateHoldInventory_args)other;
47067
 
47068
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
47069
      if (lastComparison != 0) {
47070
        return lastComparison;
47071
      }
47072
      if (isSetItemId()) {
47073
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
47074
        if (lastComparison != 0) {
47075
          return lastComparison;
47076
        }
47077
      }
47078
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
47079
      if (lastComparison != 0) {
47080
        return lastComparison;
47081
      }
47082
      if (isSetWarehouseId()) {
47083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
47084
        if (lastComparison != 0) {
47085
          return lastComparison;
47086
        }
47087
      }
47088
      lastComparison = Boolean.valueOf(isSetHoldQuantity()).compareTo(typedOther.isSetHoldQuantity());
47089
      if (lastComparison != 0) {
47090
        return lastComparison;
47091
      }
47092
      if (isSetHoldQuantity()) {
47093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdQuantity, typedOther.holdQuantity);
47094
        if (lastComparison != 0) {
47095
          return lastComparison;
47096
        }
47097
      }
47098
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
47099
      if (lastComparison != 0) {
47100
        return lastComparison;
47101
      }
47102
      if (isSetSource()) {
47103
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
47104
        if (lastComparison != 0) {
47105
          return lastComparison;
47106
        }
47107
      }
47108
      return 0;
47109
    }
47110
 
47111
    public _Fields fieldForId(int fieldId) {
47112
      return _Fields.findByThriftId(fieldId);
47113
    }
47114
 
47115
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47116
      org.apache.thrift.protocol.TField field;
47117
      iprot.readStructBegin();
47118
      while (true)
47119
      {
47120
        field = iprot.readFieldBegin();
47121
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47122
          break;
47123
        }
47124
        switch (field.id) {
47125
          case 1: // ITEM_ID
47126
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47127
              this.itemId = iprot.readI64();
47128
              setItemIdIsSet(true);
47129
            } else { 
47130
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47131
            }
47132
            break;
47133
          case 2: // WAREHOUSE_ID
47134
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47135
              this.warehouseId = iprot.readI64();
47136
              setWarehouseIdIsSet(true);
47137
            } else { 
47138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47139
            }
47140
            break;
47141
          case 3: // HOLD_QUANTITY
47142
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47143
              this.holdQuantity = iprot.readI64();
47144
              setHoldQuantityIsSet(true);
47145
            } else { 
47146
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47147
            }
47148
            break;
47149
          case 4: // SOURCE
47150
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47151
              this.source = iprot.readI64();
47152
              setSourceIsSet(true);
47153
            } else { 
47154
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47155
            }
47156
            break;
47157
          default:
47158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47159
        }
47160
        iprot.readFieldEnd();
47161
      }
47162
      iprot.readStructEnd();
47163
      validate();
47164
    }
47165
 
47166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47167
      validate();
47168
 
47169
      oprot.writeStructBegin(STRUCT_DESC);
47170
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
47171
      oprot.writeI64(this.itemId);
47172
      oprot.writeFieldEnd();
47173
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
47174
      oprot.writeI64(this.warehouseId);
47175
      oprot.writeFieldEnd();
47176
      oprot.writeFieldBegin(HOLD_QUANTITY_FIELD_DESC);
47177
      oprot.writeI64(this.holdQuantity);
47178
      oprot.writeFieldEnd();
47179
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
47180
      oprot.writeI64(this.source);
47181
      oprot.writeFieldEnd();
47182
      oprot.writeFieldStop();
47183
      oprot.writeStructEnd();
47184
    }
47185
 
47186
    @Override
47187
    public String toString() {
47188
      StringBuilder sb = new StringBuilder("addUpdateHoldInventory_args(");
47189
      boolean first = true;
47190
 
47191
      sb.append("itemId:");
47192
      sb.append(this.itemId);
47193
      first = false;
47194
      if (!first) sb.append(", ");
47195
      sb.append("warehouseId:");
47196
      sb.append(this.warehouseId);
47197
      first = false;
47198
      if (!first) sb.append(", ");
47199
      sb.append("holdQuantity:");
47200
      sb.append(this.holdQuantity);
47201
      first = false;
47202
      if (!first) sb.append(", ");
47203
      sb.append("source:");
47204
      sb.append(this.source);
47205
      first = false;
47206
      sb.append(")");
47207
      return sb.toString();
47208
    }
47209
 
47210
    public void validate() throws org.apache.thrift.TException {
47211
      // check for required fields
47212
    }
47213
 
47214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47215
      try {
47216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47217
      } catch (org.apache.thrift.TException te) {
47218
        throw new java.io.IOException(te);
47219
      }
47220
    }
47221
 
47222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47223
      try {
47224
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
47225
        __isset_bit_vector = new BitSet(1);
47226
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47227
      } catch (org.apache.thrift.TException te) {
47228
        throw new java.io.IOException(te);
47229
      }
47230
    }
47231
 
47232
  }
47233
 
47234
  public static class addUpdateHoldInventory_result implements org.apache.thrift.TBase<addUpdateHoldInventory_result, addUpdateHoldInventory_result._Fields>, java.io.Serializable, Cloneable   {
47235
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_result");
47236
 
9762 amar.kumar 47237
    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 47238
 
9762 amar.kumar 47239
    private InventoryServiceException cex; // required
8182 amar.kumar 47240
 
47241
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47242
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9762 amar.kumar 47243
      CEX((short)1, "cex");
8182 amar.kumar 47244
 
47245
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47246
 
47247
      static {
47248
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47249
          byName.put(field.getFieldName(), field);
47250
        }
47251
      }
47252
 
47253
      /**
47254
       * Find the _Fields constant that matches fieldId, or null if its not found.
47255
       */
47256
      public static _Fields findByThriftId(int fieldId) {
47257
        switch(fieldId) {
9762 amar.kumar 47258
          case 1: // CEX
47259
            return CEX;
8182 amar.kumar 47260
          default:
47261
            return null;
47262
        }
47263
      }
47264
 
47265
      /**
47266
       * Find the _Fields constant that matches fieldId, throwing an exception
47267
       * if it is not found.
47268
       */
47269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47270
        _Fields fields = findByThriftId(fieldId);
47271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47272
        return fields;
47273
      }
47274
 
47275
      /**
47276
       * Find the _Fields constant that matches name, or null if its not found.
47277
       */
47278
      public static _Fields findByName(String name) {
47279
        return byName.get(name);
47280
      }
47281
 
47282
      private final short _thriftId;
47283
      private final String _fieldName;
47284
 
47285
      _Fields(short thriftId, String fieldName) {
47286
        _thriftId = thriftId;
47287
        _fieldName = fieldName;
47288
      }
47289
 
47290
      public short getThriftFieldId() {
47291
        return _thriftId;
47292
      }
47293
 
47294
      public String getFieldName() {
47295
        return _fieldName;
47296
      }
47297
    }
9762 amar.kumar 47298
 
47299
    // isset id assignments
47300
 
8182 amar.kumar 47301
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47302
    static {
47303
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9762 amar.kumar 47304
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8182 amar.kumar 47306
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47307
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUpdateHoldInventory_result.class, metaDataMap);
47308
    }
47309
 
47310
    public addUpdateHoldInventory_result() {
47311
    }
47312
 
9762 amar.kumar 47313
    public addUpdateHoldInventory_result(
47314
      InventoryServiceException cex)
47315
    {
47316
      this();
47317
      this.cex = cex;
47318
    }
47319
 
8182 amar.kumar 47320
    /**
47321
     * Performs a deep copy on <i>other</i>.
47322
     */
47323
    public addUpdateHoldInventory_result(addUpdateHoldInventory_result other) {
9762 amar.kumar 47324
      if (other.isSetCex()) {
47325
        this.cex = new InventoryServiceException(other.cex);
47326
      }
8182 amar.kumar 47327
    }
47328
 
47329
    public addUpdateHoldInventory_result deepCopy() {
47330
      return new addUpdateHoldInventory_result(this);
47331
    }
47332
 
47333
    @Override
47334
    public void clear() {
9762 amar.kumar 47335
      this.cex = null;
8182 amar.kumar 47336
    }
47337
 
9762 amar.kumar 47338
    public InventoryServiceException getCex() {
47339
      return this.cex;
47340
    }
47341
 
47342
    public void setCex(InventoryServiceException cex) {
47343
      this.cex = cex;
47344
    }
47345
 
47346
    public void unsetCex() {
47347
      this.cex = null;
47348
    }
47349
 
47350
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
47351
    public boolean isSetCex() {
47352
      return this.cex != null;
47353
    }
47354
 
47355
    public void setCexIsSet(boolean value) {
47356
      if (!value) {
47357
        this.cex = null;
47358
      }
47359
    }
47360
 
8182 amar.kumar 47361
    public void setFieldValue(_Fields field, Object value) {
47362
      switch (field) {
9762 amar.kumar 47363
      case CEX:
47364
        if (value == null) {
47365
          unsetCex();
47366
        } else {
47367
          setCex((InventoryServiceException)value);
47368
        }
47369
        break;
47370
 
8182 amar.kumar 47371
      }
47372
    }
47373
 
47374
    public Object getFieldValue(_Fields field) {
47375
      switch (field) {
9762 amar.kumar 47376
      case CEX:
47377
        return getCex();
47378
 
8182 amar.kumar 47379
      }
47380
      throw new IllegalStateException();
47381
    }
47382
 
47383
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47384
    public boolean isSet(_Fields field) {
47385
      if (field == null) {
47386
        throw new IllegalArgumentException();
47387
      }
47388
 
47389
      switch (field) {
9762 amar.kumar 47390
      case CEX:
47391
        return isSetCex();
8182 amar.kumar 47392
      }
47393
      throw new IllegalStateException();
47394
    }
47395
 
47396
    @Override
47397
    public boolean equals(Object that) {
47398
      if (that == null)
47399
        return false;
47400
      if (that instanceof addUpdateHoldInventory_result)
47401
        return this.equals((addUpdateHoldInventory_result)that);
47402
      return false;
47403
    }
47404
 
47405
    public boolean equals(addUpdateHoldInventory_result that) {
47406
      if (that == null)
47407
        return false;
47408
 
9762 amar.kumar 47409
      boolean this_present_cex = true && this.isSetCex();
47410
      boolean that_present_cex = true && that.isSetCex();
47411
      if (this_present_cex || that_present_cex) {
47412
        if (!(this_present_cex && that_present_cex))
47413
          return false;
47414
        if (!this.cex.equals(that.cex))
47415
          return false;
47416
      }
47417
 
8182 amar.kumar 47418
      return true;
47419
    }
47420
 
47421
    @Override
47422
    public int hashCode() {
47423
      return 0;
47424
    }
47425
 
47426
    public int compareTo(addUpdateHoldInventory_result other) {
47427
      if (!getClass().equals(other.getClass())) {
47428
        return getClass().getName().compareTo(other.getClass().getName());
47429
      }
47430
 
47431
      int lastComparison = 0;
47432
      addUpdateHoldInventory_result typedOther = (addUpdateHoldInventory_result)other;
47433
 
9762 amar.kumar 47434
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
47435
      if (lastComparison != 0) {
47436
        return lastComparison;
47437
      }
47438
      if (isSetCex()) {
47439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
47440
        if (lastComparison != 0) {
47441
          return lastComparison;
47442
        }
47443
      }
8182 amar.kumar 47444
      return 0;
47445
    }
47446
 
47447
    public _Fields fieldForId(int fieldId) {
47448
      return _Fields.findByThriftId(fieldId);
47449
    }
47450
 
47451
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47452
      org.apache.thrift.protocol.TField field;
47453
      iprot.readStructBegin();
47454
      while (true)
47455
      {
47456
        field = iprot.readFieldBegin();
47457
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47458
          break;
47459
        }
47460
        switch (field.id) {
9762 amar.kumar 47461
          case 1: // CEX
47462
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
47463
              this.cex = new InventoryServiceException();
47464
              this.cex.read(iprot);
47465
            } else { 
47466
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47467
            }
47468
            break;
8182 amar.kumar 47469
          default:
47470
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47471
        }
47472
        iprot.readFieldEnd();
47473
      }
47474
      iprot.readStructEnd();
47475
      validate();
47476
    }
47477
 
47478
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47479
      oprot.writeStructBegin(STRUCT_DESC);
47480
 
9762 amar.kumar 47481
      if (this.isSetCex()) {
47482
        oprot.writeFieldBegin(CEX_FIELD_DESC);
47483
        this.cex.write(oprot);
47484
        oprot.writeFieldEnd();
47485
      }
8182 amar.kumar 47486
      oprot.writeFieldStop();
47487
      oprot.writeStructEnd();
47488
    }
47489
 
47490
    @Override
47491
    public String toString() {
47492
      StringBuilder sb = new StringBuilder("addUpdateHoldInventory_result(");
47493
      boolean first = true;
47494
 
9762 amar.kumar 47495
      sb.append("cex:");
47496
      if (this.cex == null) {
47497
        sb.append("null");
47498
      } else {
47499
        sb.append(this.cex);
47500
      }
47501
      first = false;
8182 amar.kumar 47502
      sb.append(")");
47503
      return sb.toString();
47504
    }
47505
 
47506
    public void validate() throws org.apache.thrift.TException {
47507
      // check for required fields
47508
    }
47509
 
47510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47511
      try {
47512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47513
      } catch (org.apache.thrift.TException te) {
47514
        throw new java.io.IOException(te);
47515
      }
47516
    }
47517
 
47518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47519
      try {
47520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47521
      } catch (org.apache.thrift.TException te) {
47522
        throw new java.io.IOException(te);
47523
      }
47524
    }
47525
 
47526
  }
47527
 
8282 kshitij.so 47528
  public static class getAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAmazonFbaItemInventory_args, getAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
47529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaItemInventory_args");
47530
 
47531
    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);
47532
 
47533
    private long itemId; // required
47534
 
47535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47536
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47537
      ITEM_ID((short)1, "itemId");
47538
 
47539
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47540
 
47541
      static {
47542
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47543
          byName.put(field.getFieldName(), field);
47544
        }
47545
      }
47546
 
47547
      /**
47548
       * Find the _Fields constant that matches fieldId, or null if its not found.
47549
       */
47550
      public static _Fields findByThriftId(int fieldId) {
47551
        switch(fieldId) {
47552
          case 1: // ITEM_ID
47553
            return ITEM_ID;
47554
          default:
47555
            return null;
47556
        }
47557
      }
47558
 
47559
      /**
47560
       * Find the _Fields constant that matches fieldId, throwing an exception
47561
       * if it is not found.
47562
       */
47563
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47564
        _Fields fields = findByThriftId(fieldId);
47565
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47566
        return fields;
47567
      }
47568
 
47569
      /**
47570
       * Find the _Fields constant that matches name, or null if its not found.
47571
       */
47572
      public static _Fields findByName(String name) {
47573
        return byName.get(name);
47574
      }
47575
 
47576
      private final short _thriftId;
47577
      private final String _fieldName;
47578
 
47579
      _Fields(short thriftId, String fieldName) {
47580
        _thriftId = thriftId;
47581
        _fieldName = fieldName;
47582
      }
47583
 
47584
      public short getThriftFieldId() {
47585
        return _thriftId;
47586
      }
47587
 
47588
      public String getFieldName() {
47589
        return _fieldName;
47590
      }
47591
    }
47592
 
47593
    // isset id assignments
47594
    private static final int __ITEMID_ISSET_ID = 0;
47595
    private BitSet __isset_bit_vector = new BitSet(1);
47596
 
47597
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47598
    static {
47599
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47600
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
47601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
47602
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47603
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaItemInventory_args.class, metaDataMap);
47604
    }
47605
 
47606
    public getAmazonFbaItemInventory_args() {
47607
    }
47608
 
47609
    public getAmazonFbaItemInventory_args(
47610
      long itemId)
47611
    {
47612
      this();
47613
      this.itemId = itemId;
47614
      setItemIdIsSet(true);
47615
    }
47616
 
47617
    /**
47618
     * Performs a deep copy on <i>other</i>.
47619
     */
47620
    public getAmazonFbaItemInventory_args(getAmazonFbaItemInventory_args other) {
47621
      __isset_bit_vector.clear();
47622
      __isset_bit_vector.or(other.__isset_bit_vector);
47623
      this.itemId = other.itemId;
47624
    }
47625
 
47626
    public getAmazonFbaItemInventory_args deepCopy() {
47627
      return new getAmazonFbaItemInventory_args(this);
47628
    }
47629
 
47630
    @Override
47631
    public void clear() {
47632
      setItemIdIsSet(false);
47633
      this.itemId = 0;
47634
    }
47635
 
47636
    public long getItemId() {
47637
      return this.itemId;
47638
    }
47639
 
47640
    public void setItemId(long itemId) {
47641
      this.itemId = itemId;
47642
      setItemIdIsSet(true);
47643
    }
47644
 
47645
    public void unsetItemId() {
47646
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
47647
    }
47648
 
47649
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
47650
    public boolean isSetItemId() {
47651
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
47652
    }
47653
 
47654
    public void setItemIdIsSet(boolean value) {
47655
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
47656
    }
47657
 
47658
    public void setFieldValue(_Fields field, Object value) {
47659
      switch (field) {
47660
      case ITEM_ID:
47661
        if (value == null) {
47662
          unsetItemId();
47663
        } else {
47664
          setItemId((Long)value);
47665
        }
47666
        break;
47667
 
47668
      }
47669
    }
47670
 
47671
    public Object getFieldValue(_Fields field) {
47672
      switch (field) {
47673
      case ITEM_ID:
47674
        return Long.valueOf(getItemId());
47675
 
47676
      }
47677
      throw new IllegalStateException();
47678
    }
47679
 
47680
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47681
    public boolean isSet(_Fields field) {
47682
      if (field == null) {
47683
        throw new IllegalArgumentException();
47684
      }
47685
 
47686
      switch (field) {
47687
      case ITEM_ID:
47688
        return isSetItemId();
47689
      }
47690
      throw new IllegalStateException();
47691
    }
47692
 
47693
    @Override
47694
    public boolean equals(Object that) {
47695
      if (that == null)
47696
        return false;
47697
      if (that instanceof getAmazonFbaItemInventory_args)
47698
        return this.equals((getAmazonFbaItemInventory_args)that);
47699
      return false;
47700
    }
47701
 
47702
    public boolean equals(getAmazonFbaItemInventory_args that) {
47703
      if (that == null)
47704
        return false;
47705
 
47706
      boolean this_present_itemId = true;
47707
      boolean that_present_itemId = true;
47708
      if (this_present_itemId || that_present_itemId) {
47709
        if (!(this_present_itemId && that_present_itemId))
47710
          return false;
47711
        if (this.itemId != that.itemId)
47712
          return false;
47713
      }
47714
 
47715
      return true;
47716
    }
47717
 
47718
    @Override
47719
    public int hashCode() {
47720
      return 0;
47721
    }
47722
 
47723
    public int compareTo(getAmazonFbaItemInventory_args other) {
47724
      if (!getClass().equals(other.getClass())) {
47725
        return getClass().getName().compareTo(other.getClass().getName());
47726
      }
47727
 
47728
      int lastComparison = 0;
47729
      getAmazonFbaItemInventory_args typedOther = (getAmazonFbaItemInventory_args)other;
47730
 
47731
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
47732
      if (lastComparison != 0) {
47733
        return lastComparison;
47734
      }
47735
      if (isSetItemId()) {
47736
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
47737
        if (lastComparison != 0) {
47738
          return lastComparison;
47739
        }
47740
      }
47741
      return 0;
47742
    }
47743
 
47744
    public _Fields fieldForId(int fieldId) {
47745
      return _Fields.findByThriftId(fieldId);
47746
    }
47747
 
47748
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
47749
      org.apache.thrift.protocol.TField field;
47750
      iprot.readStructBegin();
47751
      while (true)
47752
      {
47753
        field = iprot.readFieldBegin();
47754
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
47755
          break;
47756
        }
47757
        switch (field.id) {
47758
          case 1: // ITEM_ID
47759
            if (field.type == org.apache.thrift.protocol.TType.I64) {
47760
              this.itemId = iprot.readI64();
47761
              setItemIdIsSet(true);
47762
            } else { 
47763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47764
            }
47765
            break;
47766
          default:
47767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
47768
        }
47769
        iprot.readFieldEnd();
47770
      }
47771
      iprot.readStructEnd();
47772
      validate();
47773
    }
47774
 
47775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
47776
      validate();
47777
 
47778
      oprot.writeStructBegin(STRUCT_DESC);
47779
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
47780
      oprot.writeI64(this.itemId);
47781
      oprot.writeFieldEnd();
47782
      oprot.writeFieldStop();
47783
      oprot.writeStructEnd();
47784
    }
47785
 
47786
    @Override
47787
    public String toString() {
47788
      StringBuilder sb = new StringBuilder("getAmazonFbaItemInventory_args(");
47789
      boolean first = true;
47790
 
47791
      sb.append("itemId:");
47792
      sb.append(this.itemId);
47793
      first = false;
47794
      sb.append(")");
47795
      return sb.toString();
47796
    }
47797
 
47798
    public void validate() throws org.apache.thrift.TException {
47799
      // check for required fields
47800
    }
47801
 
47802
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
47803
      try {
47804
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
47805
      } catch (org.apache.thrift.TException te) {
47806
        throw new java.io.IOException(te);
47807
      }
47808
    }
47809
 
47810
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
47811
      try {
47812
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
47813
        __isset_bit_vector = new BitSet(1);
47814
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
47815
      } catch (org.apache.thrift.TException te) {
47816
        throw new java.io.IOException(te);
47817
      }
47818
    }
47819
 
47820
  }
47821
 
47822
  public static class getAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAmazonFbaItemInventory_result, getAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
47823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaItemInventory_result");
47824
 
11173 vikram.rag 47825
    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 47826
 
11173 vikram.rag 47827
    private List<AmazonFbaInventorySnapshot> success; // required
8282 kshitij.so 47828
 
47829
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47830
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47831
      SUCCESS((short)0, "success");
47832
 
47833
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47834
 
47835
      static {
47836
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
47837
          byName.put(field.getFieldName(), field);
47838
        }
47839
      }
47840
 
47841
      /**
47842
       * Find the _Fields constant that matches fieldId, or null if its not found.
47843
       */
47844
      public static _Fields findByThriftId(int fieldId) {
47845
        switch(fieldId) {
47846
          case 0: // SUCCESS
47847
            return SUCCESS;
47848
          default:
47849
            return null;
47850
        }
47851
      }
47852
 
47853
      /**
47854
       * Find the _Fields constant that matches fieldId, throwing an exception
47855
       * if it is not found.
47856
       */
47857
      public static _Fields findByThriftIdOrThrow(int fieldId) {
47858
        _Fields fields = findByThriftId(fieldId);
47859
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
47860
        return fields;
47861
      }
47862
 
47863
      /**
47864
       * Find the _Fields constant that matches name, or null if its not found.
47865
       */
47866
      public static _Fields findByName(String name) {
47867
        return byName.get(name);
47868
      }
47869
 
47870
      private final short _thriftId;
47871
      private final String _fieldName;
47872
 
47873
      _Fields(short thriftId, String fieldName) {
47874
        _thriftId = thriftId;
47875
        _fieldName = fieldName;
47876
      }
47877
 
47878
      public short getThriftFieldId() {
47879
        return _thriftId;
47880
      }
47881
 
47882
      public String getFieldName() {
47883
        return _fieldName;
47884
      }
47885
    }
47886
 
47887
    // isset id assignments
47888
 
47889
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
47890
    static {
47891
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
47892
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11173 vikram.rag 47893
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
47894
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
8282 kshitij.so 47895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
47896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaItemInventory_result.class, metaDataMap);
47897
    }
47898
 
47899
    public getAmazonFbaItemInventory_result() {
47900
    }
47901
 
47902
    public getAmazonFbaItemInventory_result(
11173 vikram.rag 47903
      List<AmazonFbaInventorySnapshot> success)
8282 kshitij.so 47904
    {
47905
      this();
47906
      this.success = success;
47907
    }
47908
 
47909
    /**
47910
     * Performs a deep copy on <i>other</i>.
47911
     */
47912
    public getAmazonFbaItemInventory_result(getAmazonFbaItemInventory_result other) {
11173 vikram.rag 47913
      if (other.isSetSuccess()) {
47914
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
47915
        for (AmazonFbaInventorySnapshot other_element : other.success) {
47916
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
47917
        }
47918
        this.success = __this__success;
47919
      }
8282 kshitij.so 47920
    }
47921
 
47922
    public getAmazonFbaItemInventory_result deepCopy() {
47923
      return new getAmazonFbaItemInventory_result(this);
47924
    }
47925
 
47926
    @Override
47927
    public void clear() {
11173 vikram.rag 47928
      this.success = null;
8282 kshitij.so 47929
    }
47930
 
11173 vikram.rag 47931
    public int getSuccessSize() {
47932
      return (this.success == null) ? 0 : this.success.size();
47933
    }
47934
 
47935
    public java.util.Iterator<AmazonFbaInventorySnapshot> getSuccessIterator() {
47936
      return (this.success == null) ? null : this.success.iterator();
47937
    }
47938
 
47939
    public void addToSuccess(AmazonFbaInventorySnapshot elem) {
47940
      if (this.success == null) {
47941
        this.success = new ArrayList<AmazonFbaInventorySnapshot>();
47942
      }
47943
      this.success.add(elem);
47944
    }
47945
 
47946
    public List<AmazonFbaInventorySnapshot> getSuccess() {
8282 kshitij.so 47947
      return this.success;
47948
    }
47949
 
11173 vikram.rag 47950
    public void setSuccess(List<AmazonFbaInventorySnapshot> success) {
8282 kshitij.so 47951
      this.success = success;
47952
    }
47953
 
47954
    public void unsetSuccess() {
11173 vikram.rag 47955
      this.success = null;
8282 kshitij.so 47956
    }
47957
 
47958
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
47959
    public boolean isSetSuccess() {
11173 vikram.rag 47960
      return this.success != null;
8282 kshitij.so 47961
    }
47962
 
47963
    public void setSuccessIsSet(boolean value) {
11173 vikram.rag 47964
      if (!value) {
47965
        this.success = null;
47966
      }
8282 kshitij.so 47967
    }
47968
 
47969
    public void setFieldValue(_Fields field, Object value) {
47970
      switch (field) {
47971
      case SUCCESS:
47972
        if (value == null) {
47973
          unsetSuccess();
47974
        } else {
11173 vikram.rag 47975
          setSuccess((List<AmazonFbaInventorySnapshot>)value);
8282 kshitij.so 47976
        }
47977
        break;
47978
 
47979
      }
47980
    }
47981
 
47982
    public Object getFieldValue(_Fields field) {
47983
      switch (field) {
47984
      case SUCCESS:
11173 vikram.rag 47985
        return getSuccess();
8282 kshitij.so 47986
 
47987
      }
47988
      throw new IllegalStateException();
47989
    }
47990
 
47991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
47992
    public boolean isSet(_Fields field) {
47993
      if (field == null) {
47994
        throw new IllegalArgumentException();
47995
      }
47996
 
47997
      switch (field) {
47998
      case SUCCESS:
47999
        return isSetSuccess();
48000
      }
48001
      throw new IllegalStateException();
48002
    }
48003
 
48004
    @Override
48005
    public boolean equals(Object that) {
48006
      if (that == null)
48007
        return false;
48008
      if (that instanceof getAmazonFbaItemInventory_result)
48009
        return this.equals((getAmazonFbaItemInventory_result)that);
48010
      return false;
48011
    }
48012
 
48013
    public boolean equals(getAmazonFbaItemInventory_result that) {
48014
      if (that == null)
48015
        return false;
48016
 
11173 vikram.rag 48017
      boolean this_present_success = true && this.isSetSuccess();
48018
      boolean that_present_success = true && that.isSetSuccess();
8282 kshitij.so 48019
      if (this_present_success || that_present_success) {
48020
        if (!(this_present_success && that_present_success))
48021
          return false;
11173 vikram.rag 48022
        if (!this.success.equals(that.success))
8282 kshitij.so 48023
          return false;
48024
      }
48025
 
48026
      return true;
48027
    }
48028
 
48029
    @Override
48030
    public int hashCode() {
48031
      return 0;
48032
    }
48033
 
48034
    public int compareTo(getAmazonFbaItemInventory_result other) {
48035
      if (!getClass().equals(other.getClass())) {
48036
        return getClass().getName().compareTo(other.getClass().getName());
48037
      }
48038
 
48039
      int lastComparison = 0;
48040
      getAmazonFbaItemInventory_result typedOther = (getAmazonFbaItemInventory_result)other;
48041
 
48042
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48043
      if (lastComparison != 0) {
48044
        return lastComparison;
48045
      }
48046
      if (isSetSuccess()) {
48047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48048
        if (lastComparison != 0) {
48049
          return lastComparison;
48050
        }
48051
      }
48052
      return 0;
48053
    }
48054
 
48055
    public _Fields fieldForId(int fieldId) {
48056
      return _Fields.findByThriftId(fieldId);
48057
    }
48058
 
48059
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48060
      org.apache.thrift.protocol.TField field;
48061
      iprot.readStructBegin();
48062
      while (true)
48063
      {
48064
        field = iprot.readFieldBegin();
48065
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48066
          break;
48067
        }
48068
        switch (field.id) {
48069
          case 0: // SUCCESS
11173 vikram.rag 48070
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48071
              {
48072
                org.apache.thrift.protocol.TList _list138 = iprot.readListBegin();
48073
                this.success = new ArrayList<AmazonFbaInventorySnapshot>(_list138.size);
48074
                for (int _i139 = 0; _i139 < _list138.size; ++_i139)
48075
                {
48076
                  AmazonFbaInventorySnapshot _elem140; // required
48077
                  _elem140 = new AmazonFbaInventorySnapshot();
48078
                  _elem140.read(iprot);
48079
                  this.success.add(_elem140);
48080
                }
48081
                iprot.readListEnd();
48082
              }
8282 kshitij.so 48083
            } else { 
48084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48085
            }
48086
            break;
48087
          default:
48088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48089
        }
48090
        iprot.readFieldEnd();
48091
      }
48092
      iprot.readStructEnd();
48093
      validate();
48094
    }
48095
 
48096
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48097
      oprot.writeStructBegin(STRUCT_DESC);
48098
 
48099
      if (this.isSetSuccess()) {
48100
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11173 vikram.rag 48101
        {
48102
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
48103
          for (AmazonFbaInventorySnapshot _iter141 : this.success)
48104
          {
48105
            _iter141.write(oprot);
48106
          }
48107
          oprot.writeListEnd();
48108
        }
8282 kshitij.so 48109
        oprot.writeFieldEnd();
48110
      }
48111
      oprot.writeFieldStop();
48112
      oprot.writeStructEnd();
48113
    }
48114
 
48115
    @Override
48116
    public String toString() {
48117
      StringBuilder sb = new StringBuilder("getAmazonFbaItemInventory_result(");
48118
      boolean first = true;
48119
 
48120
      sb.append("success:");
11173 vikram.rag 48121
      if (this.success == null) {
48122
        sb.append("null");
48123
      } else {
48124
        sb.append(this.success);
48125
      }
8282 kshitij.so 48126
      first = false;
48127
      sb.append(")");
48128
      return sb.toString();
48129
    }
48130
 
48131
    public void validate() throws org.apache.thrift.TException {
48132
      // check for required fields
48133
    }
48134
 
48135
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48136
      try {
48137
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48138
      } catch (org.apache.thrift.TException te) {
48139
        throw new java.io.IOException(te);
48140
      }
48141
    }
48142
 
48143
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48144
      try {
48145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48146
      } catch (org.apache.thrift.TException te) {
48147
        throw new java.io.IOException(te);
48148
      }
48149
    }
48150
 
48151
  }
48152
 
8363 vikram.rag 48153
  public static class getAllAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAllAmazonFbaItemInventory_args, getAllAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
48154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonFbaItemInventory_args");
8282 kshitij.so 48155
 
48156
 
48157
 
48158
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48159
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48160
;
48161
 
48162
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48163
 
48164
      static {
48165
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48166
          byName.put(field.getFieldName(), field);
48167
        }
48168
      }
48169
 
48170
      /**
48171
       * Find the _Fields constant that matches fieldId, or null if its not found.
48172
       */
48173
      public static _Fields findByThriftId(int fieldId) {
48174
        switch(fieldId) {
48175
          default:
48176
            return null;
48177
        }
48178
      }
48179
 
48180
      /**
48181
       * Find the _Fields constant that matches fieldId, throwing an exception
48182
       * if it is not found.
48183
       */
48184
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48185
        _Fields fields = findByThriftId(fieldId);
48186
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48187
        return fields;
48188
      }
48189
 
48190
      /**
48191
       * Find the _Fields constant that matches name, or null if its not found.
48192
       */
48193
      public static _Fields findByName(String name) {
48194
        return byName.get(name);
48195
      }
48196
 
48197
      private final short _thriftId;
48198
      private final String _fieldName;
48199
 
48200
      _Fields(short thriftId, String fieldName) {
48201
        _thriftId = thriftId;
48202
        _fieldName = fieldName;
48203
      }
48204
 
48205
      public short getThriftFieldId() {
48206
        return _thriftId;
48207
      }
48208
 
48209
      public String getFieldName() {
48210
        return _fieldName;
48211
      }
48212
    }
48213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48214
    static {
48215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48216
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8363 vikram.rag 48217
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonFbaItemInventory_args.class, metaDataMap);
8282 kshitij.so 48218
    }
48219
 
8363 vikram.rag 48220
    public getAllAmazonFbaItemInventory_args() {
8282 kshitij.so 48221
    }
48222
 
48223
    /**
48224
     * Performs a deep copy on <i>other</i>.
48225
     */
8363 vikram.rag 48226
    public getAllAmazonFbaItemInventory_args(getAllAmazonFbaItemInventory_args other) {
8282 kshitij.so 48227
    }
48228
 
8363 vikram.rag 48229
    public getAllAmazonFbaItemInventory_args deepCopy() {
48230
      return new getAllAmazonFbaItemInventory_args(this);
8282 kshitij.so 48231
    }
48232
 
48233
    @Override
48234
    public void clear() {
48235
    }
48236
 
48237
    public void setFieldValue(_Fields field, Object value) {
48238
      switch (field) {
48239
      }
48240
    }
48241
 
48242
    public Object getFieldValue(_Fields field) {
48243
      switch (field) {
48244
      }
48245
      throw new IllegalStateException();
48246
    }
48247
 
48248
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48249
    public boolean isSet(_Fields field) {
48250
      if (field == null) {
48251
        throw new IllegalArgumentException();
48252
      }
48253
 
48254
      switch (field) {
48255
      }
48256
      throw new IllegalStateException();
48257
    }
48258
 
48259
    @Override
48260
    public boolean equals(Object that) {
48261
      if (that == null)
48262
        return false;
8363 vikram.rag 48263
      if (that instanceof getAllAmazonFbaItemInventory_args)
48264
        return this.equals((getAllAmazonFbaItemInventory_args)that);
8282 kshitij.so 48265
      return false;
48266
    }
48267
 
8363 vikram.rag 48268
    public boolean equals(getAllAmazonFbaItemInventory_args that) {
8282 kshitij.so 48269
      if (that == null)
48270
        return false;
48271
 
48272
      return true;
48273
    }
48274
 
48275
    @Override
48276
    public int hashCode() {
48277
      return 0;
48278
    }
48279
 
8363 vikram.rag 48280
    public int compareTo(getAllAmazonFbaItemInventory_args other) {
8282 kshitij.so 48281
      if (!getClass().equals(other.getClass())) {
48282
        return getClass().getName().compareTo(other.getClass().getName());
48283
      }
48284
 
48285
      int lastComparison = 0;
8363 vikram.rag 48286
      getAllAmazonFbaItemInventory_args typedOther = (getAllAmazonFbaItemInventory_args)other;
8282 kshitij.so 48287
 
48288
      return 0;
48289
    }
48290
 
48291
    public _Fields fieldForId(int fieldId) {
48292
      return _Fields.findByThriftId(fieldId);
48293
    }
48294
 
48295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48296
      org.apache.thrift.protocol.TField field;
48297
      iprot.readStructBegin();
48298
      while (true)
48299
      {
48300
        field = iprot.readFieldBegin();
48301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48302
          break;
48303
        }
48304
        switch (field.id) {
48305
          default:
48306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48307
        }
48308
        iprot.readFieldEnd();
48309
      }
48310
      iprot.readStructEnd();
48311
      validate();
48312
    }
48313
 
48314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48315
      validate();
48316
 
48317
      oprot.writeStructBegin(STRUCT_DESC);
48318
      oprot.writeFieldStop();
48319
      oprot.writeStructEnd();
48320
    }
48321
 
48322
    @Override
48323
    public String toString() {
8363 vikram.rag 48324
      StringBuilder sb = new StringBuilder("getAllAmazonFbaItemInventory_args(");
8282 kshitij.so 48325
      boolean first = true;
48326
 
48327
      sb.append(")");
48328
      return sb.toString();
48329
    }
48330
 
48331
    public void validate() throws org.apache.thrift.TException {
48332
      // check for required fields
48333
    }
48334
 
48335
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48336
      try {
48337
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48338
      } catch (org.apache.thrift.TException te) {
48339
        throw new java.io.IOException(te);
48340
      }
48341
    }
48342
 
48343
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48344
      try {
48345
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48346
      } catch (org.apache.thrift.TException te) {
48347
        throw new java.io.IOException(te);
48348
      }
48349
    }
48350
 
48351
  }
48352
 
8363 vikram.rag 48353
  public static class getAllAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAllAmazonFbaItemInventory_result, getAllAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
48354
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonFbaItemInventory_result");
8282 kshitij.so 48355
 
48356
    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);
48357
 
48358
    private List<AmazonFbaInventorySnapshot> success; // required
48359
 
48360
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48361
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48362
      SUCCESS((short)0, "success");
48363
 
48364
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48365
 
48366
      static {
48367
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48368
          byName.put(field.getFieldName(), field);
48369
        }
48370
      }
48371
 
48372
      /**
48373
       * Find the _Fields constant that matches fieldId, or null if its not found.
48374
       */
48375
      public static _Fields findByThriftId(int fieldId) {
48376
        switch(fieldId) {
48377
          case 0: // SUCCESS
48378
            return SUCCESS;
48379
          default:
48380
            return null;
48381
        }
48382
      }
48383
 
48384
      /**
48385
       * Find the _Fields constant that matches fieldId, throwing an exception
48386
       * if it is not found.
48387
       */
48388
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48389
        _Fields fields = findByThriftId(fieldId);
48390
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48391
        return fields;
48392
      }
48393
 
48394
      /**
48395
       * Find the _Fields constant that matches name, or null if its not found.
48396
       */
48397
      public static _Fields findByName(String name) {
48398
        return byName.get(name);
48399
      }
48400
 
48401
      private final short _thriftId;
48402
      private final String _fieldName;
48403
 
48404
      _Fields(short thriftId, String fieldName) {
48405
        _thriftId = thriftId;
48406
        _fieldName = fieldName;
48407
      }
48408
 
48409
      public short getThriftFieldId() {
48410
        return _thriftId;
48411
      }
48412
 
48413
      public String getFieldName() {
48414
        return _fieldName;
48415
      }
48416
    }
48417
 
48418
    // isset id assignments
48419
 
48420
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48421
    static {
48422
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48423
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48424
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
48425
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
48426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8363 vikram.rag 48427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonFbaItemInventory_result.class, metaDataMap);
8282 kshitij.so 48428
    }
48429
 
8363 vikram.rag 48430
    public getAllAmazonFbaItemInventory_result() {
8282 kshitij.so 48431
    }
48432
 
8363 vikram.rag 48433
    public getAllAmazonFbaItemInventory_result(
8282 kshitij.so 48434
      List<AmazonFbaInventorySnapshot> success)
48435
    {
48436
      this();
48437
      this.success = success;
48438
    }
48439
 
48440
    /**
48441
     * Performs a deep copy on <i>other</i>.
48442
     */
8363 vikram.rag 48443
    public getAllAmazonFbaItemInventory_result(getAllAmazonFbaItemInventory_result other) {
8282 kshitij.so 48444
      if (other.isSetSuccess()) {
48445
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
48446
        for (AmazonFbaInventorySnapshot other_element : other.success) {
48447
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
48448
        }
48449
        this.success = __this__success;
48450
      }
48451
    }
48452
 
8363 vikram.rag 48453
    public getAllAmazonFbaItemInventory_result deepCopy() {
48454
      return new getAllAmazonFbaItemInventory_result(this);
8282 kshitij.so 48455
    }
48456
 
48457
    @Override
48458
    public void clear() {
48459
      this.success = null;
48460
    }
48461
 
48462
    public int getSuccessSize() {
48463
      return (this.success == null) ? 0 : this.success.size();
48464
    }
48465
 
48466
    public java.util.Iterator<AmazonFbaInventorySnapshot> getSuccessIterator() {
48467
      return (this.success == null) ? null : this.success.iterator();
48468
    }
48469
 
48470
    public void addToSuccess(AmazonFbaInventorySnapshot elem) {
48471
      if (this.success == null) {
48472
        this.success = new ArrayList<AmazonFbaInventorySnapshot>();
48473
      }
48474
      this.success.add(elem);
48475
    }
48476
 
48477
    public List<AmazonFbaInventorySnapshot> getSuccess() {
48478
      return this.success;
48479
    }
48480
 
48481
    public void setSuccess(List<AmazonFbaInventorySnapshot> success) {
48482
      this.success = success;
48483
    }
48484
 
48485
    public void unsetSuccess() {
48486
      this.success = null;
48487
    }
48488
 
48489
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48490
    public boolean isSetSuccess() {
48491
      return this.success != null;
48492
    }
48493
 
48494
    public void setSuccessIsSet(boolean value) {
48495
      if (!value) {
48496
        this.success = null;
48497
      }
48498
    }
48499
 
48500
    public void setFieldValue(_Fields field, Object value) {
48501
      switch (field) {
48502
      case SUCCESS:
48503
        if (value == null) {
48504
          unsetSuccess();
48505
        } else {
48506
          setSuccess((List<AmazonFbaInventorySnapshot>)value);
48507
        }
48508
        break;
48509
 
48510
      }
48511
    }
48512
 
48513
    public Object getFieldValue(_Fields field) {
48514
      switch (field) {
48515
      case SUCCESS:
48516
        return getSuccess();
48517
 
48518
      }
48519
      throw new IllegalStateException();
48520
    }
48521
 
48522
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48523
    public boolean isSet(_Fields field) {
48524
      if (field == null) {
48525
        throw new IllegalArgumentException();
48526
      }
48527
 
48528
      switch (field) {
48529
      case SUCCESS:
48530
        return isSetSuccess();
48531
      }
48532
      throw new IllegalStateException();
48533
    }
48534
 
48535
    @Override
48536
    public boolean equals(Object that) {
48537
      if (that == null)
48538
        return false;
8363 vikram.rag 48539
      if (that instanceof getAllAmazonFbaItemInventory_result)
48540
        return this.equals((getAllAmazonFbaItemInventory_result)that);
8282 kshitij.so 48541
      return false;
48542
    }
48543
 
8363 vikram.rag 48544
    public boolean equals(getAllAmazonFbaItemInventory_result that) {
8282 kshitij.so 48545
      if (that == null)
48546
        return false;
48547
 
48548
      boolean this_present_success = true && this.isSetSuccess();
48549
      boolean that_present_success = true && that.isSetSuccess();
48550
      if (this_present_success || that_present_success) {
48551
        if (!(this_present_success && that_present_success))
48552
          return false;
48553
        if (!this.success.equals(that.success))
48554
          return false;
48555
      }
48556
 
48557
      return true;
48558
    }
48559
 
48560
    @Override
48561
    public int hashCode() {
48562
      return 0;
48563
    }
48564
 
8363 vikram.rag 48565
    public int compareTo(getAllAmazonFbaItemInventory_result other) {
8282 kshitij.so 48566
      if (!getClass().equals(other.getClass())) {
48567
        return getClass().getName().compareTo(other.getClass().getName());
48568
      }
48569
 
48570
      int lastComparison = 0;
8363 vikram.rag 48571
      getAllAmazonFbaItemInventory_result typedOther = (getAllAmazonFbaItemInventory_result)other;
8282 kshitij.so 48572
 
48573
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48574
      if (lastComparison != 0) {
48575
        return lastComparison;
48576
      }
48577
      if (isSetSuccess()) {
48578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
48579
        if (lastComparison != 0) {
48580
          return lastComparison;
48581
        }
48582
      }
48583
      return 0;
48584
    }
48585
 
48586
    public _Fields fieldForId(int fieldId) {
48587
      return _Fields.findByThriftId(fieldId);
48588
    }
48589
 
48590
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48591
      org.apache.thrift.protocol.TField field;
48592
      iprot.readStructBegin();
48593
      while (true)
48594
      {
48595
        field = iprot.readFieldBegin();
48596
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48597
          break;
48598
        }
48599
        switch (field.id) {
48600
          case 0: // SUCCESS
48601
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
48602
              {
11173 vikram.rag 48603
                org.apache.thrift.protocol.TList _list142 = iprot.readListBegin();
48604
                this.success = new ArrayList<AmazonFbaInventorySnapshot>(_list142.size);
48605
                for (int _i143 = 0; _i143 < _list142.size; ++_i143)
8282 kshitij.so 48606
                {
11173 vikram.rag 48607
                  AmazonFbaInventorySnapshot _elem144; // required
48608
                  _elem144 = new AmazonFbaInventorySnapshot();
48609
                  _elem144.read(iprot);
48610
                  this.success.add(_elem144);
8282 kshitij.so 48611
                }
48612
                iprot.readListEnd();
48613
              }
48614
            } else { 
48615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48616
            }
48617
            break;
48618
          default:
48619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48620
        }
48621
        iprot.readFieldEnd();
48622
      }
48623
      iprot.readStructEnd();
48624
      validate();
48625
    }
48626
 
48627
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48628
      oprot.writeStructBegin(STRUCT_DESC);
48629
 
48630
      if (this.isSetSuccess()) {
48631
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
48632
        {
48633
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 48634
          for (AmazonFbaInventorySnapshot _iter145 : this.success)
8282 kshitij.so 48635
          {
11173 vikram.rag 48636
            _iter145.write(oprot);
8282 kshitij.so 48637
          }
48638
          oprot.writeListEnd();
48639
        }
48640
        oprot.writeFieldEnd();
48641
      }
48642
      oprot.writeFieldStop();
48643
      oprot.writeStructEnd();
48644
    }
48645
 
48646
    @Override
48647
    public String toString() {
8363 vikram.rag 48648
      StringBuilder sb = new StringBuilder("getAllAmazonFbaItemInventory_result(");
8282 kshitij.so 48649
      boolean first = true;
48650
 
48651
      sb.append("success:");
48652
      if (this.success == null) {
48653
        sb.append("null");
48654
      } else {
48655
        sb.append(this.success);
48656
      }
48657
      first = false;
48658
      sb.append(")");
48659
      return sb.toString();
48660
    }
48661
 
48662
    public void validate() throws org.apache.thrift.TException {
48663
      // check for required fields
48664
    }
48665
 
48666
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48667
      try {
48668
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48669
      } catch (org.apache.thrift.TException te) {
48670
        throw new java.io.IOException(te);
48671
      }
48672
    }
48673
 
48674
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48675
      try {
48676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48677
      } catch (org.apache.thrift.TException te) {
48678
        throw new java.io.IOException(te);
48679
      }
48680
    }
48681
 
48682
  }
48683
 
8363 vikram.rag 48684
  public static class getOursGoodWarehouseIdsForLocation_args implements org.apache.thrift.TBase<getOursGoodWarehouseIdsForLocation_args, getOursGoodWarehouseIdsForLocation_args._Fields>, java.io.Serializable, Cloneable   {
48685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOursGoodWarehouseIdsForLocation_args");
48686
 
48687
    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);
48688
 
48689
    private long state_id; // required
48690
 
48691
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48692
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48693
      STATE_ID((short)1, "state_id");
48694
 
48695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48696
 
48697
      static {
48698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48699
          byName.put(field.getFieldName(), field);
48700
        }
48701
      }
48702
 
48703
      /**
48704
       * Find the _Fields constant that matches fieldId, or null if its not found.
48705
       */
48706
      public static _Fields findByThriftId(int fieldId) {
48707
        switch(fieldId) {
48708
          case 1: // STATE_ID
48709
            return STATE_ID;
48710
          default:
48711
            return null;
48712
        }
48713
      }
48714
 
48715
      /**
48716
       * Find the _Fields constant that matches fieldId, throwing an exception
48717
       * if it is not found.
48718
       */
48719
      public static _Fields findByThriftIdOrThrow(int fieldId) {
48720
        _Fields fields = findByThriftId(fieldId);
48721
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
48722
        return fields;
48723
      }
48724
 
48725
      /**
48726
       * Find the _Fields constant that matches name, or null if its not found.
48727
       */
48728
      public static _Fields findByName(String name) {
48729
        return byName.get(name);
48730
      }
48731
 
48732
      private final short _thriftId;
48733
      private final String _fieldName;
48734
 
48735
      _Fields(short thriftId, String fieldName) {
48736
        _thriftId = thriftId;
48737
        _fieldName = fieldName;
48738
      }
48739
 
48740
      public short getThriftFieldId() {
48741
        return _thriftId;
48742
      }
48743
 
48744
      public String getFieldName() {
48745
        return _fieldName;
48746
      }
48747
    }
48748
 
48749
    // isset id assignments
48750
    private static final int __STATE_ID_ISSET_ID = 0;
48751
    private BitSet __isset_bit_vector = new BitSet(1);
48752
 
48753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48754
    static {
48755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
48756
      tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("state_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
48757
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
48758
      metaDataMap = Collections.unmodifiableMap(tmpMap);
48759
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOursGoodWarehouseIdsForLocation_args.class, metaDataMap);
48760
    }
48761
 
48762
    public getOursGoodWarehouseIdsForLocation_args() {
48763
    }
48764
 
48765
    public getOursGoodWarehouseIdsForLocation_args(
48766
      long state_id)
48767
    {
48768
      this();
48769
      this.state_id = state_id;
48770
      setState_idIsSet(true);
48771
    }
48772
 
48773
    /**
48774
     * Performs a deep copy on <i>other</i>.
48775
     */
48776
    public getOursGoodWarehouseIdsForLocation_args(getOursGoodWarehouseIdsForLocation_args other) {
48777
      __isset_bit_vector.clear();
48778
      __isset_bit_vector.or(other.__isset_bit_vector);
48779
      this.state_id = other.state_id;
48780
    }
48781
 
48782
    public getOursGoodWarehouseIdsForLocation_args deepCopy() {
48783
      return new getOursGoodWarehouseIdsForLocation_args(this);
48784
    }
48785
 
48786
    @Override
48787
    public void clear() {
48788
      setState_idIsSet(false);
48789
      this.state_id = 0;
48790
    }
48791
 
48792
    public long getState_id() {
48793
      return this.state_id;
48794
    }
48795
 
48796
    public void setState_id(long state_id) {
48797
      this.state_id = state_id;
48798
      setState_idIsSet(true);
48799
    }
48800
 
48801
    public void unsetState_id() {
48802
      __isset_bit_vector.clear(__STATE_ID_ISSET_ID);
48803
    }
48804
 
48805
    /** Returns true if field state_id is set (has been assigned a value) and false otherwise */
48806
    public boolean isSetState_id() {
48807
      return __isset_bit_vector.get(__STATE_ID_ISSET_ID);
48808
    }
48809
 
48810
    public void setState_idIsSet(boolean value) {
48811
      __isset_bit_vector.set(__STATE_ID_ISSET_ID, value);
48812
    }
48813
 
48814
    public void setFieldValue(_Fields field, Object value) {
48815
      switch (field) {
48816
      case STATE_ID:
48817
        if (value == null) {
48818
          unsetState_id();
48819
        } else {
48820
          setState_id((Long)value);
48821
        }
48822
        break;
48823
 
48824
      }
48825
    }
48826
 
48827
    public Object getFieldValue(_Fields field) {
48828
      switch (field) {
48829
      case STATE_ID:
48830
        return Long.valueOf(getState_id());
48831
 
48832
      }
48833
      throw new IllegalStateException();
48834
    }
48835
 
48836
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
48837
    public boolean isSet(_Fields field) {
48838
      if (field == null) {
48839
        throw new IllegalArgumentException();
48840
      }
48841
 
48842
      switch (field) {
48843
      case STATE_ID:
48844
        return isSetState_id();
48845
      }
48846
      throw new IllegalStateException();
48847
    }
48848
 
48849
    @Override
48850
    public boolean equals(Object that) {
48851
      if (that == null)
48852
        return false;
48853
      if (that instanceof getOursGoodWarehouseIdsForLocation_args)
48854
        return this.equals((getOursGoodWarehouseIdsForLocation_args)that);
48855
      return false;
48856
    }
48857
 
48858
    public boolean equals(getOursGoodWarehouseIdsForLocation_args that) {
48859
      if (that == null)
48860
        return false;
48861
 
48862
      boolean this_present_state_id = true;
48863
      boolean that_present_state_id = true;
48864
      if (this_present_state_id || that_present_state_id) {
48865
        if (!(this_present_state_id && that_present_state_id))
48866
          return false;
48867
        if (this.state_id != that.state_id)
48868
          return false;
48869
      }
48870
 
48871
      return true;
48872
    }
48873
 
48874
    @Override
48875
    public int hashCode() {
48876
      return 0;
48877
    }
48878
 
48879
    public int compareTo(getOursGoodWarehouseIdsForLocation_args other) {
48880
      if (!getClass().equals(other.getClass())) {
48881
        return getClass().getName().compareTo(other.getClass().getName());
48882
      }
48883
 
48884
      int lastComparison = 0;
48885
      getOursGoodWarehouseIdsForLocation_args typedOther = (getOursGoodWarehouseIdsForLocation_args)other;
48886
 
48887
      lastComparison = Boolean.valueOf(isSetState_id()).compareTo(typedOther.isSetState_id());
48888
      if (lastComparison != 0) {
48889
        return lastComparison;
48890
      }
48891
      if (isSetState_id()) {
48892
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state_id, typedOther.state_id);
48893
        if (lastComparison != 0) {
48894
          return lastComparison;
48895
        }
48896
      }
48897
      return 0;
48898
    }
48899
 
48900
    public _Fields fieldForId(int fieldId) {
48901
      return _Fields.findByThriftId(fieldId);
48902
    }
48903
 
48904
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
48905
      org.apache.thrift.protocol.TField field;
48906
      iprot.readStructBegin();
48907
      while (true)
48908
      {
48909
        field = iprot.readFieldBegin();
48910
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48911
          break;
48912
        }
48913
        switch (field.id) {
48914
          case 1: // STATE_ID
48915
            if (field.type == org.apache.thrift.protocol.TType.I64) {
48916
              this.state_id = iprot.readI64();
48917
              setState_idIsSet(true);
48918
            } else { 
48919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48920
            }
48921
            break;
48922
          default:
48923
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48924
        }
48925
        iprot.readFieldEnd();
48926
      }
48927
      iprot.readStructEnd();
48928
      validate();
48929
    }
48930
 
48931
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48932
      validate();
48933
 
48934
      oprot.writeStructBegin(STRUCT_DESC);
48935
      oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
48936
      oprot.writeI64(this.state_id);
48937
      oprot.writeFieldEnd();
48938
      oprot.writeFieldStop();
48939
      oprot.writeStructEnd();
48940
    }
48941
 
48942
    @Override
48943
    public String toString() {
48944
      StringBuilder sb = new StringBuilder("getOursGoodWarehouseIdsForLocation_args(");
48945
      boolean first = true;
48946
 
48947
      sb.append("state_id:");
48948
      sb.append(this.state_id);
48949
      first = false;
48950
      sb.append(")");
48951
      return sb.toString();
48952
    }
48953
 
48954
    public void validate() throws org.apache.thrift.TException {
48955
      // check for required fields
48956
    }
48957
 
48958
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
48959
      try {
48960
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
48961
      } catch (org.apache.thrift.TException te) {
48962
        throw new java.io.IOException(te);
48963
      }
48964
    }
48965
 
48966
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
48967
      try {
48968
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
48969
        __isset_bit_vector = new BitSet(1);
48970
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
48971
      } catch (org.apache.thrift.TException te) {
48972
        throw new java.io.IOException(te);
48973
      }
48974
    }
48975
 
48976
  }
48977
 
48978
  public static class getOursGoodWarehouseIdsForLocation_result implements org.apache.thrift.TBase<getOursGoodWarehouseIdsForLocation_result, getOursGoodWarehouseIdsForLocation_result._Fields>, java.io.Serializable, Cloneable   {
48979
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOursGoodWarehouseIdsForLocation_result");
48980
 
48981
    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);
48982
 
48983
    private List<Long> success; // required
48984
 
48985
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
48986
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48987
      SUCCESS((short)0, "success");
48988
 
48989
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48990
 
48991
      static {
48992
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
48993
          byName.put(field.getFieldName(), field);
48994
        }
48995
      }
48996
 
48997
      /**
48998
       * Find the _Fields constant that matches fieldId, or null if its not found.
48999
       */
49000
      public static _Fields findByThriftId(int fieldId) {
49001
        switch(fieldId) {
49002
          case 0: // SUCCESS
49003
            return SUCCESS;
49004
          default:
49005
            return null;
49006
        }
49007
      }
49008
 
49009
      /**
49010
       * Find the _Fields constant that matches fieldId, throwing an exception
49011
       * if it is not found.
49012
       */
49013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49014
        _Fields fields = findByThriftId(fieldId);
49015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49016
        return fields;
49017
      }
49018
 
49019
      /**
49020
       * Find the _Fields constant that matches name, or null if its not found.
49021
       */
49022
      public static _Fields findByName(String name) {
49023
        return byName.get(name);
49024
      }
49025
 
49026
      private final short _thriftId;
49027
      private final String _fieldName;
49028
 
49029
      _Fields(short thriftId, String fieldName) {
49030
        _thriftId = thriftId;
49031
        _fieldName = fieldName;
49032
      }
49033
 
49034
      public short getThriftFieldId() {
49035
        return _thriftId;
49036
      }
49037
 
49038
      public String getFieldName() {
49039
        return _fieldName;
49040
      }
49041
    }
49042
 
49043
    // isset id assignments
49044
 
49045
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49046
    static {
49047
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49048
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49049
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
49050
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
49051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOursGoodWarehouseIdsForLocation_result.class, metaDataMap);
49053
    }
49054
 
49055
    public getOursGoodWarehouseIdsForLocation_result() {
49056
    }
49057
 
49058
    public getOursGoodWarehouseIdsForLocation_result(
49059
      List<Long> success)
49060
    {
49061
      this();
49062
      this.success = success;
49063
    }
49064
 
49065
    /**
49066
     * Performs a deep copy on <i>other</i>.
49067
     */
49068
    public getOursGoodWarehouseIdsForLocation_result(getOursGoodWarehouseIdsForLocation_result other) {
49069
      if (other.isSetSuccess()) {
49070
        List<Long> __this__success = new ArrayList<Long>();
49071
        for (Long other_element : other.success) {
49072
          __this__success.add(other_element);
49073
        }
49074
        this.success = __this__success;
49075
      }
49076
    }
49077
 
49078
    public getOursGoodWarehouseIdsForLocation_result deepCopy() {
49079
      return new getOursGoodWarehouseIdsForLocation_result(this);
49080
    }
49081
 
49082
    @Override
49083
    public void clear() {
49084
      this.success = null;
49085
    }
49086
 
49087
    public int getSuccessSize() {
49088
      return (this.success == null) ? 0 : this.success.size();
49089
    }
49090
 
49091
    public java.util.Iterator<Long> getSuccessIterator() {
49092
      return (this.success == null) ? null : this.success.iterator();
49093
    }
49094
 
49095
    public void addToSuccess(long elem) {
49096
      if (this.success == null) {
49097
        this.success = new ArrayList<Long>();
49098
      }
49099
      this.success.add(elem);
49100
    }
49101
 
49102
    public List<Long> getSuccess() {
49103
      return this.success;
49104
    }
49105
 
49106
    public void setSuccess(List<Long> success) {
49107
      this.success = success;
49108
    }
49109
 
49110
    public void unsetSuccess() {
49111
      this.success = null;
49112
    }
49113
 
49114
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
49115
    public boolean isSetSuccess() {
49116
      return this.success != null;
49117
    }
49118
 
49119
    public void setSuccessIsSet(boolean value) {
49120
      if (!value) {
49121
        this.success = null;
49122
      }
49123
    }
49124
 
49125
    public void setFieldValue(_Fields field, Object value) {
49126
      switch (field) {
49127
      case SUCCESS:
49128
        if (value == null) {
49129
          unsetSuccess();
49130
        } else {
49131
          setSuccess((List<Long>)value);
49132
        }
49133
        break;
49134
 
49135
      }
49136
    }
49137
 
49138
    public Object getFieldValue(_Fields field) {
49139
      switch (field) {
49140
      case SUCCESS:
49141
        return getSuccess();
49142
 
49143
      }
49144
      throw new IllegalStateException();
49145
    }
49146
 
49147
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49148
    public boolean isSet(_Fields field) {
49149
      if (field == null) {
49150
        throw new IllegalArgumentException();
49151
      }
49152
 
49153
      switch (field) {
49154
      case SUCCESS:
49155
        return isSetSuccess();
49156
      }
49157
      throw new IllegalStateException();
49158
    }
49159
 
49160
    @Override
49161
    public boolean equals(Object that) {
49162
      if (that == null)
49163
        return false;
49164
      if (that instanceof getOursGoodWarehouseIdsForLocation_result)
49165
        return this.equals((getOursGoodWarehouseIdsForLocation_result)that);
49166
      return false;
49167
    }
49168
 
49169
    public boolean equals(getOursGoodWarehouseIdsForLocation_result that) {
49170
      if (that == null)
49171
        return false;
49172
 
49173
      boolean this_present_success = true && this.isSetSuccess();
49174
      boolean that_present_success = true && that.isSetSuccess();
49175
      if (this_present_success || that_present_success) {
49176
        if (!(this_present_success && that_present_success))
49177
          return false;
49178
        if (!this.success.equals(that.success))
49179
          return false;
49180
      }
49181
 
49182
      return true;
49183
    }
49184
 
49185
    @Override
49186
    public int hashCode() {
49187
      return 0;
49188
    }
49189
 
49190
    public int compareTo(getOursGoodWarehouseIdsForLocation_result other) {
49191
      if (!getClass().equals(other.getClass())) {
49192
        return getClass().getName().compareTo(other.getClass().getName());
49193
      }
49194
 
49195
      int lastComparison = 0;
49196
      getOursGoodWarehouseIdsForLocation_result typedOther = (getOursGoodWarehouseIdsForLocation_result)other;
49197
 
49198
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49199
      if (lastComparison != 0) {
49200
        return lastComparison;
49201
      }
49202
      if (isSetSuccess()) {
49203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49204
        if (lastComparison != 0) {
49205
          return lastComparison;
49206
        }
49207
      }
49208
      return 0;
49209
    }
49210
 
49211
    public _Fields fieldForId(int fieldId) {
49212
      return _Fields.findByThriftId(fieldId);
49213
    }
49214
 
49215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49216
      org.apache.thrift.protocol.TField field;
49217
      iprot.readStructBegin();
49218
      while (true)
49219
      {
49220
        field = iprot.readFieldBegin();
49221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49222
          break;
49223
        }
49224
        switch (field.id) {
49225
          case 0: // SUCCESS
49226
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
49227
              {
11173 vikram.rag 49228
                org.apache.thrift.protocol.TList _list146 = iprot.readListBegin();
49229
                this.success = new ArrayList<Long>(_list146.size);
49230
                for (int _i147 = 0; _i147 < _list146.size; ++_i147)
8363 vikram.rag 49231
                {
11173 vikram.rag 49232
                  long _elem148; // required
49233
                  _elem148 = iprot.readI64();
49234
                  this.success.add(_elem148);
8363 vikram.rag 49235
                }
49236
                iprot.readListEnd();
49237
              }
49238
            } else { 
49239
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49240
            }
49241
            break;
49242
          default:
49243
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49244
        }
49245
        iprot.readFieldEnd();
49246
      }
49247
      iprot.readStructEnd();
49248
      validate();
49249
    }
49250
 
49251
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49252
      oprot.writeStructBegin(STRUCT_DESC);
49253
 
49254
      if (this.isSetSuccess()) {
49255
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
49256
        {
49257
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
11173 vikram.rag 49258
          for (long _iter149 : this.success)
8363 vikram.rag 49259
          {
11173 vikram.rag 49260
            oprot.writeI64(_iter149);
8363 vikram.rag 49261
          }
49262
          oprot.writeListEnd();
49263
        }
49264
        oprot.writeFieldEnd();
49265
      }
49266
      oprot.writeFieldStop();
49267
      oprot.writeStructEnd();
49268
    }
49269
 
49270
    @Override
49271
    public String toString() {
49272
      StringBuilder sb = new StringBuilder("getOursGoodWarehouseIdsForLocation_result(");
49273
      boolean first = true;
49274
 
49275
      sb.append("success:");
49276
      if (this.success == null) {
49277
        sb.append("null");
49278
      } else {
49279
        sb.append(this.success);
49280
      }
49281
      first = false;
49282
      sb.append(")");
49283
      return sb.toString();
49284
    }
49285
 
49286
    public void validate() throws org.apache.thrift.TException {
49287
      // check for required fields
49288
    }
49289
 
49290
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49291
      try {
49292
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49293
      } catch (org.apache.thrift.TException te) {
49294
        throw new java.io.IOException(te);
49295
      }
49296
    }
49297
 
49298
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49299
      try {
49300
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49301
      } catch (org.apache.thrift.TException te) {
49302
        throw new java.io.IOException(te);
49303
      }
49304
    }
49305
 
49306
  }
49307
 
8958 vikram.rag 49308
  public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args implements org.apache.thrift.TBase<getHoldInventoryDetailForItemForWarehouseIdExceptSource_args, getHoldInventoryDetailForItemForWarehouseIdExceptSource_args._Fields>, java.io.Serializable, Cloneable   {
49309
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetailForItemForWarehouseIdExceptSource_args");
49310
 
49311
    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);
49312
    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);
49313
    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);
49314
 
49315
    private long id; // required
49316
    private long warehouse_id; // required
49317
    private long source; // required
49318
 
49319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49321
      ID((short)1, "id"),
49322
      WAREHOUSE_ID((short)2, "warehouse_id"),
49323
      SOURCE((short)3, "source");
49324
 
49325
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49326
 
49327
      static {
49328
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49329
          byName.put(field.getFieldName(), field);
49330
        }
49331
      }
49332
 
49333
      /**
49334
       * Find the _Fields constant that matches fieldId, or null if its not found.
49335
       */
49336
      public static _Fields findByThriftId(int fieldId) {
49337
        switch(fieldId) {
49338
          case 1: // ID
49339
            return ID;
49340
          case 2: // WAREHOUSE_ID
49341
            return WAREHOUSE_ID;
49342
          case 3: // SOURCE
49343
            return SOURCE;
49344
          default:
49345
            return null;
49346
        }
49347
      }
49348
 
49349
      /**
49350
       * Find the _Fields constant that matches fieldId, throwing an exception
49351
       * if it is not found.
49352
       */
49353
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49354
        _Fields fields = findByThriftId(fieldId);
49355
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49356
        return fields;
49357
      }
49358
 
49359
      /**
49360
       * Find the _Fields constant that matches name, or null if its not found.
49361
       */
49362
      public static _Fields findByName(String name) {
49363
        return byName.get(name);
49364
      }
49365
 
49366
      private final short _thriftId;
49367
      private final String _fieldName;
49368
 
49369
      _Fields(short thriftId, String fieldName) {
49370
        _thriftId = thriftId;
49371
        _fieldName = fieldName;
49372
      }
49373
 
49374
      public short getThriftFieldId() {
49375
        return _thriftId;
49376
      }
49377
 
49378
      public String getFieldName() {
49379
        return _fieldName;
49380
      }
49381
    }
49382
 
49383
    // isset id assignments
49384
    private static final int __ID_ISSET_ID = 0;
49385
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
49386
    private static final int __SOURCE_ISSET_ID = 2;
49387
    private BitSet __isset_bit_vector = new BitSet(3);
49388
 
49389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49390
    static {
49391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49392
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49394
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49395
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49396
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args.class, metaDataMap);
49400
    }
49401
 
49402
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args() {
49403
    }
49404
 
49405
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(
49406
      long id,
49407
      long warehouse_id,
49408
      long source)
49409
    {
49410
      this();
49411
      this.id = id;
49412
      setIdIsSet(true);
49413
      this.warehouse_id = warehouse_id;
49414
      setWarehouse_idIsSet(true);
49415
      this.source = source;
49416
      setSourceIsSet(true);
49417
    }
49418
 
49419
    /**
49420
     * Performs a deep copy on <i>other</i>.
49421
     */
49422
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args other) {
49423
      __isset_bit_vector.clear();
49424
      __isset_bit_vector.or(other.__isset_bit_vector);
49425
      this.id = other.id;
49426
      this.warehouse_id = other.warehouse_id;
49427
      this.source = other.source;
49428
    }
49429
 
49430
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_args deepCopy() {
49431
      return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(this);
49432
    }
49433
 
49434
    @Override
49435
    public void clear() {
49436
      setIdIsSet(false);
49437
      this.id = 0;
49438
      setWarehouse_idIsSet(false);
49439
      this.warehouse_id = 0;
49440
      setSourceIsSet(false);
49441
      this.source = 0;
49442
    }
49443
 
49444
    public long getId() {
49445
      return this.id;
49446
    }
49447
 
49448
    public void setId(long id) {
49449
      this.id = id;
49450
      setIdIsSet(true);
49451
    }
49452
 
49453
    public void unsetId() {
49454
      __isset_bit_vector.clear(__ID_ISSET_ID);
49455
    }
49456
 
49457
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
49458
    public boolean isSetId() {
49459
      return __isset_bit_vector.get(__ID_ISSET_ID);
49460
    }
49461
 
49462
    public void setIdIsSet(boolean value) {
49463
      __isset_bit_vector.set(__ID_ISSET_ID, value);
49464
    }
49465
 
49466
    public long getWarehouse_id() {
49467
      return this.warehouse_id;
49468
    }
49469
 
49470
    public void setWarehouse_id(long warehouse_id) {
49471
      this.warehouse_id = warehouse_id;
49472
      setWarehouse_idIsSet(true);
49473
    }
49474
 
49475
    public void unsetWarehouse_id() {
49476
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
49477
    }
49478
 
49479
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
49480
    public boolean isSetWarehouse_id() {
49481
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
49482
    }
49483
 
49484
    public void setWarehouse_idIsSet(boolean value) {
49485
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
49486
    }
49487
 
49488
    public long getSource() {
49489
      return this.source;
49490
    }
49491
 
49492
    public void setSource(long source) {
49493
      this.source = source;
49494
      setSourceIsSet(true);
49495
    }
49496
 
49497
    public void unsetSource() {
49498
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
49499
    }
49500
 
49501
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
49502
    public boolean isSetSource() {
49503
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
49504
    }
49505
 
49506
    public void setSourceIsSet(boolean value) {
49507
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
49508
    }
49509
 
49510
    public void setFieldValue(_Fields field, Object value) {
49511
      switch (field) {
49512
      case ID:
49513
        if (value == null) {
49514
          unsetId();
49515
        } else {
49516
          setId((Long)value);
49517
        }
49518
        break;
49519
 
49520
      case WAREHOUSE_ID:
49521
        if (value == null) {
49522
          unsetWarehouse_id();
49523
        } else {
49524
          setWarehouse_id((Long)value);
49525
        }
49526
        break;
49527
 
49528
      case SOURCE:
49529
        if (value == null) {
49530
          unsetSource();
49531
        } else {
49532
          setSource((Long)value);
49533
        }
49534
        break;
49535
 
49536
      }
49537
    }
49538
 
49539
    public Object getFieldValue(_Fields field) {
49540
      switch (field) {
49541
      case ID:
49542
        return Long.valueOf(getId());
49543
 
49544
      case WAREHOUSE_ID:
49545
        return Long.valueOf(getWarehouse_id());
49546
 
49547
      case SOURCE:
49548
        return Long.valueOf(getSource());
49549
 
49550
      }
49551
      throw new IllegalStateException();
49552
    }
49553
 
49554
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49555
    public boolean isSet(_Fields field) {
49556
      if (field == null) {
49557
        throw new IllegalArgumentException();
49558
      }
49559
 
49560
      switch (field) {
49561
      case ID:
49562
        return isSetId();
49563
      case WAREHOUSE_ID:
49564
        return isSetWarehouse_id();
49565
      case SOURCE:
49566
        return isSetSource();
49567
      }
49568
      throw new IllegalStateException();
49569
    }
49570
 
49571
    @Override
49572
    public boolean equals(Object that) {
49573
      if (that == null)
49574
        return false;
49575
      if (that instanceof getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)
49576
        return this.equals((getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)that);
49577
      return false;
49578
    }
49579
 
49580
    public boolean equals(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args that) {
49581
      if (that == null)
49582
        return false;
49583
 
49584
      boolean this_present_id = true;
49585
      boolean that_present_id = true;
49586
      if (this_present_id || that_present_id) {
49587
        if (!(this_present_id && that_present_id))
49588
          return false;
49589
        if (this.id != that.id)
49590
          return false;
49591
      }
49592
 
49593
      boolean this_present_warehouse_id = true;
49594
      boolean that_present_warehouse_id = true;
49595
      if (this_present_warehouse_id || that_present_warehouse_id) {
49596
        if (!(this_present_warehouse_id && that_present_warehouse_id))
49597
          return false;
49598
        if (this.warehouse_id != that.warehouse_id)
49599
          return false;
49600
      }
49601
 
49602
      boolean this_present_source = true;
49603
      boolean that_present_source = true;
49604
      if (this_present_source || that_present_source) {
49605
        if (!(this_present_source && that_present_source))
49606
          return false;
49607
        if (this.source != that.source)
49608
          return false;
49609
      }
49610
 
49611
      return true;
49612
    }
49613
 
49614
    @Override
49615
    public int hashCode() {
49616
      return 0;
49617
    }
49618
 
49619
    public int compareTo(getHoldInventoryDetailForItemForWarehouseIdExceptSource_args other) {
49620
      if (!getClass().equals(other.getClass())) {
49621
        return getClass().getName().compareTo(other.getClass().getName());
49622
      }
49623
 
49624
      int lastComparison = 0;
49625
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_args typedOther = (getHoldInventoryDetailForItemForWarehouseIdExceptSource_args)other;
49626
 
49627
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
49628
      if (lastComparison != 0) {
49629
        return lastComparison;
49630
      }
49631
      if (isSetId()) {
49632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
49633
        if (lastComparison != 0) {
49634
          return lastComparison;
49635
        }
49636
      }
49637
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
49638
      if (lastComparison != 0) {
49639
        return lastComparison;
49640
      }
49641
      if (isSetWarehouse_id()) {
49642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
49643
        if (lastComparison != 0) {
49644
          return lastComparison;
49645
        }
49646
      }
49647
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
49648
      if (lastComparison != 0) {
49649
        return lastComparison;
49650
      }
49651
      if (isSetSource()) {
49652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
49653
        if (lastComparison != 0) {
49654
          return lastComparison;
49655
        }
49656
      }
49657
      return 0;
49658
    }
49659
 
49660
    public _Fields fieldForId(int fieldId) {
49661
      return _Fields.findByThriftId(fieldId);
49662
    }
49663
 
49664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49665
      org.apache.thrift.protocol.TField field;
49666
      iprot.readStructBegin();
49667
      while (true)
49668
      {
49669
        field = iprot.readFieldBegin();
49670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49671
          break;
49672
        }
49673
        switch (field.id) {
49674
          case 1: // ID
49675
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49676
              this.id = iprot.readI64();
49677
              setIdIsSet(true);
49678
            } else { 
49679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49680
            }
49681
            break;
49682
          case 2: // WAREHOUSE_ID
49683
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49684
              this.warehouse_id = iprot.readI64();
49685
              setWarehouse_idIsSet(true);
49686
            } else { 
49687
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49688
            }
49689
            break;
49690
          case 3: // SOURCE
49691
            if (field.type == org.apache.thrift.protocol.TType.I64) {
49692
              this.source = iprot.readI64();
49693
              setSourceIsSet(true);
49694
            } else { 
49695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49696
            }
49697
            break;
49698
          default:
49699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
49700
        }
49701
        iprot.readFieldEnd();
49702
      }
49703
      iprot.readStructEnd();
49704
      validate();
49705
    }
49706
 
49707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
49708
      validate();
49709
 
49710
      oprot.writeStructBegin(STRUCT_DESC);
49711
      oprot.writeFieldBegin(ID_FIELD_DESC);
49712
      oprot.writeI64(this.id);
49713
      oprot.writeFieldEnd();
49714
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
49715
      oprot.writeI64(this.warehouse_id);
49716
      oprot.writeFieldEnd();
49717
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
49718
      oprot.writeI64(this.source);
49719
      oprot.writeFieldEnd();
49720
      oprot.writeFieldStop();
49721
      oprot.writeStructEnd();
49722
    }
49723
 
49724
    @Override
49725
    public String toString() {
49726
      StringBuilder sb = new StringBuilder("getHoldInventoryDetailForItemForWarehouseIdExceptSource_args(");
49727
      boolean first = true;
49728
 
49729
      sb.append("id:");
49730
      sb.append(this.id);
49731
      first = false;
49732
      if (!first) sb.append(", ");
49733
      sb.append("warehouse_id:");
49734
      sb.append(this.warehouse_id);
49735
      first = false;
49736
      if (!first) sb.append(", ");
49737
      sb.append("source:");
49738
      sb.append(this.source);
49739
      first = false;
49740
      sb.append(")");
49741
      return sb.toString();
49742
    }
49743
 
49744
    public void validate() throws org.apache.thrift.TException {
49745
      // check for required fields
49746
    }
49747
 
49748
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
49749
      try {
49750
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
49751
      } catch (org.apache.thrift.TException te) {
49752
        throw new java.io.IOException(te);
49753
      }
49754
    }
49755
 
49756
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49757
      try {
49758
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
49759
        __isset_bit_vector = new BitSet(1);
49760
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49761
      } catch (org.apache.thrift.TException te) {
49762
        throw new java.io.IOException(te);
49763
      }
49764
    }
49765
 
49766
  }
49767
 
49768
  public static class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result implements org.apache.thrift.TBase<getHoldInventoryDetailForItemForWarehouseIdExceptSource_result, getHoldInventoryDetailForItemForWarehouseIdExceptSource_result._Fields>, java.io.Serializable, Cloneable   {
49769
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetailForItemForWarehouseIdExceptSource_result");
49770
 
49771
    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);
49772
 
49773
    private long success; // required
49774
 
49775
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49776
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
49777
      SUCCESS((short)0, "success");
49778
 
49779
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
49780
 
49781
      static {
49782
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
49783
          byName.put(field.getFieldName(), field);
49784
        }
49785
      }
49786
 
49787
      /**
49788
       * Find the _Fields constant that matches fieldId, or null if its not found.
49789
       */
49790
      public static _Fields findByThriftId(int fieldId) {
49791
        switch(fieldId) {
49792
          case 0: // SUCCESS
49793
            return SUCCESS;
49794
          default:
49795
            return null;
49796
        }
49797
      }
49798
 
49799
      /**
49800
       * Find the _Fields constant that matches fieldId, throwing an exception
49801
       * if it is not found.
49802
       */
49803
      public static _Fields findByThriftIdOrThrow(int fieldId) {
49804
        _Fields fields = findByThriftId(fieldId);
49805
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
49806
        return fields;
49807
      }
49808
 
49809
      /**
49810
       * Find the _Fields constant that matches name, or null if its not found.
49811
       */
49812
      public static _Fields findByName(String name) {
49813
        return byName.get(name);
49814
      }
49815
 
49816
      private final short _thriftId;
49817
      private final String _fieldName;
49818
 
49819
      _Fields(short thriftId, String fieldName) {
49820
        _thriftId = thriftId;
49821
        _fieldName = fieldName;
49822
      }
49823
 
49824
      public short getThriftFieldId() {
49825
        return _thriftId;
49826
      }
49827
 
49828
      public String getFieldName() {
49829
        return _fieldName;
49830
      }
49831
    }
49832
 
49833
    // isset id assignments
49834
    private static final int __SUCCESS_ISSET_ID = 0;
49835
    private BitSet __isset_bit_vector = new BitSet(1);
49836
 
49837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
49838
    static {
49839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
49840
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
49841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
49842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
49843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result.class, metaDataMap);
49844
    }
49845
 
49846
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result() {
49847
    }
49848
 
49849
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(
49850
      long success)
49851
    {
49852
      this();
49853
      this.success = success;
49854
      setSuccessIsSet(true);
49855
    }
49856
 
49857
    /**
49858
     * Performs a deep copy on <i>other</i>.
49859
     */
49860
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result other) {
49861
      __isset_bit_vector.clear();
49862
      __isset_bit_vector.or(other.__isset_bit_vector);
49863
      this.success = other.success;
49864
    }
49865
 
49866
    public getHoldInventoryDetailForItemForWarehouseIdExceptSource_result deepCopy() {
49867
      return new getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(this);
49868
    }
49869
 
49870
    @Override
49871
    public void clear() {
49872
      setSuccessIsSet(false);
49873
      this.success = 0;
49874
    }
49875
 
49876
    public long getSuccess() {
49877
      return this.success;
49878
    }
49879
 
49880
    public void setSuccess(long success) {
49881
      this.success = success;
49882
      setSuccessIsSet(true);
49883
    }
49884
 
49885
    public void unsetSuccess() {
49886
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
49887
    }
49888
 
49889
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
49890
    public boolean isSetSuccess() {
49891
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
49892
    }
49893
 
49894
    public void setSuccessIsSet(boolean value) {
49895
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
49896
    }
49897
 
49898
    public void setFieldValue(_Fields field, Object value) {
49899
      switch (field) {
49900
      case SUCCESS:
49901
        if (value == null) {
49902
          unsetSuccess();
49903
        } else {
49904
          setSuccess((Long)value);
49905
        }
49906
        break;
49907
 
49908
      }
49909
    }
49910
 
49911
    public Object getFieldValue(_Fields field) {
49912
      switch (field) {
49913
      case SUCCESS:
49914
        return Long.valueOf(getSuccess());
49915
 
49916
      }
49917
      throw new IllegalStateException();
49918
    }
49919
 
49920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
49921
    public boolean isSet(_Fields field) {
49922
      if (field == null) {
49923
        throw new IllegalArgumentException();
49924
      }
49925
 
49926
      switch (field) {
49927
      case SUCCESS:
49928
        return isSetSuccess();
49929
      }
49930
      throw new IllegalStateException();
49931
    }
49932
 
49933
    @Override
49934
    public boolean equals(Object that) {
49935
      if (that == null)
49936
        return false;
49937
      if (that instanceof getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)
49938
        return this.equals((getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)that);
49939
      return false;
49940
    }
49941
 
49942
    public boolean equals(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result that) {
49943
      if (that == null)
49944
        return false;
49945
 
49946
      boolean this_present_success = true;
49947
      boolean that_present_success = true;
49948
      if (this_present_success || that_present_success) {
49949
        if (!(this_present_success && that_present_success))
49950
          return false;
49951
        if (this.success != that.success)
49952
          return false;
49953
      }
49954
 
49955
      return true;
49956
    }
49957
 
49958
    @Override
49959
    public int hashCode() {
49960
      return 0;
49961
    }
49962
 
49963
    public int compareTo(getHoldInventoryDetailForItemForWarehouseIdExceptSource_result other) {
49964
      if (!getClass().equals(other.getClass())) {
49965
        return getClass().getName().compareTo(other.getClass().getName());
49966
      }
49967
 
49968
      int lastComparison = 0;
49969
      getHoldInventoryDetailForItemForWarehouseIdExceptSource_result typedOther = (getHoldInventoryDetailForItemForWarehouseIdExceptSource_result)other;
49970
 
49971
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
49972
      if (lastComparison != 0) {
49973
        return lastComparison;
49974
      }
49975
      if (isSetSuccess()) {
49976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
49977
        if (lastComparison != 0) {
49978
          return lastComparison;
49979
        }
49980
      }
49981
      return 0;
49982
    }
49983
 
49984
    public _Fields fieldForId(int fieldId) {
49985
      return _Fields.findByThriftId(fieldId);
49986
    }
49987
 
49988
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
49989
      org.apache.thrift.protocol.TField field;
49990
      iprot.readStructBegin();
49991
      while (true)
49992
      {
49993
        field = iprot.readFieldBegin();
49994
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
49995
          break;
49996
        }
49997
        switch (field.id) {
49998
          case 0: // SUCCESS
49999
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50000
              this.success = iprot.readI64();
50001
              setSuccessIsSet(true);
50002
            } else { 
50003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50004
            }
50005
            break;
50006
          default:
50007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50008
        }
50009
        iprot.readFieldEnd();
50010
      }
50011
      iprot.readStructEnd();
50012
      validate();
50013
    }
50014
 
50015
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50016
      oprot.writeStructBegin(STRUCT_DESC);
50017
 
50018
      if (this.isSetSuccess()) {
50019
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50020
        oprot.writeI64(this.success);
50021
        oprot.writeFieldEnd();
50022
      }
50023
      oprot.writeFieldStop();
50024
      oprot.writeStructEnd();
50025
    }
50026
 
50027
    @Override
50028
    public String toString() {
50029
      StringBuilder sb = new StringBuilder("getHoldInventoryDetailForItemForWarehouseIdExceptSource_result(");
50030
      boolean first = true;
50031
 
50032
      sb.append("success:");
50033
      sb.append(this.success);
50034
      first = false;
50035
      sb.append(")");
50036
      return sb.toString();
50037
    }
50038
 
50039
    public void validate() throws org.apache.thrift.TException {
50040
      // check for required fields
50041
    }
50042
 
50043
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50044
      try {
50045
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50046
      } catch (org.apache.thrift.TException te) {
50047
        throw new java.io.IOException(te);
50048
      }
50049
    }
50050
 
50051
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50052
      try {
50053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50054
      } catch (org.apache.thrift.TException te) {
50055
        throw new java.io.IOException(te);
50056
      }
50057
    }
50058
 
50059
  }
50060
 
9404 vikram.rag 50061
  public static class getSnapdealInventoryForItem_args implements org.apache.thrift.TBase<getSnapdealInventoryForItem_args, getSnapdealInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
50062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventoryForItem_args");
50063
 
50064
    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);
50065
 
50066
    private long item_id; // required
50067
 
50068
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50069
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50070
      ITEM_ID((short)1, "item_id");
50071
 
50072
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50073
 
50074
      static {
50075
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50076
          byName.put(field.getFieldName(), field);
50077
        }
50078
      }
50079
 
50080
      /**
50081
       * Find the _Fields constant that matches fieldId, or null if its not found.
50082
       */
50083
      public static _Fields findByThriftId(int fieldId) {
50084
        switch(fieldId) {
50085
          case 1: // ITEM_ID
50086
            return ITEM_ID;
50087
          default:
50088
            return null;
50089
        }
50090
      }
50091
 
50092
      /**
50093
       * Find the _Fields constant that matches fieldId, throwing an exception
50094
       * if it is not found.
50095
       */
50096
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50097
        _Fields fields = findByThriftId(fieldId);
50098
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50099
        return fields;
50100
      }
50101
 
50102
      /**
50103
       * Find the _Fields constant that matches name, or null if its not found.
50104
       */
50105
      public static _Fields findByName(String name) {
50106
        return byName.get(name);
50107
      }
50108
 
50109
      private final short _thriftId;
50110
      private final String _fieldName;
50111
 
50112
      _Fields(short thriftId, String fieldName) {
50113
        _thriftId = thriftId;
50114
        _fieldName = fieldName;
50115
      }
50116
 
50117
      public short getThriftFieldId() {
50118
        return _thriftId;
50119
      }
50120
 
50121
      public String getFieldName() {
50122
        return _fieldName;
50123
      }
50124
    }
50125
 
50126
    // isset id assignments
50127
    private static final int __ITEM_ID_ISSET_ID = 0;
50128
    private BitSet __isset_bit_vector = new BitSet(1);
50129
 
50130
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50131
    static {
50132
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50133
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50134
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
50135
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50136
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventoryForItem_args.class, metaDataMap);
50137
    }
50138
 
50139
    public getSnapdealInventoryForItem_args() {
50140
    }
50141
 
50142
    public getSnapdealInventoryForItem_args(
50143
      long item_id)
50144
    {
50145
      this();
50146
      this.item_id = item_id;
50147
      setItem_idIsSet(true);
50148
    }
50149
 
50150
    /**
50151
     * Performs a deep copy on <i>other</i>.
50152
     */
50153
    public getSnapdealInventoryForItem_args(getSnapdealInventoryForItem_args other) {
50154
      __isset_bit_vector.clear();
50155
      __isset_bit_vector.or(other.__isset_bit_vector);
50156
      this.item_id = other.item_id;
50157
    }
50158
 
50159
    public getSnapdealInventoryForItem_args deepCopy() {
50160
      return new getSnapdealInventoryForItem_args(this);
50161
    }
50162
 
50163
    @Override
50164
    public void clear() {
50165
      setItem_idIsSet(false);
50166
      this.item_id = 0;
50167
    }
50168
 
50169
    public long getItem_id() {
50170
      return this.item_id;
50171
    }
50172
 
50173
    public void setItem_id(long item_id) {
50174
      this.item_id = item_id;
50175
      setItem_idIsSet(true);
50176
    }
50177
 
50178
    public void unsetItem_id() {
50179
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
50180
    }
50181
 
50182
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
50183
    public boolean isSetItem_id() {
50184
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
50185
    }
50186
 
50187
    public void setItem_idIsSet(boolean value) {
50188
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
50189
    }
50190
 
50191
    public void setFieldValue(_Fields field, Object value) {
50192
      switch (field) {
50193
      case ITEM_ID:
50194
        if (value == null) {
50195
          unsetItem_id();
50196
        } else {
50197
          setItem_id((Long)value);
50198
        }
50199
        break;
50200
 
50201
      }
50202
    }
50203
 
50204
    public Object getFieldValue(_Fields field) {
50205
      switch (field) {
50206
      case ITEM_ID:
50207
        return Long.valueOf(getItem_id());
50208
 
50209
      }
50210
      throw new IllegalStateException();
50211
    }
50212
 
50213
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50214
    public boolean isSet(_Fields field) {
50215
      if (field == null) {
50216
        throw new IllegalArgumentException();
50217
      }
50218
 
50219
      switch (field) {
50220
      case ITEM_ID:
50221
        return isSetItem_id();
50222
      }
50223
      throw new IllegalStateException();
50224
    }
50225
 
50226
    @Override
50227
    public boolean equals(Object that) {
50228
      if (that == null)
50229
        return false;
50230
      if (that instanceof getSnapdealInventoryForItem_args)
50231
        return this.equals((getSnapdealInventoryForItem_args)that);
50232
      return false;
50233
    }
50234
 
50235
    public boolean equals(getSnapdealInventoryForItem_args that) {
50236
      if (that == null)
50237
        return false;
50238
 
50239
      boolean this_present_item_id = true;
50240
      boolean that_present_item_id = true;
50241
      if (this_present_item_id || that_present_item_id) {
50242
        if (!(this_present_item_id && that_present_item_id))
50243
          return false;
50244
        if (this.item_id != that.item_id)
50245
          return false;
50246
      }
50247
 
50248
      return true;
50249
    }
50250
 
50251
    @Override
50252
    public int hashCode() {
50253
      return 0;
50254
    }
50255
 
50256
    public int compareTo(getSnapdealInventoryForItem_args other) {
50257
      if (!getClass().equals(other.getClass())) {
50258
        return getClass().getName().compareTo(other.getClass().getName());
50259
      }
50260
 
50261
      int lastComparison = 0;
50262
      getSnapdealInventoryForItem_args typedOther = (getSnapdealInventoryForItem_args)other;
50263
 
50264
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
50265
      if (lastComparison != 0) {
50266
        return lastComparison;
50267
      }
50268
      if (isSetItem_id()) {
50269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
50270
        if (lastComparison != 0) {
50271
          return lastComparison;
50272
        }
50273
      }
50274
      return 0;
50275
    }
50276
 
50277
    public _Fields fieldForId(int fieldId) {
50278
      return _Fields.findByThriftId(fieldId);
50279
    }
50280
 
50281
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50282
      org.apache.thrift.protocol.TField field;
50283
      iprot.readStructBegin();
50284
      while (true)
50285
      {
50286
        field = iprot.readFieldBegin();
50287
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50288
          break;
50289
        }
50290
        switch (field.id) {
50291
          case 1: // ITEM_ID
50292
            if (field.type == org.apache.thrift.protocol.TType.I64) {
50293
              this.item_id = iprot.readI64();
50294
              setItem_idIsSet(true);
50295
            } else { 
50296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50297
            }
50298
            break;
50299
          default:
50300
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50301
        }
50302
        iprot.readFieldEnd();
50303
      }
50304
      iprot.readStructEnd();
50305
      validate();
50306
    }
50307
 
50308
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50309
      validate();
50310
 
50311
      oprot.writeStructBegin(STRUCT_DESC);
50312
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
50313
      oprot.writeI64(this.item_id);
50314
      oprot.writeFieldEnd();
50315
      oprot.writeFieldStop();
50316
      oprot.writeStructEnd();
50317
    }
50318
 
50319
    @Override
50320
    public String toString() {
50321
      StringBuilder sb = new StringBuilder("getSnapdealInventoryForItem_args(");
50322
      boolean first = true;
50323
 
50324
      sb.append("item_id:");
50325
      sb.append(this.item_id);
50326
      first = false;
50327
      sb.append(")");
50328
      return sb.toString();
50329
    }
50330
 
50331
    public void validate() throws org.apache.thrift.TException {
50332
      // check for required fields
50333
    }
50334
 
50335
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50336
      try {
50337
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50338
      } catch (org.apache.thrift.TException te) {
50339
        throw new java.io.IOException(te);
50340
      }
50341
    }
50342
 
50343
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50344
      try {
50345
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
50346
        __isset_bit_vector = new BitSet(1);
50347
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50348
      } catch (org.apache.thrift.TException te) {
50349
        throw new java.io.IOException(te);
50350
      }
50351
    }
50352
 
50353
  }
50354
 
50355
  public static class getSnapdealInventoryForItem_result implements org.apache.thrift.TBase<getSnapdealInventoryForItem_result, getSnapdealInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
50356
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventoryForItem_result");
50357
 
50358
    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);
50359
 
50360
    private SnapdealInventoryItem success; // required
50361
 
50362
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50363
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50364
      SUCCESS((short)0, "success");
50365
 
50366
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50367
 
50368
      static {
50369
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50370
          byName.put(field.getFieldName(), field);
50371
        }
50372
      }
50373
 
50374
      /**
50375
       * Find the _Fields constant that matches fieldId, or null if its not found.
50376
       */
50377
      public static _Fields findByThriftId(int fieldId) {
50378
        switch(fieldId) {
50379
          case 0: // SUCCESS
50380
            return SUCCESS;
50381
          default:
50382
            return null;
50383
        }
50384
      }
50385
 
50386
      /**
50387
       * Find the _Fields constant that matches fieldId, throwing an exception
50388
       * if it is not found.
50389
       */
50390
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50391
        _Fields fields = findByThriftId(fieldId);
50392
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50393
        return fields;
50394
      }
50395
 
50396
      /**
50397
       * Find the _Fields constant that matches name, or null if its not found.
50398
       */
50399
      public static _Fields findByName(String name) {
50400
        return byName.get(name);
50401
      }
50402
 
50403
      private final short _thriftId;
50404
      private final String _fieldName;
50405
 
50406
      _Fields(short thriftId, String fieldName) {
50407
        _thriftId = thriftId;
50408
        _fieldName = fieldName;
50409
      }
50410
 
50411
      public short getThriftFieldId() {
50412
        return _thriftId;
50413
      }
50414
 
50415
      public String getFieldName() {
50416
        return _fieldName;
50417
      }
50418
    }
50419
 
50420
    // isset id assignments
50421
 
50422
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50423
    static {
50424
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50425
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50426
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class)));
50427
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50428
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventoryForItem_result.class, metaDataMap);
50429
    }
50430
 
50431
    public getSnapdealInventoryForItem_result() {
50432
    }
50433
 
50434
    public getSnapdealInventoryForItem_result(
50435
      SnapdealInventoryItem success)
50436
    {
50437
      this();
50438
      this.success = success;
50439
    }
50440
 
50441
    /**
50442
     * Performs a deep copy on <i>other</i>.
50443
     */
50444
    public getSnapdealInventoryForItem_result(getSnapdealInventoryForItem_result other) {
50445
      if (other.isSetSuccess()) {
50446
        this.success = new SnapdealInventoryItem(other.success);
50447
      }
50448
    }
50449
 
50450
    public getSnapdealInventoryForItem_result deepCopy() {
50451
      return new getSnapdealInventoryForItem_result(this);
50452
    }
50453
 
50454
    @Override
50455
    public void clear() {
50456
      this.success = null;
50457
    }
50458
 
50459
    public SnapdealInventoryItem getSuccess() {
50460
      return this.success;
50461
    }
50462
 
50463
    public void setSuccess(SnapdealInventoryItem success) {
50464
      this.success = success;
50465
    }
50466
 
50467
    public void unsetSuccess() {
50468
      this.success = null;
50469
    }
50470
 
50471
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
50472
    public boolean isSetSuccess() {
50473
      return this.success != null;
50474
    }
50475
 
50476
    public void setSuccessIsSet(boolean value) {
50477
      if (!value) {
50478
        this.success = null;
50479
      }
50480
    }
50481
 
50482
    public void setFieldValue(_Fields field, Object value) {
50483
      switch (field) {
50484
      case SUCCESS:
50485
        if (value == null) {
50486
          unsetSuccess();
50487
        } else {
50488
          setSuccess((SnapdealInventoryItem)value);
50489
        }
50490
        break;
50491
 
50492
      }
50493
    }
50494
 
50495
    public Object getFieldValue(_Fields field) {
50496
      switch (field) {
50497
      case SUCCESS:
50498
        return getSuccess();
50499
 
50500
      }
50501
      throw new IllegalStateException();
50502
    }
50503
 
50504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50505
    public boolean isSet(_Fields field) {
50506
      if (field == null) {
50507
        throw new IllegalArgumentException();
50508
      }
50509
 
50510
      switch (field) {
50511
      case SUCCESS:
50512
        return isSetSuccess();
50513
      }
50514
      throw new IllegalStateException();
50515
    }
50516
 
50517
    @Override
50518
    public boolean equals(Object that) {
50519
      if (that == null)
50520
        return false;
50521
      if (that instanceof getSnapdealInventoryForItem_result)
50522
        return this.equals((getSnapdealInventoryForItem_result)that);
50523
      return false;
50524
    }
50525
 
50526
    public boolean equals(getSnapdealInventoryForItem_result that) {
50527
      if (that == null)
50528
        return false;
50529
 
50530
      boolean this_present_success = true && this.isSetSuccess();
50531
      boolean that_present_success = true && that.isSetSuccess();
50532
      if (this_present_success || that_present_success) {
50533
        if (!(this_present_success && that_present_success))
50534
          return false;
50535
        if (!this.success.equals(that.success))
50536
          return false;
50537
      }
50538
 
50539
      return true;
50540
    }
50541
 
50542
    @Override
50543
    public int hashCode() {
50544
      return 0;
50545
    }
50546
 
50547
    public int compareTo(getSnapdealInventoryForItem_result other) {
50548
      if (!getClass().equals(other.getClass())) {
50549
        return getClass().getName().compareTo(other.getClass().getName());
50550
      }
50551
 
50552
      int lastComparison = 0;
50553
      getSnapdealInventoryForItem_result typedOther = (getSnapdealInventoryForItem_result)other;
50554
 
50555
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
50556
      if (lastComparison != 0) {
50557
        return lastComparison;
50558
      }
50559
      if (isSetSuccess()) {
50560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
50561
        if (lastComparison != 0) {
50562
          return lastComparison;
50563
        }
50564
      }
50565
      return 0;
50566
    }
50567
 
50568
    public _Fields fieldForId(int fieldId) {
50569
      return _Fields.findByThriftId(fieldId);
50570
    }
50571
 
50572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50573
      org.apache.thrift.protocol.TField field;
50574
      iprot.readStructBegin();
50575
      while (true)
50576
      {
50577
        field = iprot.readFieldBegin();
50578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50579
          break;
50580
        }
50581
        switch (field.id) {
50582
          case 0: // SUCCESS
50583
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50584
              this.success = new SnapdealInventoryItem();
50585
              this.success.read(iprot);
50586
            } else { 
50587
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50588
            }
50589
            break;
50590
          default:
50591
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50592
        }
50593
        iprot.readFieldEnd();
50594
      }
50595
      iprot.readStructEnd();
50596
      validate();
50597
    }
50598
 
50599
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50600
      oprot.writeStructBegin(STRUCT_DESC);
50601
 
50602
      if (this.isSetSuccess()) {
50603
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
50604
        this.success.write(oprot);
50605
        oprot.writeFieldEnd();
50606
      }
50607
      oprot.writeFieldStop();
50608
      oprot.writeStructEnd();
50609
    }
50610
 
50611
    @Override
50612
    public String toString() {
50613
      StringBuilder sb = new StringBuilder("getSnapdealInventoryForItem_result(");
50614
      boolean first = true;
50615
 
50616
      sb.append("success:");
50617
      if (this.success == null) {
50618
        sb.append("null");
50619
      } else {
50620
        sb.append(this.success);
50621
      }
50622
      first = false;
50623
      sb.append(")");
50624
      return sb.toString();
50625
    }
50626
 
50627
    public void validate() throws org.apache.thrift.TException {
50628
      // check for required fields
50629
    }
50630
 
50631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50632
      try {
50633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50634
      } catch (org.apache.thrift.TException te) {
50635
        throw new java.io.IOException(te);
50636
      }
50637
    }
50638
 
50639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50640
      try {
50641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50642
      } catch (org.apache.thrift.TException te) {
50643
        throw new java.io.IOException(te);
50644
      }
50645
    }
50646
 
50647
  }
50648
 
50649
  public static class addOrUpdateSnapdealInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateSnapdealInventoryForItem_args, addOrUpdateSnapdealInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
50650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealInventoryForItem_args");
50651
 
50652
    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);
50653
 
50654
    private SnapdealInventoryItem snapdealinventoryitem; // required
50655
 
50656
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50657
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50658
      SNAPDEALINVENTORYITEM((short)1, "snapdealinventoryitem");
50659
 
50660
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50661
 
50662
      static {
50663
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50664
          byName.put(field.getFieldName(), field);
50665
        }
50666
      }
50667
 
50668
      /**
50669
       * Find the _Fields constant that matches fieldId, or null if its not found.
50670
       */
50671
      public static _Fields findByThriftId(int fieldId) {
50672
        switch(fieldId) {
50673
          case 1: // SNAPDEALINVENTORYITEM
50674
            return SNAPDEALINVENTORYITEM;
50675
          default:
50676
            return null;
50677
        }
50678
      }
50679
 
50680
      /**
50681
       * Find the _Fields constant that matches fieldId, throwing an exception
50682
       * if it is not found.
50683
       */
50684
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50685
        _Fields fields = findByThriftId(fieldId);
50686
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50687
        return fields;
50688
      }
50689
 
50690
      /**
50691
       * Find the _Fields constant that matches name, or null if its not found.
50692
       */
50693
      public static _Fields findByName(String name) {
50694
        return byName.get(name);
50695
      }
50696
 
50697
      private final short _thriftId;
50698
      private final String _fieldName;
50699
 
50700
      _Fields(short thriftId, String fieldName) {
50701
        _thriftId = thriftId;
50702
        _fieldName = fieldName;
50703
      }
50704
 
50705
      public short getThriftFieldId() {
50706
        return _thriftId;
50707
      }
50708
 
50709
      public String getFieldName() {
50710
        return _fieldName;
50711
      }
50712
    }
50713
 
50714
    // isset id assignments
50715
 
50716
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
50717
    static {
50718
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
50719
      tmpMap.put(_Fields.SNAPDEALINVENTORYITEM, new org.apache.thrift.meta_data.FieldMetaData("snapdealinventoryitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
50720
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class)));
50721
      metaDataMap = Collections.unmodifiableMap(tmpMap);
50722
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealInventoryForItem_args.class, metaDataMap);
50723
    }
50724
 
50725
    public addOrUpdateSnapdealInventoryForItem_args() {
50726
    }
50727
 
50728
    public addOrUpdateSnapdealInventoryForItem_args(
50729
      SnapdealInventoryItem snapdealinventoryitem)
50730
    {
50731
      this();
50732
      this.snapdealinventoryitem = snapdealinventoryitem;
50733
    }
50734
 
50735
    /**
50736
     * Performs a deep copy on <i>other</i>.
50737
     */
50738
    public addOrUpdateSnapdealInventoryForItem_args(addOrUpdateSnapdealInventoryForItem_args other) {
50739
      if (other.isSetSnapdealinventoryitem()) {
50740
        this.snapdealinventoryitem = new SnapdealInventoryItem(other.snapdealinventoryitem);
50741
      }
50742
    }
50743
 
50744
    public addOrUpdateSnapdealInventoryForItem_args deepCopy() {
50745
      return new addOrUpdateSnapdealInventoryForItem_args(this);
50746
    }
50747
 
50748
    @Override
50749
    public void clear() {
50750
      this.snapdealinventoryitem = null;
50751
    }
50752
 
50753
    public SnapdealInventoryItem getSnapdealinventoryitem() {
50754
      return this.snapdealinventoryitem;
50755
    }
50756
 
50757
    public void setSnapdealinventoryitem(SnapdealInventoryItem snapdealinventoryitem) {
50758
      this.snapdealinventoryitem = snapdealinventoryitem;
50759
    }
50760
 
50761
    public void unsetSnapdealinventoryitem() {
50762
      this.snapdealinventoryitem = null;
50763
    }
50764
 
50765
    /** Returns true if field snapdealinventoryitem is set (has been assigned a value) and false otherwise */
50766
    public boolean isSetSnapdealinventoryitem() {
50767
      return this.snapdealinventoryitem != null;
50768
    }
50769
 
50770
    public void setSnapdealinventoryitemIsSet(boolean value) {
50771
      if (!value) {
50772
        this.snapdealinventoryitem = null;
50773
      }
50774
    }
50775
 
50776
    public void setFieldValue(_Fields field, Object value) {
50777
      switch (field) {
50778
      case SNAPDEALINVENTORYITEM:
50779
        if (value == null) {
50780
          unsetSnapdealinventoryitem();
50781
        } else {
50782
          setSnapdealinventoryitem((SnapdealInventoryItem)value);
50783
        }
50784
        break;
50785
 
50786
      }
50787
    }
50788
 
50789
    public Object getFieldValue(_Fields field) {
50790
      switch (field) {
50791
      case SNAPDEALINVENTORYITEM:
50792
        return getSnapdealinventoryitem();
50793
 
50794
      }
50795
      throw new IllegalStateException();
50796
    }
50797
 
50798
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
50799
    public boolean isSet(_Fields field) {
50800
      if (field == null) {
50801
        throw new IllegalArgumentException();
50802
      }
50803
 
50804
      switch (field) {
50805
      case SNAPDEALINVENTORYITEM:
50806
        return isSetSnapdealinventoryitem();
50807
      }
50808
      throw new IllegalStateException();
50809
    }
50810
 
50811
    @Override
50812
    public boolean equals(Object that) {
50813
      if (that == null)
50814
        return false;
50815
      if (that instanceof addOrUpdateSnapdealInventoryForItem_args)
50816
        return this.equals((addOrUpdateSnapdealInventoryForItem_args)that);
50817
      return false;
50818
    }
50819
 
50820
    public boolean equals(addOrUpdateSnapdealInventoryForItem_args that) {
50821
      if (that == null)
50822
        return false;
50823
 
50824
      boolean this_present_snapdealinventoryitem = true && this.isSetSnapdealinventoryitem();
50825
      boolean that_present_snapdealinventoryitem = true && that.isSetSnapdealinventoryitem();
50826
      if (this_present_snapdealinventoryitem || that_present_snapdealinventoryitem) {
50827
        if (!(this_present_snapdealinventoryitem && that_present_snapdealinventoryitem))
50828
          return false;
50829
        if (!this.snapdealinventoryitem.equals(that.snapdealinventoryitem))
50830
          return false;
50831
      }
50832
 
50833
      return true;
50834
    }
50835
 
50836
    @Override
50837
    public int hashCode() {
50838
      return 0;
50839
    }
50840
 
50841
    public int compareTo(addOrUpdateSnapdealInventoryForItem_args other) {
50842
      if (!getClass().equals(other.getClass())) {
50843
        return getClass().getName().compareTo(other.getClass().getName());
50844
      }
50845
 
50846
      int lastComparison = 0;
50847
      addOrUpdateSnapdealInventoryForItem_args typedOther = (addOrUpdateSnapdealInventoryForItem_args)other;
50848
 
50849
      lastComparison = Boolean.valueOf(isSetSnapdealinventoryitem()).compareTo(typedOther.isSetSnapdealinventoryitem());
50850
      if (lastComparison != 0) {
50851
        return lastComparison;
50852
      }
50853
      if (isSetSnapdealinventoryitem()) {
50854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealinventoryitem, typedOther.snapdealinventoryitem);
50855
        if (lastComparison != 0) {
50856
          return lastComparison;
50857
        }
50858
      }
50859
      return 0;
50860
    }
50861
 
50862
    public _Fields fieldForId(int fieldId) {
50863
      return _Fields.findByThriftId(fieldId);
50864
    }
50865
 
50866
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
50867
      org.apache.thrift.protocol.TField field;
50868
      iprot.readStructBegin();
50869
      while (true)
50870
      {
50871
        field = iprot.readFieldBegin();
50872
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
50873
          break;
50874
        }
50875
        switch (field.id) {
50876
          case 1: // SNAPDEALINVENTORYITEM
50877
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
50878
              this.snapdealinventoryitem = new SnapdealInventoryItem();
50879
              this.snapdealinventoryitem.read(iprot);
50880
            } else { 
50881
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50882
            }
50883
            break;
50884
          default:
50885
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
50886
        }
50887
        iprot.readFieldEnd();
50888
      }
50889
      iprot.readStructEnd();
50890
      validate();
50891
    }
50892
 
50893
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
50894
      validate();
50895
 
50896
      oprot.writeStructBegin(STRUCT_DESC);
50897
      if (this.snapdealinventoryitem != null) {
50898
        oprot.writeFieldBegin(SNAPDEALINVENTORYITEM_FIELD_DESC);
50899
        this.snapdealinventoryitem.write(oprot);
50900
        oprot.writeFieldEnd();
50901
      }
50902
      oprot.writeFieldStop();
50903
      oprot.writeStructEnd();
50904
    }
50905
 
50906
    @Override
50907
    public String toString() {
50908
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealInventoryForItem_args(");
50909
      boolean first = true;
50910
 
50911
      sb.append("snapdealinventoryitem:");
50912
      if (this.snapdealinventoryitem == null) {
50913
        sb.append("null");
50914
      } else {
50915
        sb.append(this.snapdealinventoryitem);
50916
      }
50917
      first = false;
50918
      sb.append(")");
50919
      return sb.toString();
50920
    }
50921
 
50922
    public void validate() throws org.apache.thrift.TException {
50923
      // check for required fields
50924
    }
50925
 
50926
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
50927
      try {
50928
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
50929
      } catch (org.apache.thrift.TException te) {
50930
        throw new java.io.IOException(te);
50931
      }
50932
    }
50933
 
50934
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
50935
      try {
50936
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
50937
      } catch (org.apache.thrift.TException te) {
50938
        throw new java.io.IOException(te);
50939
      }
50940
    }
50941
 
50942
  }
50943
 
50944
  public static class addOrUpdateSnapdealInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateSnapdealInventoryForItem_result, addOrUpdateSnapdealInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
50945
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealInventoryForItem_result");
50946
 
50947
 
50948
 
50949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50951
;
50952
 
50953
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50954
 
50955
      static {
50956
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
50957
          byName.put(field.getFieldName(), field);
50958
        }
50959
      }
50960
 
50961
      /**
50962
       * Find the _Fields constant that matches fieldId, or null if its not found.
50963
       */
50964
      public static _Fields findByThriftId(int fieldId) {
50965
        switch(fieldId) {
50966
          default:
50967
            return null;
50968
        }
50969
      }
50970
 
50971
      /**
50972
       * Find the _Fields constant that matches fieldId, throwing an exception
50973
       * if it is not found.
50974
       */
50975
      public static _Fields findByThriftIdOrThrow(int fieldId) {
50976
        _Fields fields = findByThriftId(fieldId);
50977
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
50978
        return fields;
50979
      }
50980
 
50981
      /**
50982
       * Find the _Fields constant that matches name, or null if its not found.
50983
       */
50984
      public static _Fields findByName(String name) {
50985
        return byName.get(name);
50986
      }
50987
 
50988
      private final short _thriftId;
50989
      private final String _fieldName;
50990
 
50991
      _Fields(short thriftId, String fieldName) {
50992
        _thriftId = thriftId;
50993
        _fieldName = fieldName;
50994
      }
50995
 
50996
      public short getThriftFieldId() {
50997
        return _thriftId;
50998
      }
50999
 
51000
      public String getFieldName() {
51001
        return _fieldName;
51002
      }
51003
    }
51004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51005
    static {
51006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51007
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51008
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealInventoryForItem_result.class, metaDataMap);
51009
    }
51010
 
51011
    public addOrUpdateSnapdealInventoryForItem_result() {
51012
    }
51013
 
51014
    /**
51015
     * Performs a deep copy on <i>other</i>.
51016
     */
51017
    public addOrUpdateSnapdealInventoryForItem_result(addOrUpdateSnapdealInventoryForItem_result other) {
51018
    }
51019
 
51020
    public addOrUpdateSnapdealInventoryForItem_result deepCopy() {
51021
      return new addOrUpdateSnapdealInventoryForItem_result(this);
51022
    }
51023
 
51024
    @Override
51025
    public void clear() {
51026
    }
51027
 
51028
    public void setFieldValue(_Fields field, Object value) {
51029
      switch (field) {
51030
      }
51031
    }
51032
 
51033
    public Object getFieldValue(_Fields field) {
51034
      switch (field) {
51035
      }
51036
      throw new IllegalStateException();
51037
    }
51038
 
51039
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51040
    public boolean isSet(_Fields field) {
51041
      if (field == null) {
51042
        throw new IllegalArgumentException();
51043
      }
51044
 
51045
      switch (field) {
51046
      }
51047
      throw new IllegalStateException();
51048
    }
51049
 
51050
    @Override
51051
    public boolean equals(Object that) {
51052
      if (that == null)
51053
        return false;
51054
      if (that instanceof addOrUpdateSnapdealInventoryForItem_result)
51055
        return this.equals((addOrUpdateSnapdealInventoryForItem_result)that);
51056
      return false;
51057
    }
51058
 
51059
    public boolean equals(addOrUpdateSnapdealInventoryForItem_result that) {
51060
      if (that == null)
51061
        return false;
51062
 
51063
      return true;
51064
    }
51065
 
51066
    @Override
51067
    public int hashCode() {
51068
      return 0;
51069
    }
51070
 
51071
    public int compareTo(addOrUpdateSnapdealInventoryForItem_result other) {
51072
      if (!getClass().equals(other.getClass())) {
51073
        return getClass().getName().compareTo(other.getClass().getName());
51074
      }
51075
 
51076
      int lastComparison = 0;
51077
      addOrUpdateSnapdealInventoryForItem_result typedOther = (addOrUpdateSnapdealInventoryForItem_result)other;
51078
 
51079
      return 0;
51080
    }
51081
 
51082
    public _Fields fieldForId(int fieldId) {
51083
      return _Fields.findByThriftId(fieldId);
51084
    }
51085
 
51086
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51087
      org.apache.thrift.protocol.TField field;
51088
      iprot.readStructBegin();
51089
      while (true)
51090
      {
51091
        field = iprot.readFieldBegin();
51092
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51093
          break;
51094
        }
51095
        switch (field.id) {
51096
          default:
51097
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51098
        }
51099
        iprot.readFieldEnd();
51100
      }
51101
      iprot.readStructEnd();
51102
      validate();
51103
    }
51104
 
51105
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51106
      oprot.writeStructBegin(STRUCT_DESC);
51107
 
51108
      oprot.writeFieldStop();
51109
      oprot.writeStructEnd();
51110
    }
51111
 
51112
    @Override
51113
    public String toString() {
51114
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealInventoryForItem_result(");
51115
      boolean first = true;
51116
 
51117
      sb.append(")");
51118
      return sb.toString();
51119
    }
51120
 
51121
    public void validate() throws org.apache.thrift.TException {
51122
      // check for required fields
51123
    }
51124
 
51125
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51126
      try {
51127
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51128
      } catch (org.apache.thrift.TException te) {
51129
        throw new java.io.IOException(te);
51130
      }
51131
    }
51132
 
51133
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51134
      try {
51135
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51136
      } catch (org.apache.thrift.TException te) {
51137
        throw new java.io.IOException(te);
51138
      }
51139
    }
51140
 
51141
  }
51142
 
51143
  public static class getNlcForWarehouse_args implements org.apache.thrift.TBase<getNlcForWarehouse_args, getNlcForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
51144
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNlcForWarehouse_args");
51145
 
51146
    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);
51147
    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);
51148
 
51149
    private long warehouse_id; // required
51150
    private long item_id; // required
51151
 
51152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51153
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51154
      WAREHOUSE_ID((short)1, "warehouse_id"),
51155
      ITEM_ID((short)2, "item_id");
51156
 
51157
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51158
 
51159
      static {
51160
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51161
          byName.put(field.getFieldName(), field);
51162
        }
51163
      }
51164
 
51165
      /**
51166
       * Find the _Fields constant that matches fieldId, or null if its not found.
51167
       */
51168
      public static _Fields findByThriftId(int fieldId) {
51169
        switch(fieldId) {
51170
          case 1: // WAREHOUSE_ID
51171
            return WAREHOUSE_ID;
51172
          case 2: // ITEM_ID
51173
            return ITEM_ID;
51174
          default:
51175
            return null;
51176
        }
51177
      }
51178
 
51179
      /**
51180
       * Find the _Fields constant that matches fieldId, throwing an exception
51181
       * if it is not found.
51182
       */
51183
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51184
        _Fields fields = findByThriftId(fieldId);
51185
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51186
        return fields;
51187
      }
51188
 
51189
      /**
51190
       * Find the _Fields constant that matches name, or null if its not found.
51191
       */
51192
      public static _Fields findByName(String name) {
51193
        return byName.get(name);
51194
      }
51195
 
51196
      private final short _thriftId;
51197
      private final String _fieldName;
51198
 
51199
      _Fields(short thriftId, String fieldName) {
51200
        _thriftId = thriftId;
51201
        _fieldName = fieldName;
51202
      }
51203
 
51204
      public short getThriftFieldId() {
51205
        return _thriftId;
51206
      }
51207
 
51208
      public String getFieldName() {
51209
        return _fieldName;
51210
      }
51211
    }
51212
 
51213
    // isset id assignments
51214
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
51215
    private static final int __ITEM_ID_ISSET_ID = 1;
51216
    private BitSet __isset_bit_vector = new BitSet(2);
51217
 
51218
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51219
    static {
51220
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51221
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51222
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51223
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51224
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51225
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51226
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNlcForWarehouse_args.class, metaDataMap);
51227
    }
51228
 
51229
    public getNlcForWarehouse_args() {
51230
    }
51231
 
51232
    public getNlcForWarehouse_args(
51233
      long warehouse_id,
51234
      long item_id)
51235
    {
51236
      this();
51237
      this.warehouse_id = warehouse_id;
51238
      setWarehouse_idIsSet(true);
51239
      this.item_id = item_id;
51240
      setItem_idIsSet(true);
51241
    }
51242
 
51243
    /**
51244
     * Performs a deep copy on <i>other</i>.
51245
     */
51246
    public getNlcForWarehouse_args(getNlcForWarehouse_args other) {
51247
      __isset_bit_vector.clear();
51248
      __isset_bit_vector.or(other.__isset_bit_vector);
51249
      this.warehouse_id = other.warehouse_id;
51250
      this.item_id = other.item_id;
51251
    }
51252
 
51253
    public getNlcForWarehouse_args deepCopy() {
51254
      return new getNlcForWarehouse_args(this);
51255
    }
51256
 
51257
    @Override
51258
    public void clear() {
51259
      setWarehouse_idIsSet(false);
51260
      this.warehouse_id = 0;
51261
      setItem_idIsSet(false);
51262
      this.item_id = 0;
51263
    }
51264
 
51265
    public long getWarehouse_id() {
51266
      return this.warehouse_id;
51267
    }
51268
 
51269
    public void setWarehouse_id(long warehouse_id) {
51270
      this.warehouse_id = warehouse_id;
51271
      setWarehouse_idIsSet(true);
51272
    }
51273
 
51274
    public void unsetWarehouse_id() {
51275
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
51276
    }
51277
 
51278
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
51279
    public boolean isSetWarehouse_id() {
51280
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
51281
    }
51282
 
51283
    public void setWarehouse_idIsSet(boolean value) {
51284
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
51285
    }
51286
 
51287
    public long getItem_id() {
51288
      return this.item_id;
51289
    }
51290
 
51291
    public void setItem_id(long item_id) {
51292
      this.item_id = item_id;
51293
      setItem_idIsSet(true);
51294
    }
51295
 
51296
    public void unsetItem_id() {
51297
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
51298
    }
51299
 
51300
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
51301
    public boolean isSetItem_id() {
51302
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
51303
    }
51304
 
51305
    public void setItem_idIsSet(boolean value) {
51306
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
51307
    }
51308
 
51309
    public void setFieldValue(_Fields field, Object value) {
51310
      switch (field) {
51311
      case WAREHOUSE_ID:
51312
        if (value == null) {
51313
          unsetWarehouse_id();
51314
        } else {
51315
          setWarehouse_id((Long)value);
51316
        }
51317
        break;
51318
 
51319
      case ITEM_ID:
51320
        if (value == null) {
51321
          unsetItem_id();
51322
        } else {
51323
          setItem_id((Long)value);
51324
        }
51325
        break;
51326
 
51327
      }
51328
    }
51329
 
51330
    public Object getFieldValue(_Fields field) {
51331
      switch (field) {
51332
      case WAREHOUSE_ID:
51333
        return Long.valueOf(getWarehouse_id());
51334
 
51335
      case ITEM_ID:
51336
        return Long.valueOf(getItem_id());
51337
 
51338
      }
51339
      throw new IllegalStateException();
51340
    }
51341
 
51342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51343
    public boolean isSet(_Fields field) {
51344
      if (field == null) {
51345
        throw new IllegalArgumentException();
51346
      }
51347
 
51348
      switch (field) {
51349
      case WAREHOUSE_ID:
51350
        return isSetWarehouse_id();
51351
      case ITEM_ID:
51352
        return isSetItem_id();
51353
      }
51354
      throw new IllegalStateException();
51355
    }
51356
 
51357
    @Override
51358
    public boolean equals(Object that) {
51359
      if (that == null)
51360
        return false;
51361
      if (that instanceof getNlcForWarehouse_args)
51362
        return this.equals((getNlcForWarehouse_args)that);
51363
      return false;
51364
    }
51365
 
51366
    public boolean equals(getNlcForWarehouse_args that) {
51367
      if (that == null)
51368
        return false;
51369
 
51370
      boolean this_present_warehouse_id = true;
51371
      boolean that_present_warehouse_id = true;
51372
      if (this_present_warehouse_id || that_present_warehouse_id) {
51373
        if (!(this_present_warehouse_id && that_present_warehouse_id))
51374
          return false;
51375
        if (this.warehouse_id != that.warehouse_id)
51376
          return false;
51377
      }
51378
 
51379
      boolean this_present_item_id = true;
51380
      boolean that_present_item_id = true;
51381
      if (this_present_item_id || that_present_item_id) {
51382
        if (!(this_present_item_id && that_present_item_id))
51383
          return false;
51384
        if (this.item_id != that.item_id)
51385
          return false;
51386
      }
51387
 
51388
      return true;
51389
    }
51390
 
51391
    @Override
51392
    public int hashCode() {
51393
      return 0;
51394
    }
51395
 
51396
    public int compareTo(getNlcForWarehouse_args other) {
51397
      if (!getClass().equals(other.getClass())) {
51398
        return getClass().getName().compareTo(other.getClass().getName());
51399
      }
51400
 
51401
      int lastComparison = 0;
51402
      getNlcForWarehouse_args typedOther = (getNlcForWarehouse_args)other;
51403
 
51404
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
51405
      if (lastComparison != 0) {
51406
        return lastComparison;
51407
      }
51408
      if (isSetWarehouse_id()) {
51409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
51410
        if (lastComparison != 0) {
51411
          return lastComparison;
51412
        }
51413
      }
51414
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
51415
      if (lastComparison != 0) {
51416
        return lastComparison;
51417
      }
51418
      if (isSetItem_id()) {
51419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
51420
        if (lastComparison != 0) {
51421
          return lastComparison;
51422
        }
51423
      }
51424
      return 0;
51425
    }
51426
 
51427
    public _Fields fieldForId(int fieldId) {
51428
      return _Fields.findByThriftId(fieldId);
51429
    }
51430
 
51431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51432
      org.apache.thrift.protocol.TField field;
51433
      iprot.readStructBegin();
51434
      while (true)
51435
      {
51436
        field = iprot.readFieldBegin();
51437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51438
          break;
51439
        }
51440
        switch (field.id) {
51441
          case 1: // WAREHOUSE_ID
51442
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51443
              this.warehouse_id = iprot.readI64();
51444
              setWarehouse_idIsSet(true);
51445
            } else { 
51446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51447
            }
51448
            break;
51449
          case 2: // ITEM_ID
51450
            if (field.type == org.apache.thrift.protocol.TType.I64) {
51451
              this.item_id = iprot.readI64();
51452
              setItem_idIsSet(true);
51453
            } else { 
51454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51455
            }
51456
            break;
51457
          default:
51458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51459
        }
51460
        iprot.readFieldEnd();
51461
      }
51462
      iprot.readStructEnd();
51463
      validate();
51464
    }
51465
 
51466
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51467
      validate();
51468
 
51469
      oprot.writeStructBegin(STRUCT_DESC);
51470
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
51471
      oprot.writeI64(this.warehouse_id);
51472
      oprot.writeFieldEnd();
51473
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
51474
      oprot.writeI64(this.item_id);
51475
      oprot.writeFieldEnd();
51476
      oprot.writeFieldStop();
51477
      oprot.writeStructEnd();
51478
    }
51479
 
51480
    @Override
51481
    public String toString() {
51482
      StringBuilder sb = new StringBuilder("getNlcForWarehouse_args(");
51483
      boolean first = true;
51484
 
51485
      sb.append("warehouse_id:");
51486
      sb.append(this.warehouse_id);
51487
      first = false;
51488
      if (!first) sb.append(", ");
51489
      sb.append("item_id:");
51490
      sb.append(this.item_id);
51491
      first = false;
51492
      sb.append(")");
51493
      return sb.toString();
51494
    }
51495
 
51496
    public void validate() throws org.apache.thrift.TException {
51497
      // check for required fields
51498
    }
51499
 
51500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51501
      try {
51502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51503
      } catch (org.apache.thrift.TException te) {
51504
        throw new java.io.IOException(te);
51505
      }
51506
    }
51507
 
51508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51509
      try {
51510
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
51511
        __isset_bit_vector = new BitSet(1);
51512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51513
      } catch (org.apache.thrift.TException te) {
51514
        throw new java.io.IOException(te);
51515
      }
51516
    }
51517
 
51518
  }
51519
 
51520
  public static class getNlcForWarehouse_result implements org.apache.thrift.TBase<getNlcForWarehouse_result, getNlcForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
51521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNlcForWarehouse_result");
51522
 
51523
    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);
51524
 
51525
    private double success; // required
51526
 
51527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51529
      SUCCESS((short)0, "success");
51530
 
51531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51532
 
51533
      static {
51534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51535
          byName.put(field.getFieldName(), field);
51536
        }
51537
      }
51538
 
51539
      /**
51540
       * Find the _Fields constant that matches fieldId, or null if its not found.
51541
       */
51542
      public static _Fields findByThriftId(int fieldId) {
51543
        switch(fieldId) {
51544
          case 0: // SUCCESS
51545
            return SUCCESS;
51546
          default:
51547
            return null;
51548
        }
51549
      }
51550
 
51551
      /**
51552
       * Find the _Fields constant that matches fieldId, throwing an exception
51553
       * if it is not found.
51554
       */
51555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51556
        _Fields fields = findByThriftId(fieldId);
51557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51558
        return fields;
51559
      }
51560
 
51561
      /**
51562
       * Find the _Fields constant that matches name, or null if its not found.
51563
       */
51564
      public static _Fields findByName(String name) {
51565
        return byName.get(name);
51566
      }
51567
 
51568
      private final short _thriftId;
51569
      private final String _fieldName;
51570
 
51571
      _Fields(short thriftId, String fieldName) {
51572
        _thriftId = thriftId;
51573
        _fieldName = fieldName;
51574
      }
51575
 
51576
      public short getThriftFieldId() {
51577
        return _thriftId;
51578
      }
51579
 
51580
      public String getFieldName() {
51581
        return _fieldName;
51582
      }
51583
    }
51584
 
51585
    // isset id assignments
51586
    private static final int __SUCCESS_ISSET_ID = 0;
51587
    private BitSet __isset_bit_vector = new BitSet(1);
51588
 
51589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51590
    static {
51591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51592
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51593
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
51594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNlcForWarehouse_result.class, metaDataMap);
51596
    }
51597
 
51598
    public getNlcForWarehouse_result() {
51599
    }
51600
 
51601
    public getNlcForWarehouse_result(
51602
      double success)
51603
    {
51604
      this();
51605
      this.success = success;
51606
      setSuccessIsSet(true);
51607
    }
51608
 
51609
    /**
51610
     * Performs a deep copy on <i>other</i>.
51611
     */
51612
    public getNlcForWarehouse_result(getNlcForWarehouse_result other) {
51613
      __isset_bit_vector.clear();
51614
      __isset_bit_vector.or(other.__isset_bit_vector);
51615
      this.success = other.success;
51616
    }
51617
 
51618
    public getNlcForWarehouse_result deepCopy() {
51619
      return new getNlcForWarehouse_result(this);
51620
    }
51621
 
51622
    @Override
51623
    public void clear() {
51624
      setSuccessIsSet(false);
51625
      this.success = 0.0;
51626
    }
51627
 
51628
    public double getSuccess() {
51629
      return this.success;
51630
    }
51631
 
51632
    public void setSuccess(double success) {
51633
      this.success = success;
51634
      setSuccessIsSet(true);
51635
    }
51636
 
51637
    public void unsetSuccess() {
51638
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
51639
    }
51640
 
51641
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
51642
    public boolean isSetSuccess() {
51643
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
51644
    }
51645
 
51646
    public void setSuccessIsSet(boolean value) {
51647
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
51648
    }
51649
 
51650
    public void setFieldValue(_Fields field, Object value) {
51651
      switch (field) {
51652
      case SUCCESS:
51653
        if (value == null) {
51654
          unsetSuccess();
51655
        } else {
51656
          setSuccess((Double)value);
51657
        }
51658
        break;
51659
 
51660
      }
51661
    }
51662
 
51663
    public Object getFieldValue(_Fields field) {
51664
      switch (field) {
51665
      case SUCCESS:
51666
        return Double.valueOf(getSuccess());
51667
 
51668
      }
51669
      throw new IllegalStateException();
51670
    }
51671
 
51672
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
51673
    public boolean isSet(_Fields field) {
51674
      if (field == null) {
51675
        throw new IllegalArgumentException();
51676
      }
51677
 
51678
      switch (field) {
51679
      case SUCCESS:
51680
        return isSetSuccess();
51681
      }
51682
      throw new IllegalStateException();
51683
    }
51684
 
51685
    @Override
51686
    public boolean equals(Object that) {
51687
      if (that == null)
51688
        return false;
51689
      if (that instanceof getNlcForWarehouse_result)
51690
        return this.equals((getNlcForWarehouse_result)that);
51691
      return false;
51692
    }
51693
 
51694
    public boolean equals(getNlcForWarehouse_result that) {
51695
      if (that == null)
51696
        return false;
51697
 
51698
      boolean this_present_success = true;
51699
      boolean that_present_success = true;
51700
      if (this_present_success || that_present_success) {
51701
        if (!(this_present_success && that_present_success))
51702
          return false;
51703
        if (this.success != that.success)
51704
          return false;
51705
      }
51706
 
51707
      return true;
51708
    }
51709
 
51710
    @Override
51711
    public int hashCode() {
51712
      return 0;
51713
    }
51714
 
51715
    public int compareTo(getNlcForWarehouse_result other) {
51716
      if (!getClass().equals(other.getClass())) {
51717
        return getClass().getName().compareTo(other.getClass().getName());
51718
      }
51719
 
51720
      int lastComparison = 0;
51721
      getNlcForWarehouse_result typedOther = (getNlcForWarehouse_result)other;
51722
 
51723
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
51724
      if (lastComparison != 0) {
51725
        return lastComparison;
51726
      }
51727
      if (isSetSuccess()) {
51728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
51729
        if (lastComparison != 0) {
51730
          return lastComparison;
51731
        }
51732
      }
51733
      return 0;
51734
    }
51735
 
51736
    public _Fields fieldForId(int fieldId) {
51737
      return _Fields.findByThriftId(fieldId);
51738
    }
51739
 
51740
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
51741
      org.apache.thrift.protocol.TField field;
51742
      iprot.readStructBegin();
51743
      while (true)
51744
      {
51745
        field = iprot.readFieldBegin();
51746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
51747
          break;
51748
        }
51749
        switch (field.id) {
51750
          case 0: // SUCCESS
51751
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
51752
              this.success = iprot.readDouble();
51753
              setSuccessIsSet(true);
51754
            } else { 
51755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51756
            }
51757
            break;
51758
          default:
51759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
51760
        }
51761
        iprot.readFieldEnd();
51762
      }
51763
      iprot.readStructEnd();
51764
      validate();
51765
    }
51766
 
51767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
51768
      oprot.writeStructBegin(STRUCT_DESC);
51769
 
51770
      if (this.isSetSuccess()) {
51771
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
51772
        oprot.writeDouble(this.success);
51773
        oprot.writeFieldEnd();
51774
      }
51775
      oprot.writeFieldStop();
51776
      oprot.writeStructEnd();
51777
    }
51778
 
51779
    @Override
51780
    public String toString() {
51781
      StringBuilder sb = new StringBuilder("getNlcForWarehouse_result(");
51782
      boolean first = true;
51783
 
51784
      sb.append("success:");
51785
      sb.append(this.success);
51786
      first = false;
51787
      sb.append(")");
51788
      return sb.toString();
51789
    }
51790
 
51791
    public void validate() throws org.apache.thrift.TException {
51792
      // check for required fields
51793
    }
51794
 
51795
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
51796
      try {
51797
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
51798
      } catch (org.apache.thrift.TException te) {
51799
        throw new java.io.IOException(te);
51800
      }
51801
    }
51802
 
51803
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
51804
      try {
51805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
51806
      } catch (org.apache.thrift.TException te) {
51807
        throw new java.io.IOException(te);
51808
      }
51809
    }
51810
 
51811
  }
51812
 
9640 amar.kumar 51813
  public static class getHeldInventoryMapForItem_args implements org.apache.thrift.TBase<getHeldInventoryMapForItem_args, getHeldInventoryMapForItem_args._Fields>, java.io.Serializable, Cloneable   {
51814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHeldInventoryMapForItem_args");
51815
 
51816
    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);
51817
    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);
51818
 
51819
    private long item_id; // required
51820
    private long warehouse_id; // required
51821
 
51822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51824
      ITEM_ID((short)1, "item_id"),
51825
      WAREHOUSE_ID((short)2, "warehouse_id");
51826
 
51827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51828
 
51829
      static {
51830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
51831
          byName.put(field.getFieldName(), field);
51832
        }
51833
      }
51834
 
51835
      /**
51836
       * Find the _Fields constant that matches fieldId, or null if its not found.
51837
       */
51838
      public static _Fields findByThriftId(int fieldId) {
51839
        switch(fieldId) {
51840
          case 1: // ITEM_ID
51841
            return ITEM_ID;
51842
          case 2: // WAREHOUSE_ID
51843
            return WAREHOUSE_ID;
51844
          default:
51845
            return null;
51846
        }
51847
      }
51848
 
51849
      /**
51850
       * Find the _Fields constant that matches fieldId, throwing an exception
51851
       * if it is not found.
51852
       */
51853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
51854
        _Fields fields = findByThriftId(fieldId);
51855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
51856
        return fields;
51857
      }
51858
 
51859
      /**
51860
       * Find the _Fields constant that matches name, or null if its not found.
51861
       */
51862
      public static _Fields findByName(String name) {
51863
        return byName.get(name);
51864
      }
51865
 
51866
      private final short _thriftId;
51867
      private final String _fieldName;
51868
 
51869
      _Fields(short thriftId, String fieldName) {
51870
        _thriftId = thriftId;
51871
        _fieldName = fieldName;
51872
      }
51873
 
51874
      public short getThriftFieldId() {
51875
        return _thriftId;
51876
      }
51877
 
51878
      public String getFieldName() {
51879
        return _fieldName;
51880
      }
51881
    }
51882
 
51883
    // isset id assignments
51884
    private static final int __ITEM_ID_ISSET_ID = 0;
51885
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
51886
    private BitSet __isset_bit_vector = new BitSet(2);
51887
 
51888
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
51889
    static {
51890
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
51891
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51893
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
51894
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
51895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
51896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHeldInventoryMapForItem_args.class, metaDataMap);
51897
    }
51898
 
51899
    public getHeldInventoryMapForItem_args() {
51900
    }
51901
 
51902
    public getHeldInventoryMapForItem_args(
51903
      long item_id,
51904
      long warehouse_id)
51905
    {
51906
      this();
51907
      this.item_id = item_id;
51908
      setItem_idIsSet(true);
51909
      this.warehouse_id = warehouse_id;
51910
      setWarehouse_idIsSet(true);
51911
    }
51912
 
51913
    /**
51914
     * Performs a deep copy on <i>other</i>.
51915
     */
51916
    public getHeldInventoryMapForItem_args(getHeldInventoryMapForItem_args other) {
51917
      __isset_bit_vector.clear();
51918
      __isset_bit_vector.or(other.__isset_bit_vector);
51919
      this.item_id = other.item_id;
51920
      this.warehouse_id = other.warehouse_id;
51921
    }
51922
 
51923
    public getHeldInventoryMapForItem_args deepCopy() {
51924
      return new getHeldInventoryMapForItem_args(this);
51925
    }
51926
 
51927
    @Override
51928
    public void clear() {
51929
      setItem_idIsSet(false);
51930
      this.item_id = 0;
51931
      setWarehouse_idIsSet(false);
51932
      this.warehouse_id = 0;
51933
    }
51934
 
51935
    public long getItem_id() {
51936
      return this.item_id;
51937
    }
51938
 
51939
    public void setItem_id(long item_id) {
51940
      this.item_id = item_id;
51941
      setItem_idIsSet(true);
51942
    }
51943
 
51944
    public void unsetItem_id() {
51945
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
51946
    }
51947
 
51948
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
51949
    public boolean isSetItem_id() {
51950
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
51951
    }
51952
 
51953
    public void setItem_idIsSet(boolean value) {
51954
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
51955
    }
51956
 
51957
    public long getWarehouse_id() {
51958
      return this.warehouse_id;
51959
    }
51960
 
51961
    public void setWarehouse_id(long warehouse_id) {
51962
      this.warehouse_id = warehouse_id;
51963
      setWarehouse_idIsSet(true);
51964
    }
51965
 
51966
    public void unsetWarehouse_id() {
51967
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
51968
    }
51969
 
51970
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
51971
    public boolean isSetWarehouse_id() {
51972
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
51973
    }
51974
 
51975
    public void setWarehouse_idIsSet(boolean value) {
51976
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
51977
    }
51978
 
51979
    public void setFieldValue(_Fields field, Object value) {
51980
      switch (field) {
51981
      case ITEM_ID:
51982
        if (value == null) {
51983
          unsetItem_id();
51984
        } else {
51985
          setItem_id((Long)value);
51986
        }
51987
        break;
51988
 
51989
      case WAREHOUSE_ID:
51990
        if (value == null) {
51991
          unsetWarehouse_id();
51992
        } else {
51993
          setWarehouse_id((Long)value);
51994
        }
51995
        break;
51996
 
51997
      }
51998
    }
51999
 
52000
    public Object getFieldValue(_Fields field) {
52001
      switch (field) {
52002
      case ITEM_ID:
52003
        return Long.valueOf(getItem_id());
52004
 
52005
      case WAREHOUSE_ID:
52006
        return Long.valueOf(getWarehouse_id());
52007
 
52008
      }
52009
      throw new IllegalStateException();
52010
    }
52011
 
52012
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52013
    public boolean isSet(_Fields field) {
52014
      if (field == null) {
52015
        throw new IllegalArgumentException();
52016
      }
52017
 
52018
      switch (field) {
52019
      case ITEM_ID:
52020
        return isSetItem_id();
52021
      case WAREHOUSE_ID:
52022
        return isSetWarehouse_id();
52023
      }
52024
      throw new IllegalStateException();
52025
    }
52026
 
52027
    @Override
52028
    public boolean equals(Object that) {
52029
      if (that == null)
52030
        return false;
52031
      if (that instanceof getHeldInventoryMapForItem_args)
52032
        return this.equals((getHeldInventoryMapForItem_args)that);
52033
      return false;
52034
    }
52035
 
52036
    public boolean equals(getHeldInventoryMapForItem_args that) {
52037
      if (that == null)
52038
        return false;
52039
 
52040
      boolean this_present_item_id = true;
52041
      boolean that_present_item_id = true;
52042
      if (this_present_item_id || that_present_item_id) {
52043
        if (!(this_present_item_id && that_present_item_id))
52044
          return false;
52045
        if (this.item_id != that.item_id)
52046
          return false;
52047
      }
52048
 
52049
      boolean this_present_warehouse_id = true;
52050
      boolean that_present_warehouse_id = true;
52051
      if (this_present_warehouse_id || that_present_warehouse_id) {
52052
        if (!(this_present_warehouse_id && that_present_warehouse_id))
52053
          return false;
52054
        if (this.warehouse_id != that.warehouse_id)
52055
          return false;
52056
      }
52057
 
52058
      return true;
52059
    }
52060
 
52061
    @Override
52062
    public int hashCode() {
52063
      return 0;
52064
    }
52065
 
52066
    public int compareTo(getHeldInventoryMapForItem_args other) {
52067
      if (!getClass().equals(other.getClass())) {
52068
        return getClass().getName().compareTo(other.getClass().getName());
52069
      }
52070
 
52071
      int lastComparison = 0;
52072
      getHeldInventoryMapForItem_args typedOther = (getHeldInventoryMapForItem_args)other;
52073
 
52074
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
52075
      if (lastComparison != 0) {
52076
        return lastComparison;
52077
      }
52078
      if (isSetItem_id()) {
52079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
52080
        if (lastComparison != 0) {
52081
          return lastComparison;
52082
        }
52083
      }
52084
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
52085
      if (lastComparison != 0) {
52086
        return lastComparison;
52087
      }
52088
      if (isSetWarehouse_id()) {
52089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
52090
        if (lastComparison != 0) {
52091
          return lastComparison;
52092
        }
52093
      }
52094
      return 0;
52095
    }
52096
 
52097
    public _Fields fieldForId(int fieldId) {
52098
      return _Fields.findByThriftId(fieldId);
52099
    }
52100
 
52101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52102
      org.apache.thrift.protocol.TField field;
52103
      iprot.readStructBegin();
52104
      while (true)
52105
      {
52106
        field = iprot.readFieldBegin();
52107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52108
          break;
52109
        }
52110
        switch (field.id) {
52111
          case 1: // ITEM_ID
52112
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52113
              this.item_id = iprot.readI64();
52114
              setItem_idIsSet(true);
52115
            } else { 
52116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52117
            }
52118
            break;
52119
          case 2: // WAREHOUSE_ID
52120
            if (field.type == org.apache.thrift.protocol.TType.I64) {
52121
              this.warehouse_id = iprot.readI64();
52122
              setWarehouse_idIsSet(true);
52123
            } else { 
52124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52125
            }
52126
            break;
52127
          default:
52128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52129
        }
52130
        iprot.readFieldEnd();
52131
      }
52132
      iprot.readStructEnd();
52133
      validate();
52134
    }
52135
 
52136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52137
      validate();
52138
 
52139
      oprot.writeStructBegin(STRUCT_DESC);
52140
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
52141
      oprot.writeI64(this.item_id);
52142
      oprot.writeFieldEnd();
52143
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
52144
      oprot.writeI64(this.warehouse_id);
52145
      oprot.writeFieldEnd();
52146
      oprot.writeFieldStop();
52147
      oprot.writeStructEnd();
52148
    }
52149
 
52150
    @Override
52151
    public String toString() {
52152
      StringBuilder sb = new StringBuilder("getHeldInventoryMapForItem_args(");
52153
      boolean first = true;
52154
 
52155
      sb.append("item_id:");
52156
      sb.append(this.item_id);
52157
      first = false;
52158
      if (!first) sb.append(", ");
52159
      sb.append("warehouse_id:");
52160
      sb.append(this.warehouse_id);
52161
      first = false;
52162
      sb.append(")");
52163
      return sb.toString();
52164
    }
52165
 
52166
    public void validate() throws org.apache.thrift.TException {
52167
      // check for required fields
52168
    }
52169
 
52170
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52171
      try {
52172
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52173
      } catch (org.apache.thrift.TException te) {
52174
        throw new java.io.IOException(te);
52175
      }
52176
    }
52177
 
52178
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52179
      try {
10126 amar.kumar 52180
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
52181
        __isset_bit_vector = new BitSet(1);
9640 amar.kumar 52182
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52183
      } catch (org.apache.thrift.TException te) {
52184
        throw new java.io.IOException(te);
52185
      }
52186
    }
52187
 
52188
  }
52189
 
52190
  public static class getHeldInventoryMapForItem_result implements org.apache.thrift.TBase<getHeldInventoryMapForItem_result, getHeldInventoryMapForItem_result._Fields>, java.io.Serializable, Cloneable   {
52191
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHeldInventoryMapForItem_result");
52192
 
52193
    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);
52194
 
52195
    private Map<Integer,Long> success; // required
52196
 
52197
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52198
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52199
      SUCCESS((short)0, "success");
52200
 
52201
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52202
 
52203
      static {
52204
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52205
          byName.put(field.getFieldName(), field);
52206
        }
52207
      }
52208
 
52209
      /**
52210
       * Find the _Fields constant that matches fieldId, or null if its not found.
52211
       */
52212
      public static _Fields findByThriftId(int fieldId) {
52213
        switch(fieldId) {
52214
          case 0: // SUCCESS
52215
            return SUCCESS;
52216
          default:
52217
            return null;
52218
        }
52219
      }
52220
 
52221
      /**
52222
       * Find the _Fields constant that matches fieldId, throwing an exception
52223
       * if it is not found.
52224
       */
52225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52226
        _Fields fields = findByThriftId(fieldId);
52227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52228
        return fields;
52229
      }
52230
 
52231
      /**
52232
       * Find the _Fields constant that matches name, or null if its not found.
52233
       */
52234
      public static _Fields findByName(String name) {
52235
        return byName.get(name);
52236
      }
52237
 
52238
      private final short _thriftId;
52239
      private final String _fieldName;
52240
 
52241
      _Fields(short thriftId, String fieldName) {
52242
        _thriftId = thriftId;
52243
        _fieldName = fieldName;
52244
      }
52245
 
52246
      public short getThriftFieldId() {
52247
        return _thriftId;
52248
      }
52249
 
52250
      public String getFieldName() {
52251
        return _fieldName;
52252
      }
52253
    }
52254
 
52255
    // isset id assignments
52256
 
52257
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52258
    static {
52259
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52260
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52261
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
52262
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32), 
52263
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
52264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
52265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHeldInventoryMapForItem_result.class, metaDataMap);
52266
    }
52267
 
52268
    public getHeldInventoryMapForItem_result() {
52269
    }
52270
 
52271
    public getHeldInventoryMapForItem_result(
52272
      Map<Integer,Long> success)
52273
    {
52274
      this();
52275
      this.success = success;
52276
    }
52277
 
52278
    /**
52279
     * Performs a deep copy on <i>other</i>.
52280
     */
52281
    public getHeldInventoryMapForItem_result(getHeldInventoryMapForItem_result other) {
52282
      if (other.isSetSuccess()) {
52283
        Map<Integer,Long> __this__success = new HashMap<Integer,Long>();
52284
        for (Map.Entry<Integer, Long> other_element : other.success.entrySet()) {
52285
 
52286
          Integer other_element_key = other_element.getKey();
52287
          Long other_element_value = other_element.getValue();
52288
 
52289
          Integer __this__success_copy_key = other_element_key;
52290
 
52291
          Long __this__success_copy_value = other_element_value;
52292
 
52293
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
52294
        }
52295
        this.success = __this__success;
52296
      }
52297
    }
52298
 
52299
    public getHeldInventoryMapForItem_result deepCopy() {
52300
      return new getHeldInventoryMapForItem_result(this);
52301
    }
52302
 
52303
    @Override
52304
    public void clear() {
52305
      this.success = null;
52306
    }
52307
 
52308
    public int getSuccessSize() {
52309
      return (this.success == null) ? 0 : this.success.size();
52310
    }
52311
 
52312
    public void putToSuccess(int key, long val) {
52313
      if (this.success == null) {
52314
        this.success = new HashMap<Integer,Long>();
52315
      }
52316
      this.success.put(key, val);
52317
    }
52318
 
52319
    public Map<Integer,Long> getSuccess() {
52320
      return this.success;
52321
    }
52322
 
52323
    public void setSuccess(Map<Integer,Long> success) {
52324
      this.success = success;
52325
    }
52326
 
52327
    public void unsetSuccess() {
52328
      this.success = null;
52329
    }
52330
 
52331
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
52332
    public boolean isSetSuccess() {
52333
      return this.success != null;
52334
    }
52335
 
52336
    public void setSuccessIsSet(boolean value) {
52337
      if (!value) {
52338
        this.success = null;
52339
      }
52340
    }
52341
 
52342
    public void setFieldValue(_Fields field, Object value) {
52343
      switch (field) {
52344
      case SUCCESS:
52345
        if (value == null) {
52346
          unsetSuccess();
52347
        } else {
52348
          setSuccess((Map<Integer,Long>)value);
52349
        }
52350
        break;
52351
 
52352
      }
52353
    }
52354
 
52355
    public Object getFieldValue(_Fields field) {
52356
      switch (field) {
52357
      case SUCCESS:
52358
        return getSuccess();
52359
 
52360
      }
52361
      throw new IllegalStateException();
52362
    }
52363
 
52364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52365
    public boolean isSet(_Fields field) {
52366
      if (field == null) {
52367
        throw new IllegalArgumentException();
52368
      }
52369
 
52370
      switch (field) {
52371
      case SUCCESS:
52372
        return isSetSuccess();
52373
      }
52374
      throw new IllegalStateException();
52375
    }
52376
 
52377
    @Override
52378
    public boolean equals(Object that) {
52379
      if (that == null)
52380
        return false;
52381
      if (that instanceof getHeldInventoryMapForItem_result)
52382
        return this.equals((getHeldInventoryMapForItem_result)that);
52383
      return false;
52384
    }
52385
 
52386
    public boolean equals(getHeldInventoryMapForItem_result that) {
52387
      if (that == null)
52388
        return false;
52389
 
52390
      boolean this_present_success = true && this.isSetSuccess();
52391
      boolean that_present_success = true && that.isSetSuccess();
52392
      if (this_present_success || that_present_success) {
52393
        if (!(this_present_success && that_present_success))
52394
          return false;
52395
        if (!this.success.equals(that.success))
52396
          return false;
52397
      }
52398
 
52399
      return true;
52400
    }
52401
 
52402
    @Override
52403
    public int hashCode() {
52404
      return 0;
52405
    }
52406
 
52407
    public int compareTo(getHeldInventoryMapForItem_result other) {
52408
      if (!getClass().equals(other.getClass())) {
52409
        return getClass().getName().compareTo(other.getClass().getName());
52410
      }
52411
 
52412
      int lastComparison = 0;
52413
      getHeldInventoryMapForItem_result typedOther = (getHeldInventoryMapForItem_result)other;
52414
 
52415
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
52416
      if (lastComparison != 0) {
52417
        return lastComparison;
52418
      }
52419
      if (isSetSuccess()) {
52420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
52421
        if (lastComparison != 0) {
52422
          return lastComparison;
52423
        }
52424
      }
52425
      return 0;
52426
    }
52427
 
52428
    public _Fields fieldForId(int fieldId) {
52429
      return _Fields.findByThriftId(fieldId);
52430
    }
52431
 
52432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52433
      org.apache.thrift.protocol.TField field;
52434
      iprot.readStructBegin();
52435
      while (true)
52436
      {
52437
        field = iprot.readFieldBegin();
52438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52439
          break;
52440
        }
52441
        switch (field.id) {
52442
          case 0: // SUCCESS
52443
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
52444
              {
11173 vikram.rag 52445
                org.apache.thrift.protocol.TMap _map150 = iprot.readMapBegin();
52446
                this.success = new HashMap<Integer,Long>(2*_map150.size);
52447
                for (int _i151 = 0; _i151 < _map150.size; ++_i151)
9640 amar.kumar 52448
                {
11173 vikram.rag 52449
                  int _key152; // required
52450
                  long _val153; // required
52451
                  _key152 = iprot.readI32();
52452
                  _val153 = iprot.readI64();
52453
                  this.success.put(_key152, _val153);
9640 amar.kumar 52454
                }
52455
                iprot.readMapEnd();
52456
              }
52457
            } else { 
52458
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52459
            }
52460
            break;
52461
          default:
52462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52463
        }
52464
        iprot.readFieldEnd();
52465
      }
52466
      iprot.readStructEnd();
52467
      validate();
52468
    }
52469
 
52470
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52471
      oprot.writeStructBegin(STRUCT_DESC);
52472
 
52473
      if (this.isSetSuccess()) {
52474
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
52475
        {
52476
          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 52477
          for (Map.Entry<Integer, Long> _iter154 : this.success.entrySet())
9640 amar.kumar 52478
          {
11173 vikram.rag 52479
            oprot.writeI32(_iter154.getKey());
52480
            oprot.writeI64(_iter154.getValue());
9640 amar.kumar 52481
          }
52482
          oprot.writeMapEnd();
52483
        }
52484
        oprot.writeFieldEnd();
52485
      }
52486
      oprot.writeFieldStop();
52487
      oprot.writeStructEnd();
52488
    }
52489
 
52490
    @Override
52491
    public String toString() {
52492
      StringBuilder sb = new StringBuilder("getHeldInventoryMapForItem_result(");
52493
      boolean first = true;
52494
 
52495
      sb.append("success:");
52496
      if (this.success == null) {
52497
        sb.append("null");
52498
      } else {
52499
        sb.append(this.success);
52500
      }
52501
      first = false;
52502
      sb.append(")");
52503
      return sb.toString();
52504
    }
52505
 
52506
    public void validate() throws org.apache.thrift.TException {
52507
      // check for required fields
52508
    }
52509
 
52510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52511
      try {
52512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52513
      } catch (org.apache.thrift.TException te) {
52514
        throw new java.io.IOException(te);
52515
      }
52516
    }
52517
 
52518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52519
      try {
52520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52521
      } catch (org.apache.thrift.TException te) {
52522
        throw new java.io.IOException(te);
52523
      }
52524
    }
52525
 
52526
  }
52527
 
9495 vikram.rag 52528
  public static class addOrUpdateAllAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_args, addOrUpdateAllAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable   {
52529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_args");
9456 vikram.rag 52530
 
9495 vikram.rag 52531
    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 52532
 
9495 vikram.rag 52533
    private List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot; // required
9456 vikram.rag 52534
 
52535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52536
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9495 vikram.rag 52537
      ALLAMAZONFBAINVENTORYSNAPSHOT((short)-1, "allamazonfbainventorysnapshot");
9456 vikram.rag 52538
 
52539
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52540
 
52541
      static {
52542
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52543
          byName.put(field.getFieldName(), field);
52544
        }
52545
      }
52546
 
52547
      /**
52548
       * Find the _Fields constant that matches fieldId, or null if its not found.
52549
       */
52550
      public static _Fields findByThriftId(int fieldId) {
52551
        switch(fieldId) {
9495 vikram.rag 52552
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
52553
            return ALLAMAZONFBAINVENTORYSNAPSHOT;
9456 vikram.rag 52554
          default:
52555
            return null;
52556
        }
52557
      }
52558
 
52559
      /**
52560
       * Find the _Fields constant that matches fieldId, throwing an exception
52561
       * if it is not found.
52562
       */
52563
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52564
        _Fields fields = findByThriftId(fieldId);
52565
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52566
        return fields;
52567
      }
52568
 
52569
      /**
52570
       * Find the _Fields constant that matches name, or null if its not found.
52571
       */
52572
      public static _Fields findByName(String name) {
52573
        return byName.get(name);
52574
      }
52575
 
52576
      private final short _thriftId;
52577
      private final String _fieldName;
52578
 
52579
      _Fields(short thriftId, String fieldName) {
52580
        _thriftId = thriftId;
52581
        _fieldName = fieldName;
52582
      }
52583
 
52584
      public short getThriftFieldId() {
52585
        return _thriftId;
52586
      }
52587
 
52588
      public String getFieldName() {
52589
        return _fieldName;
52590
      }
52591
    }
9495 vikram.rag 52592
 
52593
    // isset id assignments
52594
 
9456 vikram.rag 52595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52596
    static {
52597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9495 vikram.rag 52598
      tmpMap.put(_Fields.ALLAMAZONFBAINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("allamazonfbainventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
52599
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
52600
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
9456 vikram.rag 52601
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 52602
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllAmazonFbaInventory_args.class, metaDataMap);
9456 vikram.rag 52603
    }
52604
 
9495 vikram.rag 52605
    public addOrUpdateAllAmazonFbaInventory_args() {
9456 vikram.rag 52606
    }
52607
 
9495 vikram.rag 52608
    public addOrUpdateAllAmazonFbaInventory_args(
52609
      List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot)
52610
    {
52611
      this();
52612
      this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
52613
    }
52614
 
9456 vikram.rag 52615
    /**
52616
     * Performs a deep copy on <i>other</i>.
52617
     */
9495 vikram.rag 52618
    public addOrUpdateAllAmazonFbaInventory_args(addOrUpdateAllAmazonFbaInventory_args other) {
52619
      if (other.isSetAllamazonfbainventorysnapshot()) {
52620
        List<AmazonFbaInventorySnapshot> __this__allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>();
52621
        for (AmazonFbaInventorySnapshot other_element : other.allamazonfbainventorysnapshot) {
52622
          __this__allamazonfbainventorysnapshot.add(new AmazonFbaInventorySnapshot(other_element));
52623
        }
52624
        this.allamazonfbainventorysnapshot = __this__allamazonfbainventorysnapshot;
52625
      }
9456 vikram.rag 52626
    }
52627
 
9495 vikram.rag 52628
    public addOrUpdateAllAmazonFbaInventory_args deepCopy() {
52629
      return new addOrUpdateAllAmazonFbaInventory_args(this);
9456 vikram.rag 52630
    }
52631
 
52632
    @Override
52633
    public void clear() {
9495 vikram.rag 52634
      this.allamazonfbainventorysnapshot = null;
9456 vikram.rag 52635
    }
52636
 
9495 vikram.rag 52637
    public int getAllamazonfbainventorysnapshotSize() {
52638
      return (this.allamazonfbainventorysnapshot == null) ? 0 : this.allamazonfbainventorysnapshot.size();
52639
    }
52640
 
52641
    public java.util.Iterator<AmazonFbaInventorySnapshot> getAllamazonfbainventorysnapshotIterator() {
52642
      return (this.allamazonfbainventorysnapshot == null) ? null : this.allamazonfbainventorysnapshot.iterator();
52643
    }
52644
 
52645
    public void addToAllamazonfbainventorysnapshot(AmazonFbaInventorySnapshot elem) {
52646
      if (this.allamazonfbainventorysnapshot == null) {
52647
        this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>();
52648
      }
52649
      this.allamazonfbainventorysnapshot.add(elem);
52650
    }
52651
 
52652
    public List<AmazonFbaInventorySnapshot> getAllamazonfbainventorysnapshot() {
52653
      return this.allamazonfbainventorysnapshot;
52654
    }
52655
 
52656
    public void setAllamazonfbainventorysnapshot(List<AmazonFbaInventorySnapshot> allamazonfbainventorysnapshot) {
52657
      this.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot;
52658
    }
52659
 
52660
    public void unsetAllamazonfbainventorysnapshot() {
52661
      this.allamazonfbainventorysnapshot = null;
52662
    }
52663
 
52664
    /** Returns true if field allamazonfbainventorysnapshot is set (has been assigned a value) and false otherwise */
52665
    public boolean isSetAllamazonfbainventorysnapshot() {
52666
      return this.allamazonfbainventorysnapshot != null;
52667
    }
52668
 
52669
    public void setAllamazonfbainventorysnapshotIsSet(boolean value) {
52670
      if (!value) {
52671
        this.allamazonfbainventorysnapshot = null;
52672
      }
52673
    }
52674
 
9456 vikram.rag 52675
    public void setFieldValue(_Fields field, Object value) {
52676
      switch (field) {
9495 vikram.rag 52677
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
52678
        if (value == null) {
52679
          unsetAllamazonfbainventorysnapshot();
52680
        } else {
52681
          setAllamazonfbainventorysnapshot((List<AmazonFbaInventorySnapshot>)value);
52682
        }
52683
        break;
52684
 
9456 vikram.rag 52685
      }
52686
    }
52687
 
52688
    public Object getFieldValue(_Fields field) {
52689
      switch (field) {
9495 vikram.rag 52690
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
52691
        return getAllamazonfbainventorysnapshot();
52692
 
9456 vikram.rag 52693
      }
52694
      throw new IllegalStateException();
52695
    }
52696
 
52697
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52698
    public boolean isSet(_Fields field) {
52699
      if (field == null) {
52700
        throw new IllegalArgumentException();
52701
      }
52702
 
52703
      switch (field) {
9495 vikram.rag 52704
      case ALLAMAZONFBAINVENTORYSNAPSHOT:
52705
        return isSetAllamazonfbainventorysnapshot();
9456 vikram.rag 52706
      }
52707
      throw new IllegalStateException();
52708
    }
52709
 
52710
    @Override
52711
    public boolean equals(Object that) {
52712
      if (that == null)
52713
        return false;
9495 vikram.rag 52714
      if (that instanceof addOrUpdateAllAmazonFbaInventory_args)
52715
        return this.equals((addOrUpdateAllAmazonFbaInventory_args)that);
9456 vikram.rag 52716
      return false;
52717
    }
52718
 
9495 vikram.rag 52719
    public boolean equals(addOrUpdateAllAmazonFbaInventory_args that) {
9456 vikram.rag 52720
      if (that == null)
52721
        return false;
52722
 
9495 vikram.rag 52723
      boolean this_present_allamazonfbainventorysnapshot = true && this.isSetAllamazonfbainventorysnapshot();
52724
      boolean that_present_allamazonfbainventorysnapshot = true && that.isSetAllamazonfbainventorysnapshot();
52725
      if (this_present_allamazonfbainventorysnapshot || that_present_allamazonfbainventorysnapshot) {
52726
        if (!(this_present_allamazonfbainventorysnapshot && that_present_allamazonfbainventorysnapshot))
52727
          return false;
52728
        if (!this.allamazonfbainventorysnapshot.equals(that.allamazonfbainventorysnapshot))
52729
          return false;
52730
      }
52731
 
9456 vikram.rag 52732
      return true;
52733
    }
52734
 
52735
    @Override
52736
    public int hashCode() {
52737
      return 0;
52738
    }
52739
 
9495 vikram.rag 52740
    public int compareTo(addOrUpdateAllAmazonFbaInventory_args other) {
9456 vikram.rag 52741
      if (!getClass().equals(other.getClass())) {
52742
        return getClass().getName().compareTo(other.getClass().getName());
52743
      }
52744
 
52745
      int lastComparison = 0;
9495 vikram.rag 52746
      addOrUpdateAllAmazonFbaInventory_args typedOther = (addOrUpdateAllAmazonFbaInventory_args)other;
9456 vikram.rag 52747
 
9495 vikram.rag 52748
      lastComparison = Boolean.valueOf(isSetAllamazonfbainventorysnapshot()).compareTo(typedOther.isSetAllamazonfbainventorysnapshot());
52749
      if (lastComparison != 0) {
52750
        return lastComparison;
52751
      }
52752
      if (isSetAllamazonfbainventorysnapshot()) {
52753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allamazonfbainventorysnapshot, typedOther.allamazonfbainventorysnapshot);
52754
        if (lastComparison != 0) {
52755
          return lastComparison;
52756
        }
52757
      }
9456 vikram.rag 52758
      return 0;
52759
    }
52760
 
52761
    public _Fields fieldForId(int fieldId) {
52762
      return _Fields.findByThriftId(fieldId);
52763
    }
52764
 
52765
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
52766
      org.apache.thrift.protocol.TField field;
52767
      iprot.readStructBegin();
52768
      while (true)
52769
      {
52770
        field = iprot.readFieldBegin();
52771
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
52772
          break;
52773
        }
52774
        switch (field.id) {
9495 vikram.rag 52775
          case -1: // ALLAMAZONFBAINVENTORYSNAPSHOT
52776
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
52777
              {
11173 vikram.rag 52778
                org.apache.thrift.protocol.TList _list155 = iprot.readListBegin();
52779
                this.allamazonfbainventorysnapshot = new ArrayList<AmazonFbaInventorySnapshot>(_list155.size);
52780
                for (int _i156 = 0; _i156 < _list155.size; ++_i156)
9495 vikram.rag 52781
                {
11173 vikram.rag 52782
                  AmazonFbaInventorySnapshot _elem157; // required
52783
                  _elem157 = new AmazonFbaInventorySnapshot();
52784
                  _elem157.read(iprot);
52785
                  this.allamazonfbainventorysnapshot.add(_elem157);
9495 vikram.rag 52786
                }
52787
                iprot.readListEnd();
52788
              }
52789
            } else { 
52790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52791
            }
52792
            break;
9456 vikram.rag 52793
          default:
52794
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
52795
        }
52796
        iprot.readFieldEnd();
52797
      }
52798
      iprot.readStructEnd();
52799
      validate();
52800
    }
52801
 
52802
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
52803
      validate();
52804
 
52805
      oprot.writeStructBegin(STRUCT_DESC);
9495 vikram.rag 52806
      if (this.allamazonfbainventorysnapshot != null) {
52807
        oprot.writeFieldBegin(ALLAMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
52808
        {
52809
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allamazonfbainventorysnapshot.size()));
11173 vikram.rag 52810
          for (AmazonFbaInventorySnapshot _iter158 : this.allamazonfbainventorysnapshot)
9495 vikram.rag 52811
          {
11173 vikram.rag 52812
            _iter158.write(oprot);
9495 vikram.rag 52813
          }
52814
          oprot.writeListEnd();
52815
        }
52816
        oprot.writeFieldEnd();
52817
      }
9456 vikram.rag 52818
      oprot.writeFieldStop();
52819
      oprot.writeStructEnd();
52820
    }
52821
 
52822
    @Override
52823
    public String toString() {
9495 vikram.rag 52824
      StringBuilder sb = new StringBuilder("addOrUpdateAllAmazonFbaInventory_args(");
9456 vikram.rag 52825
      boolean first = true;
52826
 
9495 vikram.rag 52827
      sb.append("allamazonfbainventorysnapshot:");
52828
      if (this.allamazonfbainventorysnapshot == null) {
52829
        sb.append("null");
52830
      } else {
52831
        sb.append(this.allamazonfbainventorysnapshot);
52832
      }
52833
      first = false;
9456 vikram.rag 52834
      sb.append(")");
52835
      return sb.toString();
52836
    }
52837
 
52838
    public void validate() throws org.apache.thrift.TException {
52839
      // check for required fields
52840
    }
52841
 
52842
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
52843
      try {
52844
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
52845
      } catch (org.apache.thrift.TException te) {
52846
        throw new java.io.IOException(te);
52847
      }
52848
    }
52849
 
52850
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
52851
      try {
52852
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
52853
      } catch (org.apache.thrift.TException te) {
52854
        throw new java.io.IOException(te);
52855
      }
52856
    }
52857
 
52858
  }
52859
 
9495 vikram.rag 52860
  public static class addOrUpdateAllAmazonFbaInventory_result implements org.apache.thrift.TBase<addOrUpdateAllAmazonFbaInventory_result, addOrUpdateAllAmazonFbaInventory_result._Fields>, java.io.Serializable, Cloneable   {
52861
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllAmazonFbaInventory_result");
9456 vikram.rag 52862
 
52863
 
52864
 
52865
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52866
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9495 vikram.rag 52867
;
9456 vikram.rag 52868
 
52869
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52870
 
52871
      static {
52872
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
52873
          byName.put(field.getFieldName(), field);
52874
        }
52875
      }
52876
 
52877
      /**
52878
       * Find the _Fields constant that matches fieldId, or null if its not found.
52879
       */
52880
      public static _Fields findByThriftId(int fieldId) {
52881
        switch(fieldId) {
52882
          default:
52883
            return null;
52884
        }
52885
      }
52886
 
52887
      /**
52888
       * Find the _Fields constant that matches fieldId, throwing an exception
52889
       * if it is not found.
52890
       */
52891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
52892
        _Fields fields = findByThriftId(fieldId);
52893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
52894
        return fields;
52895
      }
52896
 
52897
      /**
52898
       * Find the _Fields constant that matches name, or null if its not found.
52899
       */
52900
      public static _Fields findByName(String name) {
52901
        return byName.get(name);
52902
      }
52903
 
52904
      private final short _thriftId;
52905
      private final String _fieldName;
52906
 
52907
      _Fields(short thriftId, String fieldName) {
52908
        _thriftId = thriftId;
52909
        _fieldName = fieldName;
52910
      }
52911
 
52912
      public short getThriftFieldId() {
52913
        return _thriftId;
52914
      }
52915
 
52916
      public String getFieldName() {
52917
        return _fieldName;
52918
      }
52919
    }
52920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
52921
    static {
52922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
52923
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 52924
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllAmazonFbaInventory_result.class, metaDataMap);
9456 vikram.rag 52925
    }
52926
 
9495 vikram.rag 52927
    public addOrUpdateAllAmazonFbaInventory_result() {
9456 vikram.rag 52928
    }
52929
 
52930
    /**
52931
     * Performs a deep copy on <i>other</i>.
52932
     */
9495 vikram.rag 52933
    public addOrUpdateAllAmazonFbaInventory_result(addOrUpdateAllAmazonFbaInventory_result other) {
9456 vikram.rag 52934
    }
52935
 
9495 vikram.rag 52936
    public addOrUpdateAllAmazonFbaInventory_result deepCopy() {
52937
      return new addOrUpdateAllAmazonFbaInventory_result(this);
9456 vikram.rag 52938
    }
52939
 
52940
    @Override
52941
    public void clear() {
52942
    }
52943
 
52944
    public void setFieldValue(_Fields field, Object value) {
52945
      switch (field) {
52946
      }
52947
    }
52948
 
52949
    public Object getFieldValue(_Fields field) {
52950
      switch (field) {
52951
      }
52952
      throw new IllegalStateException();
52953
    }
52954
 
52955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
52956
    public boolean isSet(_Fields field) {
52957
      if (field == null) {
52958
        throw new IllegalArgumentException();
52959
      }
52960
 
52961
      switch (field) {
52962
      }
52963
      throw new IllegalStateException();
52964
    }
52965
 
52966
    @Override
52967
    public boolean equals(Object that) {
52968
      if (that == null)
52969
        return false;
9495 vikram.rag 52970
      if (that instanceof addOrUpdateAllAmazonFbaInventory_result)
52971
        return this.equals((addOrUpdateAllAmazonFbaInventory_result)that);
9456 vikram.rag 52972
      return false;
52973
    }
52974
 
9495 vikram.rag 52975
    public boolean equals(addOrUpdateAllAmazonFbaInventory_result that) {
9456 vikram.rag 52976
      if (that == null)
52977
        return false;
52978
 
52979
      return true;
52980
    }
52981
 
52982
    @Override
52983
    public int hashCode() {
52984
      return 0;
52985
    }
52986
 
9495 vikram.rag 52987
    public int compareTo(addOrUpdateAllAmazonFbaInventory_result other) {
9456 vikram.rag 52988
      if (!getClass().equals(other.getClass())) {
52989
        return getClass().getName().compareTo(other.getClass().getName());
52990
      }
52991
 
52992
      int lastComparison = 0;
9495 vikram.rag 52993
      addOrUpdateAllAmazonFbaInventory_result typedOther = (addOrUpdateAllAmazonFbaInventory_result)other;
9456 vikram.rag 52994
 
52995
      return 0;
52996
    }
52997
 
52998
    public _Fields fieldForId(int fieldId) {
52999
      return _Fields.findByThriftId(fieldId);
53000
    }
53001
 
53002
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53003
      org.apache.thrift.protocol.TField field;
53004
      iprot.readStructBegin();
53005
      while (true)
53006
      {
53007
        field = iprot.readFieldBegin();
53008
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53009
          break;
53010
        }
53011
        switch (field.id) {
53012
          default:
53013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53014
        }
53015
        iprot.readFieldEnd();
53016
      }
53017
      iprot.readStructEnd();
53018
      validate();
53019
    }
53020
 
53021
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53022
      oprot.writeStructBegin(STRUCT_DESC);
53023
 
53024
      oprot.writeFieldStop();
53025
      oprot.writeStructEnd();
53026
    }
53027
 
53028
    @Override
53029
    public String toString() {
9495 vikram.rag 53030
      StringBuilder sb = new StringBuilder("addOrUpdateAllAmazonFbaInventory_result(");
9456 vikram.rag 53031
      boolean first = true;
53032
 
53033
      sb.append(")");
53034
      return sb.toString();
53035
    }
53036
 
53037
    public void validate() throws org.apache.thrift.TException {
53038
      // check for required fields
53039
    }
53040
 
53041
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53042
      try {
53043
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53044
      } catch (org.apache.thrift.TException te) {
53045
        throw new java.io.IOException(te);
53046
      }
53047
    }
53048
 
53049
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53050
      try {
53051
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53052
      } catch (org.apache.thrift.TException te) {
53053
        throw new java.io.IOException(te);
53054
      }
53055
    }
53056
 
53057
  }
53058
 
9495 vikram.rag 53059
  public static class addOrUpdateAllSnapdealInventory_args implements org.apache.thrift.TBase<addOrUpdateAllSnapdealInventory_args, addOrUpdateAllSnapdealInventory_args._Fields>, java.io.Serializable, Cloneable   {
53060
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllSnapdealInventory_args");
9482 vikram.rag 53061
 
9495 vikram.rag 53062
    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 53063
 
9495 vikram.rag 53064
    private List<SnapdealInventoryItem> allsnapdealinventorysnapshot; // required
9482 vikram.rag 53065
 
53066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53067
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9495 vikram.rag 53068
      ALLSNAPDEALINVENTORYSNAPSHOT((short)-1, "allsnapdealinventorysnapshot");
9482 vikram.rag 53069
 
53070
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53071
 
53072
      static {
53073
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53074
          byName.put(field.getFieldName(), field);
53075
        }
53076
      }
53077
 
53078
      /**
53079
       * Find the _Fields constant that matches fieldId, or null if its not found.
53080
       */
53081
      public static _Fields findByThriftId(int fieldId) {
53082
        switch(fieldId) {
9495 vikram.rag 53083
          case -1: // ALLSNAPDEALINVENTORYSNAPSHOT
53084
            return ALLSNAPDEALINVENTORYSNAPSHOT;
9482 vikram.rag 53085
          default:
53086
            return null;
53087
        }
53088
      }
53089
 
53090
      /**
53091
       * Find the _Fields constant that matches fieldId, throwing an exception
53092
       * if it is not found.
53093
       */
53094
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53095
        _Fields fields = findByThriftId(fieldId);
53096
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53097
        return fields;
53098
      }
53099
 
53100
      /**
53101
       * Find the _Fields constant that matches name, or null if its not found.
53102
       */
53103
      public static _Fields findByName(String name) {
53104
        return byName.get(name);
53105
      }
53106
 
53107
      private final short _thriftId;
53108
      private final String _fieldName;
53109
 
53110
      _Fields(short thriftId, String fieldName) {
53111
        _thriftId = thriftId;
53112
        _fieldName = fieldName;
53113
      }
53114
 
53115
      public short getThriftFieldId() {
53116
        return _thriftId;
53117
      }
53118
 
53119
      public String getFieldName() {
53120
        return _fieldName;
53121
      }
53122
    }
53123
 
53124
    // isset id assignments
53125
 
53126
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53127
    static {
53128
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9495 vikram.rag 53129
      tmpMap.put(_Fields.ALLSNAPDEALINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("allsnapdealinventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9482 vikram.rag 53130
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9495 vikram.rag 53131
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class))));
9482 vikram.rag 53132
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 53133
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllSnapdealInventory_args.class, metaDataMap);
9482 vikram.rag 53134
    }
53135
 
9495 vikram.rag 53136
    public addOrUpdateAllSnapdealInventory_args() {
9482 vikram.rag 53137
    }
53138
 
9495 vikram.rag 53139
    public addOrUpdateAllSnapdealInventory_args(
53140
      List<SnapdealInventoryItem> allsnapdealinventorysnapshot)
9482 vikram.rag 53141
    {
53142
      this();
9495 vikram.rag 53143
      this.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot;
9482 vikram.rag 53144
    }
53145
 
53146
    /**
53147
     * Performs a deep copy on <i>other</i>.
53148
     */
9495 vikram.rag 53149
    public addOrUpdateAllSnapdealInventory_args(addOrUpdateAllSnapdealInventory_args other) {
53150
      if (other.isSetAllsnapdealinventorysnapshot()) {
53151
        List<SnapdealInventoryItem> __this__allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>();
53152
        for (SnapdealInventoryItem other_element : other.allsnapdealinventorysnapshot) {
53153
          __this__allsnapdealinventorysnapshot.add(new SnapdealInventoryItem(other_element));
9482 vikram.rag 53154
        }
9495 vikram.rag 53155
        this.allsnapdealinventorysnapshot = __this__allsnapdealinventorysnapshot;
9482 vikram.rag 53156
      }
53157
    }
53158
 
9495 vikram.rag 53159
    public addOrUpdateAllSnapdealInventory_args deepCopy() {
53160
      return new addOrUpdateAllSnapdealInventory_args(this);
9482 vikram.rag 53161
    }
53162
 
53163
    @Override
53164
    public void clear() {
9495 vikram.rag 53165
      this.allsnapdealinventorysnapshot = null;
9482 vikram.rag 53166
    }
53167
 
9495 vikram.rag 53168
    public int getAllsnapdealinventorysnapshotSize() {
53169
      return (this.allsnapdealinventorysnapshot == null) ? 0 : this.allsnapdealinventorysnapshot.size();
9482 vikram.rag 53170
    }
53171
 
9495 vikram.rag 53172
    public java.util.Iterator<SnapdealInventoryItem> getAllsnapdealinventorysnapshotIterator() {
53173
      return (this.allsnapdealinventorysnapshot == null) ? null : this.allsnapdealinventorysnapshot.iterator();
9482 vikram.rag 53174
    }
53175
 
9495 vikram.rag 53176
    public void addToAllsnapdealinventorysnapshot(SnapdealInventoryItem elem) {
53177
      if (this.allsnapdealinventorysnapshot == null) {
53178
        this.allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>();
9482 vikram.rag 53179
      }
9495 vikram.rag 53180
      this.allsnapdealinventorysnapshot.add(elem);
9482 vikram.rag 53181
    }
53182
 
9495 vikram.rag 53183
    public List<SnapdealInventoryItem> getAllsnapdealinventorysnapshot() {
53184
      return this.allsnapdealinventorysnapshot;
9482 vikram.rag 53185
    }
53186
 
9495 vikram.rag 53187
    public void setAllsnapdealinventorysnapshot(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) {
53188
      this.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot;
9482 vikram.rag 53189
    }
53190
 
9495 vikram.rag 53191
    public void unsetAllsnapdealinventorysnapshot() {
53192
      this.allsnapdealinventorysnapshot = null;
9482 vikram.rag 53193
    }
53194
 
9495 vikram.rag 53195
    /** Returns true if field allsnapdealinventorysnapshot is set (has been assigned a value) and false otherwise */
53196
    public boolean isSetAllsnapdealinventorysnapshot() {
53197
      return this.allsnapdealinventorysnapshot != null;
9482 vikram.rag 53198
    }
53199
 
9495 vikram.rag 53200
    public void setAllsnapdealinventorysnapshotIsSet(boolean value) {
9482 vikram.rag 53201
      if (!value) {
9495 vikram.rag 53202
        this.allsnapdealinventorysnapshot = null;
9482 vikram.rag 53203
      }
53204
    }
53205
 
53206
    public void setFieldValue(_Fields field, Object value) {
53207
      switch (field) {
9495 vikram.rag 53208
      case ALLSNAPDEALINVENTORYSNAPSHOT:
9482 vikram.rag 53209
        if (value == null) {
9495 vikram.rag 53210
          unsetAllsnapdealinventorysnapshot();
9482 vikram.rag 53211
        } else {
9495 vikram.rag 53212
          setAllsnapdealinventorysnapshot((List<SnapdealInventoryItem>)value);
9482 vikram.rag 53213
        }
53214
        break;
53215
 
53216
      }
53217
    }
53218
 
53219
    public Object getFieldValue(_Fields field) {
53220
      switch (field) {
9495 vikram.rag 53221
      case ALLSNAPDEALINVENTORYSNAPSHOT:
53222
        return getAllsnapdealinventorysnapshot();
9482 vikram.rag 53223
 
53224
      }
53225
      throw new IllegalStateException();
53226
    }
53227
 
53228
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53229
    public boolean isSet(_Fields field) {
53230
      if (field == null) {
53231
        throw new IllegalArgumentException();
53232
      }
53233
 
53234
      switch (field) {
9495 vikram.rag 53235
      case ALLSNAPDEALINVENTORYSNAPSHOT:
53236
        return isSetAllsnapdealinventorysnapshot();
9482 vikram.rag 53237
      }
53238
      throw new IllegalStateException();
53239
    }
53240
 
53241
    @Override
53242
    public boolean equals(Object that) {
53243
      if (that == null)
53244
        return false;
9495 vikram.rag 53245
      if (that instanceof addOrUpdateAllSnapdealInventory_args)
53246
        return this.equals((addOrUpdateAllSnapdealInventory_args)that);
9482 vikram.rag 53247
      return false;
53248
    }
53249
 
9495 vikram.rag 53250
    public boolean equals(addOrUpdateAllSnapdealInventory_args that) {
9482 vikram.rag 53251
      if (that == null)
53252
        return false;
53253
 
9495 vikram.rag 53254
      boolean this_present_allsnapdealinventorysnapshot = true && this.isSetAllsnapdealinventorysnapshot();
53255
      boolean that_present_allsnapdealinventorysnapshot = true && that.isSetAllsnapdealinventorysnapshot();
53256
      if (this_present_allsnapdealinventorysnapshot || that_present_allsnapdealinventorysnapshot) {
53257
        if (!(this_present_allsnapdealinventorysnapshot && that_present_allsnapdealinventorysnapshot))
9482 vikram.rag 53258
          return false;
9495 vikram.rag 53259
        if (!this.allsnapdealinventorysnapshot.equals(that.allsnapdealinventorysnapshot))
9482 vikram.rag 53260
          return false;
53261
      }
53262
 
53263
      return true;
53264
    }
53265
 
53266
    @Override
53267
    public int hashCode() {
53268
      return 0;
53269
    }
53270
 
9495 vikram.rag 53271
    public int compareTo(addOrUpdateAllSnapdealInventory_args other) {
9482 vikram.rag 53272
      if (!getClass().equals(other.getClass())) {
53273
        return getClass().getName().compareTo(other.getClass().getName());
53274
      }
53275
 
53276
      int lastComparison = 0;
9495 vikram.rag 53277
      addOrUpdateAllSnapdealInventory_args typedOther = (addOrUpdateAllSnapdealInventory_args)other;
9482 vikram.rag 53278
 
9495 vikram.rag 53279
      lastComparison = Boolean.valueOf(isSetAllsnapdealinventorysnapshot()).compareTo(typedOther.isSetAllsnapdealinventorysnapshot());
9482 vikram.rag 53280
      if (lastComparison != 0) {
53281
        return lastComparison;
53282
      }
9495 vikram.rag 53283
      if (isSetAllsnapdealinventorysnapshot()) {
53284
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allsnapdealinventorysnapshot, typedOther.allsnapdealinventorysnapshot);
9482 vikram.rag 53285
        if (lastComparison != 0) {
53286
          return lastComparison;
53287
        }
53288
      }
53289
      return 0;
53290
    }
53291
 
53292
    public _Fields fieldForId(int fieldId) {
53293
      return _Fields.findByThriftId(fieldId);
53294
    }
53295
 
53296
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53297
      org.apache.thrift.protocol.TField field;
53298
      iprot.readStructBegin();
53299
      while (true)
53300
      {
53301
        field = iprot.readFieldBegin();
53302
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53303
          break;
53304
        }
53305
        switch (field.id) {
9495 vikram.rag 53306
          case -1: // ALLSNAPDEALINVENTORYSNAPSHOT
9482 vikram.rag 53307
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
53308
              {
11173 vikram.rag 53309
                org.apache.thrift.protocol.TList _list159 = iprot.readListBegin();
53310
                this.allsnapdealinventorysnapshot = new ArrayList<SnapdealInventoryItem>(_list159.size);
53311
                for (int _i160 = 0; _i160 < _list159.size; ++_i160)
9482 vikram.rag 53312
                {
11173 vikram.rag 53313
                  SnapdealInventoryItem _elem161; // required
53314
                  _elem161 = new SnapdealInventoryItem();
53315
                  _elem161.read(iprot);
53316
                  this.allsnapdealinventorysnapshot.add(_elem161);
9482 vikram.rag 53317
                }
53318
                iprot.readListEnd();
53319
              }
53320
            } else { 
53321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53322
            }
53323
            break;
53324
          default:
53325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53326
        }
53327
        iprot.readFieldEnd();
53328
      }
53329
      iprot.readStructEnd();
53330
      validate();
53331
    }
53332
 
53333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53334
      validate();
53335
 
53336
      oprot.writeStructBegin(STRUCT_DESC);
9495 vikram.rag 53337
      if (this.allsnapdealinventorysnapshot != null) {
53338
        oprot.writeFieldBegin(ALLSNAPDEALINVENTORYSNAPSHOT_FIELD_DESC);
9482 vikram.rag 53339
        {
9495 vikram.rag 53340
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allsnapdealinventorysnapshot.size()));
11173 vikram.rag 53341
          for (SnapdealInventoryItem _iter162 : this.allsnapdealinventorysnapshot)
9482 vikram.rag 53342
          {
11173 vikram.rag 53343
            _iter162.write(oprot);
9482 vikram.rag 53344
          }
53345
          oprot.writeListEnd();
53346
        }
53347
        oprot.writeFieldEnd();
53348
      }
53349
      oprot.writeFieldStop();
53350
      oprot.writeStructEnd();
53351
    }
53352
 
53353
    @Override
53354
    public String toString() {
9495 vikram.rag 53355
      StringBuilder sb = new StringBuilder("addOrUpdateAllSnapdealInventory_args(");
9482 vikram.rag 53356
      boolean first = true;
53357
 
9495 vikram.rag 53358
      sb.append("allsnapdealinventorysnapshot:");
53359
      if (this.allsnapdealinventorysnapshot == null) {
9482 vikram.rag 53360
        sb.append("null");
53361
      } else {
9495 vikram.rag 53362
        sb.append(this.allsnapdealinventorysnapshot);
9482 vikram.rag 53363
      }
53364
      first = false;
53365
      sb.append(")");
53366
      return sb.toString();
53367
    }
53368
 
53369
    public void validate() throws org.apache.thrift.TException {
53370
      // check for required fields
53371
    }
53372
 
53373
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53374
      try {
53375
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53376
      } catch (org.apache.thrift.TException te) {
53377
        throw new java.io.IOException(te);
53378
      }
53379
    }
53380
 
53381
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53382
      try {
53383
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53384
      } catch (org.apache.thrift.TException te) {
53385
        throw new java.io.IOException(te);
53386
      }
53387
    }
53388
 
53389
  }
53390
 
9495 vikram.rag 53391
  public static class addOrUpdateAllSnapdealInventory_result implements org.apache.thrift.TBase<addOrUpdateAllSnapdealInventory_result, addOrUpdateAllSnapdealInventory_result._Fields>, java.io.Serializable, Cloneable   {
53392
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAllSnapdealInventory_result");
9482 vikram.rag 53393
 
53394
 
53395
 
53396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53397
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53398
;
53399
 
53400
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53401
 
53402
      static {
53403
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53404
          byName.put(field.getFieldName(), field);
53405
        }
53406
      }
53407
 
53408
      /**
53409
       * Find the _Fields constant that matches fieldId, or null if its not found.
53410
       */
53411
      public static _Fields findByThriftId(int fieldId) {
53412
        switch(fieldId) {
53413
          default:
53414
            return null;
53415
        }
53416
      }
53417
 
53418
      /**
53419
       * Find the _Fields constant that matches fieldId, throwing an exception
53420
       * if it is not found.
53421
       */
53422
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53423
        _Fields fields = findByThriftId(fieldId);
53424
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53425
        return fields;
53426
      }
53427
 
53428
      /**
53429
       * Find the _Fields constant that matches name, or null if its not found.
53430
       */
53431
      public static _Fields findByName(String name) {
53432
        return byName.get(name);
53433
      }
53434
 
53435
      private final short _thriftId;
53436
      private final String _fieldName;
53437
 
53438
      _Fields(short thriftId, String fieldName) {
53439
        _thriftId = thriftId;
53440
        _fieldName = fieldName;
53441
      }
53442
 
53443
      public short getThriftFieldId() {
53444
        return _thriftId;
53445
      }
53446
 
53447
      public String getFieldName() {
53448
        return _fieldName;
53449
      }
53450
    }
53451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53452
    static {
53453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53454
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9495 vikram.rag 53455
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAllSnapdealInventory_result.class, metaDataMap);
9482 vikram.rag 53456
    }
53457
 
9495 vikram.rag 53458
    public addOrUpdateAllSnapdealInventory_result() {
9482 vikram.rag 53459
    }
53460
 
53461
    /**
53462
     * Performs a deep copy on <i>other</i>.
53463
     */
9495 vikram.rag 53464
    public addOrUpdateAllSnapdealInventory_result(addOrUpdateAllSnapdealInventory_result other) {
9482 vikram.rag 53465
    }
53466
 
9495 vikram.rag 53467
    public addOrUpdateAllSnapdealInventory_result deepCopy() {
53468
      return new addOrUpdateAllSnapdealInventory_result(this);
9482 vikram.rag 53469
    }
53470
 
53471
    @Override
53472
    public void clear() {
53473
    }
53474
 
53475
    public void setFieldValue(_Fields field, Object value) {
53476
      switch (field) {
53477
      }
53478
    }
53479
 
53480
    public Object getFieldValue(_Fields field) {
53481
      switch (field) {
53482
      }
53483
      throw new IllegalStateException();
53484
    }
53485
 
53486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53487
    public boolean isSet(_Fields field) {
53488
      if (field == null) {
53489
        throw new IllegalArgumentException();
53490
      }
53491
 
53492
      switch (field) {
53493
      }
53494
      throw new IllegalStateException();
53495
    }
53496
 
53497
    @Override
53498
    public boolean equals(Object that) {
53499
      if (that == null)
53500
        return false;
9495 vikram.rag 53501
      if (that instanceof addOrUpdateAllSnapdealInventory_result)
53502
        return this.equals((addOrUpdateAllSnapdealInventory_result)that);
9482 vikram.rag 53503
      return false;
53504
    }
53505
 
9495 vikram.rag 53506
    public boolean equals(addOrUpdateAllSnapdealInventory_result that) {
9482 vikram.rag 53507
      if (that == null)
53508
        return false;
53509
 
53510
      return true;
53511
    }
53512
 
53513
    @Override
53514
    public int hashCode() {
53515
      return 0;
53516
    }
53517
 
9495 vikram.rag 53518
    public int compareTo(addOrUpdateAllSnapdealInventory_result other) {
9482 vikram.rag 53519
      if (!getClass().equals(other.getClass())) {
53520
        return getClass().getName().compareTo(other.getClass().getName());
53521
      }
53522
 
53523
      int lastComparison = 0;
9495 vikram.rag 53524
      addOrUpdateAllSnapdealInventory_result typedOther = (addOrUpdateAllSnapdealInventory_result)other;
9482 vikram.rag 53525
 
53526
      return 0;
53527
    }
53528
 
53529
    public _Fields fieldForId(int fieldId) {
53530
      return _Fields.findByThriftId(fieldId);
53531
    }
53532
 
53533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53534
      org.apache.thrift.protocol.TField field;
53535
      iprot.readStructBegin();
53536
      while (true)
53537
      {
53538
        field = iprot.readFieldBegin();
53539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53540
          break;
53541
        }
53542
        switch (field.id) {
53543
          default:
53544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53545
        }
53546
        iprot.readFieldEnd();
53547
      }
53548
      iprot.readStructEnd();
53549
      validate();
53550
    }
53551
 
53552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53553
      oprot.writeStructBegin(STRUCT_DESC);
53554
 
53555
      oprot.writeFieldStop();
53556
      oprot.writeStructEnd();
53557
    }
53558
 
53559
    @Override
53560
    public String toString() {
9495 vikram.rag 53561
      StringBuilder sb = new StringBuilder("addOrUpdateAllSnapdealInventory_result(");
9482 vikram.rag 53562
      boolean first = true;
53563
 
53564
      sb.append(")");
53565
      return sb.toString();
53566
    }
53567
 
53568
    public void validate() throws org.apache.thrift.TException {
53569
      // check for required fields
53570
    }
53571
 
53572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53573
      try {
53574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53575
      } catch (org.apache.thrift.TException te) {
53576
        throw new java.io.IOException(te);
53577
      }
53578
    }
53579
 
53580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53581
      try {
53582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53583
      } catch (org.apache.thrift.TException te) {
53584
        throw new java.io.IOException(te);
53585
      }
53586
    }
53587
 
53588
  }
53589
 
9495 vikram.rag 53590
  public static class getSnapdealInventorySnapshot_args implements org.apache.thrift.TBase<getSnapdealInventorySnapshot_args, getSnapdealInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
53591
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventorySnapshot_args");
53592
 
53593
 
53594
 
53595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53597
;
53598
 
53599
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53600
 
53601
      static {
53602
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53603
          byName.put(field.getFieldName(), field);
53604
        }
53605
      }
53606
 
53607
      /**
53608
       * Find the _Fields constant that matches fieldId, or null if its not found.
53609
       */
53610
      public static _Fields findByThriftId(int fieldId) {
53611
        switch(fieldId) {
53612
          default:
53613
            return null;
53614
        }
53615
      }
53616
 
53617
      /**
53618
       * Find the _Fields constant that matches fieldId, throwing an exception
53619
       * if it is not found.
53620
       */
53621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53622
        _Fields fields = findByThriftId(fieldId);
53623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53624
        return fields;
53625
      }
53626
 
53627
      /**
53628
       * Find the _Fields constant that matches name, or null if its not found.
53629
       */
53630
      public static _Fields findByName(String name) {
53631
        return byName.get(name);
53632
      }
53633
 
53634
      private final short _thriftId;
53635
      private final String _fieldName;
53636
 
53637
      _Fields(short thriftId, String fieldName) {
53638
        _thriftId = thriftId;
53639
        _fieldName = fieldName;
53640
      }
53641
 
53642
      public short getThriftFieldId() {
53643
        return _thriftId;
53644
      }
53645
 
53646
      public String getFieldName() {
53647
        return _fieldName;
53648
      }
53649
    }
53650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53651
    static {
53652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventorySnapshot_args.class, metaDataMap);
53655
    }
53656
 
53657
    public getSnapdealInventorySnapshot_args() {
53658
    }
53659
 
53660
    /**
53661
     * Performs a deep copy on <i>other</i>.
53662
     */
53663
    public getSnapdealInventorySnapshot_args(getSnapdealInventorySnapshot_args other) {
53664
    }
53665
 
53666
    public getSnapdealInventorySnapshot_args deepCopy() {
53667
      return new getSnapdealInventorySnapshot_args(this);
53668
    }
53669
 
53670
    @Override
53671
    public void clear() {
53672
    }
53673
 
53674
    public void setFieldValue(_Fields field, Object value) {
53675
      switch (field) {
53676
      }
53677
    }
53678
 
53679
    public Object getFieldValue(_Fields field) {
53680
      switch (field) {
53681
      }
53682
      throw new IllegalStateException();
53683
    }
53684
 
53685
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53686
    public boolean isSet(_Fields field) {
53687
      if (field == null) {
53688
        throw new IllegalArgumentException();
53689
      }
53690
 
53691
      switch (field) {
53692
      }
53693
      throw new IllegalStateException();
53694
    }
53695
 
53696
    @Override
53697
    public boolean equals(Object that) {
53698
      if (that == null)
53699
        return false;
53700
      if (that instanceof getSnapdealInventorySnapshot_args)
53701
        return this.equals((getSnapdealInventorySnapshot_args)that);
53702
      return false;
53703
    }
53704
 
53705
    public boolean equals(getSnapdealInventorySnapshot_args that) {
53706
      if (that == null)
53707
        return false;
53708
 
53709
      return true;
53710
    }
53711
 
53712
    @Override
53713
    public int hashCode() {
53714
      return 0;
53715
    }
53716
 
53717
    public int compareTo(getSnapdealInventorySnapshot_args other) {
53718
      if (!getClass().equals(other.getClass())) {
53719
        return getClass().getName().compareTo(other.getClass().getName());
53720
      }
53721
 
53722
      int lastComparison = 0;
53723
      getSnapdealInventorySnapshot_args typedOther = (getSnapdealInventorySnapshot_args)other;
53724
 
53725
      return 0;
53726
    }
53727
 
53728
    public _Fields fieldForId(int fieldId) {
53729
      return _Fields.findByThriftId(fieldId);
53730
    }
53731
 
53732
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
53733
      org.apache.thrift.protocol.TField field;
53734
      iprot.readStructBegin();
53735
      while (true)
53736
      {
53737
        field = iprot.readFieldBegin();
53738
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
53739
          break;
53740
        }
53741
        switch (field.id) {
53742
          default:
53743
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
53744
        }
53745
        iprot.readFieldEnd();
53746
      }
53747
      iprot.readStructEnd();
53748
      validate();
53749
    }
53750
 
53751
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
53752
      validate();
53753
 
53754
      oprot.writeStructBegin(STRUCT_DESC);
53755
      oprot.writeFieldStop();
53756
      oprot.writeStructEnd();
53757
    }
53758
 
53759
    @Override
53760
    public String toString() {
53761
      StringBuilder sb = new StringBuilder("getSnapdealInventorySnapshot_args(");
53762
      boolean first = true;
53763
 
53764
      sb.append(")");
53765
      return sb.toString();
53766
    }
53767
 
53768
    public void validate() throws org.apache.thrift.TException {
53769
      // check for required fields
53770
    }
53771
 
53772
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
53773
      try {
53774
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
53775
      } catch (org.apache.thrift.TException te) {
53776
        throw new java.io.IOException(te);
53777
      }
53778
    }
53779
 
53780
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
53781
      try {
53782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
53783
      } catch (org.apache.thrift.TException te) {
53784
        throw new java.io.IOException(te);
53785
      }
53786
    }
53787
 
53788
  }
53789
 
53790
  public static class getSnapdealInventorySnapshot_result implements org.apache.thrift.TBase<getSnapdealInventorySnapshot_result, getSnapdealInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
53791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealInventorySnapshot_result");
53792
 
53793
    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);
53794
 
53795
    private List<SnapdealInventoryItem> success; // required
53796
 
53797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53799
      SUCCESS((short)0, "success");
53800
 
53801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
53802
 
53803
      static {
53804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
53805
          byName.put(field.getFieldName(), field);
53806
        }
53807
      }
53808
 
53809
      /**
53810
       * Find the _Fields constant that matches fieldId, or null if its not found.
53811
       */
53812
      public static _Fields findByThriftId(int fieldId) {
53813
        switch(fieldId) {
53814
          case 0: // SUCCESS
53815
            return SUCCESS;
53816
          default:
53817
            return null;
53818
        }
53819
      }
53820
 
53821
      /**
53822
       * Find the _Fields constant that matches fieldId, throwing an exception
53823
       * if it is not found.
53824
       */
53825
      public static _Fields findByThriftIdOrThrow(int fieldId) {
53826
        _Fields fields = findByThriftId(fieldId);
53827
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
53828
        return fields;
53829
      }
53830
 
53831
      /**
53832
       * Find the _Fields constant that matches name, or null if its not found.
53833
       */
53834
      public static _Fields findByName(String name) {
53835
        return byName.get(name);
53836
      }
53837
 
53838
      private final short _thriftId;
53839
      private final String _fieldName;
53840
 
53841
      _Fields(short thriftId, String fieldName) {
53842
        _thriftId = thriftId;
53843
        _fieldName = fieldName;
53844
      }
53845
 
53846
      public short getThriftFieldId() {
53847
        return _thriftId;
53848
      }
53849
 
53850
      public String getFieldName() {
53851
        return _fieldName;
53852
      }
53853
    }
53854
 
53855
    // isset id assignments
53856
 
53857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
53858
    static {
53859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
53860
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
53861
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
53862
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealInventoryItem.class))));
53863
      metaDataMap = Collections.unmodifiableMap(tmpMap);
53864
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealInventorySnapshot_result.class, metaDataMap);
53865
    }
53866
 
53867
    public getSnapdealInventorySnapshot_result() {
53868
    }
53869
 
53870
    public getSnapdealInventorySnapshot_result(
53871
      List<SnapdealInventoryItem> success)
53872
    {
53873
      this();
53874
      this.success = success;
53875
    }
53876
 
53877
    /**
53878
     * Performs a deep copy on <i>other</i>.
53879
     */
53880
    public getSnapdealInventorySnapshot_result(getSnapdealInventorySnapshot_result other) {
53881
      if (other.isSetSuccess()) {
53882
        List<SnapdealInventoryItem> __this__success = new ArrayList<SnapdealInventoryItem>();
53883
        for (SnapdealInventoryItem other_element : other.success) {
53884
          __this__success.add(new SnapdealInventoryItem(other_element));
53885
        }
53886
        this.success = __this__success;
53887
      }
53888
    }
53889
 
53890
    public getSnapdealInventorySnapshot_result deepCopy() {
53891
      return new getSnapdealInventorySnapshot_result(this);
53892
    }
53893
 
53894
    @Override
53895
    public void clear() {
53896
      this.success = null;
53897
    }
53898
 
53899
    public int getSuccessSize() {
53900
      return (this.success == null) ? 0 : this.success.size();
53901
    }
53902
 
53903
    public java.util.Iterator<SnapdealInventoryItem> getSuccessIterator() {
53904
      return (this.success == null) ? null : this.success.iterator();
53905
    }
53906
 
53907
    public void addToSuccess(SnapdealInventoryItem elem) {
53908
      if (this.success == null) {
53909
        this.success = new ArrayList<SnapdealInventoryItem>();
53910
      }
53911
      this.success.add(elem);
53912
    }
53913
 
53914
    public List<SnapdealInventoryItem> getSuccess() {
53915
      return this.success;
53916
    }
53917
 
53918
    public void setSuccess(List<SnapdealInventoryItem> success) {
53919
      this.success = success;
53920
    }
53921
 
53922
    public void unsetSuccess() {
53923
      this.success = null;
53924
    }
53925
 
53926
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
53927
    public boolean isSetSuccess() {
53928
      return this.success != null;
53929
    }
53930
 
53931
    public void setSuccessIsSet(boolean value) {
53932
      if (!value) {
53933
        this.success = null;
53934
      }
53935
    }
53936
 
53937
    public void setFieldValue(_Fields field, Object value) {
53938
      switch (field) {
53939
      case SUCCESS:
53940
        if (value == null) {
53941
          unsetSuccess();
53942
        } else {
53943
          setSuccess((List<SnapdealInventoryItem>)value);
53944
        }
53945
        break;
53946
 
53947
      }
53948
    }
53949
 
53950
    public Object getFieldValue(_Fields field) {
53951
      switch (field) {
53952
      case SUCCESS:
53953
        return getSuccess();
53954
 
53955
      }
53956
      throw new IllegalStateException();
53957
    }
53958
 
53959
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
53960
    public boolean isSet(_Fields field) {
53961
      if (field == null) {
53962
        throw new IllegalArgumentException();
53963
      }
53964
 
53965
      switch (field) {
53966
      case SUCCESS:
53967
        return isSetSuccess();
53968
      }
53969
      throw new IllegalStateException();
53970
    }
53971
 
53972
    @Override
53973
    public boolean equals(Object that) {
53974
      if (that == null)
53975
        return false;
53976
      if (that instanceof getSnapdealInventorySnapshot_result)
53977
        return this.equals((getSnapdealInventorySnapshot_result)that);
53978
      return false;
53979
    }
53980
 
53981
    public boolean equals(getSnapdealInventorySnapshot_result that) {
53982
      if (that == null)
53983
        return false;
53984
 
53985
      boolean this_present_success = true && this.isSetSuccess();
53986
      boolean that_present_success = true && that.isSetSuccess();
53987
      if (this_present_success || that_present_success) {
53988
        if (!(this_present_success && that_present_success))
53989
          return false;
53990
        if (!this.success.equals(that.success))
53991
          return false;
53992
      }
53993
 
53994
      return true;
53995
    }
53996
 
53997
    @Override
53998
    public int hashCode() {
53999
      return 0;
54000
    }
54001
 
54002
    public int compareTo(getSnapdealInventorySnapshot_result other) {
54003
      if (!getClass().equals(other.getClass())) {
54004
        return getClass().getName().compareTo(other.getClass().getName());
54005
      }
54006
 
54007
      int lastComparison = 0;
54008
      getSnapdealInventorySnapshot_result typedOther = (getSnapdealInventorySnapshot_result)other;
54009
 
54010
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
54011
      if (lastComparison != 0) {
54012
        return lastComparison;
54013
      }
54014
      if (isSetSuccess()) {
54015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54016
        if (lastComparison != 0) {
54017
          return lastComparison;
54018
        }
54019
      }
54020
      return 0;
54021
    }
54022
 
54023
    public _Fields fieldForId(int fieldId) {
54024
      return _Fields.findByThriftId(fieldId);
54025
    }
54026
 
54027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54028
      org.apache.thrift.protocol.TField field;
54029
      iprot.readStructBegin();
54030
      while (true)
54031
      {
54032
        field = iprot.readFieldBegin();
54033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54034
          break;
54035
        }
54036
        switch (field.id) {
54037
          case 0: // SUCCESS
54038
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54039
              {
11173 vikram.rag 54040
                org.apache.thrift.protocol.TList _list163 = iprot.readListBegin();
54041
                this.success = new ArrayList<SnapdealInventoryItem>(_list163.size);
54042
                for (int _i164 = 0; _i164 < _list163.size; ++_i164)
9495 vikram.rag 54043
                {
11173 vikram.rag 54044
                  SnapdealInventoryItem _elem165; // required
54045
                  _elem165 = new SnapdealInventoryItem();
54046
                  _elem165.read(iprot);
54047
                  this.success.add(_elem165);
9495 vikram.rag 54048
                }
54049
                iprot.readListEnd();
54050
              }
54051
            } else { 
54052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54053
            }
54054
            break;
54055
          default:
54056
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54057
        }
54058
        iprot.readFieldEnd();
54059
      }
54060
      iprot.readStructEnd();
54061
      validate();
54062
    }
54063
 
54064
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54065
      oprot.writeStructBegin(STRUCT_DESC);
54066
 
54067
      if (this.isSetSuccess()) {
54068
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54069
        {
54070
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 54071
          for (SnapdealInventoryItem _iter166 : this.success)
9495 vikram.rag 54072
          {
11173 vikram.rag 54073
            _iter166.write(oprot);
9495 vikram.rag 54074
          }
54075
          oprot.writeListEnd();
54076
        }
54077
        oprot.writeFieldEnd();
54078
      }
54079
      oprot.writeFieldStop();
54080
      oprot.writeStructEnd();
54081
    }
54082
 
54083
    @Override
54084
    public String toString() {
54085
      StringBuilder sb = new StringBuilder("getSnapdealInventorySnapshot_result(");
54086
      boolean first = true;
54087
 
54088
      sb.append("success:");
54089
      if (this.success == null) {
54090
        sb.append("null");
54091
      } else {
54092
        sb.append(this.success);
54093
      }
54094
      first = false;
54095
      sb.append(")");
54096
      return sb.toString();
54097
    }
54098
 
54099
    public void validate() throws org.apache.thrift.TException {
54100
      // check for required fields
54101
    }
54102
 
54103
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54104
      try {
54105
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54106
      } catch (org.apache.thrift.TException te) {
54107
        throw new java.io.IOException(te);
54108
      }
54109
    }
54110
 
54111
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54112
      try {
54113
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54114
      } catch (org.apache.thrift.TException te) {
54115
        throw new java.io.IOException(te);
54116
      }
54117
    }
54118
 
54119
  }
54120
 
9761 amar.kumar 54121
  public static class getHoldInventoryDetails_args implements org.apache.thrift.TBase<getHoldInventoryDetails_args, getHoldInventoryDetails_args._Fields>, java.io.Serializable, Cloneable   {
54122
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetails_args");
54123
 
54124
    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);
54125
    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);
54126
    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);
54127
 
54128
    private long itemId; // required
54129
    private long warehouseId; // required
54130
    private long source; // required
54131
 
54132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54134
      ITEM_ID((short)1, "itemId"),
54135
      WAREHOUSE_ID((short)2, "warehouseId"),
54136
      SOURCE((short)3, "source");
54137
 
54138
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54139
 
54140
      static {
54141
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54142
          byName.put(field.getFieldName(), field);
54143
        }
54144
      }
54145
 
54146
      /**
54147
       * Find the _Fields constant that matches fieldId, or null if its not found.
54148
       */
54149
      public static _Fields findByThriftId(int fieldId) {
54150
        switch(fieldId) {
54151
          case 1: // ITEM_ID
54152
            return ITEM_ID;
54153
          case 2: // WAREHOUSE_ID
54154
            return WAREHOUSE_ID;
54155
          case 3: // SOURCE
54156
            return SOURCE;
54157
          default:
54158
            return null;
54159
        }
54160
      }
54161
 
54162
      /**
54163
       * Find the _Fields constant that matches fieldId, throwing an exception
54164
       * if it is not found.
54165
       */
54166
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54167
        _Fields fields = findByThriftId(fieldId);
54168
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54169
        return fields;
54170
      }
54171
 
54172
      /**
54173
       * Find the _Fields constant that matches name, or null if its not found.
54174
       */
54175
      public static _Fields findByName(String name) {
54176
        return byName.get(name);
54177
      }
54178
 
54179
      private final short _thriftId;
54180
      private final String _fieldName;
54181
 
54182
      _Fields(short thriftId, String fieldName) {
54183
        _thriftId = thriftId;
54184
        _fieldName = fieldName;
54185
      }
54186
 
54187
      public short getThriftFieldId() {
54188
        return _thriftId;
54189
      }
54190
 
54191
      public String getFieldName() {
54192
        return _fieldName;
54193
      }
54194
    }
54195
 
54196
    // isset id assignments
54197
    private static final int __ITEMID_ISSET_ID = 0;
54198
    private static final int __WAREHOUSEID_ISSET_ID = 1;
54199
    private static final int __SOURCE_ISSET_ID = 2;
54200
    private BitSet __isset_bit_vector = new BitSet(3);
54201
 
54202
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54203
    static {
54204
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54205
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54206
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54207
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54208
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54209
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
54211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetails_args.class, metaDataMap);
54213
    }
54214
 
54215
    public getHoldInventoryDetails_args() {
54216
    }
54217
 
54218
    public getHoldInventoryDetails_args(
54219
      long itemId,
54220
      long warehouseId,
54221
      long source)
54222
    {
54223
      this();
54224
      this.itemId = itemId;
54225
      setItemIdIsSet(true);
54226
      this.warehouseId = warehouseId;
54227
      setWarehouseIdIsSet(true);
54228
      this.source = source;
54229
      setSourceIsSet(true);
54230
    }
54231
 
54232
    /**
54233
     * Performs a deep copy on <i>other</i>.
54234
     */
54235
    public getHoldInventoryDetails_args(getHoldInventoryDetails_args other) {
54236
      __isset_bit_vector.clear();
54237
      __isset_bit_vector.or(other.__isset_bit_vector);
54238
      this.itemId = other.itemId;
54239
      this.warehouseId = other.warehouseId;
54240
      this.source = other.source;
54241
    }
54242
 
54243
    public getHoldInventoryDetails_args deepCopy() {
54244
      return new getHoldInventoryDetails_args(this);
54245
    }
54246
 
54247
    @Override
54248
    public void clear() {
54249
      setItemIdIsSet(false);
54250
      this.itemId = 0;
54251
      setWarehouseIdIsSet(false);
54252
      this.warehouseId = 0;
54253
      setSourceIsSet(false);
54254
      this.source = 0;
54255
    }
54256
 
54257
    public long getItemId() {
54258
      return this.itemId;
54259
    }
54260
 
54261
    public void setItemId(long itemId) {
54262
      this.itemId = itemId;
54263
      setItemIdIsSet(true);
54264
    }
54265
 
54266
    public void unsetItemId() {
54267
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
54268
    }
54269
 
54270
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
54271
    public boolean isSetItemId() {
54272
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
54273
    }
54274
 
54275
    public void setItemIdIsSet(boolean value) {
54276
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
54277
    }
54278
 
54279
    public long getWarehouseId() {
54280
      return this.warehouseId;
54281
    }
54282
 
54283
    public void setWarehouseId(long warehouseId) {
54284
      this.warehouseId = warehouseId;
54285
      setWarehouseIdIsSet(true);
54286
    }
54287
 
54288
    public void unsetWarehouseId() {
54289
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
54290
    }
54291
 
54292
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
54293
    public boolean isSetWarehouseId() {
54294
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
54295
    }
54296
 
54297
    public void setWarehouseIdIsSet(boolean value) {
54298
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
54299
    }
54300
 
54301
    public long getSource() {
54302
      return this.source;
54303
    }
54304
 
54305
    public void setSource(long source) {
54306
      this.source = source;
54307
      setSourceIsSet(true);
54308
    }
54309
 
54310
    public void unsetSource() {
54311
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
54312
    }
54313
 
54314
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
54315
    public boolean isSetSource() {
54316
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
54317
    }
54318
 
54319
    public void setSourceIsSet(boolean value) {
54320
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
54321
    }
54322
 
54323
    public void setFieldValue(_Fields field, Object value) {
54324
      switch (field) {
54325
      case ITEM_ID:
54326
        if (value == null) {
54327
          unsetItemId();
54328
        } else {
54329
          setItemId((Long)value);
54330
        }
54331
        break;
54332
 
54333
      case WAREHOUSE_ID:
54334
        if (value == null) {
54335
          unsetWarehouseId();
54336
        } else {
54337
          setWarehouseId((Long)value);
54338
        }
54339
        break;
54340
 
54341
      case SOURCE:
54342
        if (value == null) {
54343
          unsetSource();
54344
        } else {
54345
          setSource((Long)value);
54346
        }
54347
        break;
54348
 
54349
      }
54350
    }
54351
 
54352
    public Object getFieldValue(_Fields field) {
54353
      switch (field) {
54354
      case ITEM_ID:
54355
        return Long.valueOf(getItemId());
54356
 
54357
      case WAREHOUSE_ID:
54358
        return Long.valueOf(getWarehouseId());
54359
 
54360
      case SOURCE:
54361
        return Long.valueOf(getSource());
54362
 
54363
      }
54364
      throw new IllegalStateException();
54365
    }
54366
 
54367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54368
    public boolean isSet(_Fields field) {
54369
      if (field == null) {
54370
        throw new IllegalArgumentException();
54371
      }
54372
 
54373
      switch (field) {
54374
      case ITEM_ID:
54375
        return isSetItemId();
54376
      case WAREHOUSE_ID:
54377
        return isSetWarehouseId();
54378
      case SOURCE:
54379
        return isSetSource();
54380
      }
54381
      throw new IllegalStateException();
54382
    }
54383
 
54384
    @Override
54385
    public boolean equals(Object that) {
54386
      if (that == null)
54387
        return false;
54388
      if (that instanceof getHoldInventoryDetails_args)
54389
        return this.equals((getHoldInventoryDetails_args)that);
54390
      return false;
54391
    }
54392
 
54393
    public boolean equals(getHoldInventoryDetails_args that) {
54394
      if (that == null)
54395
        return false;
54396
 
54397
      boolean this_present_itemId = true;
54398
      boolean that_present_itemId = true;
54399
      if (this_present_itemId || that_present_itemId) {
54400
        if (!(this_present_itemId && that_present_itemId))
54401
          return false;
54402
        if (this.itemId != that.itemId)
54403
          return false;
54404
      }
54405
 
54406
      boolean this_present_warehouseId = true;
54407
      boolean that_present_warehouseId = true;
54408
      if (this_present_warehouseId || that_present_warehouseId) {
54409
        if (!(this_present_warehouseId && that_present_warehouseId))
54410
          return false;
54411
        if (this.warehouseId != that.warehouseId)
54412
          return false;
54413
      }
54414
 
54415
      boolean this_present_source = true;
54416
      boolean that_present_source = true;
54417
      if (this_present_source || that_present_source) {
54418
        if (!(this_present_source && that_present_source))
54419
          return false;
54420
        if (this.source != that.source)
54421
          return false;
54422
      }
54423
 
54424
      return true;
54425
    }
54426
 
54427
    @Override
54428
    public int hashCode() {
54429
      return 0;
54430
    }
54431
 
54432
    public int compareTo(getHoldInventoryDetails_args other) {
54433
      if (!getClass().equals(other.getClass())) {
54434
        return getClass().getName().compareTo(other.getClass().getName());
54435
      }
54436
 
54437
      int lastComparison = 0;
54438
      getHoldInventoryDetails_args typedOther = (getHoldInventoryDetails_args)other;
54439
 
54440
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
54441
      if (lastComparison != 0) {
54442
        return lastComparison;
54443
      }
54444
      if (isSetItemId()) {
54445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
54446
        if (lastComparison != 0) {
54447
          return lastComparison;
54448
        }
54449
      }
54450
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
54451
      if (lastComparison != 0) {
54452
        return lastComparison;
54453
      }
54454
      if (isSetWarehouseId()) {
54455
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
54456
        if (lastComparison != 0) {
54457
          return lastComparison;
54458
        }
54459
      }
54460
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
54461
      if (lastComparison != 0) {
54462
        return lastComparison;
54463
      }
54464
      if (isSetSource()) {
54465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
54466
        if (lastComparison != 0) {
54467
          return lastComparison;
54468
        }
54469
      }
54470
      return 0;
54471
    }
54472
 
54473
    public _Fields fieldForId(int fieldId) {
54474
      return _Fields.findByThriftId(fieldId);
54475
    }
54476
 
54477
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54478
      org.apache.thrift.protocol.TField field;
54479
      iprot.readStructBegin();
54480
      while (true)
54481
      {
54482
        field = iprot.readFieldBegin();
54483
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54484
          break;
54485
        }
54486
        switch (field.id) {
54487
          case 1: // ITEM_ID
54488
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54489
              this.itemId = iprot.readI64();
54490
              setItemIdIsSet(true);
54491
            } else { 
54492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54493
            }
54494
            break;
54495
          case 2: // WAREHOUSE_ID
54496
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54497
              this.warehouseId = iprot.readI64();
54498
              setWarehouseIdIsSet(true);
54499
            } else { 
54500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54501
            }
54502
            break;
54503
          case 3: // SOURCE
54504
            if (field.type == org.apache.thrift.protocol.TType.I64) {
54505
              this.source = iprot.readI64();
54506
              setSourceIsSet(true);
54507
            } else { 
54508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54509
            }
54510
            break;
54511
          default:
54512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54513
        }
54514
        iprot.readFieldEnd();
54515
      }
54516
      iprot.readStructEnd();
54517
      validate();
54518
    }
54519
 
54520
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54521
      validate();
54522
 
54523
      oprot.writeStructBegin(STRUCT_DESC);
54524
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
54525
      oprot.writeI64(this.itemId);
54526
      oprot.writeFieldEnd();
54527
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
54528
      oprot.writeI64(this.warehouseId);
54529
      oprot.writeFieldEnd();
54530
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
54531
      oprot.writeI64(this.source);
54532
      oprot.writeFieldEnd();
54533
      oprot.writeFieldStop();
54534
      oprot.writeStructEnd();
54535
    }
54536
 
54537
    @Override
54538
    public String toString() {
54539
      StringBuilder sb = new StringBuilder("getHoldInventoryDetails_args(");
54540
      boolean first = true;
54541
 
54542
      sb.append("itemId:");
54543
      sb.append(this.itemId);
54544
      first = false;
54545
      if (!first) sb.append(", ");
54546
      sb.append("warehouseId:");
54547
      sb.append(this.warehouseId);
54548
      first = false;
54549
      if (!first) sb.append(", ");
54550
      sb.append("source:");
54551
      sb.append(this.source);
54552
      first = false;
54553
      sb.append(")");
54554
      return sb.toString();
54555
    }
54556
 
54557
    public void validate() throws org.apache.thrift.TException {
54558
      // check for required fields
54559
    }
54560
 
54561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54562
      try {
54563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54564
      } catch (org.apache.thrift.TException te) {
54565
        throw new java.io.IOException(te);
54566
      }
54567
    }
54568
 
54569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54570
      try {
54571
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
54572
        __isset_bit_vector = new BitSet(1);
54573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54574
      } catch (org.apache.thrift.TException te) {
54575
        throw new java.io.IOException(te);
54576
      }
54577
    }
54578
 
54579
  }
54580
 
54581
  public static class getHoldInventoryDetails_result implements org.apache.thrift.TBase<getHoldInventoryDetails_result, getHoldInventoryDetails_result._Fields>, java.io.Serializable, Cloneable   {
54582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetails_result");
54583
 
54584
    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);
54585
 
54586
    private List<HoldInventoryDetail> success; // required
54587
 
54588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54590
      SUCCESS((short)0, "success");
54591
 
54592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54593
 
54594
      static {
54595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54596
          byName.put(field.getFieldName(), field);
54597
        }
54598
      }
54599
 
54600
      /**
54601
       * Find the _Fields constant that matches fieldId, or null if its not found.
54602
       */
54603
      public static _Fields findByThriftId(int fieldId) {
54604
        switch(fieldId) {
54605
          case 0: // SUCCESS
54606
            return SUCCESS;
54607
          default:
54608
            return null;
54609
        }
54610
      }
54611
 
54612
      /**
54613
       * Find the _Fields constant that matches fieldId, throwing an exception
54614
       * if it is not found.
54615
       */
54616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54617
        _Fields fields = findByThriftId(fieldId);
54618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54619
        return fields;
54620
      }
54621
 
54622
      /**
54623
       * Find the _Fields constant that matches name, or null if its not found.
54624
       */
54625
      public static _Fields findByName(String name) {
54626
        return byName.get(name);
54627
      }
54628
 
54629
      private final short _thriftId;
54630
      private final String _fieldName;
54631
 
54632
      _Fields(short thriftId, String fieldName) {
54633
        _thriftId = thriftId;
54634
        _fieldName = fieldName;
54635
      }
54636
 
54637
      public short getThriftFieldId() {
54638
        return _thriftId;
54639
      }
54640
 
54641
      public String getFieldName() {
54642
        return _fieldName;
54643
      }
54644
    }
54645
 
54646
    // isset id assignments
54647
 
54648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54649
    static {
54650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54651
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54652
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
54653
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HoldInventoryDetail.class))));
54654
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54655
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetails_result.class, metaDataMap);
54656
    }
54657
 
54658
    public getHoldInventoryDetails_result() {
54659
    }
54660
 
54661
    public getHoldInventoryDetails_result(
54662
      List<HoldInventoryDetail> success)
54663
    {
54664
      this();
54665
      this.success = success;
54666
    }
54667
 
54668
    /**
54669
     * Performs a deep copy on <i>other</i>.
54670
     */
54671
    public getHoldInventoryDetails_result(getHoldInventoryDetails_result other) {
54672
      if (other.isSetSuccess()) {
54673
        List<HoldInventoryDetail> __this__success = new ArrayList<HoldInventoryDetail>();
54674
        for (HoldInventoryDetail other_element : other.success) {
54675
          __this__success.add(new HoldInventoryDetail(other_element));
54676
        }
54677
        this.success = __this__success;
54678
      }
54679
    }
54680
 
54681
    public getHoldInventoryDetails_result deepCopy() {
54682
      return new getHoldInventoryDetails_result(this);
54683
    }
54684
 
54685
    @Override
54686
    public void clear() {
54687
      this.success = null;
54688
    }
54689
 
54690
    public int getSuccessSize() {
54691
      return (this.success == null) ? 0 : this.success.size();
54692
    }
54693
 
54694
    public java.util.Iterator<HoldInventoryDetail> getSuccessIterator() {
54695
      return (this.success == null) ? null : this.success.iterator();
54696
    }
54697
 
54698
    public void addToSuccess(HoldInventoryDetail elem) {
54699
      if (this.success == null) {
54700
        this.success = new ArrayList<HoldInventoryDetail>();
54701
      }
54702
      this.success.add(elem);
54703
    }
54704
 
54705
    public List<HoldInventoryDetail> getSuccess() {
54706
      return this.success;
54707
    }
54708
 
54709
    public void setSuccess(List<HoldInventoryDetail> success) {
54710
      this.success = success;
54711
    }
54712
 
54713
    public void unsetSuccess() {
54714
      this.success = null;
54715
    }
54716
 
54717
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
54718
    public boolean isSetSuccess() {
54719
      return this.success != null;
54720
    }
54721
 
54722
    public void setSuccessIsSet(boolean value) {
54723
      if (!value) {
54724
        this.success = null;
54725
      }
54726
    }
54727
 
54728
    public void setFieldValue(_Fields field, Object value) {
54729
      switch (field) {
54730
      case SUCCESS:
54731
        if (value == null) {
54732
          unsetSuccess();
54733
        } else {
54734
          setSuccess((List<HoldInventoryDetail>)value);
54735
        }
54736
        break;
54737
 
54738
      }
54739
    }
54740
 
54741
    public Object getFieldValue(_Fields field) {
54742
      switch (field) {
54743
      case SUCCESS:
54744
        return getSuccess();
54745
 
54746
      }
54747
      throw new IllegalStateException();
54748
    }
54749
 
54750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
54751
    public boolean isSet(_Fields field) {
54752
      if (field == null) {
54753
        throw new IllegalArgumentException();
54754
      }
54755
 
54756
      switch (field) {
54757
      case SUCCESS:
54758
        return isSetSuccess();
54759
      }
54760
      throw new IllegalStateException();
54761
    }
54762
 
54763
    @Override
54764
    public boolean equals(Object that) {
54765
      if (that == null)
54766
        return false;
54767
      if (that instanceof getHoldInventoryDetails_result)
54768
        return this.equals((getHoldInventoryDetails_result)that);
54769
      return false;
54770
    }
54771
 
54772
    public boolean equals(getHoldInventoryDetails_result that) {
54773
      if (that == null)
54774
        return false;
54775
 
54776
      boolean this_present_success = true && this.isSetSuccess();
54777
      boolean that_present_success = true && that.isSetSuccess();
54778
      if (this_present_success || that_present_success) {
54779
        if (!(this_present_success && that_present_success))
54780
          return false;
54781
        if (!this.success.equals(that.success))
54782
          return false;
54783
      }
54784
 
54785
      return true;
54786
    }
54787
 
54788
    @Override
54789
    public int hashCode() {
54790
      return 0;
54791
    }
54792
 
54793
    public int compareTo(getHoldInventoryDetails_result other) {
54794
      if (!getClass().equals(other.getClass())) {
54795
        return getClass().getName().compareTo(other.getClass().getName());
54796
      }
54797
 
54798
      int lastComparison = 0;
54799
      getHoldInventoryDetails_result typedOther = (getHoldInventoryDetails_result)other;
54800
 
54801
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
54802
      if (lastComparison != 0) {
54803
        return lastComparison;
54804
      }
54805
      if (isSetSuccess()) {
54806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
54807
        if (lastComparison != 0) {
54808
          return lastComparison;
54809
        }
54810
      }
54811
      return 0;
54812
    }
54813
 
54814
    public _Fields fieldForId(int fieldId) {
54815
      return _Fields.findByThriftId(fieldId);
54816
    }
54817
 
54818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
54819
      org.apache.thrift.protocol.TField field;
54820
      iprot.readStructBegin();
54821
      while (true)
54822
      {
54823
        field = iprot.readFieldBegin();
54824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
54825
          break;
54826
        }
54827
        switch (field.id) {
54828
          case 0: // SUCCESS
54829
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
54830
              {
11173 vikram.rag 54831
                org.apache.thrift.protocol.TList _list167 = iprot.readListBegin();
54832
                this.success = new ArrayList<HoldInventoryDetail>(_list167.size);
54833
                for (int _i168 = 0; _i168 < _list167.size; ++_i168)
9761 amar.kumar 54834
                {
11173 vikram.rag 54835
                  HoldInventoryDetail _elem169; // required
54836
                  _elem169 = new HoldInventoryDetail();
54837
                  _elem169.read(iprot);
54838
                  this.success.add(_elem169);
9761 amar.kumar 54839
                }
54840
                iprot.readListEnd();
54841
              }
54842
            } else { 
54843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54844
            }
54845
            break;
54846
          default:
54847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
54848
        }
54849
        iprot.readFieldEnd();
54850
      }
54851
      iprot.readStructEnd();
54852
      validate();
54853
    }
54854
 
54855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
54856
      oprot.writeStructBegin(STRUCT_DESC);
54857
 
54858
      if (this.isSetSuccess()) {
54859
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
54860
        {
54861
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 54862
          for (HoldInventoryDetail _iter170 : this.success)
9761 amar.kumar 54863
          {
11173 vikram.rag 54864
            _iter170.write(oprot);
9761 amar.kumar 54865
          }
54866
          oprot.writeListEnd();
54867
        }
54868
        oprot.writeFieldEnd();
54869
      }
54870
      oprot.writeFieldStop();
54871
      oprot.writeStructEnd();
54872
    }
54873
 
54874
    @Override
54875
    public String toString() {
54876
      StringBuilder sb = new StringBuilder("getHoldInventoryDetails_result(");
54877
      boolean first = true;
54878
 
54879
      sb.append("success:");
54880
      if (this.success == null) {
54881
        sb.append("null");
54882
      } else {
54883
        sb.append(this.success);
54884
      }
54885
      first = false;
54886
      sb.append(")");
54887
      return sb.toString();
54888
    }
54889
 
54890
    public void validate() throws org.apache.thrift.TException {
54891
      // check for required fields
54892
    }
54893
 
54894
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
54895
      try {
54896
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
54897
      } catch (org.apache.thrift.TException te) {
54898
        throw new java.io.IOException(te);
54899
      }
54900
    }
54901
 
54902
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54903
      try {
54904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54905
      } catch (org.apache.thrift.TException te) {
54906
        throw new java.io.IOException(te);
54907
      }
54908
    }
54909
 
54910
  }
54911
 
10050 vikram.rag 54912
  public static class addOrUpdateFlipkartInventorySnapshot_args implements org.apache.thrift.TBase<addOrUpdateFlipkartInventorySnapshot_args, addOrUpdateFlipkartInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
54913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartInventorySnapshot_args");
54914
 
10450 vikram.rag 54915
    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);
54916
    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 54917
 
54918
    private List<FlipkartInventorySnapshot> flipkartInventorySnapshot; // required
10450 vikram.rag 54919
    private long time; // required
10050 vikram.rag 54920
 
54921
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54922
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10450 vikram.rag 54923
      FLIPKART_INVENTORY_SNAPSHOT((short)1, "flipkartInventorySnapshot"),
54924
      TIME((short)2, "time");
10050 vikram.rag 54925
 
54926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
54927
 
54928
      static {
54929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
54930
          byName.put(field.getFieldName(), field);
54931
        }
54932
      }
54933
 
54934
      /**
54935
       * Find the _Fields constant that matches fieldId, or null if its not found.
54936
       */
54937
      public static _Fields findByThriftId(int fieldId) {
54938
        switch(fieldId) {
10450 vikram.rag 54939
          case 1: // FLIPKART_INVENTORY_SNAPSHOT
10050 vikram.rag 54940
            return FLIPKART_INVENTORY_SNAPSHOT;
10450 vikram.rag 54941
          case 2: // TIME
54942
            return TIME;
10050 vikram.rag 54943
          default:
54944
            return null;
54945
        }
54946
      }
54947
 
54948
      /**
54949
       * Find the _Fields constant that matches fieldId, throwing an exception
54950
       * if it is not found.
54951
       */
54952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
54953
        _Fields fields = findByThriftId(fieldId);
54954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
54955
        return fields;
54956
      }
54957
 
54958
      /**
54959
       * Find the _Fields constant that matches name, or null if its not found.
54960
       */
54961
      public static _Fields findByName(String name) {
54962
        return byName.get(name);
54963
      }
54964
 
54965
      private final short _thriftId;
54966
      private final String _fieldName;
54967
 
54968
      _Fields(short thriftId, String fieldName) {
54969
        _thriftId = thriftId;
54970
        _fieldName = fieldName;
54971
      }
54972
 
54973
      public short getThriftFieldId() {
54974
        return _thriftId;
54975
      }
54976
 
54977
      public String getFieldName() {
54978
        return _fieldName;
54979
      }
54980
    }
54981
 
54982
    // isset id assignments
10450 vikram.rag 54983
    private static final int __TIME_ISSET_ID = 0;
54984
    private BitSet __isset_bit_vector = new BitSet(1);
10050 vikram.rag 54985
 
54986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
54987
    static {
54988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
54989
      tmpMap.put(_Fields.FLIPKART_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("flipkartInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54990
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
54991
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class))));
10450 vikram.rag 54992
      tmpMap.put(_Fields.TIME, new org.apache.thrift.meta_data.FieldMetaData("time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
54993
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10050 vikram.rag 54994
      metaDataMap = Collections.unmodifiableMap(tmpMap);
54995
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartInventorySnapshot_args.class, metaDataMap);
54996
    }
54997
 
54998
    public addOrUpdateFlipkartInventorySnapshot_args() {
54999
    }
55000
 
55001
    public addOrUpdateFlipkartInventorySnapshot_args(
10450 vikram.rag 55002
      List<FlipkartInventorySnapshot> flipkartInventorySnapshot,
55003
      long time)
10050 vikram.rag 55004
    {
55005
      this();
55006
      this.flipkartInventorySnapshot = flipkartInventorySnapshot;
10450 vikram.rag 55007
      this.time = time;
55008
      setTimeIsSet(true);
10050 vikram.rag 55009
    }
55010
 
55011
    /**
55012
     * Performs a deep copy on <i>other</i>.
55013
     */
55014
    public addOrUpdateFlipkartInventorySnapshot_args(addOrUpdateFlipkartInventorySnapshot_args other) {
10450 vikram.rag 55015
      __isset_bit_vector.clear();
55016
      __isset_bit_vector.or(other.__isset_bit_vector);
10050 vikram.rag 55017
      if (other.isSetFlipkartInventorySnapshot()) {
55018
        List<FlipkartInventorySnapshot> __this__flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>();
55019
        for (FlipkartInventorySnapshot other_element : other.flipkartInventorySnapshot) {
55020
          __this__flipkartInventorySnapshot.add(new FlipkartInventorySnapshot(other_element));
55021
        }
55022
        this.flipkartInventorySnapshot = __this__flipkartInventorySnapshot;
55023
      }
10450 vikram.rag 55024
      this.time = other.time;
10050 vikram.rag 55025
    }
55026
 
55027
    public addOrUpdateFlipkartInventorySnapshot_args deepCopy() {
55028
      return new addOrUpdateFlipkartInventorySnapshot_args(this);
55029
    }
55030
 
55031
    @Override
55032
    public void clear() {
55033
      this.flipkartInventorySnapshot = null;
10450 vikram.rag 55034
      setTimeIsSet(false);
55035
      this.time = 0;
10050 vikram.rag 55036
    }
55037
 
55038
    public int getFlipkartInventorySnapshotSize() {
55039
      return (this.flipkartInventorySnapshot == null) ? 0 : this.flipkartInventorySnapshot.size();
55040
    }
55041
 
55042
    public java.util.Iterator<FlipkartInventorySnapshot> getFlipkartInventorySnapshotIterator() {
55043
      return (this.flipkartInventorySnapshot == null) ? null : this.flipkartInventorySnapshot.iterator();
55044
    }
55045
 
55046
    public void addToFlipkartInventorySnapshot(FlipkartInventorySnapshot elem) {
55047
      if (this.flipkartInventorySnapshot == null) {
55048
        this.flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>();
55049
      }
55050
      this.flipkartInventorySnapshot.add(elem);
55051
    }
55052
 
55053
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() {
55054
      return this.flipkartInventorySnapshot;
55055
    }
55056
 
55057
    public void setFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) {
55058
      this.flipkartInventorySnapshot = flipkartInventorySnapshot;
55059
    }
55060
 
55061
    public void unsetFlipkartInventorySnapshot() {
55062
      this.flipkartInventorySnapshot = null;
55063
    }
55064
 
55065
    /** Returns true if field flipkartInventorySnapshot is set (has been assigned a value) and false otherwise */
55066
    public boolean isSetFlipkartInventorySnapshot() {
55067
      return this.flipkartInventorySnapshot != null;
55068
    }
55069
 
55070
    public void setFlipkartInventorySnapshotIsSet(boolean value) {
55071
      if (!value) {
55072
        this.flipkartInventorySnapshot = null;
55073
      }
55074
    }
55075
 
10450 vikram.rag 55076
    public long getTime() {
55077
      return this.time;
55078
    }
55079
 
55080
    public void setTime(long time) {
55081
      this.time = time;
55082
      setTimeIsSet(true);
55083
    }
55084
 
55085
    public void unsetTime() {
55086
      __isset_bit_vector.clear(__TIME_ISSET_ID);
55087
    }
55088
 
55089
    /** Returns true if field time is set (has been assigned a value) and false otherwise */
55090
    public boolean isSetTime() {
55091
      return __isset_bit_vector.get(__TIME_ISSET_ID);
55092
    }
55093
 
55094
    public void setTimeIsSet(boolean value) {
55095
      __isset_bit_vector.set(__TIME_ISSET_ID, value);
55096
    }
55097
 
10050 vikram.rag 55098
    public void setFieldValue(_Fields field, Object value) {
55099
      switch (field) {
55100
      case FLIPKART_INVENTORY_SNAPSHOT:
55101
        if (value == null) {
55102
          unsetFlipkartInventorySnapshot();
55103
        } else {
55104
          setFlipkartInventorySnapshot((List<FlipkartInventorySnapshot>)value);
55105
        }
55106
        break;
55107
 
10450 vikram.rag 55108
      case TIME:
55109
        if (value == null) {
55110
          unsetTime();
55111
        } else {
55112
          setTime((Long)value);
55113
        }
55114
        break;
55115
 
10050 vikram.rag 55116
      }
55117
    }
55118
 
55119
    public Object getFieldValue(_Fields field) {
55120
      switch (field) {
55121
      case FLIPKART_INVENTORY_SNAPSHOT:
55122
        return getFlipkartInventorySnapshot();
55123
 
10450 vikram.rag 55124
      case TIME:
55125
        return Long.valueOf(getTime());
55126
 
10050 vikram.rag 55127
      }
55128
      throw new IllegalStateException();
55129
    }
55130
 
55131
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55132
    public boolean isSet(_Fields field) {
55133
      if (field == null) {
55134
        throw new IllegalArgumentException();
55135
      }
55136
 
55137
      switch (field) {
55138
      case FLIPKART_INVENTORY_SNAPSHOT:
55139
        return isSetFlipkartInventorySnapshot();
10450 vikram.rag 55140
      case TIME:
55141
        return isSetTime();
10050 vikram.rag 55142
      }
55143
      throw new IllegalStateException();
55144
    }
55145
 
55146
    @Override
55147
    public boolean equals(Object that) {
55148
      if (that == null)
55149
        return false;
55150
      if (that instanceof addOrUpdateFlipkartInventorySnapshot_args)
55151
        return this.equals((addOrUpdateFlipkartInventorySnapshot_args)that);
55152
      return false;
55153
    }
55154
 
55155
    public boolean equals(addOrUpdateFlipkartInventorySnapshot_args that) {
55156
      if (that == null)
55157
        return false;
55158
 
55159
      boolean this_present_flipkartInventorySnapshot = true && this.isSetFlipkartInventorySnapshot();
55160
      boolean that_present_flipkartInventorySnapshot = true && that.isSetFlipkartInventorySnapshot();
55161
      if (this_present_flipkartInventorySnapshot || that_present_flipkartInventorySnapshot) {
55162
        if (!(this_present_flipkartInventorySnapshot && that_present_flipkartInventorySnapshot))
55163
          return false;
55164
        if (!this.flipkartInventorySnapshot.equals(that.flipkartInventorySnapshot))
55165
          return false;
55166
      }
55167
 
10450 vikram.rag 55168
      boolean this_present_time = true;
55169
      boolean that_present_time = true;
55170
      if (this_present_time || that_present_time) {
55171
        if (!(this_present_time && that_present_time))
55172
          return false;
55173
        if (this.time != that.time)
55174
          return false;
55175
      }
55176
 
10050 vikram.rag 55177
      return true;
55178
    }
55179
 
55180
    @Override
55181
    public int hashCode() {
55182
      return 0;
55183
    }
55184
 
55185
    public int compareTo(addOrUpdateFlipkartInventorySnapshot_args other) {
55186
      if (!getClass().equals(other.getClass())) {
55187
        return getClass().getName().compareTo(other.getClass().getName());
55188
      }
55189
 
55190
      int lastComparison = 0;
55191
      addOrUpdateFlipkartInventorySnapshot_args typedOther = (addOrUpdateFlipkartInventorySnapshot_args)other;
55192
 
55193
      lastComparison = Boolean.valueOf(isSetFlipkartInventorySnapshot()).compareTo(typedOther.isSetFlipkartInventorySnapshot());
55194
      if (lastComparison != 0) {
55195
        return lastComparison;
55196
      }
55197
      if (isSetFlipkartInventorySnapshot()) {
55198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flipkartInventorySnapshot, typedOther.flipkartInventorySnapshot);
55199
        if (lastComparison != 0) {
55200
          return lastComparison;
55201
        }
55202
      }
10450 vikram.rag 55203
      lastComparison = Boolean.valueOf(isSetTime()).compareTo(typedOther.isSetTime());
55204
      if (lastComparison != 0) {
55205
        return lastComparison;
55206
      }
55207
      if (isSetTime()) {
55208
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.time, typedOther.time);
55209
        if (lastComparison != 0) {
55210
          return lastComparison;
55211
        }
55212
      }
10050 vikram.rag 55213
      return 0;
55214
    }
55215
 
55216
    public _Fields fieldForId(int fieldId) {
55217
      return _Fields.findByThriftId(fieldId);
55218
    }
55219
 
55220
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55221
      org.apache.thrift.protocol.TField field;
55222
      iprot.readStructBegin();
55223
      while (true)
55224
      {
55225
        field = iprot.readFieldBegin();
55226
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55227
          break;
55228
        }
55229
        switch (field.id) {
10450 vikram.rag 55230
          case 1: // FLIPKART_INVENTORY_SNAPSHOT
10050 vikram.rag 55231
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55232
              {
11173 vikram.rag 55233
                org.apache.thrift.protocol.TList _list171 = iprot.readListBegin();
55234
                this.flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>(_list171.size);
55235
                for (int _i172 = 0; _i172 < _list171.size; ++_i172)
10050 vikram.rag 55236
                {
11173 vikram.rag 55237
                  FlipkartInventorySnapshot _elem173; // required
55238
                  _elem173 = new FlipkartInventorySnapshot();
55239
                  _elem173.read(iprot);
55240
                  this.flipkartInventorySnapshot.add(_elem173);
10050 vikram.rag 55241
                }
55242
                iprot.readListEnd();
55243
              }
55244
            } else { 
55245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55246
            }
55247
            break;
10450 vikram.rag 55248
          case 2: // TIME
55249
            if (field.type == org.apache.thrift.protocol.TType.I64) {
55250
              this.time = iprot.readI64();
55251
              setTimeIsSet(true);
55252
            } else { 
55253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55254
            }
55255
            break;
10050 vikram.rag 55256
          default:
55257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55258
        }
55259
        iprot.readFieldEnd();
55260
      }
55261
      iprot.readStructEnd();
55262
      validate();
55263
    }
55264
 
55265
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55266
      validate();
55267
 
55268
      oprot.writeStructBegin(STRUCT_DESC);
55269
      if (this.flipkartInventorySnapshot != null) {
55270
        oprot.writeFieldBegin(FLIPKART_INVENTORY_SNAPSHOT_FIELD_DESC);
55271
        {
55272
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.flipkartInventorySnapshot.size()));
11173 vikram.rag 55273
          for (FlipkartInventorySnapshot _iter174 : this.flipkartInventorySnapshot)
10050 vikram.rag 55274
          {
11173 vikram.rag 55275
            _iter174.write(oprot);
10050 vikram.rag 55276
          }
55277
          oprot.writeListEnd();
55278
        }
55279
        oprot.writeFieldEnd();
55280
      }
10450 vikram.rag 55281
      oprot.writeFieldBegin(TIME_FIELD_DESC);
55282
      oprot.writeI64(this.time);
55283
      oprot.writeFieldEnd();
10050 vikram.rag 55284
      oprot.writeFieldStop();
55285
      oprot.writeStructEnd();
55286
    }
55287
 
55288
    @Override
55289
    public String toString() {
55290
      StringBuilder sb = new StringBuilder("addOrUpdateFlipkartInventorySnapshot_args(");
55291
      boolean first = true;
55292
 
55293
      sb.append("flipkartInventorySnapshot:");
55294
      if (this.flipkartInventorySnapshot == null) {
55295
        sb.append("null");
55296
      } else {
55297
        sb.append(this.flipkartInventorySnapshot);
55298
      }
55299
      first = false;
10450 vikram.rag 55300
      if (!first) sb.append(", ");
55301
      sb.append("time:");
55302
      sb.append(this.time);
55303
      first = false;
10050 vikram.rag 55304
      sb.append(")");
55305
      return sb.toString();
55306
    }
55307
 
55308
    public void validate() throws org.apache.thrift.TException {
55309
      // check for required fields
55310
    }
55311
 
55312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55313
      try {
55314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55315
      } catch (org.apache.thrift.TException te) {
55316
        throw new java.io.IOException(te);
55317
      }
55318
    }
55319
 
55320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55321
      try {
10450 vikram.rag 55322
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
55323
        __isset_bit_vector = new BitSet(1);
10050 vikram.rag 55324
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55325
      } catch (org.apache.thrift.TException te) {
55326
        throw new java.io.IOException(te);
55327
      }
55328
    }
55329
 
55330
  }
55331
 
55332
  public static class addOrUpdateFlipkartInventorySnapshot_result implements org.apache.thrift.TBase<addOrUpdateFlipkartInventorySnapshot_result, addOrUpdateFlipkartInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
55333
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartInventorySnapshot_result");
55334
 
55335
 
55336
 
55337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55338
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55339
;
55340
 
55341
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55342
 
55343
      static {
55344
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55345
          byName.put(field.getFieldName(), field);
55346
        }
55347
      }
55348
 
55349
      /**
55350
       * Find the _Fields constant that matches fieldId, or null if its not found.
55351
       */
55352
      public static _Fields findByThriftId(int fieldId) {
55353
        switch(fieldId) {
55354
          default:
55355
            return null;
55356
        }
55357
      }
55358
 
55359
      /**
55360
       * Find the _Fields constant that matches fieldId, throwing an exception
55361
       * if it is not found.
55362
       */
55363
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55364
        _Fields fields = findByThriftId(fieldId);
55365
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55366
        return fields;
55367
      }
55368
 
55369
      /**
55370
       * Find the _Fields constant that matches name, or null if its not found.
55371
       */
55372
      public static _Fields findByName(String name) {
55373
        return byName.get(name);
55374
      }
55375
 
55376
      private final short _thriftId;
55377
      private final String _fieldName;
55378
 
55379
      _Fields(short thriftId, String fieldName) {
55380
        _thriftId = thriftId;
55381
        _fieldName = fieldName;
55382
      }
55383
 
55384
      public short getThriftFieldId() {
55385
        return _thriftId;
55386
      }
55387
 
55388
      public String getFieldName() {
55389
        return _fieldName;
55390
      }
55391
    }
55392
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55393
    static {
55394
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartInventorySnapshot_result.class, metaDataMap);
55397
    }
55398
 
55399
    public addOrUpdateFlipkartInventorySnapshot_result() {
55400
    }
55401
 
55402
    /**
55403
     * Performs a deep copy on <i>other</i>.
55404
     */
55405
    public addOrUpdateFlipkartInventorySnapshot_result(addOrUpdateFlipkartInventorySnapshot_result other) {
55406
    }
55407
 
55408
    public addOrUpdateFlipkartInventorySnapshot_result deepCopy() {
55409
      return new addOrUpdateFlipkartInventorySnapshot_result(this);
55410
    }
55411
 
55412
    @Override
55413
    public void clear() {
55414
    }
55415
 
55416
    public void setFieldValue(_Fields field, Object value) {
55417
      switch (field) {
55418
      }
55419
    }
55420
 
55421
    public Object getFieldValue(_Fields field) {
55422
      switch (field) {
55423
      }
55424
      throw new IllegalStateException();
55425
    }
55426
 
55427
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55428
    public boolean isSet(_Fields field) {
55429
      if (field == null) {
55430
        throw new IllegalArgumentException();
55431
      }
55432
 
55433
      switch (field) {
55434
      }
55435
      throw new IllegalStateException();
55436
    }
55437
 
55438
    @Override
55439
    public boolean equals(Object that) {
55440
      if (that == null)
55441
        return false;
55442
      if (that instanceof addOrUpdateFlipkartInventorySnapshot_result)
55443
        return this.equals((addOrUpdateFlipkartInventorySnapshot_result)that);
55444
      return false;
55445
    }
55446
 
55447
    public boolean equals(addOrUpdateFlipkartInventorySnapshot_result that) {
55448
      if (that == null)
55449
        return false;
55450
 
55451
      return true;
55452
    }
55453
 
55454
    @Override
55455
    public int hashCode() {
55456
      return 0;
55457
    }
55458
 
55459
    public int compareTo(addOrUpdateFlipkartInventorySnapshot_result other) {
55460
      if (!getClass().equals(other.getClass())) {
55461
        return getClass().getName().compareTo(other.getClass().getName());
55462
      }
55463
 
55464
      int lastComparison = 0;
55465
      addOrUpdateFlipkartInventorySnapshot_result typedOther = (addOrUpdateFlipkartInventorySnapshot_result)other;
55466
 
55467
      return 0;
55468
    }
55469
 
55470
    public _Fields fieldForId(int fieldId) {
55471
      return _Fields.findByThriftId(fieldId);
55472
    }
55473
 
55474
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55475
      org.apache.thrift.protocol.TField field;
55476
      iprot.readStructBegin();
55477
      while (true)
55478
      {
55479
        field = iprot.readFieldBegin();
55480
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55481
          break;
55482
        }
55483
        switch (field.id) {
55484
          default:
55485
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55486
        }
55487
        iprot.readFieldEnd();
55488
      }
55489
      iprot.readStructEnd();
55490
      validate();
55491
    }
55492
 
55493
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55494
      oprot.writeStructBegin(STRUCT_DESC);
55495
 
55496
      oprot.writeFieldStop();
55497
      oprot.writeStructEnd();
55498
    }
55499
 
55500
    @Override
55501
    public String toString() {
55502
      StringBuilder sb = new StringBuilder("addOrUpdateFlipkartInventorySnapshot_result(");
55503
      boolean first = true;
55504
 
55505
      sb.append(")");
55506
      return sb.toString();
55507
    }
55508
 
55509
    public void validate() throws org.apache.thrift.TException {
55510
      // check for required fields
55511
    }
55512
 
55513
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55514
      try {
55515
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55516
      } catch (org.apache.thrift.TException te) {
55517
        throw new java.io.IOException(te);
55518
      }
55519
    }
55520
 
55521
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55522
      try {
55523
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55524
      } catch (org.apache.thrift.TException te) {
55525
        throw new java.io.IOException(te);
55526
      }
55527
    }
55528
 
55529
  }
55530
 
55531
  public static class getFlipkartInventorySnapshot_args implements org.apache.thrift.TBase<getFlipkartInventorySnapshot_args, getFlipkartInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
55532
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartInventorySnapshot_args");
55533
 
55534
 
55535
 
55536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55537
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55538
;
55539
 
55540
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55541
 
55542
      static {
55543
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55544
          byName.put(field.getFieldName(), field);
55545
        }
55546
      }
55547
 
55548
      /**
55549
       * Find the _Fields constant that matches fieldId, or null if its not found.
55550
       */
55551
      public static _Fields findByThriftId(int fieldId) {
55552
        switch(fieldId) {
55553
          default:
55554
            return null;
55555
        }
55556
      }
55557
 
55558
      /**
55559
       * Find the _Fields constant that matches fieldId, throwing an exception
55560
       * if it is not found.
55561
       */
55562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55563
        _Fields fields = findByThriftId(fieldId);
55564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55565
        return fields;
55566
      }
55567
 
55568
      /**
55569
       * Find the _Fields constant that matches name, or null if its not found.
55570
       */
55571
      public static _Fields findByName(String name) {
55572
        return byName.get(name);
55573
      }
55574
 
55575
      private final short _thriftId;
55576
      private final String _fieldName;
55577
 
55578
      _Fields(short thriftId, String fieldName) {
55579
        _thriftId = thriftId;
55580
        _fieldName = fieldName;
55581
      }
55582
 
55583
      public short getThriftFieldId() {
55584
        return _thriftId;
55585
      }
55586
 
55587
      public String getFieldName() {
55588
        return _fieldName;
55589
      }
55590
    }
55591
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55592
    static {
55593
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartInventorySnapshot_args.class, metaDataMap);
55596
    }
55597
 
55598
    public getFlipkartInventorySnapshot_args() {
55599
    }
55600
 
55601
    /**
55602
     * Performs a deep copy on <i>other</i>.
55603
     */
55604
    public getFlipkartInventorySnapshot_args(getFlipkartInventorySnapshot_args other) {
55605
    }
55606
 
55607
    public getFlipkartInventorySnapshot_args deepCopy() {
55608
      return new getFlipkartInventorySnapshot_args(this);
55609
    }
55610
 
55611
    @Override
55612
    public void clear() {
55613
    }
55614
 
55615
    public void setFieldValue(_Fields field, Object value) {
55616
      switch (field) {
55617
      }
55618
    }
55619
 
55620
    public Object getFieldValue(_Fields field) {
55621
      switch (field) {
55622
      }
55623
      throw new IllegalStateException();
55624
    }
55625
 
55626
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55627
    public boolean isSet(_Fields field) {
55628
      if (field == null) {
55629
        throw new IllegalArgumentException();
55630
      }
55631
 
55632
      switch (field) {
55633
      }
55634
      throw new IllegalStateException();
55635
    }
55636
 
55637
    @Override
55638
    public boolean equals(Object that) {
55639
      if (that == null)
55640
        return false;
55641
      if (that instanceof getFlipkartInventorySnapshot_args)
55642
        return this.equals((getFlipkartInventorySnapshot_args)that);
55643
      return false;
55644
    }
55645
 
55646
    public boolean equals(getFlipkartInventorySnapshot_args that) {
55647
      if (that == null)
55648
        return false;
55649
 
55650
      return true;
55651
    }
55652
 
55653
    @Override
55654
    public int hashCode() {
55655
      return 0;
55656
    }
55657
 
55658
    public int compareTo(getFlipkartInventorySnapshot_args other) {
55659
      if (!getClass().equals(other.getClass())) {
55660
        return getClass().getName().compareTo(other.getClass().getName());
55661
      }
55662
 
55663
      int lastComparison = 0;
55664
      getFlipkartInventorySnapshot_args typedOther = (getFlipkartInventorySnapshot_args)other;
55665
 
55666
      return 0;
55667
    }
55668
 
55669
    public _Fields fieldForId(int fieldId) {
55670
      return _Fields.findByThriftId(fieldId);
55671
    }
55672
 
55673
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55674
      org.apache.thrift.protocol.TField field;
55675
      iprot.readStructBegin();
55676
      while (true)
55677
      {
55678
        field = iprot.readFieldBegin();
55679
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55680
          break;
55681
        }
55682
        switch (field.id) {
55683
          default:
55684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55685
        }
55686
        iprot.readFieldEnd();
55687
      }
55688
      iprot.readStructEnd();
55689
      validate();
55690
    }
55691
 
55692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
55693
      validate();
55694
 
55695
      oprot.writeStructBegin(STRUCT_DESC);
55696
      oprot.writeFieldStop();
55697
      oprot.writeStructEnd();
55698
    }
55699
 
55700
    @Override
55701
    public String toString() {
55702
      StringBuilder sb = new StringBuilder("getFlipkartInventorySnapshot_args(");
55703
      boolean first = true;
55704
 
55705
      sb.append(")");
55706
      return sb.toString();
55707
    }
55708
 
55709
    public void validate() throws org.apache.thrift.TException {
55710
      // check for required fields
55711
    }
55712
 
55713
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
55714
      try {
55715
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
55716
      } catch (org.apache.thrift.TException te) {
55717
        throw new java.io.IOException(te);
55718
      }
55719
    }
55720
 
55721
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
55722
      try {
55723
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
55724
      } catch (org.apache.thrift.TException te) {
55725
        throw new java.io.IOException(te);
55726
      }
55727
    }
55728
 
55729
  }
55730
 
55731
  public static class getFlipkartInventorySnapshot_result implements org.apache.thrift.TBase<getFlipkartInventorySnapshot_result, getFlipkartInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
55732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartInventorySnapshot_result");
55733
 
55734
    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);
55735
 
55736
    private List<FlipkartInventorySnapshot> success; // required
55737
 
55738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
55740
      SUCCESS((short)0, "success");
55741
 
55742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
55743
 
55744
      static {
55745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
55746
          byName.put(field.getFieldName(), field);
55747
        }
55748
      }
55749
 
55750
      /**
55751
       * Find the _Fields constant that matches fieldId, or null if its not found.
55752
       */
55753
      public static _Fields findByThriftId(int fieldId) {
55754
        switch(fieldId) {
55755
          case 0: // SUCCESS
55756
            return SUCCESS;
55757
          default:
55758
            return null;
55759
        }
55760
      }
55761
 
55762
      /**
55763
       * Find the _Fields constant that matches fieldId, throwing an exception
55764
       * if it is not found.
55765
       */
55766
      public static _Fields findByThriftIdOrThrow(int fieldId) {
55767
        _Fields fields = findByThriftId(fieldId);
55768
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
55769
        return fields;
55770
      }
55771
 
55772
      /**
55773
       * Find the _Fields constant that matches name, or null if its not found.
55774
       */
55775
      public static _Fields findByName(String name) {
55776
        return byName.get(name);
55777
      }
55778
 
55779
      private final short _thriftId;
55780
      private final String _fieldName;
55781
 
55782
      _Fields(short thriftId, String fieldName) {
55783
        _thriftId = thriftId;
55784
        _fieldName = fieldName;
55785
      }
55786
 
55787
      public short getThriftFieldId() {
55788
        return _thriftId;
55789
      }
55790
 
55791
      public String getFieldName() {
55792
        return _fieldName;
55793
      }
55794
    }
55795
 
55796
    // isset id assignments
55797
 
55798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
55799
    static {
55800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
55801
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
55802
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
55803
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class))));
55804
      metaDataMap = Collections.unmodifiableMap(tmpMap);
55805
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartInventorySnapshot_result.class, metaDataMap);
55806
    }
55807
 
55808
    public getFlipkartInventorySnapshot_result() {
55809
    }
55810
 
55811
    public getFlipkartInventorySnapshot_result(
55812
      List<FlipkartInventorySnapshot> success)
55813
    {
55814
      this();
55815
      this.success = success;
55816
    }
55817
 
55818
    /**
55819
     * Performs a deep copy on <i>other</i>.
55820
     */
55821
    public getFlipkartInventorySnapshot_result(getFlipkartInventorySnapshot_result other) {
55822
      if (other.isSetSuccess()) {
55823
        List<FlipkartInventorySnapshot> __this__success = new ArrayList<FlipkartInventorySnapshot>();
55824
        for (FlipkartInventorySnapshot other_element : other.success) {
55825
          __this__success.add(new FlipkartInventorySnapshot(other_element));
55826
        }
55827
        this.success = __this__success;
55828
      }
55829
    }
55830
 
55831
    public getFlipkartInventorySnapshot_result deepCopy() {
55832
      return new getFlipkartInventorySnapshot_result(this);
55833
    }
55834
 
55835
    @Override
55836
    public void clear() {
55837
      this.success = null;
55838
    }
55839
 
55840
    public int getSuccessSize() {
55841
      return (this.success == null) ? 0 : this.success.size();
55842
    }
55843
 
55844
    public java.util.Iterator<FlipkartInventorySnapshot> getSuccessIterator() {
55845
      return (this.success == null) ? null : this.success.iterator();
55846
    }
55847
 
55848
    public void addToSuccess(FlipkartInventorySnapshot elem) {
55849
      if (this.success == null) {
55850
        this.success = new ArrayList<FlipkartInventorySnapshot>();
55851
      }
55852
      this.success.add(elem);
55853
    }
55854
 
55855
    public List<FlipkartInventorySnapshot> getSuccess() {
55856
      return this.success;
55857
    }
55858
 
55859
    public void setSuccess(List<FlipkartInventorySnapshot> success) {
55860
      this.success = success;
55861
    }
55862
 
55863
    public void unsetSuccess() {
55864
      this.success = null;
55865
    }
55866
 
55867
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
55868
    public boolean isSetSuccess() {
55869
      return this.success != null;
55870
    }
55871
 
55872
    public void setSuccessIsSet(boolean value) {
55873
      if (!value) {
55874
        this.success = null;
55875
      }
55876
    }
55877
 
55878
    public void setFieldValue(_Fields field, Object value) {
55879
      switch (field) {
55880
      case SUCCESS:
55881
        if (value == null) {
55882
          unsetSuccess();
55883
        } else {
55884
          setSuccess((List<FlipkartInventorySnapshot>)value);
55885
        }
55886
        break;
55887
 
55888
      }
55889
    }
55890
 
55891
    public Object getFieldValue(_Fields field) {
55892
      switch (field) {
55893
      case SUCCESS:
55894
        return getSuccess();
55895
 
55896
      }
55897
      throw new IllegalStateException();
55898
    }
55899
 
55900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
55901
    public boolean isSet(_Fields field) {
55902
      if (field == null) {
55903
        throw new IllegalArgumentException();
55904
      }
55905
 
55906
      switch (field) {
55907
      case SUCCESS:
55908
        return isSetSuccess();
55909
      }
55910
      throw new IllegalStateException();
55911
    }
55912
 
55913
    @Override
55914
    public boolean equals(Object that) {
55915
      if (that == null)
55916
        return false;
55917
      if (that instanceof getFlipkartInventorySnapshot_result)
55918
        return this.equals((getFlipkartInventorySnapshot_result)that);
55919
      return false;
55920
    }
55921
 
55922
    public boolean equals(getFlipkartInventorySnapshot_result that) {
55923
      if (that == null)
55924
        return false;
55925
 
55926
      boolean this_present_success = true && this.isSetSuccess();
55927
      boolean that_present_success = true && that.isSetSuccess();
55928
      if (this_present_success || that_present_success) {
55929
        if (!(this_present_success && that_present_success))
55930
          return false;
55931
        if (!this.success.equals(that.success))
55932
          return false;
55933
      }
55934
 
55935
      return true;
55936
    }
55937
 
55938
    @Override
55939
    public int hashCode() {
55940
      return 0;
55941
    }
55942
 
55943
    public int compareTo(getFlipkartInventorySnapshot_result other) {
55944
      if (!getClass().equals(other.getClass())) {
55945
        return getClass().getName().compareTo(other.getClass().getName());
55946
      }
55947
 
55948
      int lastComparison = 0;
55949
      getFlipkartInventorySnapshot_result typedOther = (getFlipkartInventorySnapshot_result)other;
55950
 
55951
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
55952
      if (lastComparison != 0) {
55953
        return lastComparison;
55954
      }
55955
      if (isSetSuccess()) {
55956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
55957
        if (lastComparison != 0) {
55958
          return lastComparison;
55959
        }
55960
      }
55961
      return 0;
55962
    }
55963
 
55964
    public _Fields fieldForId(int fieldId) {
55965
      return _Fields.findByThriftId(fieldId);
55966
    }
55967
 
55968
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
55969
      org.apache.thrift.protocol.TField field;
55970
      iprot.readStructBegin();
55971
      while (true)
55972
      {
55973
        field = iprot.readFieldBegin();
55974
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
55975
          break;
55976
        }
55977
        switch (field.id) {
55978
          case 0: // SUCCESS
55979
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
55980
              {
11173 vikram.rag 55981
                org.apache.thrift.protocol.TList _list175 = iprot.readListBegin();
55982
                this.success = new ArrayList<FlipkartInventorySnapshot>(_list175.size);
55983
                for (int _i176 = 0; _i176 < _list175.size; ++_i176)
10050 vikram.rag 55984
                {
11173 vikram.rag 55985
                  FlipkartInventorySnapshot _elem177; // required
55986
                  _elem177 = new FlipkartInventorySnapshot();
55987
                  _elem177.read(iprot);
55988
                  this.success.add(_elem177);
10050 vikram.rag 55989
                }
55990
                iprot.readListEnd();
55991
              }
55992
            } else { 
55993
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55994
            }
55995
            break;
55996
          default:
55997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
55998
        }
55999
        iprot.readFieldEnd();
56000
      }
56001
      iprot.readStructEnd();
56002
      validate();
56003
    }
56004
 
56005
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56006
      oprot.writeStructBegin(STRUCT_DESC);
56007
 
56008
      if (this.isSetSuccess()) {
56009
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56010
        {
56011
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11173 vikram.rag 56012
          for (FlipkartInventorySnapshot _iter178 : this.success)
10050 vikram.rag 56013
          {
11173 vikram.rag 56014
            _iter178.write(oprot);
10050 vikram.rag 56015
          }
56016
          oprot.writeListEnd();
56017
        }
56018
        oprot.writeFieldEnd();
56019
      }
56020
      oprot.writeFieldStop();
56021
      oprot.writeStructEnd();
56022
    }
56023
 
56024
    @Override
56025
    public String toString() {
56026
      StringBuilder sb = new StringBuilder("getFlipkartInventorySnapshot_result(");
56027
      boolean first = true;
56028
 
56029
      sb.append("success:");
56030
      if (this.success == null) {
56031
        sb.append("null");
56032
      } else {
56033
        sb.append(this.success);
56034
      }
56035
      first = false;
56036
      sb.append(")");
56037
      return sb.toString();
56038
    }
56039
 
56040
    public void validate() throws org.apache.thrift.TException {
56041
      // check for required fields
56042
    }
56043
 
56044
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56045
      try {
56046
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56047
      } catch (org.apache.thrift.TException te) {
56048
        throw new java.io.IOException(te);
56049
      }
56050
    }
56051
 
56052
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56053
      try {
56054
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56055
      } catch (org.apache.thrift.TException te) {
56056
        throw new java.io.IOException(te);
56057
      }
56058
    }
56059
 
56060
  }
56061
 
10097 kshitij.so 56062
  public static class getFlipkartlInventoryForItem_args implements org.apache.thrift.TBase<getFlipkartlInventoryForItem_args, getFlipkartlInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
56063
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartlInventoryForItem_args");
56064
 
56065
    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);
56066
 
56067
    private long item_id; // required
56068
 
56069
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56070
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56071
      ITEM_ID((short)1, "item_id");
56072
 
56073
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56074
 
56075
      static {
56076
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56077
          byName.put(field.getFieldName(), field);
56078
        }
56079
      }
56080
 
56081
      /**
56082
       * Find the _Fields constant that matches fieldId, or null if its not found.
56083
       */
56084
      public static _Fields findByThriftId(int fieldId) {
56085
        switch(fieldId) {
56086
          case 1: // ITEM_ID
56087
            return ITEM_ID;
56088
          default:
56089
            return null;
56090
        }
56091
      }
56092
 
56093
      /**
56094
       * Find the _Fields constant that matches fieldId, throwing an exception
56095
       * if it is not found.
56096
       */
56097
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56098
        _Fields fields = findByThriftId(fieldId);
56099
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56100
        return fields;
56101
      }
56102
 
56103
      /**
56104
       * Find the _Fields constant that matches name, or null if its not found.
56105
       */
56106
      public static _Fields findByName(String name) {
56107
        return byName.get(name);
56108
      }
56109
 
56110
      private final short _thriftId;
56111
      private final String _fieldName;
56112
 
56113
      _Fields(short thriftId, String fieldName) {
56114
        _thriftId = thriftId;
56115
        _fieldName = fieldName;
56116
      }
56117
 
56118
      public short getThriftFieldId() {
56119
        return _thriftId;
56120
      }
56121
 
56122
      public String getFieldName() {
56123
        return _fieldName;
56124
      }
56125
    }
56126
 
56127
    // isset id assignments
56128
    private static final int __ITEM_ID_ISSET_ID = 0;
56129
    private BitSet __isset_bit_vector = new BitSet(1);
56130
 
56131
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56132
    static {
56133
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56134
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56135
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
56136
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56137
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartlInventoryForItem_args.class, metaDataMap);
56138
    }
56139
 
56140
    public getFlipkartlInventoryForItem_args() {
56141
    }
56142
 
56143
    public getFlipkartlInventoryForItem_args(
56144
      long item_id)
56145
    {
56146
      this();
56147
      this.item_id = item_id;
56148
      setItem_idIsSet(true);
56149
    }
56150
 
56151
    /**
56152
     * Performs a deep copy on <i>other</i>.
56153
     */
56154
    public getFlipkartlInventoryForItem_args(getFlipkartlInventoryForItem_args other) {
56155
      __isset_bit_vector.clear();
56156
      __isset_bit_vector.or(other.__isset_bit_vector);
56157
      this.item_id = other.item_id;
56158
    }
56159
 
56160
    public getFlipkartlInventoryForItem_args deepCopy() {
56161
      return new getFlipkartlInventoryForItem_args(this);
56162
    }
56163
 
56164
    @Override
56165
    public void clear() {
56166
      setItem_idIsSet(false);
56167
      this.item_id = 0;
56168
    }
56169
 
56170
    public long getItem_id() {
56171
      return this.item_id;
56172
    }
56173
 
56174
    public void setItem_id(long item_id) {
56175
      this.item_id = item_id;
56176
      setItem_idIsSet(true);
56177
    }
56178
 
56179
    public void unsetItem_id() {
56180
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
56181
    }
56182
 
56183
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
56184
    public boolean isSetItem_id() {
56185
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
56186
    }
56187
 
56188
    public void setItem_idIsSet(boolean value) {
56189
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
56190
    }
56191
 
56192
    public void setFieldValue(_Fields field, Object value) {
56193
      switch (field) {
56194
      case ITEM_ID:
56195
        if (value == null) {
56196
          unsetItem_id();
56197
        } else {
56198
          setItem_id((Long)value);
56199
        }
56200
        break;
56201
 
56202
      }
56203
    }
56204
 
56205
    public Object getFieldValue(_Fields field) {
56206
      switch (field) {
56207
      case ITEM_ID:
56208
        return Long.valueOf(getItem_id());
56209
 
56210
      }
56211
      throw new IllegalStateException();
56212
    }
56213
 
56214
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56215
    public boolean isSet(_Fields field) {
56216
      if (field == null) {
56217
        throw new IllegalArgumentException();
56218
      }
56219
 
56220
      switch (field) {
56221
      case ITEM_ID:
56222
        return isSetItem_id();
56223
      }
56224
      throw new IllegalStateException();
56225
    }
56226
 
56227
    @Override
56228
    public boolean equals(Object that) {
56229
      if (that == null)
56230
        return false;
56231
      if (that instanceof getFlipkartlInventoryForItem_args)
56232
        return this.equals((getFlipkartlInventoryForItem_args)that);
56233
      return false;
56234
    }
56235
 
56236
    public boolean equals(getFlipkartlInventoryForItem_args that) {
56237
      if (that == null)
56238
        return false;
56239
 
56240
      boolean this_present_item_id = true;
56241
      boolean that_present_item_id = true;
56242
      if (this_present_item_id || that_present_item_id) {
56243
        if (!(this_present_item_id && that_present_item_id))
56244
          return false;
56245
        if (this.item_id != that.item_id)
56246
          return false;
56247
      }
56248
 
56249
      return true;
56250
    }
56251
 
56252
    @Override
56253
    public int hashCode() {
56254
      return 0;
56255
    }
56256
 
56257
    public int compareTo(getFlipkartlInventoryForItem_args other) {
56258
      if (!getClass().equals(other.getClass())) {
56259
        return getClass().getName().compareTo(other.getClass().getName());
56260
      }
56261
 
56262
      int lastComparison = 0;
56263
      getFlipkartlInventoryForItem_args typedOther = (getFlipkartlInventoryForItem_args)other;
56264
 
56265
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
56266
      if (lastComparison != 0) {
56267
        return lastComparison;
56268
      }
56269
      if (isSetItem_id()) {
56270
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
56271
        if (lastComparison != 0) {
56272
          return lastComparison;
56273
        }
56274
      }
56275
      return 0;
56276
    }
56277
 
56278
    public _Fields fieldForId(int fieldId) {
56279
      return _Fields.findByThriftId(fieldId);
56280
    }
56281
 
56282
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56283
      org.apache.thrift.protocol.TField field;
56284
      iprot.readStructBegin();
56285
      while (true)
56286
      {
56287
        field = iprot.readFieldBegin();
56288
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56289
          break;
56290
        }
56291
        switch (field.id) {
56292
          case 1: // ITEM_ID
56293
            if (field.type == org.apache.thrift.protocol.TType.I64) {
56294
              this.item_id = iprot.readI64();
56295
              setItem_idIsSet(true);
56296
            } else { 
56297
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56298
            }
56299
            break;
56300
          default:
56301
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56302
        }
56303
        iprot.readFieldEnd();
56304
      }
56305
      iprot.readStructEnd();
56306
      validate();
56307
    }
56308
 
56309
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56310
      validate();
56311
 
56312
      oprot.writeStructBegin(STRUCT_DESC);
56313
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
56314
      oprot.writeI64(this.item_id);
56315
      oprot.writeFieldEnd();
56316
      oprot.writeFieldStop();
56317
      oprot.writeStructEnd();
56318
    }
56319
 
56320
    @Override
56321
    public String toString() {
56322
      StringBuilder sb = new StringBuilder("getFlipkartlInventoryForItem_args(");
56323
      boolean first = true;
56324
 
56325
      sb.append("item_id:");
56326
      sb.append(this.item_id);
56327
      first = false;
56328
      sb.append(")");
56329
      return sb.toString();
56330
    }
56331
 
56332
    public void validate() throws org.apache.thrift.TException {
56333
      // check for required fields
56334
    }
56335
 
56336
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56337
      try {
56338
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56339
      } catch (org.apache.thrift.TException te) {
56340
        throw new java.io.IOException(te);
56341
      }
56342
    }
56343
 
56344
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56345
      try {
56346
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
56347
        __isset_bit_vector = new BitSet(1);
56348
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56349
      } catch (org.apache.thrift.TException te) {
56350
        throw new java.io.IOException(te);
56351
      }
56352
    }
56353
 
56354
  }
56355
 
56356
  public static class getFlipkartlInventoryForItem_result implements org.apache.thrift.TBase<getFlipkartlInventoryForItem_result, getFlipkartlInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
56357
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartlInventoryForItem_result");
56358
 
56359
    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);
56360
 
56361
    private FlipkartInventorySnapshot success; // required
56362
 
56363
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56364
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56365
      SUCCESS((short)0, "success");
56366
 
56367
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56368
 
56369
      static {
56370
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56371
          byName.put(field.getFieldName(), field);
56372
        }
56373
      }
56374
 
56375
      /**
56376
       * Find the _Fields constant that matches fieldId, or null if its not found.
56377
       */
56378
      public static _Fields findByThriftId(int fieldId) {
56379
        switch(fieldId) {
56380
          case 0: // SUCCESS
56381
            return SUCCESS;
56382
          default:
56383
            return null;
56384
        }
56385
      }
56386
 
56387
      /**
56388
       * Find the _Fields constant that matches fieldId, throwing an exception
56389
       * if it is not found.
56390
       */
56391
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56392
        _Fields fields = findByThriftId(fieldId);
56393
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56394
        return fields;
56395
      }
56396
 
56397
      /**
56398
       * Find the _Fields constant that matches name, or null if its not found.
56399
       */
56400
      public static _Fields findByName(String name) {
56401
        return byName.get(name);
56402
      }
56403
 
56404
      private final short _thriftId;
56405
      private final String _fieldName;
56406
 
56407
      _Fields(short thriftId, String fieldName) {
56408
        _thriftId = thriftId;
56409
        _fieldName = fieldName;
56410
      }
56411
 
56412
      public short getThriftFieldId() {
56413
        return _thriftId;
56414
      }
56415
 
56416
      public String getFieldName() {
56417
        return _fieldName;
56418
      }
56419
    }
56420
 
56421
    // isset id assignments
56422
 
56423
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56424
    static {
56425
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56426
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56427
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class)));
56428
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56429
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartlInventoryForItem_result.class, metaDataMap);
56430
    }
56431
 
56432
    public getFlipkartlInventoryForItem_result() {
56433
    }
56434
 
56435
    public getFlipkartlInventoryForItem_result(
56436
      FlipkartInventorySnapshot success)
56437
    {
56438
      this();
56439
      this.success = success;
56440
    }
56441
 
56442
    /**
56443
     * Performs a deep copy on <i>other</i>.
56444
     */
56445
    public getFlipkartlInventoryForItem_result(getFlipkartlInventoryForItem_result other) {
56446
      if (other.isSetSuccess()) {
56447
        this.success = new FlipkartInventorySnapshot(other.success);
56448
      }
56449
    }
56450
 
56451
    public getFlipkartlInventoryForItem_result deepCopy() {
56452
      return new getFlipkartlInventoryForItem_result(this);
56453
    }
56454
 
56455
    @Override
56456
    public void clear() {
56457
      this.success = null;
56458
    }
56459
 
56460
    public FlipkartInventorySnapshot getSuccess() {
56461
      return this.success;
56462
    }
56463
 
56464
    public void setSuccess(FlipkartInventorySnapshot success) {
56465
      this.success = success;
56466
    }
56467
 
56468
    public void unsetSuccess() {
56469
      this.success = null;
56470
    }
56471
 
56472
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
56473
    public boolean isSetSuccess() {
56474
      return this.success != null;
56475
    }
56476
 
56477
    public void setSuccessIsSet(boolean value) {
56478
      if (!value) {
56479
        this.success = null;
56480
      }
56481
    }
56482
 
56483
    public void setFieldValue(_Fields field, Object value) {
56484
      switch (field) {
56485
      case SUCCESS:
56486
        if (value == null) {
56487
          unsetSuccess();
56488
        } else {
56489
          setSuccess((FlipkartInventorySnapshot)value);
56490
        }
56491
        break;
56492
 
56493
      }
56494
    }
56495
 
56496
    public Object getFieldValue(_Fields field) {
56497
      switch (field) {
56498
      case SUCCESS:
56499
        return getSuccess();
56500
 
56501
      }
56502
      throw new IllegalStateException();
56503
    }
56504
 
56505
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56506
    public boolean isSet(_Fields field) {
56507
      if (field == null) {
56508
        throw new IllegalArgumentException();
56509
      }
56510
 
56511
      switch (field) {
56512
      case SUCCESS:
56513
        return isSetSuccess();
56514
      }
56515
      throw new IllegalStateException();
56516
    }
56517
 
56518
    @Override
56519
    public boolean equals(Object that) {
56520
      if (that == null)
56521
        return false;
56522
      if (that instanceof getFlipkartlInventoryForItem_result)
56523
        return this.equals((getFlipkartlInventoryForItem_result)that);
56524
      return false;
56525
    }
56526
 
56527
    public boolean equals(getFlipkartlInventoryForItem_result that) {
56528
      if (that == null)
56529
        return false;
56530
 
56531
      boolean this_present_success = true && this.isSetSuccess();
56532
      boolean that_present_success = true && that.isSetSuccess();
56533
      if (this_present_success || that_present_success) {
56534
        if (!(this_present_success && that_present_success))
56535
          return false;
56536
        if (!this.success.equals(that.success))
56537
          return false;
56538
      }
56539
 
56540
      return true;
56541
    }
56542
 
56543
    @Override
56544
    public int hashCode() {
56545
      return 0;
56546
    }
56547
 
56548
    public int compareTo(getFlipkartlInventoryForItem_result other) {
56549
      if (!getClass().equals(other.getClass())) {
56550
        return getClass().getName().compareTo(other.getClass().getName());
56551
      }
56552
 
56553
      int lastComparison = 0;
56554
      getFlipkartlInventoryForItem_result typedOther = (getFlipkartlInventoryForItem_result)other;
56555
 
56556
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
56557
      if (lastComparison != 0) {
56558
        return lastComparison;
56559
      }
56560
      if (isSetSuccess()) {
56561
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
56562
        if (lastComparison != 0) {
56563
          return lastComparison;
56564
        }
56565
      }
56566
      return 0;
56567
    }
56568
 
56569
    public _Fields fieldForId(int fieldId) {
56570
      return _Fields.findByThriftId(fieldId);
56571
    }
56572
 
56573
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56574
      org.apache.thrift.protocol.TField field;
56575
      iprot.readStructBegin();
56576
      while (true)
56577
      {
56578
        field = iprot.readFieldBegin();
56579
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56580
          break;
56581
        }
56582
        switch (field.id) {
56583
          case 0: // SUCCESS
56584
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
56585
              this.success = new FlipkartInventorySnapshot();
56586
              this.success.read(iprot);
56587
            } else { 
56588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56589
            }
56590
            break;
56591
          default:
56592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56593
        }
56594
        iprot.readFieldEnd();
56595
      }
56596
      iprot.readStructEnd();
56597
      validate();
56598
    }
56599
 
56600
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56601
      oprot.writeStructBegin(STRUCT_DESC);
56602
 
56603
      if (this.isSetSuccess()) {
56604
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56605
        this.success.write(oprot);
56606
        oprot.writeFieldEnd();
56607
      }
56608
      oprot.writeFieldStop();
56609
      oprot.writeStructEnd();
56610
    }
56611
 
56612
    @Override
56613
    public String toString() {
56614
      StringBuilder sb = new StringBuilder("getFlipkartlInventoryForItem_result(");
56615
      boolean first = true;
56616
 
56617
      sb.append("success:");
56618
      if (this.success == null) {
56619
        sb.append("null");
56620
      } else {
56621
        sb.append(this.success);
56622
      }
56623
      first = false;
56624
      sb.append(")");
56625
      return sb.toString();
56626
    }
56627
 
56628
    public void validate() throws org.apache.thrift.TException {
56629
      // check for required fields
56630
    }
56631
 
56632
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56633
      try {
56634
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56635
      } catch (org.apache.thrift.TException te) {
56636
        throw new java.io.IOException(te);
56637
      }
56638
    }
56639
 
56640
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56641
      try {
56642
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56643
      } catch (org.apache.thrift.TException te) {
56644
        throw new java.io.IOException(te);
56645
      }
56646
    }
56647
 
56648
  }
56649
 
10485 vikram.rag 56650
  public static class getStateMaster_args implements org.apache.thrift.TBase<getStateMaster_args, getStateMaster_args._Fields>, java.io.Serializable, Cloneable   {
56651
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateMaster_args");
56652
 
56653
 
56654
 
56655
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56656
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56657
;
56658
 
56659
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56660
 
56661
      static {
56662
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56663
          byName.put(field.getFieldName(), field);
56664
        }
56665
      }
56666
 
56667
      /**
56668
       * Find the _Fields constant that matches fieldId, or null if its not found.
56669
       */
56670
      public static _Fields findByThriftId(int fieldId) {
56671
        switch(fieldId) {
56672
          default:
56673
            return null;
56674
        }
56675
      }
56676
 
56677
      /**
56678
       * Find the _Fields constant that matches fieldId, throwing an exception
56679
       * if it is not found.
56680
       */
56681
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56682
        _Fields fields = findByThriftId(fieldId);
56683
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56684
        return fields;
56685
      }
56686
 
56687
      /**
56688
       * Find the _Fields constant that matches name, or null if its not found.
56689
       */
56690
      public static _Fields findByName(String name) {
56691
        return byName.get(name);
56692
      }
56693
 
56694
      private final short _thriftId;
56695
      private final String _fieldName;
56696
 
56697
      _Fields(short thriftId, String fieldName) {
56698
        _thriftId = thriftId;
56699
        _fieldName = fieldName;
56700
      }
56701
 
56702
      public short getThriftFieldId() {
56703
        return _thriftId;
56704
      }
56705
 
56706
      public String getFieldName() {
56707
        return _fieldName;
56708
      }
56709
    }
56710
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56711
    static {
56712
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56713
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56714
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateMaster_args.class, metaDataMap);
56715
    }
56716
 
56717
    public getStateMaster_args() {
56718
    }
56719
 
56720
    /**
56721
     * Performs a deep copy on <i>other</i>.
56722
     */
56723
    public getStateMaster_args(getStateMaster_args other) {
56724
    }
56725
 
56726
    public getStateMaster_args deepCopy() {
56727
      return new getStateMaster_args(this);
56728
    }
56729
 
56730
    @Override
56731
    public void clear() {
56732
    }
56733
 
56734
    public void setFieldValue(_Fields field, Object value) {
56735
      switch (field) {
56736
      }
56737
    }
56738
 
56739
    public Object getFieldValue(_Fields field) {
56740
      switch (field) {
56741
      }
56742
      throw new IllegalStateException();
56743
    }
56744
 
56745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
56746
    public boolean isSet(_Fields field) {
56747
      if (field == null) {
56748
        throw new IllegalArgumentException();
56749
      }
56750
 
56751
      switch (field) {
56752
      }
56753
      throw new IllegalStateException();
56754
    }
56755
 
56756
    @Override
56757
    public boolean equals(Object that) {
56758
      if (that == null)
56759
        return false;
56760
      if (that instanceof getStateMaster_args)
56761
        return this.equals((getStateMaster_args)that);
56762
      return false;
56763
    }
56764
 
56765
    public boolean equals(getStateMaster_args that) {
56766
      if (that == null)
56767
        return false;
56768
 
56769
      return true;
56770
    }
56771
 
56772
    @Override
56773
    public int hashCode() {
56774
      return 0;
56775
    }
56776
 
56777
    public int compareTo(getStateMaster_args other) {
56778
      if (!getClass().equals(other.getClass())) {
56779
        return getClass().getName().compareTo(other.getClass().getName());
56780
      }
56781
 
56782
      int lastComparison = 0;
56783
      getStateMaster_args typedOther = (getStateMaster_args)other;
56784
 
56785
      return 0;
56786
    }
56787
 
56788
    public _Fields fieldForId(int fieldId) {
56789
      return _Fields.findByThriftId(fieldId);
56790
    }
56791
 
56792
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
56793
      org.apache.thrift.protocol.TField field;
56794
      iprot.readStructBegin();
56795
      while (true)
56796
      {
56797
        field = iprot.readFieldBegin();
56798
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
56799
          break;
56800
        }
56801
        switch (field.id) {
56802
          default:
56803
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56804
        }
56805
        iprot.readFieldEnd();
56806
      }
56807
      iprot.readStructEnd();
56808
      validate();
56809
    }
56810
 
56811
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
56812
      validate();
56813
 
56814
      oprot.writeStructBegin(STRUCT_DESC);
56815
      oprot.writeFieldStop();
56816
      oprot.writeStructEnd();
56817
    }
56818
 
56819
    @Override
56820
    public String toString() {
56821
      StringBuilder sb = new StringBuilder("getStateMaster_args(");
56822
      boolean first = true;
56823
 
56824
      sb.append(")");
56825
      return sb.toString();
56826
    }
56827
 
56828
    public void validate() throws org.apache.thrift.TException {
56829
      // check for required fields
56830
    }
56831
 
56832
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56833
      try {
56834
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
56835
      } catch (org.apache.thrift.TException te) {
56836
        throw new java.io.IOException(te);
56837
      }
56838
    }
56839
 
56840
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
56841
      try {
56842
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
56843
      } catch (org.apache.thrift.TException te) {
56844
        throw new java.io.IOException(te);
56845
      }
56846
    }
56847
 
56848
  }
56849
 
56850
  public static class getStateMaster_result implements org.apache.thrift.TBase<getStateMaster_result, getStateMaster_result._Fields>, java.io.Serializable, Cloneable   {
56851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStateMaster_result");
56852
 
56853
    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);
56854
 
12280 amit.gupta 56855
    private Map<Long,StateInfo> success; // required
10485 vikram.rag 56856
 
56857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56859
      SUCCESS((short)0, "success");
56860
 
56861
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56862
 
56863
      static {
56864
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
56865
          byName.put(field.getFieldName(), field);
56866
        }
56867
      }
56868
 
56869
      /**
56870
       * Find the _Fields constant that matches fieldId, or null if its not found.
56871
       */
56872
      public static _Fields findByThriftId(int fieldId) {
56873
        switch(fieldId) {
56874
          case 0: // SUCCESS
56875
            return SUCCESS;
56876
          default:
56877
            return null;
56878
        }
56879
      }
56880
 
56881
      /**
56882
       * Find the _Fields constant that matches fieldId, throwing an exception
56883
       * if it is not found.
56884
       */
56885
      public static _Fields findByThriftIdOrThrow(int fieldId) {
56886
        _Fields fields = findByThriftId(fieldId);
56887
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
56888
        return fields;
56889
      }
56890
 
56891
      /**
56892
       * Find the _Fields constant that matches name, or null if its not found.
56893
       */
56894
      public static _Fields findByName(String name) {
56895
        return byName.get(name);
56896
      }
56897
 
56898
      private final short _thriftId;
56899
      private final String _fieldName;
56900
 
56901
      _Fields(short thriftId, String fieldName) {
56902
        _thriftId = thriftId;
56903
        _fieldName = fieldName;
56904
      }
56905
 
56906
      public short getThriftFieldId() {
56907
        return _thriftId;
56908
      }
56909
 
56910
      public String getFieldName() {
56911
        return _fieldName;
56912
      }
56913
    }
56914
 
56915
    // isset id assignments
56916
 
56917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
56918
    static {
56919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
56920
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
56921
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
56922
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
12280 amit.gupta 56923
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StateInfo.class))));
10485 vikram.rag 56924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
56925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStateMaster_result.class, metaDataMap);
56926
    }
56927
 
56928
    public getStateMaster_result() {
56929
    }
56930
 
56931
    public getStateMaster_result(
12280 amit.gupta 56932
      Map<Long,StateInfo> success)
10485 vikram.rag 56933
    {
56934
      this();
56935
      this.success = success;
56936
    }
56937
 
56938
    /**
56939
     * Performs a deep copy on <i>other</i>.
56940
     */
56941
    public getStateMaster_result(getStateMaster_result other) {
56942
      if (other.isSetSuccess()) {
12280 amit.gupta 56943
        Map<Long,StateInfo> __this__success = new HashMap<Long,StateInfo>();
56944
        for (Map.Entry<Long, StateInfo> other_element : other.success.entrySet()) {
10485 vikram.rag 56945
 
56946
          Long other_element_key = other_element.getKey();
12280 amit.gupta 56947
          StateInfo other_element_value = other_element.getValue();
10485 vikram.rag 56948
 
56949
          Long __this__success_copy_key = other_element_key;
56950
 
12280 amit.gupta 56951
          StateInfo __this__success_copy_value = new StateInfo(other_element_value);
10485 vikram.rag 56952
 
56953
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
56954
        }
56955
        this.success = __this__success;
56956
      }
56957
    }
56958
 
56959
    public getStateMaster_result deepCopy() {
56960
      return new getStateMaster_result(this);
56961
    }
56962
 
56963
    @Override
56964
    public void clear() {
56965
      this.success = null;
56966
    }
56967
 
56968
    public int getSuccessSize() {
56969
      return (this.success == null) ? 0 : this.success.size();
56970
    }
56971
 
12280 amit.gupta 56972
    public void putToSuccess(long key, StateInfo val) {
10485 vikram.rag 56973
      if (this.success == null) {
12280 amit.gupta 56974
        this.success = new HashMap<Long,StateInfo>();
10485 vikram.rag 56975
      }
56976
      this.success.put(key, val);
56977
    }
56978
 
12280 amit.gupta 56979
    public Map<Long,StateInfo> getSuccess() {
10485 vikram.rag 56980
      return this.success;
56981
    }
56982
 
12280 amit.gupta 56983
    public void setSuccess(Map<Long,StateInfo> success) {
10485 vikram.rag 56984
      this.success = success;
56985
    }
56986
 
56987
    public void unsetSuccess() {
56988
      this.success = null;
56989
    }
56990
 
56991
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
56992
    public boolean isSetSuccess() {
56993
      return this.success != null;
56994
    }
56995
 
56996
    public void setSuccessIsSet(boolean value) {
56997
      if (!value) {
56998
        this.success = null;
56999
      }
57000
    }
57001
 
57002
    public void setFieldValue(_Fields field, Object value) {
57003
      switch (field) {
57004
      case SUCCESS:
57005
        if (value == null) {
57006
          unsetSuccess();
57007
        } else {
12280 amit.gupta 57008
          setSuccess((Map<Long,StateInfo>)value);
10485 vikram.rag 57009
        }
57010
        break;
57011
 
57012
      }
57013
    }
57014
 
57015
    public Object getFieldValue(_Fields field) {
57016
      switch (field) {
57017
      case SUCCESS:
57018
        return getSuccess();
57019
 
57020
      }
57021
      throw new IllegalStateException();
57022
    }
57023
 
57024
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57025
    public boolean isSet(_Fields field) {
57026
      if (field == null) {
57027
        throw new IllegalArgumentException();
57028
      }
57029
 
57030
      switch (field) {
57031
      case SUCCESS:
57032
        return isSetSuccess();
57033
      }
57034
      throw new IllegalStateException();
57035
    }
57036
 
57037
    @Override
57038
    public boolean equals(Object that) {
57039
      if (that == null)
57040
        return false;
57041
      if (that instanceof getStateMaster_result)
57042
        return this.equals((getStateMaster_result)that);
57043
      return false;
57044
    }
57045
 
57046
    public boolean equals(getStateMaster_result that) {
57047
      if (that == null)
57048
        return false;
57049
 
57050
      boolean this_present_success = true && this.isSetSuccess();
57051
      boolean that_present_success = true && that.isSetSuccess();
57052
      if (this_present_success || that_present_success) {
57053
        if (!(this_present_success && that_present_success))
57054
          return false;
57055
        if (!this.success.equals(that.success))
57056
          return false;
57057
      }
57058
 
57059
      return true;
57060
    }
57061
 
57062
    @Override
57063
    public int hashCode() {
57064
      return 0;
57065
    }
57066
 
57067
    public int compareTo(getStateMaster_result other) {
57068
      if (!getClass().equals(other.getClass())) {
57069
        return getClass().getName().compareTo(other.getClass().getName());
57070
      }
57071
 
57072
      int lastComparison = 0;
57073
      getStateMaster_result typedOther = (getStateMaster_result)other;
57074
 
57075
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
57076
      if (lastComparison != 0) {
57077
        return lastComparison;
57078
      }
57079
      if (isSetSuccess()) {
57080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
57081
        if (lastComparison != 0) {
57082
          return lastComparison;
57083
        }
57084
      }
57085
      return 0;
57086
    }
57087
 
57088
    public _Fields fieldForId(int fieldId) {
57089
      return _Fields.findByThriftId(fieldId);
57090
    }
57091
 
57092
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57093
      org.apache.thrift.protocol.TField field;
57094
      iprot.readStructBegin();
57095
      while (true)
57096
      {
57097
        field = iprot.readFieldBegin();
57098
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57099
          break;
57100
        }
57101
        switch (field.id) {
57102
          case 0: // SUCCESS
57103
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
57104
              {
11173 vikram.rag 57105
                org.apache.thrift.protocol.TMap _map179 = iprot.readMapBegin();
12280 amit.gupta 57106
                this.success = new HashMap<Long,StateInfo>(2*_map179.size);
11173 vikram.rag 57107
                for (int _i180 = 0; _i180 < _map179.size; ++_i180)
10485 vikram.rag 57108
                {
11173 vikram.rag 57109
                  long _key181; // required
12280 amit.gupta 57110
                  StateInfo _val182; // required
11173 vikram.rag 57111
                  _key181 = iprot.readI64();
12280 amit.gupta 57112
                  _val182 = new StateInfo();
57113
                  _val182.read(iprot);
11173 vikram.rag 57114
                  this.success.put(_key181, _val182);
10485 vikram.rag 57115
                }
57116
                iprot.readMapEnd();
57117
              }
57118
            } else { 
57119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57120
            }
57121
            break;
57122
          default:
57123
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57124
        }
57125
        iprot.readFieldEnd();
57126
      }
57127
      iprot.readStructEnd();
57128
      validate();
57129
    }
57130
 
57131
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57132
      oprot.writeStructBegin(STRUCT_DESC);
57133
 
57134
      if (this.isSetSuccess()) {
57135
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57136
        {
12280 amit.gupta 57137
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57138
          for (Map.Entry<Long, StateInfo> _iter183 : this.success.entrySet())
10485 vikram.rag 57139
          {
11173 vikram.rag 57140
            oprot.writeI64(_iter183.getKey());
12280 amit.gupta 57141
            _iter183.getValue().write(oprot);
10485 vikram.rag 57142
          }
57143
          oprot.writeMapEnd();
57144
        }
57145
        oprot.writeFieldEnd();
57146
      }
57147
      oprot.writeFieldStop();
57148
      oprot.writeStructEnd();
57149
    }
57150
 
57151
    @Override
57152
    public String toString() {
57153
      StringBuilder sb = new StringBuilder("getStateMaster_result(");
57154
      boolean first = true;
57155
 
57156
      sb.append("success:");
57157
      if (this.success == null) {
57158
        sb.append("null");
57159
      } else {
57160
        sb.append(this.success);
57161
      }
57162
      first = false;
57163
      sb.append(")");
57164
      return sb.toString();
57165
    }
57166
 
57167
    public void validate() throws org.apache.thrift.TException {
57168
      // check for required fields
57169
    }
57170
 
57171
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57172
      try {
57173
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57174
      } catch (org.apache.thrift.TException te) {
57175
        throw new java.io.IOException(te);
57176
      }
57177
    }
57178
 
57179
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57180
      try {
57181
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57182
      } catch (org.apache.thrift.TException te) {
57183
        throw new java.io.IOException(te);
57184
      }
57185
    }
57186
 
57187
  }
57188
 
10546 vikram.rag 57189
  public static class updateSnapdealStockAtEOD_args implements org.apache.thrift.TBase<updateSnapdealStockAtEOD_args, updateSnapdealStockAtEOD_args._Fields>, java.io.Serializable, Cloneable   {
57190
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealStockAtEOD_args");
57191
 
57192
    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);
57193
 
57194
    private List<SnapdealStockAtEOD> allsnapdealstock; // required
57195
 
57196
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57197
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57198
      ALLSNAPDEALSTOCK((short)-1, "allsnapdealstock");
57199
 
57200
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57201
 
57202
      static {
57203
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57204
          byName.put(field.getFieldName(), field);
57205
        }
57206
      }
57207
 
57208
      /**
57209
       * Find the _Fields constant that matches fieldId, or null if its not found.
57210
       */
57211
      public static _Fields findByThriftId(int fieldId) {
57212
        switch(fieldId) {
57213
          case -1: // ALLSNAPDEALSTOCK
57214
            return ALLSNAPDEALSTOCK;
57215
          default:
57216
            return null;
57217
        }
57218
      }
57219
 
57220
      /**
57221
       * Find the _Fields constant that matches fieldId, throwing an exception
57222
       * if it is not found.
57223
       */
57224
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57225
        _Fields fields = findByThriftId(fieldId);
57226
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57227
        return fields;
57228
      }
57229
 
57230
      /**
57231
       * Find the _Fields constant that matches name, or null if its not found.
57232
       */
57233
      public static _Fields findByName(String name) {
57234
        return byName.get(name);
57235
      }
57236
 
57237
      private final short _thriftId;
57238
      private final String _fieldName;
57239
 
57240
      _Fields(short thriftId, String fieldName) {
57241
        _thriftId = thriftId;
57242
        _fieldName = fieldName;
57243
      }
57244
 
57245
      public short getThriftFieldId() {
57246
        return _thriftId;
57247
      }
57248
 
57249
      public String getFieldName() {
57250
        return _fieldName;
57251
      }
57252
    }
57253
 
57254
    // isset id assignments
57255
 
57256
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57257
    static {
57258
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57259
      tmpMap.put(_Fields.ALLSNAPDEALSTOCK, new org.apache.thrift.meta_data.FieldMetaData("allsnapdealstock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57260
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
57261
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealStockAtEOD.class))));
57262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealStockAtEOD_args.class, metaDataMap);
57264
    }
57265
 
57266
    public updateSnapdealStockAtEOD_args() {
57267
    }
57268
 
57269
    public updateSnapdealStockAtEOD_args(
57270
      List<SnapdealStockAtEOD> allsnapdealstock)
57271
    {
57272
      this();
57273
      this.allsnapdealstock = allsnapdealstock;
57274
    }
57275
 
57276
    /**
57277
     * Performs a deep copy on <i>other</i>.
57278
     */
57279
    public updateSnapdealStockAtEOD_args(updateSnapdealStockAtEOD_args other) {
57280
      if (other.isSetAllsnapdealstock()) {
57281
        List<SnapdealStockAtEOD> __this__allsnapdealstock = new ArrayList<SnapdealStockAtEOD>();
57282
        for (SnapdealStockAtEOD other_element : other.allsnapdealstock) {
57283
          __this__allsnapdealstock.add(new SnapdealStockAtEOD(other_element));
57284
        }
57285
        this.allsnapdealstock = __this__allsnapdealstock;
57286
      }
57287
    }
57288
 
57289
    public updateSnapdealStockAtEOD_args deepCopy() {
57290
      return new updateSnapdealStockAtEOD_args(this);
57291
    }
57292
 
57293
    @Override
57294
    public void clear() {
57295
      this.allsnapdealstock = null;
57296
    }
57297
 
57298
    public int getAllsnapdealstockSize() {
57299
      return (this.allsnapdealstock == null) ? 0 : this.allsnapdealstock.size();
57300
    }
57301
 
57302
    public java.util.Iterator<SnapdealStockAtEOD> getAllsnapdealstockIterator() {
57303
      return (this.allsnapdealstock == null) ? null : this.allsnapdealstock.iterator();
57304
    }
57305
 
57306
    public void addToAllsnapdealstock(SnapdealStockAtEOD elem) {
57307
      if (this.allsnapdealstock == null) {
57308
        this.allsnapdealstock = new ArrayList<SnapdealStockAtEOD>();
57309
      }
57310
      this.allsnapdealstock.add(elem);
57311
    }
57312
 
57313
    public List<SnapdealStockAtEOD> getAllsnapdealstock() {
57314
      return this.allsnapdealstock;
57315
    }
57316
 
57317
    public void setAllsnapdealstock(List<SnapdealStockAtEOD> allsnapdealstock) {
57318
      this.allsnapdealstock = allsnapdealstock;
57319
    }
57320
 
57321
    public void unsetAllsnapdealstock() {
57322
      this.allsnapdealstock = null;
57323
    }
57324
 
57325
    /** Returns true if field allsnapdealstock is set (has been assigned a value) and false otherwise */
57326
    public boolean isSetAllsnapdealstock() {
57327
      return this.allsnapdealstock != null;
57328
    }
57329
 
57330
    public void setAllsnapdealstockIsSet(boolean value) {
57331
      if (!value) {
57332
        this.allsnapdealstock = null;
57333
      }
57334
    }
57335
 
57336
    public void setFieldValue(_Fields field, Object value) {
57337
      switch (field) {
57338
      case ALLSNAPDEALSTOCK:
57339
        if (value == null) {
57340
          unsetAllsnapdealstock();
57341
        } else {
57342
          setAllsnapdealstock((List<SnapdealStockAtEOD>)value);
57343
        }
57344
        break;
57345
 
57346
      }
57347
    }
57348
 
57349
    public Object getFieldValue(_Fields field) {
57350
      switch (field) {
57351
      case ALLSNAPDEALSTOCK:
57352
        return getAllsnapdealstock();
57353
 
57354
      }
57355
      throw new IllegalStateException();
57356
    }
57357
 
57358
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57359
    public boolean isSet(_Fields field) {
57360
      if (field == null) {
57361
        throw new IllegalArgumentException();
57362
      }
57363
 
57364
      switch (field) {
57365
      case ALLSNAPDEALSTOCK:
57366
        return isSetAllsnapdealstock();
57367
      }
57368
      throw new IllegalStateException();
57369
    }
57370
 
57371
    @Override
57372
    public boolean equals(Object that) {
57373
      if (that == null)
57374
        return false;
57375
      if (that instanceof updateSnapdealStockAtEOD_args)
57376
        return this.equals((updateSnapdealStockAtEOD_args)that);
57377
      return false;
57378
    }
57379
 
57380
    public boolean equals(updateSnapdealStockAtEOD_args that) {
57381
      if (that == null)
57382
        return false;
57383
 
57384
      boolean this_present_allsnapdealstock = true && this.isSetAllsnapdealstock();
57385
      boolean that_present_allsnapdealstock = true && that.isSetAllsnapdealstock();
57386
      if (this_present_allsnapdealstock || that_present_allsnapdealstock) {
57387
        if (!(this_present_allsnapdealstock && that_present_allsnapdealstock))
57388
          return false;
57389
        if (!this.allsnapdealstock.equals(that.allsnapdealstock))
57390
          return false;
57391
      }
57392
 
57393
      return true;
57394
    }
57395
 
57396
    @Override
57397
    public int hashCode() {
57398
      return 0;
57399
    }
57400
 
57401
    public int compareTo(updateSnapdealStockAtEOD_args other) {
57402
      if (!getClass().equals(other.getClass())) {
57403
        return getClass().getName().compareTo(other.getClass().getName());
57404
      }
57405
 
57406
      int lastComparison = 0;
57407
      updateSnapdealStockAtEOD_args typedOther = (updateSnapdealStockAtEOD_args)other;
57408
 
57409
      lastComparison = Boolean.valueOf(isSetAllsnapdealstock()).compareTo(typedOther.isSetAllsnapdealstock());
57410
      if (lastComparison != 0) {
57411
        return lastComparison;
57412
      }
57413
      if (isSetAllsnapdealstock()) {
57414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allsnapdealstock, typedOther.allsnapdealstock);
57415
        if (lastComparison != 0) {
57416
          return lastComparison;
57417
        }
57418
      }
57419
      return 0;
57420
    }
57421
 
57422
    public _Fields fieldForId(int fieldId) {
57423
      return _Fields.findByThriftId(fieldId);
57424
    }
57425
 
57426
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57427
      org.apache.thrift.protocol.TField field;
57428
      iprot.readStructBegin();
57429
      while (true)
57430
      {
57431
        field = iprot.readFieldBegin();
57432
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57433
          break;
57434
        }
57435
        switch (field.id) {
57436
          case -1: // ALLSNAPDEALSTOCK
57437
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57438
              {
11173 vikram.rag 57439
                org.apache.thrift.protocol.TList _list184 = iprot.readListBegin();
57440
                this.allsnapdealstock = new ArrayList<SnapdealStockAtEOD>(_list184.size);
57441
                for (int _i185 = 0; _i185 < _list184.size; ++_i185)
10546 vikram.rag 57442
                {
11173 vikram.rag 57443
                  SnapdealStockAtEOD _elem186; // required
57444
                  _elem186 = new SnapdealStockAtEOD();
57445
                  _elem186.read(iprot);
57446
                  this.allsnapdealstock.add(_elem186);
10546 vikram.rag 57447
                }
57448
                iprot.readListEnd();
57449
              }
57450
            } else { 
57451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57452
            }
57453
            break;
57454
          default:
57455
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57456
        }
57457
        iprot.readFieldEnd();
57458
      }
57459
      iprot.readStructEnd();
57460
      validate();
57461
    }
57462
 
57463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57464
      validate();
57465
 
57466
      oprot.writeStructBegin(STRUCT_DESC);
57467
      if (this.allsnapdealstock != null) {
57468
        oprot.writeFieldBegin(ALLSNAPDEALSTOCK_FIELD_DESC);
57469
        {
57470
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allsnapdealstock.size()));
11173 vikram.rag 57471
          for (SnapdealStockAtEOD _iter187 : this.allsnapdealstock)
10546 vikram.rag 57472
          {
11173 vikram.rag 57473
            _iter187.write(oprot);
10546 vikram.rag 57474
          }
57475
          oprot.writeListEnd();
57476
        }
57477
        oprot.writeFieldEnd();
57478
      }
57479
      oprot.writeFieldStop();
57480
      oprot.writeStructEnd();
57481
    }
57482
 
57483
    @Override
57484
    public String toString() {
57485
      StringBuilder sb = new StringBuilder("updateSnapdealStockAtEOD_args(");
57486
      boolean first = true;
57487
 
57488
      sb.append("allsnapdealstock:");
57489
      if (this.allsnapdealstock == null) {
57490
        sb.append("null");
57491
      } else {
57492
        sb.append(this.allsnapdealstock);
57493
      }
57494
      first = false;
57495
      sb.append(")");
57496
      return sb.toString();
57497
    }
57498
 
57499
    public void validate() throws org.apache.thrift.TException {
57500
      // check for required fields
57501
    }
57502
 
57503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57504
      try {
57505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57506
      } catch (org.apache.thrift.TException te) {
57507
        throw new java.io.IOException(te);
57508
      }
57509
    }
57510
 
57511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57512
      try {
57513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57514
      } catch (org.apache.thrift.TException te) {
57515
        throw new java.io.IOException(te);
57516
      }
57517
    }
57518
 
57519
  }
57520
 
57521
  public static class updateSnapdealStockAtEOD_result implements org.apache.thrift.TBase<updateSnapdealStockAtEOD_result, updateSnapdealStockAtEOD_result._Fields>, java.io.Serializable, Cloneable   {
57522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealStockAtEOD_result");
57523
 
57524
 
57525
 
57526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57528
;
57529
 
57530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57531
 
57532
      static {
57533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57534
          byName.put(field.getFieldName(), field);
57535
        }
57536
      }
57537
 
57538
      /**
57539
       * Find the _Fields constant that matches fieldId, or null if its not found.
57540
       */
57541
      public static _Fields findByThriftId(int fieldId) {
57542
        switch(fieldId) {
57543
          default:
57544
            return null;
57545
        }
57546
      }
57547
 
57548
      /**
57549
       * Find the _Fields constant that matches fieldId, throwing an exception
57550
       * if it is not found.
57551
       */
57552
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57553
        _Fields fields = findByThriftId(fieldId);
57554
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57555
        return fields;
57556
      }
57557
 
57558
      /**
57559
       * Find the _Fields constant that matches name, or null if its not found.
57560
       */
57561
      public static _Fields findByName(String name) {
57562
        return byName.get(name);
57563
      }
57564
 
57565
      private final short _thriftId;
57566
      private final String _fieldName;
57567
 
57568
      _Fields(short thriftId, String fieldName) {
57569
        _thriftId = thriftId;
57570
        _fieldName = fieldName;
57571
      }
57572
 
57573
      public short getThriftFieldId() {
57574
        return _thriftId;
57575
      }
57576
 
57577
      public String getFieldName() {
57578
        return _fieldName;
57579
      }
57580
    }
57581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57582
    static {
57583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57584
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57585
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealStockAtEOD_result.class, metaDataMap);
57586
    }
57587
 
57588
    public updateSnapdealStockAtEOD_result() {
57589
    }
57590
 
57591
    /**
57592
     * Performs a deep copy on <i>other</i>.
57593
     */
57594
    public updateSnapdealStockAtEOD_result(updateSnapdealStockAtEOD_result other) {
57595
    }
57596
 
57597
    public updateSnapdealStockAtEOD_result deepCopy() {
57598
      return new updateSnapdealStockAtEOD_result(this);
57599
    }
57600
 
57601
    @Override
57602
    public void clear() {
57603
    }
57604
 
57605
    public void setFieldValue(_Fields field, Object value) {
57606
      switch (field) {
57607
      }
57608
    }
57609
 
57610
    public Object getFieldValue(_Fields field) {
57611
      switch (field) {
57612
      }
57613
      throw new IllegalStateException();
57614
    }
57615
 
57616
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57617
    public boolean isSet(_Fields field) {
57618
      if (field == null) {
57619
        throw new IllegalArgumentException();
57620
      }
57621
 
57622
      switch (field) {
57623
      }
57624
      throw new IllegalStateException();
57625
    }
57626
 
57627
    @Override
57628
    public boolean equals(Object that) {
57629
      if (that == null)
57630
        return false;
57631
      if (that instanceof updateSnapdealStockAtEOD_result)
57632
        return this.equals((updateSnapdealStockAtEOD_result)that);
57633
      return false;
57634
    }
57635
 
57636
    public boolean equals(updateSnapdealStockAtEOD_result that) {
57637
      if (that == null)
57638
        return false;
57639
 
57640
      return true;
57641
    }
57642
 
57643
    @Override
57644
    public int hashCode() {
57645
      return 0;
57646
    }
57647
 
57648
    public int compareTo(updateSnapdealStockAtEOD_result other) {
57649
      if (!getClass().equals(other.getClass())) {
57650
        return getClass().getName().compareTo(other.getClass().getName());
57651
      }
57652
 
57653
      int lastComparison = 0;
57654
      updateSnapdealStockAtEOD_result typedOther = (updateSnapdealStockAtEOD_result)other;
57655
 
57656
      return 0;
57657
    }
57658
 
57659
    public _Fields fieldForId(int fieldId) {
57660
      return _Fields.findByThriftId(fieldId);
57661
    }
57662
 
57663
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57664
      org.apache.thrift.protocol.TField field;
57665
      iprot.readStructBegin();
57666
      while (true)
57667
      {
57668
        field = iprot.readFieldBegin();
57669
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57670
          break;
57671
        }
57672
        switch (field.id) {
57673
          default:
57674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57675
        }
57676
        iprot.readFieldEnd();
57677
      }
57678
      iprot.readStructEnd();
57679
      validate();
57680
    }
57681
 
57682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57683
      oprot.writeStructBegin(STRUCT_DESC);
57684
 
57685
      oprot.writeFieldStop();
57686
      oprot.writeStructEnd();
57687
    }
57688
 
57689
    @Override
57690
    public String toString() {
57691
      StringBuilder sb = new StringBuilder("updateSnapdealStockAtEOD_result(");
57692
      boolean first = true;
57693
 
57694
      sb.append(")");
57695
      return sb.toString();
57696
    }
57697
 
57698
    public void validate() throws org.apache.thrift.TException {
57699
      // check for required fields
57700
    }
57701
 
57702
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57703
      try {
57704
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
57705
      } catch (org.apache.thrift.TException te) {
57706
        throw new java.io.IOException(te);
57707
      }
57708
    }
57709
 
57710
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57711
      try {
57712
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57713
      } catch (org.apache.thrift.TException te) {
57714
        throw new java.io.IOException(te);
57715
      }
57716
    }
57717
 
57718
  }
57719
 
57720
  public static class updateFlipkartStockAtEOD_args implements org.apache.thrift.TBase<updateFlipkartStockAtEOD_args, updateFlipkartStockAtEOD_args._Fields>, java.io.Serializable, Cloneable   {
57721
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartStockAtEOD_args");
57722
 
57723
    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);
57724
 
57725
    private List<FlipkartStockAtEOD> allflipkartstock; // required
57726
 
57727
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57728
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57729
      ALLFLIPKARTSTOCK((short)-1, "allflipkartstock");
57730
 
57731
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57732
 
57733
      static {
57734
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
57735
          byName.put(field.getFieldName(), field);
57736
        }
57737
      }
57738
 
57739
      /**
57740
       * Find the _Fields constant that matches fieldId, or null if its not found.
57741
       */
57742
      public static _Fields findByThriftId(int fieldId) {
57743
        switch(fieldId) {
57744
          case -1: // ALLFLIPKARTSTOCK
57745
            return ALLFLIPKARTSTOCK;
57746
          default:
57747
            return null;
57748
        }
57749
      }
57750
 
57751
      /**
57752
       * Find the _Fields constant that matches fieldId, throwing an exception
57753
       * if it is not found.
57754
       */
57755
      public static _Fields findByThriftIdOrThrow(int fieldId) {
57756
        _Fields fields = findByThriftId(fieldId);
57757
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
57758
        return fields;
57759
      }
57760
 
57761
      /**
57762
       * Find the _Fields constant that matches name, or null if its not found.
57763
       */
57764
      public static _Fields findByName(String name) {
57765
        return byName.get(name);
57766
      }
57767
 
57768
      private final short _thriftId;
57769
      private final String _fieldName;
57770
 
57771
      _Fields(short thriftId, String fieldName) {
57772
        _thriftId = thriftId;
57773
        _fieldName = fieldName;
57774
      }
57775
 
57776
      public short getThriftFieldId() {
57777
        return _thriftId;
57778
      }
57779
 
57780
      public String getFieldName() {
57781
        return _fieldName;
57782
      }
57783
    }
57784
 
57785
    // isset id assignments
57786
 
57787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
57788
    static {
57789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
57790
      tmpMap.put(_Fields.ALLFLIPKARTSTOCK, new org.apache.thrift.meta_data.FieldMetaData("allflipkartstock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
57791
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
57792
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartStockAtEOD.class))));
57793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
57794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartStockAtEOD_args.class, metaDataMap);
57795
    }
57796
 
57797
    public updateFlipkartStockAtEOD_args() {
57798
    }
57799
 
57800
    public updateFlipkartStockAtEOD_args(
57801
      List<FlipkartStockAtEOD> allflipkartstock)
57802
    {
57803
      this();
57804
      this.allflipkartstock = allflipkartstock;
57805
    }
57806
 
57807
    /**
57808
     * Performs a deep copy on <i>other</i>.
57809
     */
57810
    public updateFlipkartStockAtEOD_args(updateFlipkartStockAtEOD_args other) {
57811
      if (other.isSetAllflipkartstock()) {
57812
        List<FlipkartStockAtEOD> __this__allflipkartstock = new ArrayList<FlipkartStockAtEOD>();
57813
        for (FlipkartStockAtEOD other_element : other.allflipkartstock) {
57814
          __this__allflipkartstock.add(new FlipkartStockAtEOD(other_element));
57815
        }
57816
        this.allflipkartstock = __this__allflipkartstock;
57817
      }
57818
    }
57819
 
57820
    public updateFlipkartStockAtEOD_args deepCopy() {
57821
      return new updateFlipkartStockAtEOD_args(this);
57822
    }
57823
 
57824
    @Override
57825
    public void clear() {
57826
      this.allflipkartstock = null;
57827
    }
57828
 
57829
    public int getAllflipkartstockSize() {
57830
      return (this.allflipkartstock == null) ? 0 : this.allflipkartstock.size();
57831
    }
57832
 
57833
    public java.util.Iterator<FlipkartStockAtEOD> getAllflipkartstockIterator() {
57834
      return (this.allflipkartstock == null) ? null : this.allflipkartstock.iterator();
57835
    }
57836
 
57837
    public void addToAllflipkartstock(FlipkartStockAtEOD elem) {
57838
      if (this.allflipkartstock == null) {
57839
        this.allflipkartstock = new ArrayList<FlipkartStockAtEOD>();
57840
      }
57841
      this.allflipkartstock.add(elem);
57842
    }
57843
 
57844
    public List<FlipkartStockAtEOD> getAllflipkartstock() {
57845
      return this.allflipkartstock;
57846
    }
57847
 
57848
    public void setAllflipkartstock(List<FlipkartStockAtEOD> allflipkartstock) {
57849
      this.allflipkartstock = allflipkartstock;
57850
    }
57851
 
57852
    public void unsetAllflipkartstock() {
57853
      this.allflipkartstock = null;
57854
    }
57855
 
57856
    /** Returns true if field allflipkartstock is set (has been assigned a value) and false otherwise */
57857
    public boolean isSetAllflipkartstock() {
57858
      return this.allflipkartstock != null;
57859
    }
57860
 
57861
    public void setAllflipkartstockIsSet(boolean value) {
57862
      if (!value) {
57863
        this.allflipkartstock = null;
57864
      }
57865
    }
57866
 
57867
    public void setFieldValue(_Fields field, Object value) {
57868
      switch (field) {
57869
      case ALLFLIPKARTSTOCK:
57870
        if (value == null) {
57871
          unsetAllflipkartstock();
57872
        } else {
57873
          setAllflipkartstock((List<FlipkartStockAtEOD>)value);
57874
        }
57875
        break;
57876
 
57877
      }
57878
    }
57879
 
57880
    public Object getFieldValue(_Fields field) {
57881
      switch (field) {
57882
      case ALLFLIPKARTSTOCK:
57883
        return getAllflipkartstock();
57884
 
57885
      }
57886
      throw new IllegalStateException();
57887
    }
57888
 
57889
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
57890
    public boolean isSet(_Fields field) {
57891
      if (field == null) {
57892
        throw new IllegalArgumentException();
57893
      }
57894
 
57895
      switch (field) {
57896
      case ALLFLIPKARTSTOCK:
57897
        return isSetAllflipkartstock();
57898
      }
57899
      throw new IllegalStateException();
57900
    }
57901
 
57902
    @Override
57903
    public boolean equals(Object that) {
57904
      if (that == null)
57905
        return false;
57906
      if (that instanceof updateFlipkartStockAtEOD_args)
57907
        return this.equals((updateFlipkartStockAtEOD_args)that);
57908
      return false;
57909
    }
57910
 
57911
    public boolean equals(updateFlipkartStockAtEOD_args that) {
57912
      if (that == null)
57913
        return false;
57914
 
57915
      boolean this_present_allflipkartstock = true && this.isSetAllflipkartstock();
57916
      boolean that_present_allflipkartstock = true && that.isSetAllflipkartstock();
57917
      if (this_present_allflipkartstock || that_present_allflipkartstock) {
57918
        if (!(this_present_allflipkartstock && that_present_allflipkartstock))
57919
          return false;
57920
        if (!this.allflipkartstock.equals(that.allflipkartstock))
57921
          return false;
57922
      }
57923
 
57924
      return true;
57925
    }
57926
 
57927
    @Override
57928
    public int hashCode() {
57929
      return 0;
57930
    }
57931
 
57932
    public int compareTo(updateFlipkartStockAtEOD_args other) {
57933
      if (!getClass().equals(other.getClass())) {
57934
        return getClass().getName().compareTo(other.getClass().getName());
57935
      }
57936
 
57937
      int lastComparison = 0;
57938
      updateFlipkartStockAtEOD_args typedOther = (updateFlipkartStockAtEOD_args)other;
57939
 
57940
      lastComparison = Boolean.valueOf(isSetAllflipkartstock()).compareTo(typedOther.isSetAllflipkartstock());
57941
      if (lastComparison != 0) {
57942
        return lastComparison;
57943
      }
57944
      if (isSetAllflipkartstock()) {
57945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allflipkartstock, typedOther.allflipkartstock);
57946
        if (lastComparison != 0) {
57947
          return lastComparison;
57948
        }
57949
      }
57950
      return 0;
57951
    }
57952
 
57953
    public _Fields fieldForId(int fieldId) {
57954
      return _Fields.findByThriftId(fieldId);
57955
    }
57956
 
57957
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
57958
      org.apache.thrift.protocol.TField field;
57959
      iprot.readStructBegin();
57960
      while (true)
57961
      {
57962
        field = iprot.readFieldBegin();
57963
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
57964
          break;
57965
        }
57966
        switch (field.id) {
57967
          case -1: // ALLFLIPKARTSTOCK
57968
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57969
              {
11173 vikram.rag 57970
                org.apache.thrift.protocol.TList _list188 = iprot.readListBegin();
57971
                this.allflipkartstock = new ArrayList<FlipkartStockAtEOD>(_list188.size);
57972
                for (int _i189 = 0; _i189 < _list188.size; ++_i189)
10546 vikram.rag 57973
                {
11173 vikram.rag 57974
                  FlipkartStockAtEOD _elem190; // required
57975
                  _elem190 = new FlipkartStockAtEOD();
57976
                  _elem190.read(iprot);
57977
                  this.allflipkartstock.add(_elem190);
10546 vikram.rag 57978
                }
57979
                iprot.readListEnd();
57980
              }
57981
            } else { 
57982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57983
            }
57984
            break;
57985
          default:
57986
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
57987
        }
57988
        iprot.readFieldEnd();
57989
      }
57990
      iprot.readStructEnd();
57991
      validate();
57992
    }
57993
 
57994
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
57995
      validate();
57996
 
57997
      oprot.writeStructBegin(STRUCT_DESC);
57998
      if (this.allflipkartstock != null) {
57999
        oprot.writeFieldBegin(ALLFLIPKARTSTOCK_FIELD_DESC);
58000
        {
58001
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allflipkartstock.size()));
11173 vikram.rag 58002
          for (FlipkartStockAtEOD _iter191 : this.allflipkartstock)
10546 vikram.rag 58003
          {
11173 vikram.rag 58004
            _iter191.write(oprot);
10546 vikram.rag 58005
          }
58006
          oprot.writeListEnd();
58007
        }
58008
        oprot.writeFieldEnd();
58009
      }
58010
      oprot.writeFieldStop();
58011
      oprot.writeStructEnd();
58012
    }
58013
 
58014
    @Override
58015
    public String toString() {
58016
      StringBuilder sb = new StringBuilder("updateFlipkartStockAtEOD_args(");
58017
      boolean first = true;
58018
 
58019
      sb.append("allflipkartstock:");
58020
      if (this.allflipkartstock == null) {
58021
        sb.append("null");
58022
      } else {
58023
        sb.append(this.allflipkartstock);
58024
      }
58025
      first = false;
58026
      sb.append(")");
58027
      return sb.toString();
58028
    }
58029
 
58030
    public void validate() throws org.apache.thrift.TException {
58031
      // check for required fields
58032
    }
58033
 
58034
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
58035
      try {
58036
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
58037
      } catch (org.apache.thrift.TException te) {
58038
        throw new java.io.IOException(te);
58039
      }
58040
    }
58041
 
58042
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58043
      try {
58044
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58045
      } catch (org.apache.thrift.TException te) {
58046
        throw new java.io.IOException(te);
58047
      }
58048
    }
58049
 
58050
  }
58051
 
58052
  public static class updateFlipkartStockAtEOD_result implements org.apache.thrift.TBase<updateFlipkartStockAtEOD_result, updateFlipkartStockAtEOD_result._Fields>, java.io.Serializable, Cloneable   {
58053
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartStockAtEOD_result");
58054
 
58055
 
58056
 
58057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58059
;
58060
 
58061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58062
 
58063
      static {
58064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58065
          byName.put(field.getFieldName(), field);
58066
        }
58067
      }
58068
 
58069
      /**
58070
       * Find the _Fields constant that matches fieldId, or null if its not found.
58071
       */
58072
      public static _Fields findByThriftId(int fieldId) {
58073
        switch(fieldId) {
58074
          default:
58075
            return null;
58076
        }
58077
      }
58078
 
58079
      /**
58080
       * Find the _Fields constant that matches fieldId, throwing an exception
58081
       * if it is not found.
58082
       */
58083
      public static _Fields findByThriftIdOrThrow(int fieldId) {
58084
        _Fields fields = findByThriftId(fieldId);
58085
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
58086
        return fields;
58087
      }
58088
 
58089
      /**
58090
       * Find the _Fields constant that matches name, or null if its not found.
58091
       */
58092
      public static _Fields findByName(String name) {
58093
        return byName.get(name);
58094
      }
58095
 
58096
      private final short _thriftId;
58097
      private final String _fieldName;
58098
 
58099
      _Fields(short thriftId, String fieldName) {
58100
        _thriftId = thriftId;
58101
        _fieldName = fieldName;
58102
      }
58103
 
58104
      public short getThriftFieldId() {
58105
        return _thriftId;
58106
      }
58107
 
58108
      public String getFieldName() {
58109
        return _fieldName;
58110
      }
58111
    }
58112
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58113
    static {
58114
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartStockAtEOD_result.class, metaDataMap);
58117
    }
58118
 
58119
    public updateFlipkartStockAtEOD_result() {
58120
    }
58121
 
58122
    /**
58123
     * Performs a deep copy on <i>other</i>.
58124
     */
58125
    public updateFlipkartStockAtEOD_result(updateFlipkartStockAtEOD_result other) {
58126
    }
58127
 
58128
    public updateFlipkartStockAtEOD_result deepCopy() {
58129
      return new updateFlipkartStockAtEOD_result(this);
58130
    }
58131
 
58132
    @Override
58133
    public void clear() {
58134
    }
58135
 
58136
    public void setFieldValue(_Fields field, Object value) {
58137
      switch (field) {
58138
      }
58139
    }
58140
 
58141
    public Object getFieldValue(_Fields field) {
58142
      switch (field) {
58143
      }
58144
      throw new IllegalStateException();
58145
    }
58146
 
58147
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
58148
    public boolean isSet(_Fields field) {
58149
      if (field == null) {
58150
        throw new IllegalArgumentException();
58151
      }
58152
 
58153
      switch (field) {
58154
      }
58155
      throw new IllegalStateException();
58156
    }
58157
 
58158
    @Override
58159
    public boolean equals(Object that) {
58160
      if (that == null)
58161
        return false;
58162
      if (that instanceof updateFlipkartStockAtEOD_result)
58163
        return this.equals((updateFlipkartStockAtEOD_result)that);
58164
      return false;
58165
    }
58166
 
58167
    public boolean equals(updateFlipkartStockAtEOD_result that) {
58168
      if (that == null)
58169
        return false;
58170
 
58171
      return true;
58172
    }
58173
 
58174
    @Override
58175
    public int hashCode() {
58176
      return 0;
58177
    }
58178
 
58179
    public int compareTo(updateFlipkartStockAtEOD_result other) {
58180
      if (!getClass().equals(other.getClass())) {
58181
        return getClass().getName().compareTo(other.getClass().getName());
58182
      }
58183
 
58184
      int lastComparison = 0;
58185
      updateFlipkartStockAtEOD_result typedOther = (updateFlipkartStockAtEOD_result)other;
58186
 
58187
      return 0;
58188
    }
58189
 
58190
    public _Fields fieldForId(int fieldId) {
58191
      return _Fields.findByThriftId(fieldId);
58192
    }
58193
 
58194
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
58195
      org.apache.thrift.protocol.TField field;
58196
      iprot.readStructBegin();
58197
      while (true)
58198
      {
58199
        field = iprot.readFieldBegin();
58200
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58201
          break;
58202
        }
58203
        switch (field.id) {
58204
          default:
58205
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58206
        }
58207
        iprot.readFieldEnd();
58208
      }
58209
      iprot.readStructEnd();
58210
      validate();
58211
    }
58212
 
58213
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58214
      oprot.writeStructBegin(STRUCT_DESC);
58215
 
58216
      oprot.writeFieldStop();
58217
      oprot.writeStructEnd();
58218
    }
58219
 
58220
    @Override
58221
    public String toString() {
58222
      StringBuilder sb = new StringBuilder("updateFlipkartStockAtEOD_result(");
58223
      boolean first = true;
58224
 
58225
      sb.append(")");
58226
      return sb.toString();
58227
    }
58228
 
58229
    public void validate() throws org.apache.thrift.TException {
58230
      // check for required fields
58231
    }
58232
 
58233
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
58234
      try {
58235
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
58236
      } catch (org.apache.thrift.TException te) {
58237
        throw new java.io.IOException(te);
58238
      }
58239
    }
58240
 
58241
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58242
      try {
58243
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58244
      } catch (org.apache.thrift.TException te) {
58245
        throw new java.io.IOException(te);
58246
      }
58247
    }
58248
 
58249
  }
58250
 
12363 kshitij.so 58251
  public static class getWanNlcForSource_args implements org.apache.thrift.TBase<getWanNlcForSource_args, getWanNlcForSource_args._Fields>, java.io.Serializable, Cloneable   {
58252
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWanNlcForSource_args");
58253
 
58254
    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);
58255
    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)2);
58256
 
58257
    private long item_id; // required
58258
    private long source; // required
58259
 
58260
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58261
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58262
      ITEM_ID((short)1, "item_id"),
58263
      SOURCE((short)2, "source");
58264
 
58265
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58266
 
58267
      static {
58268
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58269
          byName.put(field.getFieldName(), field);
58270
        }
58271
      }
58272
 
58273
      /**
58274
       * Find the _Fields constant that matches fieldId, or null if its not found.
58275
       */
58276
      public static _Fields findByThriftId(int fieldId) {
58277
        switch(fieldId) {
58278
          case 1: // ITEM_ID
58279
            return ITEM_ID;
58280
          case 2: // SOURCE
58281
            return SOURCE;
58282
          default:
58283
            return null;
58284
        }
58285
      }
58286
 
58287
      /**
58288
       * Find the _Fields constant that matches fieldId, throwing an exception
58289
       * if it is not found.
58290
       */
58291
      public static _Fields findByThriftIdOrThrow(int fieldId) {
58292
        _Fields fields = findByThriftId(fieldId);
58293
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
58294
        return fields;
58295
      }
58296
 
58297
      /**
58298
       * Find the _Fields constant that matches name, or null if its not found.
58299
       */
58300
      public static _Fields findByName(String name) {
58301
        return byName.get(name);
58302
      }
58303
 
58304
      private final short _thriftId;
58305
      private final String _fieldName;
58306
 
58307
      _Fields(short thriftId, String fieldName) {
58308
        _thriftId = thriftId;
58309
        _fieldName = fieldName;
58310
      }
58311
 
58312
      public short getThriftFieldId() {
58313
        return _thriftId;
58314
      }
58315
 
58316
      public String getFieldName() {
58317
        return _fieldName;
58318
      }
58319
    }
58320
 
58321
    // isset id assignments
58322
    private static final int __ITEM_ID_ISSET_ID = 0;
58323
    private static final int __SOURCE_ISSET_ID = 1;
58324
    private BitSet __isset_bit_vector = new BitSet(2);
58325
 
58326
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58327
    static {
58328
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58329
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58330
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
58331
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58332
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
58333
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58334
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWanNlcForSource_args.class, metaDataMap);
58335
    }
58336
 
58337
    public getWanNlcForSource_args() {
58338
    }
58339
 
58340
    public getWanNlcForSource_args(
58341
      long item_id,
58342
      long source)
58343
    {
58344
      this();
58345
      this.item_id = item_id;
58346
      setItem_idIsSet(true);
58347
      this.source = source;
58348
      setSourceIsSet(true);
58349
    }
58350
 
58351
    /**
58352
     * Performs a deep copy on <i>other</i>.
58353
     */
58354
    public getWanNlcForSource_args(getWanNlcForSource_args other) {
58355
      __isset_bit_vector.clear();
58356
      __isset_bit_vector.or(other.__isset_bit_vector);
58357
      this.item_id = other.item_id;
58358
      this.source = other.source;
58359
    }
58360
 
58361
    public getWanNlcForSource_args deepCopy() {
58362
      return new getWanNlcForSource_args(this);
58363
    }
58364
 
58365
    @Override
58366
    public void clear() {
58367
      setItem_idIsSet(false);
58368
      this.item_id = 0;
58369
      setSourceIsSet(false);
58370
      this.source = 0;
58371
    }
58372
 
58373
    public long getItem_id() {
58374
      return this.item_id;
58375
    }
58376
 
58377
    public void setItem_id(long item_id) {
58378
      this.item_id = item_id;
58379
      setItem_idIsSet(true);
58380
    }
58381
 
58382
    public void unsetItem_id() {
58383
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
58384
    }
58385
 
58386
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
58387
    public boolean isSetItem_id() {
58388
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
58389
    }
58390
 
58391
    public void setItem_idIsSet(boolean value) {
58392
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
58393
    }
58394
 
58395
    public long getSource() {
58396
      return this.source;
58397
    }
58398
 
58399
    public void setSource(long source) {
58400
      this.source = source;
58401
      setSourceIsSet(true);
58402
    }
58403
 
58404
    public void unsetSource() {
58405
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
58406
    }
58407
 
58408
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
58409
    public boolean isSetSource() {
58410
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
58411
    }
58412
 
58413
    public void setSourceIsSet(boolean value) {
58414
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
58415
    }
58416
 
58417
    public void setFieldValue(_Fields field, Object value) {
58418
      switch (field) {
58419
      case ITEM_ID:
58420
        if (value == null) {
58421
          unsetItem_id();
58422
        } else {
58423
          setItem_id((Long)value);
58424
        }
58425
        break;
58426
 
58427
      case SOURCE:
58428
        if (value == null) {
58429
          unsetSource();
58430
        } else {
58431
          setSource((Long)value);
58432
        }
58433
        break;
58434
 
58435
      }
58436
    }
58437
 
58438
    public Object getFieldValue(_Fields field) {
58439
      switch (field) {
58440
      case ITEM_ID:
58441
        return Long.valueOf(getItem_id());
58442
 
58443
      case SOURCE:
58444
        return Long.valueOf(getSource());
58445
 
58446
      }
58447
      throw new IllegalStateException();
58448
    }
58449
 
58450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
58451
    public boolean isSet(_Fields field) {
58452
      if (field == null) {
58453
        throw new IllegalArgumentException();
58454
      }
58455
 
58456
      switch (field) {
58457
      case ITEM_ID:
58458
        return isSetItem_id();
58459
      case SOURCE:
58460
        return isSetSource();
58461
      }
58462
      throw new IllegalStateException();
58463
    }
58464
 
58465
    @Override
58466
    public boolean equals(Object that) {
58467
      if (that == null)
58468
        return false;
58469
      if (that instanceof getWanNlcForSource_args)
58470
        return this.equals((getWanNlcForSource_args)that);
58471
      return false;
58472
    }
58473
 
58474
    public boolean equals(getWanNlcForSource_args that) {
58475
      if (that == null)
58476
        return false;
58477
 
58478
      boolean this_present_item_id = true;
58479
      boolean that_present_item_id = true;
58480
      if (this_present_item_id || that_present_item_id) {
58481
        if (!(this_present_item_id && that_present_item_id))
58482
          return false;
58483
        if (this.item_id != that.item_id)
58484
          return false;
58485
      }
58486
 
58487
      boolean this_present_source = true;
58488
      boolean that_present_source = true;
58489
      if (this_present_source || that_present_source) {
58490
        if (!(this_present_source && that_present_source))
58491
          return false;
58492
        if (this.source != that.source)
58493
          return false;
58494
      }
58495
 
58496
      return true;
58497
    }
58498
 
58499
    @Override
58500
    public int hashCode() {
58501
      return 0;
58502
    }
58503
 
58504
    public int compareTo(getWanNlcForSource_args other) {
58505
      if (!getClass().equals(other.getClass())) {
58506
        return getClass().getName().compareTo(other.getClass().getName());
58507
      }
58508
 
58509
      int lastComparison = 0;
58510
      getWanNlcForSource_args typedOther = (getWanNlcForSource_args)other;
58511
 
58512
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
58513
      if (lastComparison != 0) {
58514
        return lastComparison;
58515
      }
58516
      if (isSetItem_id()) {
58517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
58518
        if (lastComparison != 0) {
58519
          return lastComparison;
58520
        }
58521
      }
58522
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
58523
      if (lastComparison != 0) {
58524
        return lastComparison;
58525
      }
58526
      if (isSetSource()) {
58527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
58528
        if (lastComparison != 0) {
58529
          return lastComparison;
58530
        }
58531
      }
58532
      return 0;
58533
    }
58534
 
58535
    public _Fields fieldForId(int fieldId) {
58536
      return _Fields.findByThriftId(fieldId);
58537
    }
58538
 
58539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
58540
      org.apache.thrift.protocol.TField field;
58541
      iprot.readStructBegin();
58542
      while (true)
58543
      {
58544
        field = iprot.readFieldBegin();
58545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58546
          break;
58547
        }
58548
        switch (field.id) {
58549
          case 1: // ITEM_ID
58550
            if (field.type == org.apache.thrift.protocol.TType.I64) {
58551
              this.item_id = iprot.readI64();
58552
              setItem_idIsSet(true);
58553
            } else { 
58554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58555
            }
58556
            break;
58557
          case 2: // SOURCE
58558
            if (field.type == org.apache.thrift.protocol.TType.I64) {
58559
              this.source = iprot.readI64();
58560
              setSourceIsSet(true);
58561
            } else { 
58562
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58563
            }
58564
            break;
58565
          default:
58566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58567
        }
58568
        iprot.readFieldEnd();
58569
      }
58570
      iprot.readStructEnd();
58571
      validate();
58572
    }
58573
 
58574
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58575
      validate();
58576
 
58577
      oprot.writeStructBegin(STRUCT_DESC);
58578
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
58579
      oprot.writeI64(this.item_id);
58580
      oprot.writeFieldEnd();
58581
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
58582
      oprot.writeI64(this.source);
58583
      oprot.writeFieldEnd();
58584
      oprot.writeFieldStop();
58585
      oprot.writeStructEnd();
58586
    }
58587
 
58588
    @Override
58589
    public String toString() {
58590
      StringBuilder sb = new StringBuilder("getWanNlcForSource_args(");
58591
      boolean first = true;
58592
 
58593
      sb.append("item_id:");
58594
      sb.append(this.item_id);
58595
      first = false;
58596
      if (!first) sb.append(", ");
58597
      sb.append("source:");
58598
      sb.append(this.source);
58599
      first = false;
58600
      sb.append(")");
58601
      return sb.toString();
58602
    }
58603
 
58604
    public void validate() throws org.apache.thrift.TException {
58605
      // check for required fields
58606
    }
58607
 
58608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
58609
      try {
58610
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
58611
      } catch (org.apache.thrift.TException te) {
58612
        throw new java.io.IOException(te);
58613
      }
58614
    }
58615
 
58616
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58617
      try {
58618
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
58619
        __isset_bit_vector = new BitSet(1);
58620
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58621
      } catch (org.apache.thrift.TException te) {
58622
        throw new java.io.IOException(te);
58623
      }
58624
    }
58625
 
58626
  }
58627
 
58628
  public static class getWanNlcForSource_result implements org.apache.thrift.TBase<getWanNlcForSource_result, getWanNlcForSource_result._Fields>, java.io.Serializable, Cloneable   {
58629
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWanNlcForSource_result");
58630
 
58631
    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);
58632
 
58633
    private double success; // required
58634
 
58635
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58636
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58637
      SUCCESS((short)0, "success");
58638
 
58639
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58640
 
58641
      static {
58642
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58643
          byName.put(field.getFieldName(), field);
58644
        }
58645
      }
58646
 
58647
      /**
58648
       * Find the _Fields constant that matches fieldId, or null if its not found.
58649
       */
58650
      public static _Fields findByThriftId(int fieldId) {
58651
        switch(fieldId) {
58652
          case 0: // SUCCESS
58653
            return SUCCESS;
58654
          default:
58655
            return null;
58656
        }
58657
      }
58658
 
58659
      /**
58660
       * Find the _Fields constant that matches fieldId, throwing an exception
58661
       * if it is not found.
58662
       */
58663
      public static _Fields findByThriftIdOrThrow(int fieldId) {
58664
        _Fields fields = findByThriftId(fieldId);
58665
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
58666
        return fields;
58667
      }
58668
 
58669
      /**
58670
       * Find the _Fields constant that matches name, or null if its not found.
58671
       */
58672
      public static _Fields findByName(String name) {
58673
        return byName.get(name);
58674
      }
58675
 
58676
      private final short _thriftId;
58677
      private final String _fieldName;
58678
 
58679
      _Fields(short thriftId, String fieldName) {
58680
        _thriftId = thriftId;
58681
        _fieldName = fieldName;
58682
      }
58683
 
58684
      public short getThriftFieldId() {
58685
        return _thriftId;
58686
      }
58687
 
58688
      public String getFieldName() {
58689
        return _fieldName;
58690
      }
58691
    }
58692
 
58693
    // isset id assignments
58694
    private static final int __SUCCESS_ISSET_ID = 0;
58695
    private BitSet __isset_bit_vector = new BitSet(1);
58696
 
58697
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58698
    static {
58699
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58700
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
58701
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
58702
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58703
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWanNlcForSource_result.class, metaDataMap);
58704
    }
58705
 
58706
    public getWanNlcForSource_result() {
58707
    }
58708
 
58709
    public getWanNlcForSource_result(
58710
      double success)
58711
    {
58712
      this();
58713
      this.success = success;
58714
      setSuccessIsSet(true);
58715
    }
58716
 
58717
    /**
58718
     * Performs a deep copy on <i>other</i>.
58719
     */
58720
    public getWanNlcForSource_result(getWanNlcForSource_result other) {
58721
      __isset_bit_vector.clear();
58722
      __isset_bit_vector.or(other.__isset_bit_vector);
58723
      this.success = other.success;
58724
    }
58725
 
58726
    public getWanNlcForSource_result deepCopy() {
58727
      return new getWanNlcForSource_result(this);
58728
    }
58729
 
58730
    @Override
58731
    public void clear() {
58732
      setSuccessIsSet(false);
58733
      this.success = 0.0;
58734
    }
58735
 
58736
    public double getSuccess() {
58737
      return this.success;
58738
    }
58739
 
58740
    public void setSuccess(double success) {
58741
      this.success = success;
58742
      setSuccessIsSet(true);
58743
    }
58744
 
58745
    public void unsetSuccess() {
58746
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
58747
    }
58748
 
58749
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
58750
    public boolean isSetSuccess() {
58751
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
58752
    }
58753
 
58754
    public void setSuccessIsSet(boolean value) {
58755
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
58756
    }
58757
 
58758
    public void setFieldValue(_Fields field, Object value) {
58759
      switch (field) {
58760
      case SUCCESS:
58761
        if (value == null) {
58762
          unsetSuccess();
58763
        } else {
58764
          setSuccess((Double)value);
58765
        }
58766
        break;
58767
 
58768
      }
58769
    }
58770
 
58771
    public Object getFieldValue(_Fields field) {
58772
      switch (field) {
58773
      case SUCCESS:
58774
        return Double.valueOf(getSuccess());
58775
 
58776
      }
58777
      throw new IllegalStateException();
58778
    }
58779
 
58780
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
58781
    public boolean isSet(_Fields field) {
58782
      if (field == null) {
58783
        throw new IllegalArgumentException();
58784
      }
58785
 
58786
      switch (field) {
58787
      case SUCCESS:
58788
        return isSetSuccess();
58789
      }
58790
      throw new IllegalStateException();
58791
    }
58792
 
58793
    @Override
58794
    public boolean equals(Object that) {
58795
      if (that == null)
58796
        return false;
58797
      if (that instanceof getWanNlcForSource_result)
58798
        return this.equals((getWanNlcForSource_result)that);
58799
      return false;
58800
    }
58801
 
58802
    public boolean equals(getWanNlcForSource_result that) {
58803
      if (that == null)
58804
        return false;
58805
 
58806
      boolean this_present_success = true;
58807
      boolean that_present_success = true;
58808
      if (this_present_success || that_present_success) {
58809
        if (!(this_present_success && that_present_success))
58810
          return false;
58811
        if (this.success != that.success)
58812
          return false;
58813
      }
58814
 
58815
      return true;
58816
    }
58817
 
58818
    @Override
58819
    public int hashCode() {
58820
      return 0;
58821
    }
58822
 
58823
    public int compareTo(getWanNlcForSource_result other) {
58824
      if (!getClass().equals(other.getClass())) {
58825
        return getClass().getName().compareTo(other.getClass().getName());
58826
      }
58827
 
58828
      int lastComparison = 0;
58829
      getWanNlcForSource_result typedOther = (getWanNlcForSource_result)other;
58830
 
58831
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
58832
      if (lastComparison != 0) {
58833
        return lastComparison;
58834
      }
58835
      if (isSetSuccess()) {
58836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
58837
        if (lastComparison != 0) {
58838
          return lastComparison;
58839
        }
58840
      }
58841
      return 0;
58842
    }
58843
 
58844
    public _Fields fieldForId(int fieldId) {
58845
      return _Fields.findByThriftId(fieldId);
58846
    }
58847
 
58848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
58849
      org.apache.thrift.protocol.TField field;
58850
      iprot.readStructBegin();
58851
      while (true)
58852
      {
58853
        field = iprot.readFieldBegin();
58854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
58855
          break;
58856
        }
58857
        switch (field.id) {
58858
          case 0: // SUCCESS
58859
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
58860
              this.success = iprot.readDouble();
58861
              setSuccessIsSet(true);
58862
            } else { 
58863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58864
            }
58865
            break;
58866
          default:
58867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
58868
        }
58869
        iprot.readFieldEnd();
58870
      }
58871
      iprot.readStructEnd();
58872
      validate();
58873
    }
58874
 
58875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
58876
      oprot.writeStructBegin(STRUCT_DESC);
58877
 
58878
      if (this.isSetSuccess()) {
58879
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
58880
        oprot.writeDouble(this.success);
58881
        oprot.writeFieldEnd();
58882
      }
58883
      oprot.writeFieldStop();
58884
      oprot.writeStructEnd();
58885
    }
58886
 
58887
    @Override
58888
    public String toString() {
58889
      StringBuilder sb = new StringBuilder("getWanNlcForSource_result(");
58890
      boolean first = true;
58891
 
58892
      sb.append("success:");
58893
      sb.append(this.success);
58894
      first = false;
58895
      sb.append(")");
58896
      return sb.toString();
58897
    }
58898
 
58899
    public void validate() throws org.apache.thrift.TException {
58900
      // check for required fields
58901
    }
58902
 
58903
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
58904
      try {
58905
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
58906
      } catch (org.apache.thrift.TException te) {
58907
        throw new java.io.IOException(te);
58908
      }
58909
    }
58910
 
58911
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
58912
      try {
58913
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
58914
      } catch (org.apache.thrift.TException te) {
58915
        throw new java.io.IOException(te);
58916
      }
58917
    }
58918
 
58919
  }
58920
 
58921
  public static class getAllAvailableAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAllAvailableAmazonFbaItemInventory_args, getAllAvailableAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable   {
58922
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAvailableAmazonFbaItemInventory_args");
58923
 
58924
 
58925
 
58926
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58927
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
58928
;
58929
 
58930
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58931
 
58932
      static {
58933
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
58934
          byName.put(field.getFieldName(), field);
58935
        }
58936
      }
58937
 
58938
      /**
58939
       * Find the _Fields constant that matches fieldId, or null if its not found.
58940
       */
58941
      public static _Fields findByThriftId(int fieldId) {
58942
        switch(fieldId) {
58943
          default:
58944
            return null;
58945
        }
58946
      }
58947
 
58948
      /**
58949
       * Find the _Fields constant that matches fieldId, throwing an exception
58950
       * if it is not found.
58951
       */
58952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
58953
        _Fields fields = findByThriftId(fieldId);
58954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
58955
        return fields;
58956
      }
58957
 
58958
      /**
58959
       * Find the _Fields constant that matches name, or null if its not found.
58960
       */
58961
      public static _Fields findByName(String name) {
58962
        return byName.get(name);
58963
      }
58964
 
58965
      private final short _thriftId;
58966
      private final String _fieldName;
58967
 
58968
      _Fields(short thriftId, String fieldName) {
58969
        _thriftId = thriftId;
58970
        _fieldName = fieldName;
58971
      }
58972
 
58973
      public short getThriftFieldId() {
58974
        return _thriftId;
58975
      }
58976
 
58977
      public String getFieldName() {
58978
        return _fieldName;
58979
      }
58980
    }
58981
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
58982
    static {
58983
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
58984
      metaDataMap = Collections.unmodifiableMap(tmpMap);
58985
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAvailableAmazonFbaItemInventory_args.class, metaDataMap);
58986
    }
58987
 
58988
    public getAllAvailableAmazonFbaItemInventory_args() {
58989
    }
58990
 
58991
    /**
58992
     * Performs a deep copy on <i>other</i>.
58993
     */
58994
    public getAllAvailableAmazonFbaItemInventory_args(getAllAvailableAmazonFbaItemInventory_args other) {
58995
    }
58996
 
58997
    public getAllAvailableAmazonFbaItemInventory_args deepCopy() {
58998
      return new getAllAvailableAmazonFbaItemInventory_args(this);
58999
    }
59000
 
59001
    @Override
59002
    public void clear() {
59003
    }
59004
 
59005
    public void setFieldValue(_Fields field, Object value) {
59006
      switch (field) {
59007
      }
59008
    }
59009
 
59010
    public Object getFieldValue(_Fields field) {
59011
      switch (field) {
59012
      }
59013
      throw new IllegalStateException();
59014
    }
59015
 
59016
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
59017
    public boolean isSet(_Fields field) {
59018
      if (field == null) {
59019
        throw new IllegalArgumentException();
59020
      }
59021
 
59022
      switch (field) {
59023
      }
59024
      throw new IllegalStateException();
59025
    }
59026
 
59027
    @Override
59028
    public boolean equals(Object that) {
59029
      if (that == null)
59030
        return false;
59031
      if (that instanceof getAllAvailableAmazonFbaItemInventory_args)
59032
        return this.equals((getAllAvailableAmazonFbaItemInventory_args)that);
59033
      return false;
59034
    }
59035
 
59036
    public boolean equals(getAllAvailableAmazonFbaItemInventory_args that) {
59037
      if (that == null)
59038
        return false;
59039
 
59040
      return true;
59041
    }
59042
 
59043
    @Override
59044
    public int hashCode() {
59045
      return 0;
59046
    }
59047
 
59048
    public int compareTo(getAllAvailableAmazonFbaItemInventory_args other) {
59049
      if (!getClass().equals(other.getClass())) {
59050
        return getClass().getName().compareTo(other.getClass().getName());
59051
      }
59052
 
59053
      int lastComparison = 0;
59054
      getAllAvailableAmazonFbaItemInventory_args typedOther = (getAllAvailableAmazonFbaItemInventory_args)other;
59055
 
59056
      return 0;
59057
    }
59058
 
59059
    public _Fields fieldForId(int fieldId) {
59060
      return _Fields.findByThriftId(fieldId);
59061
    }
59062
 
59063
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
59064
      org.apache.thrift.protocol.TField field;
59065
      iprot.readStructBegin();
59066
      while (true)
59067
      {
59068
        field = iprot.readFieldBegin();
59069
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59070
          break;
59071
        }
59072
        switch (field.id) {
59073
          default:
59074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59075
        }
59076
        iprot.readFieldEnd();
59077
      }
59078
      iprot.readStructEnd();
59079
      validate();
59080
    }
59081
 
59082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59083
      validate();
59084
 
59085
      oprot.writeStructBegin(STRUCT_DESC);
59086
      oprot.writeFieldStop();
59087
      oprot.writeStructEnd();
59088
    }
59089
 
59090
    @Override
59091
    public String toString() {
59092
      StringBuilder sb = new StringBuilder("getAllAvailableAmazonFbaItemInventory_args(");
59093
      boolean first = true;
59094
 
59095
      sb.append(")");
59096
      return sb.toString();
59097
    }
59098
 
59099
    public void validate() throws org.apache.thrift.TException {
59100
      // check for required fields
59101
    }
59102
 
59103
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59104
      try {
59105
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
59106
      } catch (org.apache.thrift.TException te) {
59107
        throw new java.io.IOException(te);
59108
      }
59109
    }
59110
 
59111
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59112
      try {
59113
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59114
      } catch (org.apache.thrift.TException te) {
59115
        throw new java.io.IOException(te);
59116
      }
59117
    }
59118
 
59119
  }
59120
 
59121
  public static class getAllAvailableAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAllAvailableAmazonFbaItemInventory_result, getAllAvailableAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable   {
59122
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAvailableAmazonFbaItemInventory_result");
59123
 
59124
    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);
59125
 
59126
    private List<AmazonFbaInventorySnapshot> success; // required
59127
 
59128
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59129
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59130
      SUCCESS((short)0, "success");
59131
 
59132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59133
 
59134
      static {
59135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
59136
          byName.put(field.getFieldName(), field);
59137
        }
59138
      }
59139
 
59140
      /**
59141
       * Find the _Fields constant that matches fieldId, or null if its not found.
59142
       */
59143
      public static _Fields findByThriftId(int fieldId) {
59144
        switch(fieldId) {
59145
          case 0: // SUCCESS
59146
            return SUCCESS;
59147
          default:
59148
            return null;
59149
        }
59150
      }
59151
 
59152
      /**
59153
       * Find the _Fields constant that matches fieldId, throwing an exception
59154
       * if it is not found.
59155
       */
59156
      public static _Fields findByThriftIdOrThrow(int fieldId) {
59157
        _Fields fields = findByThriftId(fieldId);
59158
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
59159
        return fields;
59160
      }
59161
 
59162
      /**
59163
       * Find the _Fields constant that matches name, or null if its not found.
59164
       */
59165
      public static _Fields findByName(String name) {
59166
        return byName.get(name);
59167
      }
59168
 
59169
      private final short _thriftId;
59170
      private final String _fieldName;
59171
 
59172
      _Fields(short thriftId, String fieldName) {
59173
        _thriftId = thriftId;
59174
        _fieldName = fieldName;
59175
      }
59176
 
59177
      public short getThriftFieldId() {
59178
        return _thriftId;
59179
      }
59180
 
59181
      public String getFieldName() {
59182
        return _fieldName;
59183
      }
59184
    }
59185
 
59186
    // isset id assignments
59187
 
59188
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59189
    static {
59190
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59191
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59192
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
59193
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
59194
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59195
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAvailableAmazonFbaItemInventory_result.class, metaDataMap);
59196
    }
59197
 
59198
    public getAllAvailableAmazonFbaItemInventory_result() {
59199
    }
59200
 
59201
    public getAllAvailableAmazonFbaItemInventory_result(
59202
      List<AmazonFbaInventorySnapshot> success)
59203
    {
59204
      this();
59205
      this.success = success;
59206
    }
59207
 
59208
    /**
59209
     * Performs a deep copy on <i>other</i>.
59210
     */
59211
    public getAllAvailableAmazonFbaItemInventory_result(getAllAvailableAmazonFbaItemInventory_result other) {
59212
      if (other.isSetSuccess()) {
59213
        List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
59214
        for (AmazonFbaInventorySnapshot other_element : other.success) {
59215
          __this__success.add(new AmazonFbaInventorySnapshot(other_element));
59216
        }
59217
        this.success = __this__success;
59218
      }
59219
    }
59220
 
59221
    public getAllAvailableAmazonFbaItemInventory_result deepCopy() {
59222
      return new getAllAvailableAmazonFbaItemInventory_result(this);
59223
    }
59224
 
59225
    @Override
59226
    public void clear() {
59227
      this.success = null;
59228
    }
59229
 
59230
    public int getSuccessSize() {
59231
      return (this.success == null) ? 0 : this.success.size();
59232
    }
59233
 
59234
    public java.util.Iterator<AmazonFbaInventorySnapshot> getSuccessIterator() {
59235
      return (this.success == null) ? null : this.success.iterator();
59236
    }
59237
 
59238
    public void addToSuccess(AmazonFbaInventorySnapshot elem) {
59239
      if (this.success == null) {
59240
        this.success = new ArrayList<AmazonFbaInventorySnapshot>();
59241
      }
59242
      this.success.add(elem);
59243
    }
59244
 
59245
    public List<AmazonFbaInventorySnapshot> getSuccess() {
59246
      return this.success;
59247
    }
59248
 
59249
    public void setSuccess(List<AmazonFbaInventorySnapshot> success) {
59250
      this.success = success;
59251
    }
59252
 
59253
    public void unsetSuccess() {
59254
      this.success = null;
59255
    }
59256
 
59257
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
59258
    public boolean isSetSuccess() {
59259
      return this.success != null;
59260
    }
59261
 
59262
    public void setSuccessIsSet(boolean value) {
59263
      if (!value) {
59264
        this.success = null;
59265
      }
59266
    }
59267
 
59268
    public void setFieldValue(_Fields field, Object value) {
59269
      switch (field) {
59270
      case SUCCESS:
59271
        if (value == null) {
59272
          unsetSuccess();
59273
        } else {
59274
          setSuccess((List<AmazonFbaInventorySnapshot>)value);
59275
        }
59276
        break;
59277
 
59278
      }
59279
    }
59280
 
59281
    public Object getFieldValue(_Fields field) {
59282
      switch (field) {
59283
      case SUCCESS:
59284
        return getSuccess();
59285
 
59286
      }
59287
      throw new IllegalStateException();
59288
    }
59289
 
59290
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
59291
    public boolean isSet(_Fields field) {
59292
      if (field == null) {
59293
        throw new IllegalArgumentException();
59294
      }
59295
 
59296
      switch (field) {
59297
      case SUCCESS:
59298
        return isSetSuccess();
59299
      }
59300
      throw new IllegalStateException();
59301
    }
59302
 
59303
    @Override
59304
    public boolean equals(Object that) {
59305
      if (that == null)
59306
        return false;
59307
      if (that instanceof getAllAvailableAmazonFbaItemInventory_result)
59308
        return this.equals((getAllAvailableAmazonFbaItemInventory_result)that);
59309
      return false;
59310
    }
59311
 
59312
    public boolean equals(getAllAvailableAmazonFbaItemInventory_result that) {
59313
      if (that == null)
59314
        return false;
59315
 
59316
      boolean this_present_success = true && this.isSetSuccess();
59317
      boolean that_present_success = true && that.isSetSuccess();
59318
      if (this_present_success || that_present_success) {
59319
        if (!(this_present_success && that_present_success))
59320
          return false;
59321
        if (!this.success.equals(that.success))
59322
          return false;
59323
      }
59324
 
59325
      return true;
59326
    }
59327
 
59328
    @Override
59329
    public int hashCode() {
59330
      return 0;
59331
    }
59332
 
59333
    public int compareTo(getAllAvailableAmazonFbaItemInventory_result other) {
59334
      if (!getClass().equals(other.getClass())) {
59335
        return getClass().getName().compareTo(other.getClass().getName());
59336
      }
59337
 
59338
      int lastComparison = 0;
59339
      getAllAvailableAmazonFbaItemInventory_result typedOther = (getAllAvailableAmazonFbaItemInventory_result)other;
59340
 
59341
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
59342
      if (lastComparison != 0) {
59343
        return lastComparison;
59344
      }
59345
      if (isSetSuccess()) {
59346
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
59347
        if (lastComparison != 0) {
59348
          return lastComparison;
59349
        }
59350
      }
59351
      return 0;
59352
    }
59353
 
59354
    public _Fields fieldForId(int fieldId) {
59355
      return _Fields.findByThriftId(fieldId);
59356
    }
59357
 
59358
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
59359
      org.apache.thrift.protocol.TField field;
59360
      iprot.readStructBegin();
59361
      while (true)
59362
      {
59363
        field = iprot.readFieldBegin();
59364
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59365
          break;
59366
        }
59367
        switch (field.id) {
59368
          case 0: // SUCCESS
59369
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
59370
              {
59371
                org.apache.thrift.protocol.TList _list192 = iprot.readListBegin();
59372
                this.success = new ArrayList<AmazonFbaInventorySnapshot>(_list192.size);
59373
                for (int _i193 = 0; _i193 < _list192.size; ++_i193)
59374
                {
59375
                  AmazonFbaInventorySnapshot _elem194; // required
59376
                  _elem194 = new AmazonFbaInventorySnapshot();
59377
                  _elem194.read(iprot);
59378
                  this.success.add(_elem194);
59379
                }
59380
                iprot.readListEnd();
59381
              }
59382
            } else { 
59383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59384
            }
59385
            break;
59386
          default:
59387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59388
        }
59389
        iprot.readFieldEnd();
59390
      }
59391
      iprot.readStructEnd();
59392
      validate();
59393
    }
59394
 
59395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59396
      oprot.writeStructBegin(STRUCT_DESC);
59397
 
59398
      if (this.isSetSuccess()) {
59399
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59400
        {
59401
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
59402
          for (AmazonFbaInventorySnapshot _iter195 : this.success)
59403
          {
59404
            _iter195.write(oprot);
59405
          }
59406
          oprot.writeListEnd();
59407
        }
59408
        oprot.writeFieldEnd();
59409
      }
59410
      oprot.writeFieldStop();
59411
      oprot.writeStructEnd();
59412
    }
59413
 
59414
    @Override
59415
    public String toString() {
59416
      StringBuilder sb = new StringBuilder("getAllAvailableAmazonFbaItemInventory_result(");
59417
      boolean first = true;
59418
 
59419
      sb.append("success:");
59420
      if (this.success == null) {
59421
        sb.append("null");
59422
      } else {
59423
        sb.append(this.success);
59424
      }
59425
      first = false;
59426
      sb.append(")");
59427
      return sb.toString();
59428
    }
59429
 
59430
    public void validate() throws org.apache.thrift.TException {
59431
      // check for required fields
59432
    }
59433
 
59434
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59435
      try {
59436
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
59437
      } catch (org.apache.thrift.TException te) {
59438
        throw new java.io.IOException(te);
59439
      }
59440
    }
59441
 
59442
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59443
      try {
59444
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59445
      } catch (org.apache.thrift.TException te) {
59446
        throw new java.io.IOException(te);
59447
      }
59448
    }
59449
 
59450
  }
59451
 
17990 kshitij.so 59452
  public static class updateItemAvailabilityForItemIds_args implements org.apache.thrift.TBase<updateItemAvailabilityForItemIds_args, updateItemAvailabilityForItemIds_args._Fields>, java.io.Serializable, Cloneable   {
59453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemAvailabilityForItemIds_args");
59454
 
59455
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
59456
 
59457
    private List<Long> itemIds; // required
59458
 
59459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59461
      ITEM_IDS((short)1, "itemIds");
59462
 
59463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59464
 
59465
      static {
59466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
59467
          byName.put(field.getFieldName(), field);
59468
        }
59469
      }
59470
 
59471
      /**
59472
       * Find the _Fields constant that matches fieldId, or null if its not found.
59473
       */
59474
      public static _Fields findByThriftId(int fieldId) {
59475
        switch(fieldId) {
59476
          case 1: // ITEM_IDS
59477
            return ITEM_IDS;
59478
          default:
59479
            return null;
59480
        }
59481
      }
59482
 
59483
      /**
59484
       * Find the _Fields constant that matches fieldId, throwing an exception
59485
       * if it is not found.
59486
       */
59487
      public static _Fields findByThriftIdOrThrow(int fieldId) {
59488
        _Fields fields = findByThriftId(fieldId);
59489
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
59490
        return fields;
59491
      }
59492
 
59493
      /**
59494
       * Find the _Fields constant that matches name, or null if its not found.
59495
       */
59496
      public static _Fields findByName(String name) {
59497
        return byName.get(name);
59498
      }
59499
 
59500
      private final short _thriftId;
59501
      private final String _fieldName;
59502
 
59503
      _Fields(short thriftId, String fieldName) {
59504
        _thriftId = thriftId;
59505
        _fieldName = fieldName;
59506
      }
59507
 
59508
      public short getThriftFieldId() {
59509
        return _thriftId;
59510
      }
59511
 
59512
      public String getFieldName() {
59513
        return _fieldName;
59514
      }
59515
    }
59516
 
59517
    // isset id assignments
59518
 
59519
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59520
    static {
59521
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59522
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59523
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
59524
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
59525
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59526
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemAvailabilityForItemIds_args.class, metaDataMap);
59527
    }
59528
 
59529
    public updateItemAvailabilityForItemIds_args() {
59530
    }
59531
 
59532
    public updateItemAvailabilityForItemIds_args(
59533
      List<Long> itemIds)
59534
    {
59535
      this();
59536
      this.itemIds = itemIds;
59537
    }
59538
 
59539
    /**
59540
     * Performs a deep copy on <i>other</i>.
59541
     */
59542
    public updateItemAvailabilityForItemIds_args(updateItemAvailabilityForItemIds_args other) {
59543
      if (other.isSetItemIds()) {
59544
        List<Long> __this__itemIds = new ArrayList<Long>();
59545
        for (Long other_element : other.itemIds) {
59546
          __this__itemIds.add(other_element);
59547
        }
59548
        this.itemIds = __this__itemIds;
59549
      }
59550
    }
59551
 
59552
    public updateItemAvailabilityForItemIds_args deepCopy() {
59553
      return new updateItemAvailabilityForItemIds_args(this);
59554
    }
59555
 
59556
    @Override
59557
    public void clear() {
59558
      this.itemIds = null;
59559
    }
59560
 
59561
    public int getItemIdsSize() {
59562
      return (this.itemIds == null) ? 0 : this.itemIds.size();
59563
    }
59564
 
59565
    public java.util.Iterator<Long> getItemIdsIterator() {
59566
      return (this.itemIds == null) ? null : this.itemIds.iterator();
59567
    }
59568
 
59569
    public void addToItemIds(long elem) {
59570
      if (this.itemIds == null) {
59571
        this.itemIds = new ArrayList<Long>();
59572
      }
59573
      this.itemIds.add(elem);
59574
    }
59575
 
59576
    public List<Long> getItemIds() {
59577
      return this.itemIds;
59578
    }
59579
 
59580
    public void setItemIds(List<Long> itemIds) {
59581
      this.itemIds = itemIds;
59582
    }
59583
 
59584
    public void unsetItemIds() {
59585
      this.itemIds = null;
59586
    }
59587
 
59588
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
59589
    public boolean isSetItemIds() {
59590
      return this.itemIds != null;
59591
    }
59592
 
59593
    public void setItemIdsIsSet(boolean value) {
59594
      if (!value) {
59595
        this.itemIds = null;
59596
      }
59597
    }
59598
 
59599
    public void setFieldValue(_Fields field, Object value) {
59600
      switch (field) {
59601
      case ITEM_IDS:
59602
        if (value == null) {
59603
          unsetItemIds();
59604
        } else {
59605
          setItemIds((List<Long>)value);
59606
        }
59607
        break;
59608
 
59609
      }
59610
    }
59611
 
59612
    public Object getFieldValue(_Fields field) {
59613
      switch (field) {
59614
      case ITEM_IDS:
59615
        return getItemIds();
59616
 
59617
      }
59618
      throw new IllegalStateException();
59619
    }
59620
 
59621
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
59622
    public boolean isSet(_Fields field) {
59623
      if (field == null) {
59624
        throw new IllegalArgumentException();
59625
      }
59626
 
59627
      switch (field) {
59628
      case ITEM_IDS:
59629
        return isSetItemIds();
59630
      }
59631
      throw new IllegalStateException();
59632
    }
59633
 
59634
    @Override
59635
    public boolean equals(Object that) {
59636
      if (that == null)
59637
        return false;
59638
      if (that instanceof updateItemAvailabilityForItemIds_args)
59639
        return this.equals((updateItemAvailabilityForItemIds_args)that);
59640
      return false;
59641
    }
59642
 
59643
    public boolean equals(updateItemAvailabilityForItemIds_args that) {
59644
      if (that == null)
59645
        return false;
59646
 
59647
      boolean this_present_itemIds = true && this.isSetItemIds();
59648
      boolean that_present_itemIds = true && that.isSetItemIds();
59649
      if (this_present_itemIds || that_present_itemIds) {
59650
        if (!(this_present_itemIds && that_present_itemIds))
59651
          return false;
59652
        if (!this.itemIds.equals(that.itemIds))
59653
          return false;
59654
      }
59655
 
59656
      return true;
59657
    }
59658
 
59659
    @Override
59660
    public int hashCode() {
59661
      return 0;
59662
    }
59663
 
59664
    public int compareTo(updateItemAvailabilityForItemIds_args other) {
59665
      if (!getClass().equals(other.getClass())) {
59666
        return getClass().getName().compareTo(other.getClass().getName());
59667
      }
59668
 
59669
      int lastComparison = 0;
59670
      updateItemAvailabilityForItemIds_args typedOther = (updateItemAvailabilityForItemIds_args)other;
59671
 
59672
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
59673
      if (lastComparison != 0) {
59674
        return lastComparison;
59675
      }
59676
      if (isSetItemIds()) {
59677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
59678
        if (lastComparison != 0) {
59679
          return lastComparison;
59680
        }
59681
      }
59682
      return 0;
59683
    }
59684
 
59685
    public _Fields fieldForId(int fieldId) {
59686
      return _Fields.findByThriftId(fieldId);
59687
    }
59688
 
59689
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
59690
      org.apache.thrift.protocol.TField field;
59691
      iprot.readStructBegin();
59692
      while (true)
59693
      {
59694
        field = iprot.readFieldBegin();
59695
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
59696
          break;
59697
        }
59698
        switch (field.id) {
59699
          case 1: // ITEM_IDS
59700
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
59701
              {
59702
                org.apache.thrift.protocol.TList _list196 = iprot.readListBegin();
59703
                this.itemIds = new ArrayList<Long>(_list196.size);
59704
                for (int _i197 = 0; _i197 < _list196.size; ++_i197)
59705
                {
59706
                  long _elem198; // required
59707
                  _elem198 = iprot.readI64();
59708
                  this.itemIds.add(_elem198);
59709
                }
59710
                iprot.readListEnd();
59711
              }
59712
            } else { 
59713
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59714
            }
59715
            break;
59716
          default:
59717
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59718
        }
59719
        iprot.readFieldEnd();
59720
      }
59721
      iprot.readStructEnd();
59722
      validate();
59723
    }
59724
 
59725
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
59726
      validate();
59727
 
59728
      oprot.writeStructBegin(STRUCT_DESC);
59729
      if (this.itemIds != null) {
59730
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
59731
        {
59732
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
59733
          for (long _iter199 : this.itemIds)
59734
          {
59735
            oprot.writeI64(_iter199);
59736
          }
59737
          oprot.writeListEnd();
59738
        }
59739
        oprot.writeFieldEnd();
59740
      }
59741
      oprot.writeFieldStop();
59742
      oprot.writeStructEnd();
59743
    }
59744
 
59745
    @Override
59746
    public String toString() {
59747
      StringBuilder sb = new StringBuilder("updateItemAvailabilityForItemIds_args(");
59748
      boolean first = true;
59749
 
59750
      sb.append("itemIds:");
59751
      if (this.itemIds == null) {
59752
        sb.append("null");
59753
      } else {
59754
        sb.append(this.itemIds);
59755
      }
59756
      first = false;
59757
      sb.append(")");
59758
      return sb.toString();
59759
    }
59760
 
59761
    public void validate() throws org.apache.thrift.TException {
59762
      // check for required fields
59763
    }
59764
 
59765
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59766
      try {
59767
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
59768
      } catch (org.apache.thrift.TException te) {
59769
        throw new java.io.IOException(te);
59770
      }
59771
    }
59772
 
59773
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59774
      try {
59775
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59776
      } catch (org.apache.thrift.TException te) {
59777
        throw new java.io.IOException(te);
59778
      }
59779
    }
59780
 
59781
  }
59782
 
59783
  public static class updateItemAvailabilityForItemIds_result implements org.apache.thrift.TBase<updateItemAvailabilityForItemIds_result, updateItemAvailabilityForItemIds_result._Fields>, java.io.Serializable, Cloneable   {
59784
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemAvailabilityForItemIds_result");
59785
 
59786
    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);
59787
 
59788
    private boolean success; // required
59789
 
59790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
59791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59792
      SUCCESS((short)0, "success");
59793
 
59794
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
59795
 
59796
      static {
59797
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
59798
          byName.put(field.getFieldName(), field);
59799
        }
59800
      }
59801
 
59802
      /**
59803
       * Find the _Fields constant that matches fieldId, or null if its not found.
59804
       */
59805
      public static _Fields findByThriftId(int fieldId) {
59806
        switch(fieldId) {
59807
          case 0: // SUCCESS
59808
            return SUCCESS;
59809
          default:
59810
            return null;
59811
        }
59812
      }
59813
 
59814
      /**
59815
       * Find the _Fields constant that matches fieldId, throwing an exception
59816
       * if it is not found.
59817
       */
59818
      public static _Fields findByThriftIdOrThrow(int fieldId) {
59819
        _Fields fields = findByThriftId(fieldId);
59820
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
59821
        return fields;
59822
      }
59823
 
59824
      /**
59825
       * Find the _Fields constant that matches name, or null if its not found.
59826
       */
59827
      public static _Fields findByName(String name) {
59828
        return byName.get(name);
59829
      }
59830
 
59831
      private final short _thriftId;
59832
      private final String _fieldName;
59833
 
59834
      _Fields(short thriftId, String fieldName) {
59835
        _thriftId = thriftId;
59836
        _fieldName = fieldName;
59837
      }
59838
 
59839
      public short getThriftFieldId() {
59840
        return _thriftId;
59841
      }
59842
 
59843
      public String getFieldName() {
59844
        return _fieldName;
59845
      }
59846
    }
59847
 
59848
    // isset id assignments
59849
    private static final int __SUCCESS_ISSET_ID = 0;
59850
    private BitSet __isset_bit_vector = new BitSet(1);
59851
 
59852
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
59853
    static {
59854
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
59855
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
59856
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
59857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
59858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemAvailabilityForItemIds_result.class, metaDataMap);
59859
    }
59860
 
59861
    public updateItemAvailabilityForItemIds_result() {
59862
    }
59863
 
59864
    public updateItemAvailabilityForItemIds_result(
59865
      boolean success)
59866
    {
59867
      this();
59868
      this.success = success;
59869
      setSuccessIsSet(true);
59870
    }
59871
 
59872
    /**
59873
     * Performs a deep copy on <i>other</i>.
59874
     */
59875
    public updateItemAvailabilityForItemIds_result(updateItemAvailabilityForItemIds_result other) {
59876
      __isset_bit_vector.clear();
59877
      __isset_bit_vector.or(other.__isset_bit_vector);
59878
      this.success = other.success;
59879
    }
59880
 
59881
    public updateItemAvailabilityForItemIds_result deepCopy() {
59882
      return new updateItemAvailabilityForItemIds_result(this);
59883
    }
59884
 
59885
    @Override
59886
    public void clear() {
59887
      setSuccessIsSet(false);
59888
      this.success = false;
59889
    }
59890
 
59891
    public boolean isSuccess() {
59892
      return this.success;
59893
    }
59894
 
59895
    public void setSuccess(boolean success) {
59896
      this.success = success;
59897
      setSuccessIsSet(true);
59898
    }
59899
 
59900
    public void unsetSuccess() {
59901
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
59902
    }
59903
 
59904
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
59905
    public boolean isSetSuccess() {
59906
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
59907
    }
59908
 
59909
    public void setSuccessIsSet(boolean value) {
59910
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
59911
    }
59912
 
59913
    public void setFieldValue(_Fields field, Object value) {
59914
      switch (field) {
59915
      case SUCCESS:
59916
        if (value == null) {
59917
          unsetSuccess();
59918
        } else {
59919
          setSuccess((Boolean)value);
59920
        }
59921
        break;
59922
 
59923
      }
59924
    }
59925
 
59926
    public Object getFieldValue(_Fields field) {
59927
      switch (field) {
59928
      case SUCCESS:
59929
        return Boolean.valueOf(isSuccess());
59930
 
59931
      }
59932
      throw new IllegalStateException();
59933
    }
59934
 
59935
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
59936
    public boolean isSet(_Fields field) {
59937
      if (field == null) {
59938
        throw new IllegalArgumentException();
59939
      }
59940
 
59941
      switch (field) {
59942
      case SUCCESS:
59943
        return isSetSuccess();
59944
      }
59945
      throw new IllegalStateException();
59946
    }
59947
 
59948
    @Override
59949
    public boolean equals(Object that) {
59950
      if (that == null)
59951
        return false;
59952
      if (that instanceof updateItemAvailabilityForItemIds_result)
59953
        return this.equals((updateItemAvailabilityForItemIds_result)that);
59954
      return false;
59955
    }
59956
 
59957
    public boolean equals(updateItemAvailabilityForItemIds_result that) {
59958
      if (that == null)
59959
        return false;
59960
 
59961
      boolean this_present_success = true;
59962
      boolean that_present_success = true;
59963
      if (this_present_success || that_present_success) {
59964
        if (!(this_present_success && that_present_success))
59965
          return false;
59966
        if (this.success != that.success)
59967
          return false;
59968
      }
59969
 
59970
      return true;
59971
    }
59972
 
59973
    @Override
59974
    public int hashCode() {
59975
      return 0;
59976
    }
59977
 
59978
    public int compareTo(updateItemAvailabilityForItemIds_result other) {
59979
      if (!getClass().equals(other.getClass())) {
59980
        return getClass().getName().compareTo(other.getClass().getName());
59981
      }
59982
 
59983
      int lastComparison = 0;
59984
      updateItemAvailabilityForItemIds_result typedOther = (updateItemAvailabilityForItemIds_result)other;
59985
 
59986
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
59987
      if (lastComparison != 0) {
59988
        return lastComparison;
59989
      }
59990
      if (isSetSuccess()) {
59991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
59992
        if (lastComparison != 0) {
59993
          return lastComparison;
59994
        }
59995
      }
59996
      return 0;
59997
    }
59998
 
59999
    public _Fields fieldForId(int fieldId) {
60000
      return _Fields.findByThriftId(fieldId);
60001
    }
60002
 
60003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
60004
      org.apache.thrift.protocol.TField field;
60005
      iprot.readStructBegin();
60006
      while (true)
60007
      {
60008
        field = iprot.readFieldBegin();
60009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60010
          break;
60011
        }
60012
        switch (field.id) {
60013
          case 0: // SUCCESS
60014
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
60015
              this.success = iprot.readBool();
60016
              setSuccessIsSet(true);
60017
            } else { 
60018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60019
            }
60020
            break;
60021
          default:
60022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60023
        }
60024
        iprot.readFieldEnd();
60025
      }
60026
      iprot.readStructEnd();
60027
      validate();
60028
    }
60029
 
60030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60031
      oprot.writeStructBegin(STRUCT_DESC);
60032
 
60033
      if (this.isSetSuccess()) {
60034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60035
        oprot.writeBool(this.success);
60036
        oprot.writeFieldEnd();
60037
      }
60038
      oprot.writeFieldStop();
60039
      oprot.writeStructEnd();
60040
    }
60041
 
60042
    @Override
60043
    public String toString() {
60044
      StringBuilder sb = new StringBuilder("updateItemAvailabilityForItemIds_result(");
60045
      boolean first = true;
60046
 
60047
      sb.append("success:");
60048
      sb.append(this.success);
60049
      first = false;
60050
      sb.append(")");
60051
      return sb.toString();
60052
    }
60053
 
60054
    public void validate() throws org.apache.thrift.TException {
60055
      // check for required fields
60056
    }
60057
 
60058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
60059
      try {
60060
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
60061
      } catch (org.apache.thrift.TException te) {
60062
        throw new java.io.IOException(te);
60063
      }
60064
    }
60065
 
60066
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60067
      try {
60068
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60069
      } catch (org.apache.thrift.TException te) {
60070
        throw new java.io.IOException(te);
60071
      }
60072
    }
60073
 
60074
  }
60075
 
19247 kshitij.so 60076
  public static class addVendorItemPricingInBulk_args implements org.apache.thrift.TBase<addVendorItemPricingInBulk_args, addVendorItemPricingInBulk_args._Fields>, java.io.Serializable, Cloneable   {
60077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricingInBulk_args");
60078
 
60079
    private static final org.apache.thrift.protocol.TField VENDOR_ITEM_PRICING_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorItemPricingList", org.apache.thrift.protocol.TType.LIST, (short)1);
60080
 
60081
    private List<VendorItemPricing> vendorItemPricingList; // required
60082
 
60083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60085
      VENDOR_ITEM_PRICING_LIST((short)1, "vendorItemPricingList");
60086
 
60087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60088
 
60089
      static {
60090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
60091
          byName.put(field.getFieldName(), field);
60092
        }
60093
      }
60094
 
60095
      /**
60096
       * Find the _Fields constant that matches fieldId, or null if its not found.
60097
       */
60098
      public static _Fields findByThriftId(int fieldId) {
60099
        switch(fieldId) {
60100
          case 1: // VENDOR_ITEM_PRICING_LIST
60101
            return VENDOR_ITEM_PRICING_LIST;
60102
          default:
60103
            return null;
60104
        }
60105
      }
60106
 
60107
      /**
60108
       * Find the _Fields constant that matches fieldId, throwing an exception
60109
       * if it is not found.
60110
       */
60111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
60112
        _Fields fields = findByThriftId(fieldId);
60113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
60114
        return fields;
60115
      }
60116
 
60117
      /**
60118
       * Find the _Fields constant that matches name, or null if its not found.
60119
       */
60120
      public static _Fields findByName(String name) {
60121
        return byName.get(name);
60122
      }
60123
 
60124
      private final short _thriftId;
60125
      private final String _fieldName;
60126
 
60127
      _Fields(short thriftId, String fieldName) {
60128
        _thriftId = thriftId;
60129
        _fieldName = fieldName;
60130
      }
60131
 
60132
      public short getThriftFieldId() {
60133
        return _thriftId;
60134
      }
60135
 
60136
      public String getFieldName() {
60137
        return _fieldName;
60138
      }
60139
    }
60140
 
60141
    // isset id assignments
60142
 
60143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60144
    static {
60145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60146
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING_LIST, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricingList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60147
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
60148
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
60149
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60150
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricingInBulk_args.class, metaDataMap);
60151
    }
60152
 
60153
    public addVendorItemPricingInBulk_args() {
60154
    }
60155
 
60156
    public addVendorItemPricingInBulk_args(
60157
      List<VendorItemPricing> vendorItemPricingList)
60158
    {
60159
      this();
60160
      this.vendorItemPricingList = vendorItemPricingList;
60161
    }
60162
 
60163
    /**
60164
     * Performs a deep copy on <i>other</i>.
60165
     */
60166
    public addVendorItemPricingInBulk_args(addVendorItemPricingInBulk_args other) {
60167
      if (other.isSetVendorItemPricingList()) {
60168
        List<VendorItemPricing> __this__vendorItemPricingList = new ArrayList<VendorItemPricing>();
60169
        for (VendorItemPricing other_element : other.vendorItemPricingList) {
60170
          __this__vendorItemPricingList.add(new VendorItemPricing(other_element));
60171
        }
60172
        this.vendorItemPricingList = __this__vendorItemPricingList;
60173
      }
60174
    }
60175
 
60176
    public addVendorItemPricingInBulk_args deepCopy() {
60177
      return new addVendorItemPricingInBulk_args(this);
60178
    }
60179
 
60180
    @Override
60181
    public void clear() {
60182
      this.vendorItemPricingList = null;
60183
    }
60184
 
60185
    public int getVendorItemPricingListSize() {
60186
      return (this.vendorItemPricingList == null) ? 0 : this.vendorItemPricingList.size();
60187
    }
60188
 
60189
    public java.util.Iterator<VendorItemPricing> getVendorItemPricingListIterator() {
60190
      return (this.vendorItemPricingList == null) ? null : this.vendorItemPricingList.iterator();
60191
    }
60192
 
60193
    public void addToVendorItemPricingList(VendorItemPricing elem) {
60194
      if (this.vendorItemPricingList == null) {
60195
        this.vendorItemPricingList = new ArrayList<VendorItemPricing>();
60196
      }
60197
      this.vendorItemPricingList.add(elem);
60198
    }
60199
 
60200
    public List<VendorItemPricing> getVendorItemPricingList() {
60201
      return this.vendorItemPricingList;
60202
    }
60203
 
60204
    public void setVendorItemPricingList(List<VendorItemPricing> vendorItemPricingList) {
60205
      this.vendorItemPricingList = vendorItemPricingList;
60206
    }
60207
 
60208
    public void unsetVendorItemPricingList() {
60209
      this.vendorItemPricingList = null;
60210
    }
60211
 
60212
    /** Returns true if field vendorItemPricingList is set (has been assigned a value) and false otherwise */
60213
    public boolean isSetVendorItemPricingList() {
60214
      return this.vendorItemPricingList != null;
60215
    }
60216
 
60217
    public void setVendorItemPricingListIsSet(boolean value) {
60218
      if (!value) {
60219
        this.vendorItemPricingList = null;
60220
      }
60221
    }
60222
 
60223
    public void setFieldValue(_Fields field, Object value) {
60224
      switch (field) {
60225
      case VENDOR_ITEM_PRICING_LIST:
60226
        if (value == null) {
60227
          unsetVendorItemPricingList();
60228
        } else {
60229
          setVendorItemPricingList((List<VendorItemPricing>)value);
60230
        }
60231
        break;
60232
 
60233
      }
60234
    }
60235
 
60236
    public Object getFieldValue(_Fields field) {
60237
      switch (field) {
60238
      case VENDOR_ITEM_PRICING_LIST:
60239
        return getVendorItemPricingList();
60240
 
60241
      }
60242
      throw new IllegalStateException();
60243
    }
60244
 
60245
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
60246
    public boolean isSet(_Fields field) {
60247
      if (field == null) {
60248
        throw new IllegalArgumentException();
60249
      }
60250
 
60251
      switch (field) {
60252
      case VENDOR_ITEM_PRICING_LIST:
60253
        return isSetVendorItemPricingList();
60254
      }
60255
      throw new IllegalStateException();
60256
    }
60257
 
60258
    @Override
60259
    public boolean equals(Object that) {
60260
      if (that == null)
60261
        return false;
60262
      if (that instanceof addVendorItemPricingInBulk_args)
60263
        return this.equals((addVendorItemPricingInBulk_args)that);
60264
      return false;
60265
    }
60266
 
60267
    public boolean equals(addVendorItemPricingInBulk_args that) {
60268
      if (that == null)
60269
        return false;
60270
 
60271
      boolean this_present_vendorItemPricingList = true && this.isSetVendorItemPricingList();
60272
      boolean that_present_vendorItemPricingList = true && that.isSetVendorItemPricingList();
60273
      if (this_present_vendorItemPricingList || that_present_vendorItemPricingList) {
60274
        if (!(this_present_vendorItemPricingList && that_present_vendorItemPricingList))
60275
          return false;
60276
        if (!this.vendorItemPricingList.equals(that.vendorItemPricingList))
60277
          return false;
60278
      }
60279
 
60280
      return true;
60281
    }
60282
 
60283
    @Override
60284
    public int hashCode() {
60285
      return 0;
60286
    }
60287
 
60288
    public int compareTo(addVendorItemPricingInBulk_args other) {
60289
      if (!getClass().equals(other.getClass())) {
60290
        return getClass().getName().compareTo(other.getClass().getName());
60291
      }
60292
 
60293
      int lastComparison = 0;
60294
      addVendorItemPricingInBulk_args typedOther = (addVendorItemPricingInBulk_args)other;
60295
 
60296
      lastComparison = Boolean.valueOf(isSetVendorItemPricingList()).compareTo(typedOther.isSetVendorItemPricingList());
60297
      if (lastComparison != 0) {
60298
        return lastComparison;
60299
      }
60300
      if (isSetVendorItemPricingList()) {
60301
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricingList, typedOther.vendorItemPricingList);
60302
        if (lastComparison != 0) {
60303
          return lastComparison;
60304
        }
60305
      }
60306
      return 0;
60307
    }
60308
 
60309
    public _Fields fieldForId(int fieldId) {
60310
      return _Fields.findByThriftId(fieldId);
60311
    }
60312
 
60313
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
60314
      org.apache.thrift.protocol.TField field;
60315
      iprot.readStructBegin();
60316
      while (true)
60317
      {
60318
        field = iprot.readFieldBegin();
60319
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60320
          break;
60321
        }
60322
        switch (field.id) {
60323
          case 1: // VENDOR_ITEM_PRICING_LIST
60324
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60325
              {
60326
                org.apache.thrift.protocol.TList _list200 = iprot.readListBegin();
60327
                this.vendorItemPricingList = new ArrayList<VendorItemPricing>(_list200.size);
60328
                for (int _i201 = 0; _i201 < _list200.size; ++_i201)
60329
                {
60330
                  VendorItemPricing _elem202; // required
60331
                  _elem202 = new VendorItemPricing();
60332
                  _elem202.read(iprot);
60333
                  this.vendorItemPricingList.add(_elem202);
60334
                }
60335
                iprot.readListEnd();
60336
              }
60337
            } else { 
60338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60339
            }
60340
            break;
60341
          default:
60342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60343
        }
60344
        iprot.readFieldEnd();
60345
      }
60346
      iprot.readStructEnd();
60347
      validate();
60348
    }
60349
 
60350
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60351
      validate();
60352
 
60353
      oprot.writeStructBegin(STRUCT_DESC);
60354
      if (this.vendorItemPricingList != null) {
60355
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_LIST_FIELD_DESC);
60356
        {
60357
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.vendorItemPricingList.size()));
60358
          for (VendorItemPricing _iter203 : this.vendorItemPricingList)
60359
          {
60360
            _iter203.write(oprot);
60361
          }
60362
          oprot.writeListEnd();
60363
        }
60364
        oprot.writeFieldEnd();
60365
      }
60366
      oprot.writeFieldStop();
60367
      oprot.writeStructEnd();
60368
    }
60369
 
60370
    @Override
60371
    public String toString() {
60372
      StringBuilder sb = new StringBuilder("addVendorItemPricingInBulk_args(");
60373
      boolean first = true;
60374
 
60375
      sb.append("vendorItemPricingList:");
60376
      if (this.vendorItemPricingList == null) {
60377
        sb.append("null");
60378
      } else {
60379
        sb.append(this.vendorItemPricingList);
60380
      }
60381
      first = false;
60382
      sb.append(")");
60383
      return sb.toString();
60384
    }
60385
 
60386
    public void validate() throws org.apache.thrift.TException {
60387
      // check for required fields
60388
    }
60389
 
60390
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
60391
      try {
60392
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
60393
      } catch (org.apache.thrift.TException te) {
60394
        throw new java.io.IOException(te);
60395
      }
60396
    }
60397
 
60398
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60399
      try {
60400
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60401
      } catch (org.apache.thrift.TException te) {
60402
        throw new java.io.IOException(te);
60403
      }
60404
    }
60405
 
60406
  }
60407
 
60408
  public static class addVendorItemPricingInBulk_result implements org.apache.thrift.TBase<addVendorItemPricingInBulk_result, addVendorItemPricingInBulk_result._Fields>, java.io.Serializable, Cloneable   {
60409
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricingInBulk_result");
60410
 
60411
    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);
60412
 
60413
    private List<Long> success; // required
60414
 
60415
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60416
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60417
      SUCCESS((short)0, "success");
60418
 
60419
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60420
 
60421
      static {
60422
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
60423
          byName.put(field.getFieldName(), field);
60424
        }
60425
      }
60426
 
60427
      /**
60428
       * Find the _Fields constant that matches fieldId, or null if its not found.
60429
       */
60430
      public static _Fields findByThriftId(int fieldId) {
60431
        switch(fieldId) {
60432
          case 0: // SUCCESS
60433
            return SUCCESS;
60434
          default:
60435
            return null;
60436
        }
60437
      }
60438
 
60439
      /**
60440
       * Find the _Fields constant that matches fieldId, throwing an exception
60441
       * if it is not found.
60442
       */
60443
      public static _Fields findByThriftIdOrThrow(int fieldId) {
60444
        _Fields fields = findByThriftId(fieldId);
60445
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
60446
        return fields;
60447
      }
60448
 
60449
      /**
60450
       * Find the _Fields constant that matches name, or null if its not found.
60451
       */
60452
      public static _Fields findByName(String name) {
60453
        return byName.get(name);
60454
      }
60455
 
60456
      private final short _thriftId;
60457
      private final String _fieldName;
60458
 
60459
      _Fields(short thriftId, String fieldName) {
60460
        _thriftId = thriftId;
60461
        _fieldName = fieldName;
60462
      }
60463
 
60464
      public short getThriftFieldId() {
60465
        return _thriftId;
60466
      }
60467
 
60468
      public String getFieldName() {
60469
        return _fieldName;
60470
      }
60471
    }
60472
 
60473
    // isset id assignments
60474
 
60475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60476
    static {
60477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60478
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60479
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
60480
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
60481
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60482
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricingInBulk_result.class, metaDataMap);
60483
    }
60484
 
60485
    public addVendorItemPricingInBulk_result() {
60486
    }
60487
 
60488
    public addVendorItemPricingInBulk_result(
60489
      List<Long> success)
60490
    {
60491
      this();
60492
      this.success = success;
60493
    }
60494
 
60495
    /**
60496
     * Performs a deep copy on <i>other</i>.
60497
     */
60498
    public addVendorItemPricingInBulk_result(addVendorItemPricingInBulk_result other) {
60499
      if (other.isSetSuccess()) {
60500
        List<Long> __this__success = new ArrayList<Long>();
60501
        for (Long other_element : other.success) {
60502
          __this__success.add(other_element);
60503
        }
60504
        this.success = __this__success;
60505
      }
60506
    }
60507
 
60508
    public addVendorItemPricingInBulk_result deepCopy() {
60509
      return new addVendorItemPricingInBulk_result(this);
60510
    }
60511
 
60512
    @Override
60513
    public void clear() {
60514
      this.success = null;
60515
    }
60516
 
60517
    public int getSuccessSize() {
60518
      return (this.success == null) ? 0 : this.success.size();
60519
    }
60520
 
60521
    public java.util.Iterator<Long> getSuccessIterator() {
60522
      return (this.success == null) ? null : this.success.iterator();
60523
    }
60524
 
60525
    public void addToSuccess(long elem) {
60526
      if (this.success == null) {
60527
        this.success = new ArrayList<Long>();
60528
      }
60529
      this.success.add(elem);
60530
    }
60531
 
60532
    public List<Long> getSuccess() {
60533
      return this.success;
60534
    }
60535
 
60536
    public void setSuccess(List<Long> success) {
60537
      this.success = success;
60538
    }
60539
 
60540
    public void unsetSuccess() {
60541
      this.success = null;
60542
    }
60543
 
60544
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
60545
    public boolean isSetSuccess() {
60546
      return this.success != null;
60547
    }
60548
 
60549
    public void setSuccessIsSet(boolean value) {
60550
      if (!value) {
60551
        this.success = null;
60552
      }
60553
    }
60554
 
60555
    public void setFieldValue(_Fields field, Object value) {
60556
      switch (field) {
60557
      case SUCCESS:
60558
        if (value == null) {
60559
          unsetSuccess();
60560
        } else {
60561
          setSuccess((List<Long>)value);
60562
        }
60563
        break;
60564
 
60565
      }
60566
    }
60567
 
60568
    public Object getFieldValue(_Fields field) {
60569
      switch (field) {
60570
      case SUCCESS:
60571
        return getSuccess();
60572
 
60573
      }
60574
      throw new IllegalStateException();
60575
    }
60576
 
60577
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
60578
    public boolean isSet(_Fields field) {
60579
      if (field == null) {
60580
        throw new IllegalArgumentException();
60581
      }
60582
 
60583
      switch (field) {
60584
      case SUCCESS:
60585
        return isSetSuccess();
60586
      }
60587
      throw new IllegalStateException();
60588
    }
60589
 
60590
    @Override
60591
    public boolean equals(Object that) {
60592
      if (that == null)
60593
        return false;
60594
      if (that instanceof addVendorItemPricingInBulk_result)
60595
        return this.equals((addVendorItemPricingInBulk_result)that);
60596
      return false;
60597
    }
60598
 
60599
    public boolean equals(addVendorItemPricingInBulk_result that) {
60600
      if (that == null)
60601
        return false;
60602
 
60603
      boolean this_present_success = true && this.isSetSuccess();
60604
      boolean that_present_success = true && that.isSetSuccess();
60605
      if (this_present_success || that_present_success) {
60606
        if (!(this_present_success && that_present_success))
60607
          return false;
60608
        if (!this.success.equals(that.success))
60609
          return false;
60610
      }
60611
 
60612
      return true;
60613
    }
60614
 
60615
    @Override
60616
    public int hashCode() {
60617
      return 0;
60618
    }
60619
 
60620
    public int compareTo(addVendorItemPricingInBulk_result other) {
60621
      if (!getClass().equals(other.getClass())) {
60622
        return getClass().getName().compareTo(other.getClass().getName());
60623
      }
60624
 
60625
      int lastComparison = 0;
60626
      addVendorItemPricingInBulk_result typedOther = (addVendorItemPricingInBulk_result)other;
60627
 
60628
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
60629
      if (lastComparison != 0) {
60630
        return lastComparison;
60631
      }
60632
      if (isSetSuccess()) {
60633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
60634
        if (lastComparison != 0) {
60635
          return lastComparison;
60636
        }
60637
      }
60638
      return 0;
60639
    }
60640
 
60641
    public _Fields fieldForId(int fieldId) {
60642
      return _Fields.findByThriftId(fieldId);
60643
    }
60644
 
60645
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
60646
      org.apache.thrift.protocol.TField field;
60647
      iprot.readStructBegin();
60648
      while (true)
60649
      {
60650
        field = iprot.readFieldBegin();
60651
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60652
          break;
60653
        }
60654
        switch (field.id) {
60655
          case 0: // SUCCESS
60656
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60657
              {
60658
                org.apache.thrift.protocol.TList _list204 = iprot.readListBegin();
60659
                this.success = new ArrayList<Long>(_list204.size);
60660
                for (int _i205 = 0; _i205 < _list204.size; ++_i205)
60661
                {
60662
                  long _elem206; // required
60663
                  _elem206 = iprot.readI64();
60664
                  this.success.add(_elem206);
60665
                }
60666
                iprot.readListEnd();
60667
              }
60668
            } else { 
60669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60670
            }
60671
            break;
60672
          default:
60673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
60674
        }
60675
        iprot.readFieldEnd();
60676
      }
60677
      iprot.readStructEnd();
60678
      validate();
60679
    }
60680
 
60681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
60682
      oprot.writeStructBegin(STRUCT_DESC);
60683
 
60684
      if (this.isSetSuccess()) {
60685
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60686
        {
60687
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
60688
          for (long _iter207 : this.success)
60689
          {
60690
            oprot.writeI64(_iter207);
60691
          }
60692
          oprot.writeListEnd();
60693
        }
60694
        oprot.writeFieldEnd();
60695
      }
60696
      oprot.writeFieldStop();
60697
      oprot.writeStructEnd();
60698
    }
60699
 
60700
    @Override
60701
    public String toString() {
60702
      StringBuilder sb = new StringBuilder("addVendorItemPricingInBulk_result(");
60703
      boolean first = true;
60704
 
60705
      sb.append("success:");
60706
      if (this.success == null) {
60707
        sb.append("null");
60708
      } else {
60709
        sb.append(this.success);
60710
      }
60711
      first = false;
60712
      sb.append(")");
60713
      return sb.toString();
60714
    }
60715
 
60716
    public void validate() throws org.apache.thrift.TException {
60717
      // check for required fields
60718
    }
60719
 
60720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
60721
      try {
60722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
60723
      } catch (org.apache.thrift.TException te) {
60724
        throw new java.io.IOException(te);
60725
      }
60726
    }
60727
 
60728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
60729
      try {
60730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
60731
      } catch (org.apache.thrift.TException te) {
60732
        throw new java.io.IOException(te);
60733
      }
60734
    }
60735
 
60736
  }
60737
 
60738
  public static class addInventoryInBulk_args implements org.apache.thrift.TBase<addInventoryInBulk_args, addInventoryInBulk_args._Fields>, java.io.Serializable, Cloneable   {
60739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventoryInBulk_args");
60740
 
60741
    private static final org.apache.thrift.protocol.TField BULK_INVENTORY_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkInventoryList", org.apache.thrift.protocol.TType.LIST, (short)1);
60742
 
60743
    private List<BulkAddInventory> bulkInventoryList; // required
60744
 
60745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
60747
      BULK_INVENTORY_LIST((short)1, "bulkInventoryList");
60748
 
60749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
60750
 
60751
      static {
60752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
60753
          byName.put(field.getFieldName(), field);
60754
        }
60755
      }
60756
 
60757
      /**
60758
       * Find the _Fields constant that matches fieldId, or null if its not found.
60759
       */
60760
      public static _Fields findByThriftId(int fieldId) {
60761
        switch(fieldId) {
60762
          case 1: // BULK_INVENTORY_LIST
60763
            return BULK_INVENTORY_LIST;
60764
          default:
60765
            return null;
60766
        }
60767
      }
60768
 
60769
      /**
60770
       * Find the _Fields constant that matches fieldId, throwing an exception
60771
       * if it is not found.
60772
       */
60773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
60774
        _Fields fields = findByThriftId(fieldId);
60775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
60776
        return fields;
60777
      }
60778
 
60779
      /**
60780
       * Find the _Fields constant that matches name, or null if its not found.
60781
       */
60782
      public static _Fields findByName(String name) {
60783
        return byName.get(name);
60784
      }
60785
 
60786
      private final short _thriftId;
60787
      private final String _fieldName;
60788
 
60789
      _Fields(short thriftId, String fieldName) {
60790
        _thriftId = thriftId;
60791
        _fieldName = fieldName;
60792
      }
60793
 
60794
      public short getThriftFieldId() {
60795
        return _thriftId;
60796
      }
60797
 
60798
      public String getFieldName() {
60799
        return _fieldName;
60800
      }
60801
    }
60802
 
60803
    // isset id assignments
60804
 
60805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
60806
    static {
60807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
60808
      tmpMap.put(_Fields.BULK_INVENTORY_LIST, new org.apache.thrift.meta_data.FieldMetaData("bulkInventoryList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
60809
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
60810
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkAddInventory.class))));
60811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
60812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventoryInBulk_args.class, metaDataMap);
60813
    }
60814
 
60815
    public addInventoryInBulk_args() {
60816
    }
60817
 
60818
    public addInventoryInBulk_args(
60819
      List<BulkAddInventory> bulkInventoryList)
60820
    {
60821
      this();
60822
      this.bulkInventoryList = bulkInventoryList;
60823
    }
60824
 
60825
    /**
60826
     * Performs a deep copy on <i>other</i>.
60827
     */
60828
    public addInventoryInBulk_args(addInventoryInBulk_args other) {
60829
      if (other.isSetBulkInventoryList()) {
60830
        List<BulkAddInventory> __this__bulkInventoryList = new ArrayList<BulkAddInventory>();
60831
        for (BulkAddInventory other_element : other.bulkInventoryList) {
60832
          __this__bulkInventoryList.add(new BulkAddInventory(other_element));
60833
        }
60834
        this.bulkInventoryList = __this__bulkInventoryList;
60835
      }
60836
    }
60837
 
60838
    public addInventoryInBulk_args deepCopy() {
60839
      return new addInventoryInBulk_args(this);
60840
    }
60841
 
60842
    @Override
60843
    public void clear() {
60844
      this.bulkInventoryList = null;
60845
    }
60846
 
60847
    public int getBulkInventoryListSize() {
60848
      return (this.bulkInventoryList == null) ? 0 : this.bulkInventoryList.size();
60849
    }
60850
 
60851
    public java.util.Iterator<BulkAddInventory> getBulkInventoryListIterator() {
60852
      return (this.bulkInventoryList == null) ? null : this.bulkInventoryList.iterator();
60853
    }
60854
 
60855
    public void addToBulkInventoryList(BulkAddInventory elem) {
60856
      if (this.bulkInventoryList == null) {
60857
        this.bulkInventoryList = new ArrayList<BulkAddInventory>();
60858
      }
60859
      this.bulkInventoryList.add(elem);
60860
    }
60861
 
60862
    public List<BulkAddInventory> getBulkInventoryList() {
60863
      return this.bulkInventoryList;
60864
    }
60865
 
60866
    public void setBulkInventoryList(List<BulkAddInventory> bulkInventoryList) {
60867
      this.bulkInventoryList = bulkInventoryList;
60868
    }
60869
 
60870
    public void unsetBulkInventoryList() {
60871
      this.bulkInventoryList = null;
60872
    }
60873
 
60874
    /** Returns true if field bulkInventoryList is set (has been assigned a value) and false otherwise */
60875
    public boolean isSetBulkInventoryList() {
60876
      return this.bulkInventoryList != null;
60877
    }
60878
 
60879
    public void setBulkInventoryListIsSet(boolean value) {
60880
      if (!value) {
60881
        this.bulkInventoryList = null;
60882
      }
60883
    }
60884
 
60885
    public void setFieldValue(_Fields field, Object value) {
60886
      switch (field) {
60887
      case BULK_INVENTORY_LIST:
60888
        if (value == null) {
60889
          unsetBulkInventoryList();
60890
        } else {
60891
          setBulkInventoryList((List<BulkAddInventory>)value);
60892
        }
60893
        break;
60894
 
60895
      }
60896
    }
60897
 
60898
    public Object getFieldValue(_Fields field) {
60899
      switch (field) {
60900
      case BULK_INVENTORY_LIST:
60901
        return getBulkInventoryList();
60902
 
60903
      }
60904
      throw new IllegalStateException();
60905
    }
60906
 
60907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
60908
    public boolean isSet(_Fields field) {
60909
      if (field == null) {
60910
        throw new IllegalArgumentException();
60911
      }
60912
 
60913
      switch (field) {
60914
      case BULK_INVENTORY_LIST:
60915
        return isSetBulkInventoryList();
60916
      }
60917
      throw new IllegalStateException();
60918
    }
60919
 
60920
    @Override
60921
    public boolean equals(Object that) {
60922
      if (that == null)
60923
        return false;
60924
      if (that instanceof addInventoryInBulk_args)
60925
        return this.equals((addInventoryInBulk_args)that);
60926
      return false;
60927
    }
60928
 
60929
    public boolean equals(addInventoryInBulk_args that) {
60930
      if (that == null)
60931
        return false;
60932
 
60933
      boolean this_present_bulkInventoryList = true && this.isSetBulkInventoryList();
60934
      boolean that_present_bulkInventoryList = true && that.isSetBulkInventoryList();
60935
      if (this_present_bulkInventoryList || that_present_bulkInventoryList) {
60936
        if (!(this_present_bulkInventoryList && that_present_bulkInventoryList))
60937
          return false;
60938
        if (!this.bulkInventoryList.equals(that.bulkInventoryList))
60939
          return false;
60940
      }
60941
 
60942
      return true;
60943
    }
60944
 
60945
    @Override
60946
    public int hashCode() {
60947
      return 0;
60948
    }
60949
 
60950
    public int compareTo(addInventoryInBulk_args other) {
60951
      if (!getClass().equals(other.getClass())) {
60952
        return getClass().getName().compareTo(other.getClass().getName());
60953
      }
60954
 
60955
      int lastComparison = 0;
60956
      addInventoryInBulk_args typedOther = (addInventoryInBulk_args)other;
60957
 
60958
      lastComparison = Boolean.valueOf(isSetBulkInventoryList()).compareTo(typedOther.isSetBulkInventoryList());
60959
      if (lastComparison != 0) {
60960
        return lastComparison;
60961
      }
60962
      if (isSetBulkInventoryList()) {
60963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkInventoryList, typedOther.bulkInventoryList);
60964
        if (lastComparison != 0) {
60965
          return lastComparison;
60966
        }
60967
      }
60968
      return 0;
60969
    }
60970
 
60971
    public _Fields fieldForId(int fieldId) {
60972
      return _Fields.findByThriftId(fieldId);
60973
    }
60974
 
60975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
60976
      org.apache.thrift.protocol.TField field;
60977
      iprot.readStructBegin();
60978
      while (true)
60979
      {
60980
        field = iprot.readFieldBegin();
60981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
60982
          break;
60983
        }
60984
        switch (field.id) {
60985
          case 1: // BULK_INVENTORY_LIST
60986
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60987
              {
60988
                org.apache.thrift.protocol.TList _list208 = iprot.readListBegin();
60989
                this.bulkInventoryList = new ArrayList<BulkAddInventory>(_list208.size);
60990
                for (int _i209 = 0; _i209 < _list208.size; ++_i209)
60991
                {
60992
                  BulkAddInventory _elem210; // required
60993
                  _elem210 = new BulkAddInventory();
60994
                  _elem210.read(iprot);
60995
                  this.bulkInventoryList.add(_elem210);
60996
                }
60997
                iprot.readListEnd();
60998
              }
60999
            } else { 
61000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61001
            }
61002
            break;
61003
          default:
61004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61005
        }
61006
        iprot.readFieldEnd();
61007
      }
61008
      iprot.readStructEnd();
61009
      validate();
61010
    }
61011
 
61012
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
61013
      validate();
61014
 
61015
      oprot.writeStructBegin(STRUCT_DESC);
61016
      if (this.bulkInventoryList != null) {
61017
        oprot.writeFieldBegin(BULK_INVENTORY_LIST_FIELD_DESC);
61018
        {
61019
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bulkInventoryList.size()));
61020
          for (BulkAddInventory _iter211 : this.bulkInventoryList)
61021
          {
61022
            _iter211.write(oprot);
61023
          }
61024
          oprot.writeListEnd();
61025
        }
61026
        oprot.writeFieldEnd();
61027
      }
61028
      oprot.writeFieldStop();
61029
      oprot.writeStructEnd();
61030
    }
61031
 
61032
    @Override
61033
    public String toString() {
61034
      StringBuilder sb = new StringBuilder("addInventoryInBulk_args(");
61035
      boolean first = true;
61036
 
61037
      sb.append("bulkInventoryList:");
61038
      if (this.bulkInventoryList == null) {
61039
        sb.append("null");
61040
      } else {
61041
        sb.append(this.bulkInventoryList);
61042
      }
61043
      first = false;
61044
      sb.append(")");
61045
      return sb.toString();
61046
    }
61047
 
61048
    public void validate() throws org.apache.thrift.TException {
61049
      // check for required fields
61050
    }
61051
 
61052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61053
      try {
61054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
61055
      } catch (org.apache.thrift.TException te) {
61056
        throw new java.io.IOException(te);
61057
      }
61058
    }
61059
 
61060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61061
      try {
61062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61063
      } catch (org.apache.thrift.TException te) {
61064
        throw new java.io.IOException(te);
61065
      }
61066
    }
61067
 
61068
  }
61069
 
61070
  public static class addInventoryInBulk_result implements org.apache.thrift.TBase<addInventoryInBulk_result, addInventoryInBulk_result._Fields>, java.io.Serializable, Cloneable   {
61071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventoryInBulk_result");
61072
 
61073
    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);
61074
 
61075
    private InventoryServiceException cex; // required
61076
 
61077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
61079
      CEX((short)1, "cex");
61080
 
61081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61082
 
61083
      static {
61084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
61085
          byName.put(field.getFieldName(), field);
61086
        }
61087
      }
61088
 
61089
      /**
61090
       * Find the _Fields constant that matches fieldId, or null if its not found.
61091
       */
61092
      public static _Fields findByThriftId(int fieldId) {
61093
        switch(fieldId) {
61094
          case 1: // CEX
61095
            return CEX;
61096
          default:
61097
            return null;
61098
        }
61099
      }
61100
 
61101
      /**
61102
       * Find the _Fields constant that matches fieldId, throwing an exception
61103
       * if it is not found.
61104
       */
61105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
61106
        _Fields fields = findByThriftId(fieldId);
61107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
61108
        return fields;
61109
      }
61110
 
61111
      /**
61112
       * Find the _Fields constant that matches name, or null if its not found.
61113
       */
61114
      public static _Fields findByName(String name) {
61115
        return byName.get(name);
61116
      }
61117
 
61118
      private final short _thriftId;
61119
      private final String _fieldName;
61120
 
61121
      _Fields(short thriftId, String fieldName) {
61122
        _thriftId = thriftId;
61123
        _fieldName = fieldName;
61124
      }
61125
 
61126
      public short getThriftFieldId() {
61127
        return _thriftId;
61128
      }
61129
 
61130
      public String getFieldName() {
61131
        return _fieldName;
61132
      }
61133
    }
61134
 
61135
    // isset id assignments
61136
 
61137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
61138
    static {
61139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
61140
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
61141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
61142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
61143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventoryInBulk_result.class, metaDataMap);
61144
    }
61145
 
61146
    public addInventoryInBulk_result() {
61147
    }
61148
 
61149
    public addInventoryInBulk_result(
61150
      InventoryServiceException cex)
61151
    {
61152
      this();
61153
      this.cex = cex;
61154
    }
61155
 
61156
    /**
61157
     * Performs a deep copy on <i>other</i>.
61158
     */
61159
    public addInventoryInBulk_result(addInventoryInBulk_result other) {
61160
      if (other.isSetCex()) {
61161
        this.cex = new InventoryServiceException(other.cex);
61162
      }
61163
    }
61164
 
61165
    public addInventoryInBulk_result deepCopy() {
61166
      return new addInventoryInBulk_result(this);
61167
    }
61168
 
61169
    @Override
61170
    public void clear() {
61171
      this.cex = null;
61172
    }
61173
 
61174
    public InventoryServiceException getCex() {
61175
      return this.cex;
61176
    }
61177
 
61178
    public void setCex(InventoryServiceException cex) {
61179
      this.cex = cex;
61180
    }
61181
 
61182
    public void unsetCex() {
61183
      this.cex = null;
61184
    }
61185
 
61186
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
61187
    public boolean isSetCex() {
61188
      return this.cex != null;
61189
    }
61190
 
61191
    public void setCexIsSet(boolean value) {
61192
      if (!value) {
61193
        this.cex = null;
61194
      }
61195
    }
61196
 
61197
    public void setFieldValue(_Fields field, Object value) {
61198
      switch (field) {
61199
      case CEX:
61200
        if (value == null) {
61201
          unsetCex();
61202
        } else {
61203
          setCex((InventoryServiceException)value);
61204
        }
61205
        break;
61206
 
61207
      }
61208
    }
61209
 
61210
    public Object getFieldValue(_Fields field) {
61211
      switch (field) {
61212
      case CEX:
61213
        return getCex();
61214
 
61215
      }
61216
      throw new IllegalStateException();
61217
    }
61218
 
61219
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
61220
    public boolean isSet(_Fields field) {
61221
      if (field == null) {
61222
        throw new IllegalArgumentException();
61223
      }
61224
 
61225
      switch (field) {
61226
      case CEX:
61227
        return isSetCex();
61228
      }
61229
      throw new IllegalStateException();
61230
    }
61231
 
61232
    @Override
61233
    public boolean equals(Object that) {
61234
      if (that == null)
61235
        return false;
61236
      if (that instanceof addInventoryInBulk_result)
61237
        return this.equals((addInventoryInBulk_result)that);
61238
      return false;
61239
    }
61240
 
61241
    public boolean equals(addInventoryInBulk_result that) {
61242
      if (that == null)
61243
        return false;
61244
 
61245
      boolean this_present_cex = true && this.isSetCex();
61246
      boolean that_present_cex = true && that.isSetCex();
61247
      if (this_present_cex || that_present_cex) {
61248
        if (!(this_present_cex && that_present_cex))
61249
          return false;
61250
        if (!this.cex.equals(that.cex))
61251
          return false;
61252
      }
61253
 
61254
      return true;
61255
    }
61256
 
61257
    @Override
61258
    public int hashCode() {
61259
      return 0;
61260
    }
61261
 
61262
    public int compareTo(addInventoryInBulk_result other) {
61263
      if (!getClass().equals(other.getClass())) {
61264
        return getClass().getName().compareTo(other.getClass().getName());
61265
      }
61266
 
61267
      int lastComparison = 0;
61268
      addInventoryInBulk_result typedOther = (addInventoryInBulk_result)other;
61269
 
61270
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
61271
      if (lastComparison != 0) {
61272
        return lastComparison;
61273
      }
61274
      if (isSetCex()) {
61275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
61276
        if (lastComparison != 0) {
61277
          return lastComparison;
61278
        }
61279
      }
61280
      return 0;
61281
    }
61282
 
61283
    public _Fields fieldForId(int fieldId) {
61284
      return _Fields.findByThriftId(fieldId);
61285
    }
61286
 
61287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
61288
      org.apache.thrift.protocol.TField field;
61289
      iprot.readStructBegin();
61290
      while (true)
61291
      {
61292
        field = iprot.readFieldBegin();
61293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
61294
          break;
61295
        }
61296
        switch (field.id) {
61297
          case 1: // CEX
61298
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
61299
              this.cex = new InventoryServiceException();
61300
              this.cex.read(iprot);
61301
            } else { 
61302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61303
            }
61304
            break;
61305
          default:
61306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61307
        }
61308
        iprot.readFieldEnd();
61309
      }
61310
      iprot.readStructEnd();
61311
      validate();
61312
    }
61313
 
61314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
61315
      oprot.writeStructBegin(STRUCT_DESC);
61316
 
61317
      if (this.isSetCex()) {
61318
        oprot.writeFieldBegin(CEX_FIELD_DESC);
61319
        this.cex.write(oprot);
61320
        oprot.writeFieldEnd();
61321
      }
61322
      oprot.writeFieldStop();
61323
      oprot.writeStructEnd();
61324
    }
61325
 
61326
    @Override
61327
    public String toString() {
61328
      StringBuilder sb = new StringBuilder("addInventoryInBulk_result(");
61329
      boolean first = true;
61330
 
61331
      sb.append("cex:");
61332
      if (this.cex == null) {
61333
        sb.append("null");
61334
      } else {
61335
        sb.append(this.cex);
61336
      }
61337
      first = false;
61338
      sb.append(")");
61339
      return sb.toString();
61340
    }
61341
 
61342
    public void validate() throws org.apache.thrift.TException {
61343
      // check for required fields
61344
    }
61345
 
61346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
61347
      try {
61348
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
61349
      } catch (org.apache.thrift.TException te) {
61350
        throw new java.io.IOException(te);
61351
      }
61352
    }
61353
 
61354
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
61355
      try {
61356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
61357
      } catch (org.apache.thrift.TException te) {
61358
        throw new java.io.IOException(te);
61359
      }
61360
    }
61361
 
61362
  }
61363
 
5945 mandeep.dh 61364
}