Subversion Repositories SmartDukaan

Rev

Rev 7281 | Rev 7718 | 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
    /**
120
     * Decreases the reservation count for an item in a warehouse. Should always succeed normally.
121
     * 
122
     * @param itemId
123
     * @param warehouseId
5967 rajveer 124
     * @param sourceId
125
     * @param orderId
5945 mandeep.dh 126
     * @param quantity
127
     */
5967 rajveer 128
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException;
5945 mandeep.dh 129
 
130
    /**
131
     * Returns the pricing information of an item associated with the vendor of the given warehouse.
132
     * Raises an exception if either the item, vendor or the associated pricing information can't be found.
133
     * 
134
     * @param itemId
135
     * @param vendorId
136
     */
137
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException;
138
 
139
    /**
140
     * Returns the list of vendor pricing information of an item.
141
     * Raises an exception if item not found corresponding to itemId
142
     * 
143
     * @param itemId
144
     */
145
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
146
 
147
    /**
148
     * Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
149
     * Raises an exception if either the item or vendor can't be found corresponding to their ids.
150
     * 
151
     * @param vendorItemPricing
152
     */
153
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException;
154
 
155
    /**
156
     * Returns a vendor given its id
157
     * 
158
     * @param vendorId
159
     */
160
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException;
161
 
162
    /**
163
     * Return list of all vendors
164
     */
165
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException;
166
 
167
    /**
168
     * Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
169
     * 
170
     * @param key
171
     * @param vendorItemMapping
172
     */
173
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException;
174
 
175
    /**
176
     * Returns the list of vendor item mapping corresponding to itemId passed as parameter.
177
     * Raises an exception if item not found corresponding to itemId
178
     * 
179
     * @param itemId
180
     */
181
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException;
182
 
183
    /**
184
     * Returns a list of inventory stock for items for which there are pending orders for the given vendor.
185
     * 
186
     * @param vendorid
187
     */
188
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException;
189
 
190
    /**
191
     * This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
192
     * 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
193
     * 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
194
     *    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
195
     *    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
196
     * 
197
     * @param warehouseType
198
     * @param inventoryType
199
     * @param vendorId
200
     * @param billingWarehouseId
201
     * @param shippingWarehouseId
202
     */
203
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException;
204
 
205
    /**
206
     * Resets availability of an item to the quantity mentioned in a warehouse.
207
     * 
208
     * @param itemKey
209
     * @param vendorId
210
     * @param quantity
211
     * @param warehouseId
212
     */
213
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
214
 
215
    /**
216
     * Resets availability of a warehouse to zero.
217
     * 
218
     * @param warehouseId
219
     */
220
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException;
221
 
222
    /**
223
     * Returns the list of item keys which need to be processed for a given warehouse.
224
     * This is currently used by Support application to send item keys whose inventory needs
225
     * to be updated from PLB
226
     * 
227
     * @param warehouseId
228
     */
229
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException;
230
 
231
    /**
232
     * Marks/Deletes missed inventory updates for a given key and warehouse.
233
     * This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
234
     * 
235
     * @param itemKey
236
     * @param warehouseId
237
     */
238
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException;
239
 
240
    /**
241
     * Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
242
     * and the timestamp from where alert was raised.
243
     */
244
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException;
245
 
246
    /**
247
     * Add the BAD type inventory to existing stock.
248
     * 
249
     * @param itemId
250
     * @param warehouseId
251
     * @param quantity
252
     */
253
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException;
254
 
255
    /**
256
     * Returns all shipping locations
257
     */
258
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException;
259
 
260
    /**
261
     * Fetches all the vendor item mappings present.
262
     */
263
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException;
264
 
265
    /**
266
     * Gets items' inventory for a warehouse
267
     * If warehouse is passed as zero, items' inventory across all warehouses is sent
268
     * 
269
     * @param warehouseId
270
     */
271
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException;
272
 
273
    /**
274
     * Clear item availability cache.
275
     */
276
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
277
 
278
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
279
 
6096 amit.gupta 280
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
281
 
6467 amar.kumar 282
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException;
283
 
6484 amar.kumar 284
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException;
285
 
6531 vikram.rag 286
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException;
287
 
288
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException;
289
 
290
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException;
291
 
292
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException;
293
 
294
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException;
295
 
296
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException;
297
 
6821 amar.kumar 298
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException;
299
 
300
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException;
301
 
302
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
303
 
6832 amar.kumar 304
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException;
305
 
6857 amar.kumar 306
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException;
307
 
7149 amar.kumar 308
    /**
309
     * Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
310
     */
311
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException;
312
 
7281 kshitij.so 313
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException;
314
 
315
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException;
316
 
317
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException;
318
 
319
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException;
320
 
5945 mandeep.dh 321
  }
322
 
323
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
324
 
325
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
326
 
327
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendor_call> resultHandler) throws org.apache.thrift.TException;
328
 
329
    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;
330
 
331
    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;
332
 
333
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventory_call> resultHandler) throws org.apache.thrift.TException;
334
 
335
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retireWarehouse_call> resultHandler) throws org.apache.thrift.TException;
336
 
337
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException;
338
 
339
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException;
340
 
5978 rajveer 341
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException;
5945 mandeep.dh 342
 
343
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException;
344
 
345
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouse_call> resultHandler) throws org.apache.thrift.TException;
346
 
347
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
348
 
5967 rajveer 349
    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 350
 
5967 rajveer 351
    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 352
 
5967 rajveer 353
    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;
354
 
5945 mandeep.dh 355
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPricing_call> resultHandler) throws org.apache.thrift.TException;
356
 
357
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException;
358
 
359
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException;
360
 
361
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendor_call> resultHandler) throws org.apache.thrift.TException;
362
 
363
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendors_call> resultHandler) throws org.apache.thrift.TException;
364
 
365
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException;
366
 
367
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
368
 
369
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException;
370
 
371
    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;
372
 
373
    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;
374
 
375
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException;
376
 
377
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException;
378
 
379
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
380
 
381
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException;
382
 
383
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBadInventory_call> resultHandler) throws org.apache.thrift.TException;
384
 
385
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShippingLocations_call> resultHandler) throws org.apache.thrift.TException;
386
 
387
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException;
388
 
389
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
390
 
391
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
392
 
393
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
394
 
6096 amit.gupta 395
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
396
 
6467 amar.kumar 397
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
398
 
6484 amar.kumar 399
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
400
 
6531 vikram.rag 401
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException;
402
 
403
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException;
404
 
405
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException;
406
 
407
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException;
408
 
409
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException;
410
 
411
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException;
412
 
6821 amar.kumar 413
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
414
 
415
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
416
 
417
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
418
 
6832 amar.kumar 419
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
420
 
6857 amar.kumar 421
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
422
 
7149 amar.kumar 423
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException;
424
 
7281 kshitij.so 425
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseName_call> resultHandler) throws org.apache.thrift.TException;
426
 
427
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
428
 
429
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException;
430
 
431
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
432
 
5945 mandeep.dh 433
  }
434
 
435
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
436
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
437
      public Factory() {}
438
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
439
        return new Client(prot);
440
      }
441
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
442
        return new Client(iprot, oprot);
443
      }
444
    }
445
 
446
    public Client(org.apache.thrift.protocol.TProtocol prot)
447
    {
448
      super(prot, prot);
449
    }
450
 
451
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
452
      super(iprot, oprot);
453
    }
454
 
455
    public long addWarehouse(Warehouse warehouse) throws InventoryServiceException, org.apache.thrift.TException
456
    {
457
      send_addWarehouse(warehouse);
458
      return recv_addWarehouse();
459
    }
460
 
461
    public void send_addWarehouse(Warehouse warehouse) throws org.apache.thrift.TException
462
    {
463
      addWarehouse_args args = new addWarehouse_args();
464
      args.setWarehouse(warehouse);
465
      sendBase("addWarehouse", args);
466
    }
467
 
468
    public long recv_addWarehouse() throws InventoryServiceException, org.apache.thrift.TException
469
    {
470
      addWarehouse_result result = new addWarehouse_result();
471
      receiveBase(result, "addWarehouse");
472
      if (result.isSetSuccess()) {
473
        return result.success;
474
      }
475
      if (result.cex != null) {
476
        throw result.cex;
477
      }
478
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
479
    }
480
 
481
    public long addVendor(Vendor vendor) throws InventoryServiceException, org.apache.thrift.TException
482
    {
483
      send_addVendor(vendor);
484
      return recv_addVendor();
485
    }
486
 
487
    public void send_addVendor(Vendor vendor) throws org.apache.thrift.TException
488
    {
489
      addVendor_args args = new addVendor_args();
490
      args.setVendor(vendor);
491
      sendBase("addVendor", args);
492
    }
493
 
494
    public long recv_addVendor() throws InventoryServiceException, org.apache.thrift.TException
495
    {
496
      addVendor_result result = new addVendor_result();
497
      receiveBase(result, "addVendor");
498
      if (result.isSetSuccess()) {
499
        return result.success;
500
      }
501
      if (result.cex != null) {
502
        throw result.cex;
503
      }
504
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
505
    }
506
 
507
    public void updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
508
    {
509
      send_updateInventoryHistory(warehouse_id, timestamp, availability);
510
      recv_updateInventoryHistory();
511
    }
512
 
513
    public void send_updateInventoryHistory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
514
    {
515
      updateInventoryHistory_args args = new updateInventoryHistory_args();
516
      args.setWarehouse_id(warehouse_id);
517
      args.setTimestamp(timestamp);
518
      args.setAvailability(availability);
519
      sendBase("updateInventoryHistory", args);
520
    }
521
 
522
    public void recv_updateInventoryHistory() throws InventoryServiceException, org.apache.thrift.TException
523
    {
524
      updateInventoryHistory_result result = new updateInventoryHistory_result();
525
      receiveBase(result, "updateInventoryHistory");
526
      if (result.cex != null) {
527
        throw result.cex;
528
      }
529
      return;
530
    }
531
 
532
    public void updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws InventoryServiceException, org.apache.thrift.TException
533
    {
534
      send_updateInventory(warehouse_id, timestamp, availability);
535
      recv_updateInventory();
536
    }
537
 
538
    public void send_updateInventory(long warehouse_id, String timestamp, Map<String,Long> availability) throws org.apache.thrift.TException
539
    {
540
      updateInventory_args args = new updateInventory_args();
541
      args.setWarehouse_id(warehouse_id);
542
      args.setTimestamp(timestamp);
543
      args.setAvailability(availability);
544
      sendBase("updateInventory", args);
545
    }
546
 
547
    public void recv_updateInventory() throws InventoryServiceException, org.apache.thrift.TException
548
    {
549
      updateInventory_result result = new updateInventory_result();
550
      receiveBase(result, "updateInventory");
551
      if (result.cex != null) {
552
        throw result.cex;
553
      }
554
      return;
555
    }
556
 
557
    public void addInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
558
    {
559
      send_addInventory(itemId, warehouseId, quantity);
560
      recv_addInventory();
561
    }
562
 
563
    public void send_addInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
564
    {
565
      addInventory_args args = new addInventory_args();
566
      args.setItemId(itemId);
567
      args.setWarehouseId(warehouseId);
568
      args.setQuantity(quantity);
569
      sendBase("addInventory", args);
570
    }
571
 
572
    public void recv_addInventory() throws InventoryServiceException, org.apache.thrift.TException
573
    {
574
      addInventory_result result = new addInventory_result();
575
      receiveBase(result, "addInventory");
576
      if (result.cex != null) {
577
        throw result.cex;
578
      }
579
      return;
580
    }
581
 
582
    public void retireWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
583
    {
584
      send_retireWarehouse(warehouse_id);
585
      recv_retireWarehouse();
586
    }
587
 
588
    public void send_retireWarehouse(long warehouse_id) throws org.apache.thrift.TException
589
    {
590
      retireWarehouse_args args = new retireWarehouse_args();
591
      args.setWarehouse_id(warehouse_id);
592
      sendBase("retireWarehouse", args);
593
    }
594
 
595
    public void recv_retireWarehouse() throws InventoryServiceException, org.apache.thrift.TException
596
    {
597
      retireWarehouse_result result = new retireWarehouse_result();
598
      receiveBase(result, "retireWarehouse");
599
      if (result.cex != null) {
600
        throw result.cex;
601
      }
602
      return;
603
    }
604
 
605
    public ItemInventory getItemInventoryByItemId(long item_id) throws InventoryServiceException, org.apache.thrift.TException
606
    {
607
      send_getItemInventoryByItemId(item_id);
608
      return recv_getItemInventoryByItemId();
609
    }
610
 
611
    public void send_getItemInventoryByItemId(long item_id) throws org.apache.thrift.TException
612
    {
613
      getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
614
      args.setItem_id(item_id);
615
      sendBase("getItemInventoryByItemId", args);
616
    }
617
 
618
    public ItemInventory recv_getItemInventoryByItemId() throws InventoryServiceException, org.apache.thrift.TException
619
    {
620
      getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
621
      receiveBase(result, "getItemInventoryByItemId");
622
      if (result.isSetSuccess()) {
623
        return result.success;
624
      }
625
      if (result.cex != null) {
626
        throw result.cex;
627
      }
628
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
629
    }
630
 
631
    public long getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws InventoryServiceException, org.apache.thrift.TException
632
    {
633
      send_getItemAvailibilityAtWarehouse(warehouse_id, item_id);
634
      return recv_getItemAvailibilityAtWarehouse();
635
    }
636
 
637
    public void send_getItemAvailibilityAtWarehouse(long warehouse_id, long item_id) throws org.apache.thrift.TException
638
    {
639
      getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
640
      args.setWarehouse_id(warehouse_id);
641
      args.setItem_id(item_id);
642
      sendBase("getItemAvailibilityAtWarehouse", args);
643
    }
644
 
645
    public long recv_getItemAvailibilityAtWarehouse() throws InventoryServiceException, org.apache.thrift.TException
646
    {
647
      getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
648
      receiveBase(result, "getItemAvailibilityAtWarehouse");
649
      if (result.isSetSuccess()) {
650
        return result.success;
651
      }
652
      if (result.cex != null) {
653
        throw result.cex;
654
      }
655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
656
    }
657
 
5978 rajveer 658
    public List<Long> getItemAvailabilityAtLocation(long itemId, long sourceId) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 659
    {
5978 rajveer 660
      send_getItemAvailabilityAtLocation(itemId, sourceId);
5945 mandeep.dh 661
      return recv_getItemAvailabilityAtLocation();
662
    }
663
 
5978 rajveer 664
    public void send_getItemAvailabilityAtLocation(long itemId, long sourceId) throws org.apache.thrift.TException
5945 mandeep.dh 665
    {
666
      getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
667
      args.setItemId(itemId);
5978 rajveer 668
      args.setSourceId(sourceId);
5945 mandeep.dh 669
      sendBase("getItemAvailabilityAtLocation", args);
670
    }
671
 
672
    public List<Long> recv_getItemAvailabilityAtLocation() throws InventoryServiceException, org.apache.thrift.TException
673
    {
674
      getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
675
      receiveBase(result, "getItemAvailabilityAtLocation");
676
      if (result.isSetSuccess()) {
677
        return result.success;
678
      }
679
      if (result.isex != null) {
680
        throw result.isex;
681
      }
682
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
683
    }
684
 
685
    public List<Warehouse> getAllWarehouses(boolean isActive) throws InventoryServiceException, org.apache.thrift.TException
686
    {
687
      send_getAllWarehouses(isActive);
688
      return recv_getAllWarehouses();
689
    }
690
 
691
    public void send_getAllWarehouses(boolean isActive) throws org.apache.thrift.TException
692
    {
693
      getAllWarehouses_args args = new getAllWarehouses_args();
694
      args.setIsActive(isActive);
695
      sendBase("getAllWarehouses", args);
696
    }
697
 
698
    public List<Warehouse> recv_getAllWarehouses() throws InventoryServiceException, org.apache.thrift.TException
699
    {
700
      getAllWarehouses_result result = new getAllWarehouses_result();
701
      receiveBase(result, "getAllWarehouses");
702
      if (result.isSetSuccess()) {
703
        return result.success;
704
      }
705
      if (result.cex != null) {
706
        throw result.cex;
707
      }
708
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
709
    }
710
 
711
    public Warehouse getWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
712
    {
713
      send_getWarehouse(warehouse_id);
714
      return recv_getWarehouse();
715
    }
716
 
717
    public void send_getWarehouse(long warehouse_id) throws org.apache.thrift.TException
718
    {
719
      getWarehouse_args args = new getWarehouse_args();
720
      args.setWarehouse_id(warehouse_id);
721
      sendBase("getWarehouse", args);
722
    }
723
 
724
    public Warehouse recv_getWarehouse() throws InventoryServiceException, org.apache.thrift.TException
725
    {
726
      getWarehouse_result result = new getWarehouse_result();
727
      receiveBase(result, "getWarehouse");
728
      if (result.isSetSuccess()) {
729
        return result.success;
730
      }
731
      if (result.cex != null) {
732
        throw result.cex;
733
      }
734
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
735
    }
736
 
737
    public List<Long> getAllItemsForWarehouse(long warehouse_id) throws InventoryServiceException, org.apache.thrift.TException
738
    {
739
      send_getAllItemsForWarehouse(warehouse_id);
740
      return recv_getAllItemsForWarehouse();
741
    }
742
 
743
    public void send_getAllItemsForWarehouse(long warehouse_id) throws org.apache.thrift.TException
744
    {
745
      getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
746
      args.setWarehouse_id(warehouse_id);
747
      sendBase("getAllItemsForWarehouse", args);
748
    }
749
 
750
    public List<Long> recv_getAllItemsForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
751
    {
752
      getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
753
      receiveBase(result, "getAllItemsForWarehouse");
754
      if (result.isSetSuccess()) {
755
        return result.success;
756
      }
757
      if (result.cex != null) {
758
        throw result.cex;
759
      }
760
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
761
    }
762
 
5967 rajveer 763
    public boolean isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
5945 mandeep.dh 764
    {
5967 rajveer 765
      send_isOrderBillable(itemId, warehouseId, sourceId, orderId);
766
      return recv_isOrderBillable();
767
    }
768
 
769
    public void send_isOrderBillable(long itemId, long warehouseId, long sourceId, long orderId) throws org.apache.thrift.TException
770
    {
771
      isOrderBillable_args args = new isOrderBillable_args();
772
      args.setItemId(itemId);
773
      args.setWarehouseId(warehouseId);
774
      args.setSourceId(sourceId);
775
      args.setOrderId(orderId);
776
      sendBase("isOrderBillable", args);
777
    }
778
 
779
    public boolean recv_isOrderBillable() throws org.apache.thrift.TException
780
    {
781
      isOrderBillable_result result = new isOrderBillable_result();
782
      receiveBase(result, "isOrderBillable");
783
      if (result.isSetSuccess()) {
784
        return result.success;
785
      }
786
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
787
    }
788
 
789
    public boolean reserveItemInWarehouse(long itemId, long warehouseId, long sourceId, long orderId, long createdTimestamp, long promisedShippingTimestamp, double quantity) throws InventoryServiceException, org.apache.thrift.TException
790
    {
791
      send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity);
5945 mandeep.dh 792
      return recv_reserveItemInWarehouse();
793
    }
794
 
5967 rajveer 795
    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 796
    {
797
      reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
798
      args.setItemId(itemId);
799
      args.setWarehouseId(warehouseId);
5967 rajveer 800
      args.setSourceId(sourceId);
801
      args.setOrderId(orderId);
802
      args.setCreatedTimestamp(createdTimestamp);
803
      args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 804
      args.setQuantity(quantity);
805
      sendBase("reserveItemInWarehouse", args);
806
    }
807
 
808
    public boolean recv_reserveItemInWarehouse() throws InventoryServiceException, org.apache.thrift.TException
809
    {
810
      reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
811
      receiveBase(result, "reserveItemInWarehouse");
812
      if (result.isSetSuccess()) {
813
        return result.success;
814
      }
815
      if (result.cex != null) {
816
        throw result.cex;
817
      }
818
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
819
    }
820
 
5967 rajveer 821
    public boolean reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws InventoryServiceException, org.apache.thrift.TException
5945 mandeep.dh 822
    {
5967 rajveer 823
      send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity);
5945 mandeep.dh 824
      return recv_reduceReservationCount();
825
    }
826
 
5967 rajveer 827
    public void send_reduceReservationCount(long itemId, long warehouseId, long sourceId, long orderId, double quantity) throws org.apache.thrift.TException
5945 mandeep.dh 828
    {
829
      reduceReservationCount_args args = new reduceReservationCount_args();
830
      args.setItemId(itemId);
831
      args.setWarehouseId(warehouseId);
5967 rajveer 832
      args.setSourceId(sourceId);
833
      args.setOrderId(orderId);
5945 mandeep.dh 834
      args.setQuantity(quantity);
835
      sendBase("reduceReservationCount", args);
836
    }
837
 
838
    public boolean recv_reduceReservationCount() throws InventoryServiceException, org.apache.thrift.TException
839
    {
840
      reduceReservationCount_result result = new reduceReservationCount_result();
841
      receiveBase(result, "reduceReservationCount");
842
      if (result.isSetSuccess()) {
843
        return result.success;
844
      }
845
      if (result.cex != null) {
846
        throw result.cex;
847
      }
848
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
849
    }
850
 
851
    public VendorItemPricing getItemPricing(long itemId, long vendorId) throws InventoryServiceException, org.apache.thrift.TException
852
    {
853
      send_getItemPricing(itemId, vendorId);
854
      return recv_getItemPricing();
855
    }
856
 
857
    public void send_getItemPricing(long itemId, long vendorId) throws org.apache.thrift.TException
858
    {
859
      getItemPricing_args args = new getItemPricing_args();
860
      args.setItemId(itemId);
861
      args.setVendorId(vendorId);
862
      sendBase("getItemPricing", args);
863
    }
864
 
865
    public VendorItemPricing recv_getItemPricing() throws InventoryServiceException, org.apache.thrift.TException
866
    {
867
      getItemPricing_result result = new getItemPricing_result();
868
      receiveBase(result, "getItemPricing");
869
      if (result.isSetSuccess()) {
870
        return result.success;
871
      }
872
      if (result.cex != null) {
873
        throw result.cex;
874
      }
875
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
876
    }
877
 
878
    public List<VendorItemPricing> getAllItemPricing(long itemId) throws InventoryServiceException, org.apache.thrift.TException
879
    {
880
      send_getAllItemPricing(itemId);
881
      return recv_getAllItemPricing();
882
    }
883
 
884
    public void send_getAllItemPricing(long itemId) throws org.apache.thrift.TException
885
    {
886
      getAllItemPricing_args args = new getAllItemPricing_args();
887
      args.setItemId(itemId);
888
      sendBase("getAllItemPricing", args);
889
    }
890
 
891
    public List<VendorItemPricing> recv_getAllItemPricing() throws InventoryServiceException, org.apache.thrift.TException
892
    {
893
      getAllItemPricing_result result = new getAllItemPricing_result();
894
      receiveBase(result, "getAllItemPricing");
895
      if (result.isSetSuccess()) {
896
        return result.success;
897
      }
898
      if (result.cex != null) {
899
        throw result.cex;
900
      }
901
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
902
    }
903
 
904
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing) throws InventoryServiceException, org.apache.thrift.TException
905
    {
906
      send_addVendorItemPricing(vendorItemPricing);
907
      recv_addVendorItemPricing();
908
    }
909
 
910
    public void send_addVendorItemPricing(VendorItemPricing vendorItemPricing) throws org.apache.thrift.TException
911
    {
912
      addVendorItemPricing_args args = new addVendorItemPricing_args();
913
      args.setVendorItemPricing(vendorItemPricing);
914
      sendBase("addVendorItemPricing", args);
915
    }
916
 
917
    public void recv_addVendorItemPricing() throws InventoryServiceException, org.apache.thrift.TException
918
    {
919
      addVendorItemPricing_result result = new addVendorItemPricing_result();
920
      receiveBase(result, "addVendorItemPricing");
921
      if (result.cex != null) {
922
        throw result.cex;
923
      }
924
      return;
925
    }
926
 
927
    public Vendor getVendor(long vendorId) throws org.apache.thrift.TException
928
    {
929
      send_getVendor(vendorId);
930
      return recv_getVendor();
931
    }
932
 
933
    public void send_getVendor(long vendorId) throws org.apache.thrift.TException
934
    {
935
      getVendor_args args = new getVendor_args();
936
      args.setVendorId(vendorId);
937
      sendBase("getVendor", args);
938
    }
939
 
940
    public Vendor recv_getVendor() throws org.apache.thrift.TException
941
    {
942
      getVendor_result result = new getVendor_result();
943
      receiveBase(result, "getVendor");
944
      if (result.isSetSuccess()) {
945
        return result.success;
946
      }
947
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
948
    }
949
 
950
    public List<Vendor> getAllVendors() throws org.apache.thrift.TException
951
    {
952
      send_getAllVendors();
953
      return recv_getAllVendors();
954
    }
955
 
956
    public void send_getAllVendors() throws org.apache.thrift.TException
957
    {
958
      getAllVendors_args args = new getAllVendors_args();
959
      sendBase("getAllVendors", args);
960
    }
961
 
962
    public List<Vendor> recv_getAllVendors() throws org.apache.thrift.TException
963
    {
964
      getAllVendors_result result = new getAllVendors_result();
965
      receiveBase(result, "getAllVendors");
966
      if (result.isSetSuccess()) {
967
        return result.success;
968
      }
969
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
970
    }
971
 
972
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws InventoryServiceException, org.apache.thrift.TException
973
    {
974
      send_addVendorItemMapping(key, vendorItemMapping);
975
      recv_addVendorItemMapping();
976
    }
977
 
978
    public void send_addVendorItemMapping(String key, VendorItemMapping vendorItemMapping) throws org.apache.thrift.TException
979
    {
980
      addVendorItemMapping_args args = new addVendorItemMapping_args();
981
      args.setKey(key);
982
      args.setVendorItemMapping(vendorItemMapping);
983
      sendBase("addVendorItemMapping", args);
984
    }
985
 
986
    public void recv_addVendorItemMapping() throws InventoryServiceException, org.apache.thrift.TException
987
    {
988
      addVendorItemMapping_result result = new addVendorItemMapping_result();
989
      receiveBase(result, "addVendorItemMapping");
990
      if (result.cex != null) {
991
        throw result.cex;
992
      }
993
      return;
994
    }
995
 
996
    public List<VendorItemMapping> getVendorItemMappings(long itemId) throws InventoryServiceException, org.apache.thrift.TException
997
    {
998
      send_getVendorItemMappings(itemId);
999
      return recv_getVendorItemMappings();
1000
    }
1001
 
1002
    public void send_getVendorItemMappings(long itemId) throws org.apache.thrift.TException
1003
    {
1004
      getVendorItemMappings_args args = new getVendorItemMappings_args();
1005
      args.setItemId(itemId);
1006
      sendBase("getVendorItemMappings", args);
1007
    }
1008
 
1009
    public List<VendorItemMapping> recv_getVendorItemMappings() throws InventoryServiceException, org.apache.thrift.TException
1010
    {
1011
      getVendorItemMappings_result result = new getVendorItemMappings_result();
1012
      receiveBase(result, "getVendorItemMappings");
1013
      if (result.isSetSuccess()) {
1014
        return result.success;
1015
      }
1016
      if (result.cex != null) {
1017
        throw result.cex;
1018
      }
1019
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1020
    }
1021
 
1022
    public List<AvailableAndReservedStock> getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1023
    {
1024
      send_getPendingOrdersInventory(vendorid);
1025
      return recv_getPendingOrdersInventory();
1026
    }
1027
 
1028
    public void send_getPendingOrdersInventory(long vendorid) throws org.apache.thrift.TException
1029
    {
1030
      getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
1031
      args.setVendorid(vendorid);
1032
      sendBase("getPendingOrdersInventory", args);
1033
    }
1034
 
1035
    public List<AvailableAndReservedStock> recv_getPendingOrdersInventory() throws org.apache.thrift.TException
1036
    {
1037
      getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
1038
      receiveBase(result, "getPendingOrdersInventory");
1039
      if (result.isSetSuccess()) {
1040
        return result.success;
1041
      }
1042
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1043
    }
1044
 
1045
    public List<Warehouse> getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1046
    {
1047
      send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId);
1048
      return recv_getWarehouses();
1049
    }
1050
 
1051
    public void send_getWarehouses(WarehouseType warehouseType, InventoryType inventoryType, long vendorId, long billingWarehouseId, long shippingWarehouseId) throws org.apache.thrift.TException
1052
    {
1053
      getWarehouses_args args = new getWarehouses_args();
1054
      args.setWarehouseType(warehouseType);
1055
      args.setInventoryType(inventoryType);
1056
      args.setVendorId(vendorId);
1057
      args.setBillingWarehouseId(billingWarehouseId);
1058
      args.setShippingWarehouseId(shippingWarehouseId);
1059
      sendBase("getWarehouses", args);
1060
    }
1061
 
1062
    public List<Warehouse> recv_getWarehouses() throws org.apache.thrift.TException
1063
    {
1064
      getWarehouses_result result = new getWarehouses_result();
1065
      receiveBase(result, "getWarehouses");
1066
      if (result.isSetSuccess()) {
1067
        return result.success;
1068
      }
1069
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1070
    }
1071
 
1072
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1073
    {
1074
      send_resetAvailability(itemKey, vendorId, quantity, warehouseId);
1075
      recv_resetAvailability();
1076
    }
1077
 
1078
    public void send_resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId) throws org.apache.thrift.TException
1079
    {
1080
      resetAvailability_args args = new resetAvailability_args();
1081
      args.setItemKey(itemKey);
1082
      args.setVendorId(vendorId);
1083
      args.setQuantity(quantity);
1084
      args.setWarehouseId(warehouseId);
1085
      sendBase("resetAvailability", args);
1086
    }
1087
 
1088
    public void recv_resetAvailability() throws InventoryServiceException, org.apache.thrift.TException
1089
    {
1090
      resetAvailability_result result = new resetAvailability_result();
1091
      receiveBase(result, "resetAvailability");
1092
      if (result.cex != null) {
1093
        throw result.cex;
1094
      }
1095
      return;
1096
    }
1097
 
1098
    public void resetAvailabilityForWarehouse(long warehouseId) throws InventoryServiceException, org.apache.thrift.TException
1099
    {
1100
      send_resetAvailabilityForWarehouse(warehouseId);
1101
      recv_resetAvailabilityForWarehouse();
1102
    }
1103
 
1104
    public void send_resetAvailabilityForWarehouse(long warehouseId) throws org.apache.thrift.TException
1105
    {
1106
      resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
1107
      args.setWarehouseId(warehouseId);
1108
      sendBase("resetAvailabilityForWarehouse", args);
1109
    }
1110
 
1111
    public void recv_resetAvailabilityForWarehouse() throws InventoryServiceException, org.apache.thrift.TException
1112
    {
1113
      resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
1114
      receiveBase(result, "resetAvailabilityForWarehouse");
1115
      if (result.cex != null) {
1116
        throw result.cex;
1117
      }
1118
      return;
1119
    }
1120
 
1121
    public List<String> getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1122
    {
1123
      send_getItemKeysToBeProcessed(warehouseId);
1124
      return recv_getItemKeysToBeProcessed();
1125
    }
1126
 
1127
    public void send_getItemKeysToBeProcessed(long warehouseId) throws org.apache.thrift.TException
1128
    {
1129
      getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
1130
      args.setWarehouseId(warehouseId);
1131
      sendBase("getItemKeysToBeProcessed", args);
1132
    }
1133
 
1134
    public List<String> recv_getItemKeysToBeProcessed() throws org.apache.thrift.TException
1135
    {
1136
      getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
1137
      receiveBase(result, "getItemKeysToBeProcessed");
1138
      if (result.isSetSuccess()) {
1139
        return result.success;
1140
      }
1141
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1142
    }
1143
 
1144
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1145
    {
1146
      send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId);
1147
      recv_markMissedInventoryUpdatesAsProcessed();
1148
    }
1149
 
1150
    public void send_markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId) throws org.apache.thrift.TException
1151
    {
1152
      markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
1153
      args.setItemKey(itemKey);
1154
      args.setWarehouseId(warehouseId);
1155
      sendBase("markMissedInventoryUpdatesAsProcessed", args);
1156
    }
1157
 
1158
    public void recv_markMissedInventoryUpdatesAsProcessed() throws org.apache.thrift.TException
1159
    {
1160
      markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
1161
      receiveBase(result, "markMissedInventoryUpdatesAsProcessed");
1162
      return;
1163
    }
1164
 
1165
    public Map<String,Map<Long,Long>> getIgnoredItemKeys() throws org.apache.thrift.TException
1166
    {
1167
      send_getIgnoredItemKeys();
1168
      return recv_getIgnoredItemKeys();
1169
    }
1170
 
1171
    public void send_getIgnoredItemKeys() throws org.apache.thrift.TException
1172
    {
1173
      getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
1174
      sendBase("getIgnoredItemKeys", args);
1175
    }
1176
 
1177
    public Map<String,Map<Long,Long>> recv_getIgnoredItemKeys() throws org.apache.thrift.TException
1178
    {
1179
      getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
1180
      receiveBase(result, "getIgnoredItemKeys");
1181
      if (result.isSetSuccess()) {
1182
        return result.success;
1183
      }
1184
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1185
    }
1186
 
1187
    public void addBadInventory(long itemId, long warehouseId, long quantity) throws InventoryServiceException, org.apache.thrift.TException
1188
    {
1189
      send_addBadInventory(itemId, warehouseId, quantity);
1190
      recv_addBadInventory();
1191
    }
1192
 
1193
    public void send_addBadInventory(long itemId, long warehouseId, long quantity) throws org.apache.thrift.TException
1194
    {
1195
      addBadInventory_args args = new addBadInventory_args();
1196
      args.setItemId(itemId);
1197
      args.setWarehouseId(warehouseId);
1198
      args.setQuantity(quantity);
1199
      sendBase("addBadInventory", args);
1200
    }
1201
 
1202
    public void recv_addBadInventory() throws InventoryServiceException, org.apache.thrift.TException
1203
    {
1204
      addBadInventory_result result = new addBadInventory_result();
1205
      receiveBase(result, "addBadInventory");
1206
      if (result.cex != null) {
1207
        throw result.cex;
1208
      }
1209
      return;
1210
    }
1211
 
1212
    public List<Warehouse> getShippingLocations() throws org.apache.thrift.TException
1213
    {
1214
      send_getShippingLocations();
1215
      return recv_getShippingLocations();
1216
    }
1217
 
1218
    public void send_getShippingLocations() throws org.apache.thrift.TException
1219
    {
1220
      getShippingLocations_args args = new getShippingLocations_args();
1221
      sendBase("getShippingLocations", args);
1222
    }
1223
 
1224
    public List<Warehouse> recv_getShippingLocations() throws org.apache.thrift.TException
1225
    {
1226
      getShippingLocations_result result = new getShippingLocations_result();
1227
      receiveBase(result, "getShippingLocations");
1228
      if (result.isSetSuccess()) {
1229
        return result.success;
1230
      }
1231
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1232
    }
1233
 
1234
    public List<VendorItemMapping> getAllVendorItemMappings() throws org.apache.thrift.TException
1235
    {
1236
      send_getAllVendorItemMappings();
1237
      return recv_getAllVendorItemMappings();
1238
    }
1239
 
1240
    public void send_getAllVendorItemMappings() throws org.apache.thrift.TException
1241
    {
1242
      getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
1243
      sendBase("getAllVendorItemMappings", args);
1244
    }
1245
 
1246
    public List<VendorItemMapping> recv_getAllVendorItemMappings() throws org.apache.thrift.TException
1247
    {
1248
      getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
1249
      receiveBase(result, "getAllVendorItemMappings");
1250
      if (result.isSetSuccess()) {
1251
        return result.success;
1252
      }
1253
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1254
    }
1255
 
1256
    public Map<Long,ItemInventory> getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1257
    {
1258
      send_getInventorySnapshot(warehouseId);
1259
      return recv_getInventorySnapshot();
1260
    }
1261
 
1262
    public void send_getInventorySnapshot(long warehouseId) throws org.apache.thrift.TException
1263
    {
1264
      getInventorySnapshot_args args = new getInventorySnapshot_args();
1265
      args.setWarehouseId(warehouseId);
1266
      sendBase("getInventorySnapshot", args);
1267
    }
1268
 
1269
    public Map<Long,ItemInventory> recv_getInventorySnapshot() throws org.apache.thrift.TException
1270
    {
1271
      getInventorySnapshot_result result = new getInventorySnapshot_result();
1272
      receiveBase(result, "getInventorySnapshot");
1273
      if (result.isSetSuccess()) {
1274
        return result.success;
1275
      }
1276
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1277
    }
1278
 
1279
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException
1280
    {
1281
      send_clearItemAvailabilityCache();
1282
      recv_clearItemAvailabilityCache();
1283
    }
1284
 
1285
    public void send_clearItemAvailabilityCache() throws org.apache.thrift.TException
1286
    {
1287
      clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
1288
      sendBase("clearItemAvailabilityCache", args);
1289
    }
1290
 
1291
    public void recv_clearItemAvailabilityCache() throws org.apache.thrift.TException
1292
    {
1293
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
1294
      receiveBase(result, "clearItemAvailabilityCache");
1295
      return;
1296
    }
1297
 
1298
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1299
    {
1300
      send_updateVendorString(warehouseId, vendorString);
1301
      recv_updateVendorString();
1302
    }
1303
 
1304
    public void send_updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException
1305
    {
1306
      updateVendorString_args args = new updateVendorString_args();
1307
      args.setWarehouseId(warehouseId);
1308
      args.setVendorString(vendorString);
1309
      sendBase("updateVendorString", args);
1310
    }
1311
 
1312
    public void recv_updateVendorString() throws org.apache.thrift.TException
1313
    {
1314
      updateVendorString_result result = new updateVendorString_result();
1315
      receiveBase(result, "updateVendorString");
1316
      return;
1317
    }
1318
 
6096 amit.gupta 1319
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1320
    {
1321
      send_clearItemAvailabilityCacheForItem(item_id);
1322
      recv_clearItemAvailabilityCacheForItem();
1323
    }
1324
 
1325
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
1326
    {
1327
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
1328
      args.setItem_id(item_id);
1329
      sendBase("clearItemAvailabilityCacheForItem", args);
1330
    }
1331
 
1332
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
1333
    {
1334
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
1335
      receiveBase(result, "clearItemAvailabilityCacheForItem");
1336
      return;
1337
    }
1338
 
6467 amar.kumar 1339
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1340
    {
1341
      send_getOurWarehouseIdForVendor(vendorId);
1342
      return recv_getOurWarehouseIdForVendor();
1343
    }
1344
 
1345
    public void send_getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException
1346
    {
1347
      getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
1348
      args.setVendorId(vendorId);
1349
      sendBase("getOurWarehouseIdForVendor", args);
1350
    }
1351
 
1352
    public long recv_getOurWarehouseIdForVendor() throws org.apache.thrift.TException
1353
    {
1354
      getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
1355
      receiveBase(result, "getOurWarehouseIdForVendor");
1356
      if (result.isSetSuccess()) {
1357
        return result.success;
1358
      }
1359
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1360
    }
1361
 
6484 amar.kumar 1362
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1363
    {
1364
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
1365
      return recv_getItemAvailabilitiesAtOurWarehouses();
1366
    }
1367
 
1368
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
1369
    {
1370
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
1371
      args.setItem_ids(item_ids);
1372
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
1373
    }
1374
 
1375
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
1376
    {
1377
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
1378
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
1379
      if (result.isSetSuccess()) {
1380
        return result.success;
1381
      }
1382
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1383
    }
1384
 
6531 vikram.rag 1385
    public List<Long> getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1386
    {
1387
      send_getMonitoredWarehouseForVendors(vendorIds);
1388
      return recv_getMonitoredWarehouseForVendors();
1389
    }
1390
 
1391
    public void send_getMonitoredWarehouseForVendors(List<Long> vendorIds) throws org.apache.thrift.TException
1392
    {
1393
      getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
1394
      args.setVendorIds(vendorIds);
1395
      sendBase("getMonitoredWarehouseForVendors", args);
1396
    }
1397
 
1398
    public List<Long> recv_getMonitoredWarehouseForVendors() throws org.apache.thrift.TException
1399
    {
1400
      getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
1401
      receiveBase(result, "getMonitoredWarehouseForVendors");
1402
      if (result.isSetSuccess()) {
1403
        return result.success;
1404
      }
1405
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1406
    }
1407
 
1408
    public List<IgnoredInventoryUpdateItems> getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1409
    {
1410
      send_getIgnoredWarehouseidsAndItemids();
1411
      return recv_getIgnoredWarehouseidsAndItemids();
1412
    }
1413
 
1414
    public void send_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1415
    {
1416
      getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
1417
      sendBase("getIgnoredWarehouseidsAndItemids", args);
1418
    }
1419
 
1420
    public List<IgnoredInventoryUpdateItems> recv_getIgnoredWarehouseidsAndItemids() throws org.apache.thrift.TException
1421
    {
1422
      getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
1423
      receiveBase(result, "getIgnoredWarehouseidsAndItemids");
1424
      if (result.isSetSuccess()) {
1425
        return result.success;
1426
      }
1427
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1428
    }
1429
 
1430
    public boolean insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1431
    {
1432
      send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id);
1433
      return recv_insertItemtoIgnoreInventoryUpdatelist();
1434
    }
1435
 
1436
    public void send_insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id) throws org.apache.thrift.TException
1437
    {
1438
      insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
1439
      args.setItem_id(item_id);
1440
      args.setWarehouse_id(warehouse_id);
1441
      sendBase("insertItemtoIgnoreInventoryUpdatelist", args);
1442
    }
1443
 
1444
    public boolean recv_insertItemtoIgnoreInventoryUpdatelist() throws org.apache.thrift.TException
1445
    {
1446
      insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
1447
      receiveBase(result, "insertItemtoIgnoreInventoryUpdatelist");
1448
      if (result.isSetSuccess()) {
1449
        return result.success;
1450
      }
1451
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
1452
    }
1453
 
1454
    public boolean deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1455
    {
1456
      send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id);
1457
      return recv_deleteItemFromIgnoredInventoryUpdateList();
1458
    }
1459
 
1460
    public void send_deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id) throws org.apache.thrift.TException
1461
    {
1462
      deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
1463
      args.setItem_id(item_id);
1464
      args.setWarehouse_id(warehouse_id);
1465
      sendBase("deleteItemFromIgnoredInventoryUpdateList", args);
1466
    }
1467
 
1468
    public boolean recv_deleteItemFromIgnoredInventoryUpdateList() throws org.apache.thrift.TException
1469
    {
1470
      deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
1471
      receiveBase(result, "deleteItemFromIgnoredInventoryUpdateList");
1472
      if (result.isSetSuccess()) {
1473
        return result.success;
1474
      }
1475
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
1476
    }
1477
 
1478
    public int getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1479
    {
1480
      send_getAllIgnoredInventoryupdateItemsCount();
1481
      return recv_getAllIgnoredInventoryupdateItemsCount();
1482
    }
1483
 
1484
    public void send_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1485
    {
1486
      getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
1487
      sendBase("getAllIgnoredInventoryupdateItemsCount", args);
1488
    }
1489
 
1490
    public int recv_getAllIgnoredInventoryupdateItemsCount() throws org.apache.thrift.TException
1491
    {
1492
      getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
1493
      receiveBase(result, "getAllIgnoredInventoryupdateItemsCount");
1494
      if (result.isSetSuccess()) {
1495
        return result.success;
1496
      }
1497
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
1498
    }
1499
 
1500
    public List<Long> getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1501
    {
1502
      send_getIgnoredInventoryUpdateItemids(offset, limit);
1503
      return recv_getIgnoredInventoryUpdateItemids();
1504
    }
1505
 
1506
    public void send_getIgnoredInventoryUpdateItemids(int offset, int limit) throws org.apache.thrift.TException
1507
    {
1508
      getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
1509
      args.setOffset(offset);
1510
      args.setLimit(limit);
1511
      sendBase("getIgnoredInventoryUpdateItemids", args);
1512
    }
1513
 
1514
    public List<Long> recv_getIgnoredInventoryUpdateItemids() throws org.apache.thrift.TException
1515
    {
1516
      getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
1517
      receiveBase(result, "getIgnoredInventoryUpdateItemids");
1518
      if (result.isSetSuccess()) {
1519
        return result.success;
1520
      }
1521
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1522
    }
1523
 
6821 amar.kumar 1524
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1525
    {
1526
      send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel);
1527
      recv_updateItemStockPurchaseParams();
1528
    }
1529
 
1530
    public void send_updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel) throws org.apache.thrift.TException
1531
    {
1532
      updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
1533
      args.setItem_id(item_id);
1534
      args.setNumOfDaysStock(numOfDaysStock);
1535
      args.setMinStockLevel(minStockLevel);
1536
      sendBase("updateItemStockPurchaseParams", args);
1537
    }
1538
 
1539
    public void recv_updateItemStockPurchaseParams() throws org.apache.thrift.TException
1540
    {
1541
      updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
1542
      receiveBase(result, "updateItemStockPurchaseParams");
1543
      return;
1544
    }
1545
 
1546
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1547
    {
1548
      send_getItemStockPurchaseParams(itemId);
1549
      return recv_getItemStockPurchaseParams();
1550
    }
1551
 
1552
    public void send_getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException
1553
    {
1554
      getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
1555
      args.setItemId(itemId);
1556
      sendBase("getItemStockPurchaseParams", args);
1557
    }
1558
 
1559
    public ItemStockPurchaseParams recv_getItemStockPurchaseParams() throws org.apache.thrift.TException
1560
    {
1561
      getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
1562
      receiveBase(result, "getItemStockPurchaseParams");
1563
      if (result.isSetSuccess()) {
1564
        return result.success;
1565
      }
1566
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
1567
    }
1568
 
1569
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1570
    {
1571
      send_addOosStatusForItem(oosStatusMap, date);
1572
      recv_addOosStatusForItem();
1573
    }
1574
 
1575
    public void send_addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException
1576
    {
1577
      addOosStatusForItem_args args = new addOosStatusForItem_args();
1578
      args.setOosStatusMap(oosStatusMap);
1579
      args.setDate(date);
1580
      sendBase("addOosStatusForItem", args);
1581
    }
1582
 
1583
    public void recv_addOosStatusForItem() throws org.apache.thrift.TException
1584
    {
1585
      addOosStatusForItem_result result = new addOosStatusForItem_result();
1586
      receiveBase(result, "addOosStatusForItem");
1587
      return;
1588
    }
1589
 
6832 amar.kumar 1590
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException
1591
    {
1592
      send_getOosStatusesForXDaysForItem(itemId, days);
1593
      return recv_getOosStatusesForXDaysForItem();
1594
    }
1595
 
1596
    public void send_getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException
1597
    {
1598
      getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
1599
      args.setItemId(itemId);
1600
      args.setDays(days);
1601
      sendBase("getOosStatusesForXDaysForItem", args);
1602
    }
1603
 
1604
    public List<OOSStatus> recv_getOosStatusesForXDaysForItem() throws org.apache.thrift.TException
1605
    {
1606
      getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
1607
      receiveBase(result, "getOosStatusesForXDaysForItem");
1608
      if (result.isSetSuccess()) {
1609
        return result.success;
1610
      }
1611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
1612
    }
1613
 
6857 amar.kumar 1614
    public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1615
    {
1616
      send_getNonZeroItemStockPurchaseParams();
1617
      return recv_getNonZeroItemStockPurchaseParams();
1618
    }
1619
 
1620
    public void send_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1621
    {
1622
      getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
1623
      sendBase("getNonZeroItemStockPurchaseParams", args);
1624
    }
1625
 
1626
    public List<ItemStockPurchaseParams> recv_getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException
1627
    {
1628
      getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
1629
      receiveBase(result, "getNonZeroItemStockPurchaseParams");
1630
      if (result.isSetSuccess()) {
1631
        return result.success;
1632
      }
1633
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
1634
    }
1635
 
7149 amar.kumar 1636
    public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1637
    {
1638
      send_getBillableInventoryAndPendingOrders();
1639
      return recv_getBillableInventoryAndPendingOrders();
1640
    }
1641
 
1642
    public void send_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1643
    {
1644
      getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
1645
      sendBase("getBillableInventoryAndPendingOrders", args);
1646
    }
1647
 
1648
    public List<AvailableAndReservedStock> recv_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
1649
    {
1650
      getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
1651
      receiveBase(result, "getBillableInventoryAndPendingOrders");
1652
      if (result.isSetSuccess()) {
1653
        return result.success;
1654
      }
1655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
1656
    }
1657
 
7281 kshitij.so 1658
    public String getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1659
    {
1660
      send_getWarehouseName(warehouse_id);
1661
      return recv_getWarehouseName();
1662
    }
1663
 
1664
    public void send_getWarehouseName(long warehouse_id) throws org.apache.thrift.TException
1665
    {
1666
      getWarehouseName_args args = new getWarehouseName_args();
1667
      args.setWarehouse_id(warehouse_id);
1668
      sendBase("getWarehouseName", args);
1669
    }
1670
 
1671
    public String recv_getWarehouseName() throws org.apache.thrift.TException
1672
    {
1673
      getWarehouseName_result result = new getWarehouseName_result();
1674
      receiveBase(result, "getWarehouseName");
1675
      if (result.isSetSuccess()) {
1676
        return result.success;
1677
      }
1678
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
1679
    }
1680
 
1681
    public AmazonInventorySnapshot getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1682
    {
1683
      send_getAmazonInventoryForItem(item_id);
1684
      return recv_getAmazonInventoryForItem();
1685
    }
1686
 
1687
    public void send_getAmazonInventoryForItem(long item_id) throws org.apache.thrift.TException
1688
    {
1689
      getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
1690
      args.setItem_id(item_id);
1691
      sendBase("getAmazonInventoryForItem", args);
1692
    }
1693
 
1694
    public AmazonInventorySnapshot recv_getAmazonInventoryForItem() throws org.apache.thrift.TException
1695
    {
1696
      getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
1697
      receiveBase(result, "getAmazonInventoryForItem");
1698
      if (result.isSetSuccess()) {
1699
        return result.success;
1700
      }
1701
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
1702
    }
1703
 
1704
    public List<AmazonInventorySnapshot> getAllAmazonInventory() throws org.apache.thrift.TException
1705
    {
1706
      send_getAllAmazonInventory();
1707
      return recv_getAllAmazonInventory();
1708
    }
1709
 
1710
    public void send_getAllAmazonInventory() throws org.apache.thrift.TException
1711
    {
1712
      getAllAmazonInventory_args args = new getAllAmazonInventory_args();
1713
      sendBase("getAllAmazonInventory", args);
1714
    }
1715
 
1716
    public List<AmazonInventorySnapshot> recv_getAllAmazonInventory() throws org.apache.thrift.TException
1717
    {
1718
      getAllAmazonInventory_result result = new getAllAmazonInventory_result();
1719
      receiveBase(result, "getAllAmazonInventory");
1720
      if (result.isSetSuccess()) {
1721
        return result.success;
1722
      }
1723
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
1724
    }
1725
 
1726
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException
1727
    {
1728
      send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot);
1729
      recv_addOrUpdateAmazonInventoryForItem();
1730
    }
1731
 
1732
    public void send_addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException
1733
    {
1734
      addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
1735
      args.setAmazonInventorySnapshot(amazonInventorySnapshot);
1736
      sendBase("addOrUpdateAmazonInventoryForItem", args);
1737
    }
1738
 
1739
    public void recv_addOrUpdateAmazonInventoryForItem() throws org.apache.thrift.TException
1740
    {
1741
      addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
1742
      receiveBase(result, "addOrUpdateAmazonInventoryForItem");
1743
      return;
1744
    }
1745
 
5945 mandeep.dh 1746
  }
1747
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1748
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1749
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1750
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1751
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1752
        this.clientManager = clientManager;
1753
        this.protocolFactory = protocolFactory;
1754
      }
1755
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1756
        return new AsyncClient(protocolFactory, clientManager, transport);
1757
      }
1758
    }
1759
 
1760
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1761
      super(protocolFactory, clientManager, transport);
1762
    }
1763
 
1764
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<addWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1765
      checkReady();
1766
      addWarehouse_call method_call = new addWarehouse_call(warehouse, resultHandler, this, ___protocolFactory, ___transport);
1767
      this.___currentMethod = method_call;
1768
      ___manager.call(method_call);
1769
    }
1770
 
1771
    public static class addWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1772
      private Warehouse warehouse;
1773
      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 {
1774
        super(client, protocolFactory, transport, resultHandler, false);
1775
        this.warehouse = warehouse;
1776
      }
1777
 
1778
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1779
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1780
        addWarehouse_args args = new addWarehouse_args();
1781
        args.setWarehouse(warehouse);
1782
        args.write(prot);
1783
        prot.writeMessageEnd();
1784
      }
1785
 
1786
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1787
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1788
          throw new IllegalStateException("Method call not finished!");
1789
        }
1790
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1791
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1792
        return (new Client(prot)).recv_addWarehouse();
1793
      }
1794
    }
1795
 
1796
    public void addVendor(Vendor vendor, org.apache.thrift.async.AsyncMethodCallback<addVendor_call> resultHandler) throws org.apache.thrift.TException {
1797
      checkReady();
1798
      addVendor_call method_call = new addVendor_call(vendor, resultHandler, this, ___protocolFactory, ___transport);
1799
      this.___currentMethod = method_call;
1800
      ___manager.call(method_call);
1801
    }
1802
 
1803
    public static class addVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
1804
      private Vendor vendor;
1805
      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 {
1806
        super(client, protocolFactory, transport, resultHandler, false);
1807
        this.vendor = vendor;
1808
      }
1809
 
1810
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1811
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
1812
        addVendor_args args = new addVendor_args();
1813
        args.setVendor(vendor);
1814
        args.write(prot);
1815
        prot.writeMessageEnd();
1816
      }
1817
 
1818
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
1819
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1820
          throw new IllegalStateException("Method call not finished!");
1821
        }
1822
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1823
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1824
        return (new Client(prot)).recv_addVendor();
1825
      }
1826
    }
1827
 
1828
    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 {
1829
      checkReady();
1830
      updateInventoryHistory_call method_call = new updateInventoryHistory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1831
      this.___currentMethod = method_call;
1832
      ___manager.call(method_call);
1833
    }
1834
 
1835
    public static class updateInventoryHistory_call extends org.apache.thrift.async.TAsyncMethodCall {
1836
      private long warehouse_id;
1837
      private String timestamp;
1838
      private Map<String,Long> availability;
1839
      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 {
1840
        super(client, protocolFactory, transport, resultHandler, false);
1841
        this.warehouse_id = warehouse_id;
1842
        this.timestamp = timestamp;
1843
        this.availability = availability;
1844
      }
1845
 
1846
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1847
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventoryHistory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1848
        updateInventoryHistory_args args = new updateInventoryHistory_args();
1849
        args.setWarehouse_id(warehouse_id);
1850
        args.setTimestamp(timestamp);
1851
        args.setAvailability(availability);
1852
        args.write(prot);
1853
        prot.writeMessageEnd();
1854
      }
1855
 
1856
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1857
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1858
          throw new IllegalStateException("Method call not finished!");
1859
        }
1860
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1861
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1862
        (new Client(prot)).recv_updateInventoryHistory();
1863
      }
1864
    }
1865
 
1866
    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 {
1867
      checkReady();
1868
      updateInventory_call method_call = new updateInventory_call(warehouse_id, timestamp, availability, resultHandler, this, ___protocolFactory, ___transport);
1869
      this.___currentMethod = method_call;
1870
      ___manager.call(method_call);
1871
    }
1872
 
1873
    public static class updateInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1874
      private long warehouse_id;
1875
      private String timestamp;
1876
      private Map<String,Long> availability;
1877
      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 {
1878
        super(client, protocolFactory, transport, resultHandler, false);
1879
        this.warehouse_id = warehouse_id;
1880
        this.timestamp = timestamp;
1881
        this.availability = availability;
1882
      }
1883
 
1884
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1885
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1886
        updateInventory_args args = new updateInventory_args();
1887
        args.setWarehouse_id(warehouse_id);
1888
        args.setTimestamp(timestamp);
1889
        args.setAvailability(availability);
1890
        args.write(prot);
1891
        prot.writeMessageEnd();
1892
      }
1893
 
1894
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1895
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1896
          throw new IllegalStateException("Method call not finished!");
1897
        }
1898
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1899
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1900
        (new Client(prot)).recv_updateInventory();
1901
      }
1902
    }
1903
 
1904
    public void addInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addInventory_call> resultHandler) throws org.apache.thrift.TException {
1905
      checkReady();
1906
      addInventory_call method_call = new addInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
1907
      this.___currentMethod = method_call;
1908
      ___manager.call(method_call);
1909
    }
1910
 
1911
    public static class addInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
1912
      private long itemId;
1913
      private long warehouseId;
1914
      private long quantity;
1915
      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 {
1916
        super(client, protocolFactory, transport, resultHandler, false);
1917
        this.itemId = itemId;
1918
        this.warehouseId = warehouseId;
1919
        this.quantity = quantity;
1920
      }
1921
 
1922
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1923
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
1924
        addInventory_args args = new addInventory_args();
1925
        args.setItemId(itemId);
1926
        args.setWarehouseId(warehouseId);
1927
        args.setQuantity(quantity);
1928
        args.write(prot);
1929
        prot.writeMessageEnd();
1930
      }
1931
 
1932
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1933
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1934
          throw new IllegalStateException("Method call not finished!");
1935
        }
1936
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1937
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1938
        (new Client(prot)).recv_addInventory();
1939
      }
1940
    }
1941
 
1942
    public void retireWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<retireWarehouse_call> resultHandler) throws org.apache.thrift.TException {
1943
      checkReady();
1944
      retireWarehouse_call method_call = new retireWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
1945
      this.___currentMethod = method_call;
1946
      ___manager.call(method_call);
1947
    }
1948
 
1949
    public static class retireWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
1950
      private long warehouse_id;
1951
      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 {
1952
        super(client, protocolFactory, transport, resultHandler, false);
1953
        this.warehouse_id = warehouse_id;
1954
      }
1955
 
1956
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1957
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retireWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
1958
        retireWarehouse_args args = new retireWarehouse_args();
1959
        args.setWarehouse_id(warehouse_id);
1960
        args.write(prot);
1961
        prot.writeMessageEnd();
1962
      }
1963
 
1964
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
1965
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1966
          throw new IllegalStateException("Method call not finished!");
1967
        }
1968
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1969
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1970
        (new Client(prot)).recv_retireWarehouse();
1971
      }
1972
    }
1973
 
1974
    public void getItemInventoryByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemInventoryByItemId_call> resultHandler) throws org.apache.thrift.TException {
1975
      checkReady();
1976
      getItemInventoryByItemId_call method_call = new getItemInventoryByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
1977
      this.___currentMethod = method_call;
1978
      ___manager.call(method_call);
1979
    }
1980
 
1981
    public static class getItemInventoryByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
1982
      private long item_id;
1983
      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 {
1984
        super(client, protocolFactory, transport, resultHandler, false);
1985
        this.item_id = item_id;
1986
      }
1987
 
1988
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1989
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemInventoryByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1990
        getItemInventoryByItemId_args args = new getItemInventoryByItemId_args();
1991
        args.setItem_id(item_id);
1992
        args.write(prot);
1993
        prot.writeMessageEnd();
1994
      }
1995
 
1996
      public ItemInventory getResult() throws InventoryServiceException, org.apache.thrift.TException {
1997
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1998
          throw new IllegalStateException("Method call not finished!");
1999
        }
2000
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2001
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2002
        return (new Client(prot)).recv_getItemInventoryByItemId();
2003
      }
2004
    }
2005
 
2006
    public void getItemAvailibilityAtWarehouse(long warehouse_id, long item_id, org.apache.thrift.async.AsyncMethodCallback<getItemAvailibilityAtWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2007
      checkReady();
2008
      getItemAvailibilityAtWarehouse_call method_call = new getItemAvailibilityAtWarehouse_call(warehouse_id, item_id, resultHandler, this, ___protocolFactory, ___transport);
2009
      this.___currentMethod = method_call;
2010
      ___manager.call(method_call);
2011
    }
2012
 
2013
    public static class getItemAvailibilityAtWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2014
      private long warehouse_id;
2015
      private long item_id;
2016
      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 {
2017
        super(client, protocolFactory, transport, resultHandler, false);
2018
        this.warehouse_id = warehouse_id;
2019
        this.item_id = item_id;
2020
      }
2021
 
2022
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2023
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailibilityAtWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2024
        getItemAvailibilityAtWarehouse_args args = new getItemAvailibilityAtWarehouse_args();
2025
        args.setWarehouse_id(warehouse_id);
2026
        args.setItem_id(item_id);
2027
        args.write(prot);
2028
        prot.writeMessageEnd();
2029
      }
2030
 
2031
      public long getResult() throws InventoryServiceException, org.apache.thrift.TException {
2032
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2033
          throw new IllegalStateException("Method call not finished!");
2034
        }
2035
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2036
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2037
        return (new Client(prot)).recv_getItemAvailibilityAtWarehouse();
2038
      }
2039
    }
2040
 
5978 rajveer 2041
    public void getItemAvailabilityAtLocation(long itemId, long sourceId, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilityAtLocation_call> resultHandler) throws org.apache.thrift.TException {
5945 mandeep.dh 2042
      checkReady();
5978 rajveer 2043
      getItemAvailabilityAtLocation_call method_call = new getItemAvailabilityAtLocation_call(itemId, sourceId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2044
      this.___currentMethod = method_call;
2045
      ___manager.call(method_call);
2046
    }
2047
 
2048
    public static class getItemAvailabilityAtLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
2049
      private long itemId;
5978 rajveer 2050
      private long sourceId;
2051
      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 2052
        super(client, protocolFactory, transport, resultHandler, false);
2053
        this.itemId = itemId;
5978 rajveer 2054
        this.sourceId = sourceId;
5945 mandeep.dh 2055
      }
2056
 
2057
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2058
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilityAtLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
2059
        getItemAvailabilityAtLocation_args args = new getItemAvailabilityAtLocation_args();
2060
        args.setItemId(itemId);
5978 rajveer 2061
        args.setSourceId(sourceId);
5945 mandeep.dh 2062
        args.write(prot);
2063
        prot.writeMessageEnd();
2064
      }
2065
 
2066
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2067
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2068
          throw new IllegalStateException("Method call not finished!");
2069
        }
2070
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2071
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2072
        return (new Client(prot)).recv_getItemAvailabilityAtLocation();
2073
      }
2074
    }
2075
 
2076
    public void getAllWarehouses(boolean isActive, org.apache.thrift.async.AsyncMethodCallback<getAllWarehouses_call> resultHandler) throws org.apache.thrift.TException {
2077
      checkReady();
2078
      getAllWarehouses_call method_call = new getAllWarehouses_call(isActive, resultHandler, this, ___protocolFactory, ___transport);
2079
      this.___currentMethod = method_call;
2080
      ___manager.call(method_call);
2081
    }
2082
 
2083
    public static class getAllWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2084
      private boolean isActive;
2085
      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 {
2086
        super(client, protocolFactory, transport, resultHandler, false);
2087
        this.isActive = isActive;
2088
      }
2089
 
2090
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2091
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2092
        getAllWarehouses_args args = new getAllWarehouses_args();
2093
        args.setIsActive(isActive);
2094
        args.write(prot);
2095
        prot.writeMessageEnd();
2096
      }
2097
 
2098
      public List<Warehouse> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2099
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2100
          throw new IllegalStateException("Method call not finished!");
2101
        }
2102
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2103
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2104
        return (new Client(prot)).recv_getAllWarehouses();
2105
      }
2106
    }
2107
 
2108
    public void getWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2109
      checkReady();
2110
      getWarehouse_call method_call = new getWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2111
      this.___currentMethod = method_call;
2112
      ___manager.call(method_call);
2113
    }
2114
 
2115
    public static class getWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2116
      private long warehouse_id;
2117
      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 {
2118
        super(client, protocolFactory, transport, resultHandler, false);
2119
        this.warehouse_id = warehouse_id;
2120
      }
2121
 
2122
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2123
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2124
        getWarehouse_args args = new getWarehouse_args();
2125
        args.setWarehouse_id(warehouse_id);
2126
        args.write(prot);
2127
        prot.writeMessageEnd();
2128
      }
2129
 
2130
      public Warehouse getResult() throws InventoryServiceException, org.apache.thrift.TException {
2131
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2132
          throw new IllegalStateException("Method call not finished!");
2133
        }
2134
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2135
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2136
        return (new Client(prot)).recv_getWarehouse();
2137
      }
2138
    }
2139
 
2140
    public void getAllItemsForWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllItemsForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2141
      checkReady();
2142
      getAllItemsForWarehouse_call method_call = new getAllItemsForWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
2143
      this.___currentMethod = method_call;
2144
      ___manager.call(method_call);
2145
    }
2146
 
2147
    public static class getAllItemsForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2148
      private long warehouse_id;
2149
      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 {
2150
        super(client, protocolFactory, transport, resultHandler, false);
2151
        this.warehouse_id = warehouse_id;
2152
      }
2153
 
2154
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2155
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemsForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2156
        getAllItemsForWarehouse_args args = new getAllItemsForWarehouse_args();
2157
        args.setWarehouse_id(warehouse_id);
2158
        args.write(prot);
2159
        prot.writeMessageEnd();
2160
      }
2161
 
2162
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2163
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2164
          throw new IllegalStateException("Method call not finished!");
2165
        }
2166
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2167
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2168
        return (new Client(prot)).recv_getAllItemsForWarehouse();
2169
      }
2170
    }
2171
 
5967 rajveer 2172
    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 2173
      checkReady();
5967 rajveer 2174
      isOrderBillable_call method_call = new isOrderBillable_call(itemId, warehouseId, sourceId, orderId, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2175
      this.___currentMethod = method_call;
2176
      ___manager.call(method_call);
2177
    }
2178
 
5967 rajveer 2179
    public static class isOrderBillable_call extends org.apache.thrift.async.TAsyncMethodCall {
2180
      private long itemId;
2181
      private long warehouseId;
2182
      private long sourceId;
2183
      private long orderId;
2184
      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 {
2185
        super(client, protocolFactory, transport, resultHandler, false);
2186
        this.itemId = itemId;
2187
        this.warehouseId = warehouseId;
2188
        this.sourceId = sourceId;
2189
        this.orderId = orderId;
2190
      }
2191
 
2192
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2193
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isOrderBillable", org.apache.thrift.protocol.TMessageType.CALL, 0));
2194
        isOrderBillable_args args = new isOrderBillable_args();
2195
        args.setItemId(itemId);
2196
        args.setWarehouseId(warehouseId);
2197
        args.setSourceId(sourceId);
2198
        args.setOrderId(orderId);
2199
        args.write(prot);
2200
        prot.writeMessageEnd();
2201
      }
2202
 
2203
      public boolean getResult() throws org.apache.thrift.TException {
2204
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2205
          throw new IllegalStateException("Method call not finished!");
2206
        }
2207
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2208
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2209
        return (new Client(prot)).recv_isOrderBillable();
2210
      }
2211
    }
2212
 
2213
    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 {
2214
      checkReady();
2215
      reserveItemInWarehouse_call method_call = new reserveItemInWarehouse_call(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity, resultHandler, this, ___protocolFactory, ___transport);
2216
      this.___currentMethod = method_call;
2217
      ___manager.call(method_call);
2218
    }
2219
 
5945 mandeep.dh 2220
    public static class reserveItemInWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2221
      private long itemId;
2222
      private long warehouseId;
5967 rajveer 2223
      private long sourceId;
2224
      private long orderId;
2225
      private long createdTimestamp;
2226
      private long promisedShippingTimestamp;
5945 mandeep.dh 2227
      private double quantity;
5967 rajveer 2228
      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 2229
        super(client, protocolFactory, transport, resultHandler, false);
2230
        this.itemId = itemId;
2231
        this.warehouseId = warehouseId;
5967 rajveer 2232
        this.sourceId = sourceId;
2233
        this.orderId = orderId;
2234
        this.createdTimestamp = createdTimestamp;
2235
        this.promisedShippingTimestamp = promisedShippingTimestamp;
5945 mandeep.dh 2236
        this.quantity = quantity;
2237
      }
2238
 
2239
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2240
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reserveItemInWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2241
        reserveItemInWarehouse_args args = new reserveItemInWarehouse_args();
2242
        args.setItemId(itemId);
2243
        args.setWarehouseId(warehouseId);
5967 rajveer 2244
        args.setSourceId(sourceId);
2245
        args.setOrderId(orderId);
2246
        args.setCreatedTimestamp(createdTimestamp);
2247
        args.setPromisedShippingTimestamp(promisedShippingTimestamp);
5945 mandeep.dh 2248
        args.setQuantity(quantity);
2249
        args.write(prot);
2250
        prot.writeMessageEnd();
2251
      }
2252
 
2253
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2254
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2255
          throw new IllegalStateException("Method call not finished!");
2256
        }
2257
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2258
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2259
        return (new Client(prot)).recv_reserveItemInWarehouse();
2260
      }
2261
    }
2262
 
5967 rajveer 2263
    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 2264
      checkReady();
5967 rajveer 2265
      reduceReservationCount_call method_call = new reduceReservationCount_call(itemId, warehouseId, sourceId, orderId, quantity, resultHandler, this, ___protocolFactory, ___transport);
5945 mandeep.dh 2266
      this.___currentMethod = method_call;
2267
      ___manager.call(method_call);
2268
    }
2269
 
2270
    public static class reduceReservationCount_call extends org.apache.thrift.async.TAsyncMethodCall {
2271
      private long itemId;
2272
      private long warehouseId;
5967 rajveer 2273
      private long sourceId;
2274
      private long orderId;
5945 mandeep.dh 2275
      private double quantity;
5967 rajveer 2276
      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 2277
        super(client, protocolFactory, transport, resultHandler, false);
2278
        this.itemId = itemId;
2279
        this.warehouseId = warehouseId;
5967 rajveer 2280
        this.sourceId = sourceId;
2281
        this.orderId = orderId;
5945 mandeep.dh 2282
        this.quantity = quantity;
2283
      }
2284
 
2285
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2286
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reduceReservationCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
2287
        reduceReservationCount_args args = new reduceReservationCount_args();
2288
        args.setItemId(itemId);
2289
        args.setWarehouseId(warehouseId);
5967 rajveer 2290
        args.setSourceId(sourceId);
2291
        args.setOrderId(orderId);
5945 mandeep.dh 2292
        args.setQuantity(quantity);
2293
        args.write(prot);
2294
        prot.writeMessageEnd();
2295
      }
2296
 
2297
      public boolean getResult() throws InventoryServiceException, org.apache.thrift.TException {
2298
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2299
          throw new IllegalStateException("Method call not finished!");
2300
        }
2301
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2302
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2303
        return (new Client(prot)).recv_reduceReservationCount();
2304
      }
2305
    }
2306
 
2307
    public void getItemPricing(long itemId, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2308
      checkReady();
2309
      getItemPricing_call method_call = new getItemPricing_call(itemId, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2310
      this.___currentMethod = method_call;
2311
      ___manager.call(method_call);
2312
    }
2313
 
2314
    public static class getItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2315
      private long itemId;
2316
      private long vendorId;
2317
      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 {
2318
        super(client, protocolFactory, transport, resultHandler, false);
2319
        this.itemId = itemId;
2320
        this.vendorId = vendorId;
2321
      }
2322
 
2323
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2324
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2325
        getItemPricing_args args = new getItemPricing_args();
2326
        args.setItemId(itemId);
2327
        args.setVendorId(vendorId);
2328
        args.write(prot);
2329
        prot.writeMessageEnd();
2330
      }
2331
 
2332
      public VendorItemPricing getResult() throws InventoryServiceException, org.apache.thrift.TException {
2333
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2334
          throw new IllegalStateException("Method call not finished!");
2335
        }
2336
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2337
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2338
        return (new Client(prot)).recv_getItemPricing();
2339
      }
2340
    }
2341
 
2342
    public void getAllItemPricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAllItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2343
      checkReady();
2344
      getAllItemPricing_call method_call = new getAllItemPricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2345
      this.___currentMethod = method_call;
2346
      ___manager.call(method_call);
2347
    }
2348
 
2349
    public static class getAllItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2350
      private long itemId;
2351
      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 {
2352
        super(client, protocolFactory, transport, resultHandler, false);
2353
        this.itemId = itemId;
2354
      }
2355
 
2356
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2357
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2358
        getAllItemPricing_args args = new getAllItemPricing_args();
2359
        args.setItemId(itemId);
2360
        args.write(prot);
2361
        prot.writeMessageEnd();
2362
      }
2363
 
2364
      public List<VendorItemPricing> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2365
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2366
          throw new IllegalStateException("Method call not finished!");
2367
        }
2368
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2369
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2370
        return (new Client(prot)).recv_getAllItemPricing();
2371
      }
2372
    }
2373
 
2374
    public void addVendorItemPricing(VendorItemPricing vendorItemPricing, org.apache.thrift.async.AsyncMethodCallback<addVendorItemPricing_call> resultHandler) throws org.apache.thrift.TException {
2375
      checkReady();
2376
      addVendorItemPricing_call method_call = new addVendorItemPricing_call(vendorItemPricing, resultHandler, this, ___protocolFactory, ___transport);
2377
      this.___currentMethod = method_call;
2378
      ___manager.call(method_call);
2379
    }
2380
 
2381
    public static class addVendorItemPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
2382
      private VendorItemPricing vendorItemPricing;
2383
      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 {
2384
        super(client, protocolFactory, transport, resultHandler, false);
2385
        this.vendorItemPricing = vendorItemPricing;
2386
      }
2387
 
2388
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2389
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
2390
        addVendorItemPricing_args args = new addVendorItemPricing_args();
2391
        args.setVendorItemPricing(vendorItemPricing);
2392
        args.write(prot);
2393
        prot.writeMessageEnd();
2394
      }
2395
 
2396
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2397
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2398
          throw new IllegalStateException("Method call not finished!");
2399
        }
2400
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2401
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2402
        (new Client(prot)).recv_addVendorItemPricing();
2403
      }
2404
    }
2405
 
2406
    public void getVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getVendor_call> resultHandler) throws org.apache.thrift.TException {
2407
      checkReady();
2408
      getVendor_call method_call = new getVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
2409
      this.___currentMethod = method_call;
2410
      ___manager.call(method_call);
2411
    }
2412
 
2413
    public static class getVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
2414
      private long vendorId;
2415
      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 {
2416
        super(client, protocolFactory, transport, resultHandler, false);
2417
        this.vendorId = vendorId;
2418
      }
2419
 
2420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2422
        getVendor_args args = new getVendor_args();
2423
        args.setVendorId(vendorId);
2424
        args.write(prot);
2425
        prot.writeMessageEnd();
2426
      }
2427
 
2428
      public Vendor getResult() throws org.apache.thrift.TException {
2429
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2430
          throw new IllegalStateException("Method call not finished!");
2431
        }
2432
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2433
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2434
        return (new Client(prot)).recv_getVendor();
2435
      }
2436
    }
2437
 
2438
    public void getAllVendors(org.apache.thrift.async.AsyncMethodCallback<getAllVendors_call> resultHandler) throws org.apache.thrift.TException {
2439
      checkReady();
2440
      getAllVendors_call method_call = new getAllVendors_call(resultHandler, this, ___protocolFactory, ___transport);
2441
      this.___currentMethod = method_call;
2442
      ___manager.call(method_call);
2443
    }
2444
 
2445
    public static class getAllVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
2446
      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 {
2447
        super(client, protocolFactory, transport, resultHandler, false);
2448
      }
2449
 
2450
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2451
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
2452
        getAllVendors_args args = new getAllVendors_args();
2453
        args.write(prot);
2454
        prot.writeMessageEnd();
2455
      }
2456
 
2457
      public List<Vendor> getResult() throws org.apache.thrift.TException {
2458
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2459
          throw new IllegalStateException("Method call not finished!");
2460
        }
2461
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2462
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2463
        return (new Client(prot)).recv_getAllVendors();
2464
      }
2465
    }
2466
 
2467
    public void addVendorItemMapping(String key, VendorItemMapping vendorItemMapping, org.apache.thrift.async.AsyncMethodCallback<addVendorItemMapping_call> resultHandler) throws org.apache.thrift.TException {
2468
      checkReady();
2469
      addVendorItemMapping_call method_call = new addVendorItemMapping_call(key, vendorItemMapping, resultHandler, this, ___protocolFactory, ___transport);
2470
      this.___currentMethod = method_call;
2471
      ___manager.call(method_call);
2472
    }
2473
 
2474
    public static class addVendorItemMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
2475
      private String key;
2476
      private VendorItemMapping vendorItemMapping;
2477
      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 {
2478
        super(client, protocolFactory, transport, resultHandler, false);
2479
        this.key = key;
2480
        this.vendorItemMapping = vendorItemMapping;
2481
      }
2482
 
2483
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2484
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVendorItemMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
2485
        addVendorItemMapping_args args = new addVendorItemMapping_args();
2486
        args.setKey(key);
2487
        args.setVendorItemMapping(vendorItemMapping);
2488
        args.write(prot);
2489
        prot.writeMessageEnd();
2490
      }
2491
 
2492
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2493
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2494
          throw new IllegalStateException("Method call not finished!");
2495
        }
2496
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2497
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2498
        (new Client(prot)).recv_addVendorItemMapping();
2499
      }
2500
    }
2501
 
2502
    public void getVendorItemMappings(long itemId, org.apache.thrift.async.AsyncMethodCallback<getVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2503
      checkReady();
2504
      getVendorItemMappings_call method_call = new getVendorItemMappings_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
2505
      this.___currentMethod = method_call;
2506
      ___manager.call(method_call);
2507
    }
2508
 
2509
    public static class getVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2510
      private long itemId;
2511
      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 {
2512
        super(client, protocolFactory, transport, resultHandler, false);
2513
        this.itemId = itemId;
2514
      }
2515
 
2516
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2517
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2518
        getVendorItemMappings_args args = new getVendorItemMappings_args();
2519
        args.setItemId(itemId);
2520
        args.write(prot);
2521
        prot.writeMessageEnd();
2522
      }
2523
 
2524
      public List<VendorItemMapping> getResult() throws InventoryServiceException, org.apache.thrift.TException {
2525
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2526
          throw new IllegalStateException("Method call not finished!");
2527
        }
2528
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2529
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2530
        return (new Client(prot)).recv_getVendorItemMappings();
2531
      }
2532
    }
2533
 
2534
    public void getPendingOrdersInventory(long vendorid, org.apache.thrift.async.AsyncMethodCallback<getPendingOrdersInventory_call> resultHandler) throws org.apache.thrift.TException {
2535
      checkReady();
2536
      getPendingOrdersInventory_call method_call = new getPendingOrdersInventory_call(vendorid, resultHandler, this, ___protocolFactory, ___transport);
2537
      this.___currentMethod = method_call;
2538
      ___manager.call(method_call);
2539
    }
2540
 
2541
    public static class getPendingOrdersInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2542
      private long vendorid;
2543
      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 {
2544
        super(client, protocolFactory, transport, resultHandler, false);
2545
        this.vendorid = vendorid;
2546
      }
2547
 
2548
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2549
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPendingOrdersInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2550
        getPendingOrdersInventory_args args = new getPendingOrdersInventory_args();
2551
        args.setVendorid(vendorid);
2552
        args.write(prot);
2553
        prot.writeMessageEnd();
2554
      }
2555
 
2556
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
2557
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2558
          throw new IllegalStateException("Method call not finished!");
2559
        }
2560
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2561
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2562
        return (new Client(prot)).recv_getPendingOrdersInventory();
2563
      }
2564
    }
2565
 
2566
    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 {
2567
      checkReady();
2568
      getWarehouses_call method_call = new getWarehouses_call(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2569
      this.___currentMethod = method_call;
2570
      ___manager.call(method_call);
2571
    }
2572
 
2573
    public static class getWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
2574
      private WarehouseType warehouseType;
2575
      private InventoryType inventoryType;
2576
      private long vendorId;
2577
      private long billingWarehouseId;
2578
      private long shippingWarehouseId;
2579
      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 {
2580
        super(client, protocolFactory, transport, resultHandler, false);
2581
        this.warehouseType = warehouseType;
2582
        this.inventoryType = inventoryType;
2583
        this.vendorId = vendorId;
2584
        this.billingWarehouseId = billingWarehouseId;
2585
        this.shippingWarehouseId = shippingWarehouseId;
2586
      }
2587
 
2588
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2589
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
2590
        getWarehouses_args args = new getWarehouses_args();
2591
        args.setWarehouseType(warehouseType);
2592
        args.setInventoryType(inventoryType);
2593
        args.setVendorId(vendorId);
2594
        args.setBillingWarehouseId(billingWarehouseId);
2595
        args.setShippingWarehouseId(shippingWarehouseId);
2596
        args.write(prot);
2597
        prot.writeMessageEnd();
2598
      }
2599
 
2600
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2601
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2602
          throw new IllegalStateException("Method call not finished!");
2603
        }
2604
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2605
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2606
        return (new Client(prot)).recv_getWarehouses();
2607
      }
2608
    }
2609
 
2610
    public void resetAvailability(String itemKey, long vendorId, long quantity, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailability_call> resultHandler) throws org.apache.thrift.TException {
2611
      checkReady();
2612
      resetAvailability_call method_call = new resetAvailability_call(itemKey, vendorId, quantity, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2613
      this.___currentMethod = method_call;
2614
      ___manager.call(method_call);
2615
    }
2616
 
2617
    public static class resetAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
2618
      private String itemKey;
2619
      private long vendorId;
2620
      private long quantity;
2621
      private long warehouseId;
2622
      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 {
2623
        super(client, protocolFactory, transport, resultHandler, false);
2624
        this.itemKey = itemKey;
2625
        this.vendorId = vendorId;
2626
        this.quantity = quantity;
2627
        this.warehouseId = warehouseId;
2628
      }
2629
 
2630
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2631
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
2632
        resetAvailability_args args = new resetAvailability_args();
2633
        args.setItemKey(itemKey);
2634
        args.setVendorId(vendorId);
2635
        args.setQuantity(quantity);
2636
        args.setWarehouseId(warehouseId);
2637
        args.write(prot);
2638
        prot.writeMessageEnd();
2639
      }
2640
 
2641
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2642
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2643
          throw new IllegalStateException("Method call not finished!");
2644
        }
2645
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2646
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2647
        (new Client(prot)).recv_resetAvailability();
2648
      }
2649
    }
2650
 
2651
    public void resetAvailabilityForWarehouse(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<resetAvailabilityForWarehouse_call> resultHandler) throws org.apache.thrift.TException {
2652
      checkReady();
2653
      resetAvailabilityForWarehouse_call method_call = new resetAvailabilityForWarehouse_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2654
      this.___currentMethod = method_call;
2655
      ___manager.call(method_call);
2656
    }
2657
 
2658
    public static class resetAvailabilityForWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
2659
      private long warehouseId;
2660
      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 {
2661
        super(client, protocolFactory, transport, resultHandler, false);
2662
        this.warehouseId = warehouseId;
2663
      }
2664
 
2665
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2666
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("resetAvailabilityForWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
2667
        resetAvailabilityForWarehouse_args args = new resetAvailabilityForWarehouse_args();
2668
        args.setWarehouseId(warehouseId);
2669
        args.write(prot);
2670
        prot.writeMessageEnd();
2671
      }
2672
 
2673
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2674
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2675
          throw new IllegalStateException("Method call not finished!");
2676
        }
2677
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2678
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2679
        (new Client(prot)).recv_resetAvailabilityForWarehouse();
2680
      }
2681
    }
2682
 
2683
    public void getItemKeysToBeProcessed(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getItemKeysToBeProcessed_call> resultHandler) throws org.apache.thrift.TException {
2684
      checkReady();
2685
      getItemKeysToBeProcessed_call method_call = new getItemKeysToBeProcessed_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2686
      this.___currentMethod = method_call;
2687
      ___manager.call(method_call);
2688
    }
2689
 
2690
    public static class getItemKeysToBeProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2691
      private long warehouseId;
2692
      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 {
2693
        super(client, protocolFactory, transport, resultHandler, false);
2694
        this.warehouseId = warehouseId;
2695
      }
2696
 
2697
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2698
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemKeysToBeProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2699
        getItemKeysToBeProcessed_args args = new getItemKeysToBeProcessed_args();
2700
        args.setWarehouseId(warehouseId);
2701
        args.write(prot);
2702
        prot.writeMessageEnd();
2703
      }
2704
 
2705
      public List<String> getResult() throws org.apache.thrift.TException {
2706
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2707
          throw new IllegalStateException("Method call not finished!");
2708
        }
2709
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2710
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2711
        return (new Client(prot)).recv_getItemKeysToBeProcessed();
2712
      }
2713
    }
2714
 
2715
    public void markMissedInventoryUpdatesAsProcessed(String itemKey, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markMissedInventoryUpdatesAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
2716
      checkReady();
2717
      markMissedInventoryUpdatesAsProcessed_call method_call = new markMissedInventoryUpdatesAsProcessed_call(itemKey, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2718
      this.___currentMethod = method_call;
2719
      ___manager.call(method_call);
2720
    }
2721
 
2722
    public static class markMissedInventoryUpdatesAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
2723
      private String itemKey;
2724
      private long warehouseId;
2725
      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 {
2726
        super(client, protocolFactory, transport, resultHandler, false);
2727
        this.itemKey = itemKey;
2728
        this.warehouseId = warehouseId;
2729
      }
2730
 
2731
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2732
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMissedInventoryUpdatesAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2733
        markMissedInventoryUpdatesAsProcessed_args args = new markMissedInventoryUpdatesAsProcessed_args();
2734
        args.setItemKey(itemKey);
2735
        args.setWarehouseId(warehouseId);
2736
        args.write(prot);
2737
        prot.writeMessageEnd();
2738
      }
2739
 
2740
      public void getResult() throws org.apache.thrift.TException {
2741
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2742
          throw new IllegalStateException("Method call not finished!");
2743
        }
2744
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2745
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2746
        (new Client(prot)).recv_markMissedInventoryUpdatesAsProcessed();
2747
      }
2748
    }
2749
 
2750
    public void getIgnoredItemKeys(org.apache.thrift.async.AsyncMethodCallback<getIgnoredItemKeys_call> resultHandler) throws org.apache.thrift.TException {
2751
      checkReady();
2752
      getIgnoredItemKeys_call method_call = new getIgnoredItemKeys_call(resultHandler, this, ___protocolFactory, ___transport);
2753
      this.___currentMethod = method_call;
2754
      ___manager.call(method_call);
2755
    }
2756
 
2757
    public static class getIgnoredItemKeys_call extends org.apache.thrift.async.TAsyncMethodCall {
2758
      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 {
2759
        super(client, protocolFactory, transport, resultHandler, false);
2760
      }
2761
 
2762
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2763
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredItemKeys", org.apache.thrift.protocol.TMessageType.CALL, 0));
2764
        getIgnoredItemKeys_args args = new getIgnoredItemKeys_args();
2765
        args.write(prot);
2766
        prot.writeMessageEnd();
2767
      }
2768
 
2769
      public Map<String,Map<Long,Long>> getResult() throws org.apache.thrift.TException {
2770
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2771
          throw new IllegalStateException("Method call not finished!");
2772
        }
2773
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2774
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2775
        return (new Client(prot)).recv_getIgnoredItemKeys();
2776
      }
2777
    }
2778
 
2779
    public void addBadInventory(long itemId, long warehouseId, long quantity, org.apache.thrift.async.AsyncMethodCallback<addBadInventory_call> resultHandler) throws org.apache.thrift.TException {
2780
      checkReady();
2781
      addBadInventory_call method_call = new addBadInventory_call(itemId, warehouseId, quantity, resultHandler, this, ___protocolFactory, ___transport);
2782
      this.___currentMethod = method_call;
2783
      ___manager.call(method_call);
2784
    }
2785
 
2786
    public static class addBadInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
2787
      private long itemId;
2788
      private long warehouseId;
2789
      private long quantity;
2790
      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 {
2791
        super(client, protocolFactory, transport, resultHandler, false);
2792
        this.itemId = itemId;
2793
        this.warehouseId = warehouseId;
2794
        this.quantity = quantity;
2795
      }
2796
 
2797
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2798
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBadInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
2799
        addBadInventory_args args = new addBadInventory_args();
2800
        args.setItemId(itemId);
2801
        args.setWarehouseId(warehouseId);
2802
        args.setQuantity(quantity);
2803
        args.write(prot);
2804
        prot.writeMessageEnd();
2805
      }
2806
 
2807
      public void getResult() throws InventoryServiceException, org.apache.thrift.TException {
2808
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2809
          throw new IllegalStateException("Method call not finished!");
2810
        }
2811
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2813
        (new Client(prot)).recv_addBadInventory();
2814
      }
2815
    }
2816
 
2817
    public void getShippingLocations(org.apache.thrift.async.AsyncMethodCallback<getShippingLocations_call> resultHandler) throws org.apache.thrift.TException {
2818
      checkReady();
2819
      getShippingLocations_call method_call = new getShippingLocations_call(resultHandler, this, ___protocolFactory, ___transport);
2820
      this.___currentMethod = method_call;
2821
      ___manager.call(method_call);
2822
    }
2823
 
2824
    public static class getShippingLocations_call extends org.apache.thrift.async.TAsyncMethodCall {
2825
      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 {
2826
        super(client, protocolFactory, transport, resultHandler, false);
2827
      }
2828
 
2829
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2830
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShippingLocations", org.apache.thrift.protocol.TMessageType.CALL, 0));
2831
        getShippingLocations_args args = new getShippingLocations_args();
2832
        args.write(prot);
2833
        prot.writeMessageEnd();
2834
      }
2835
 
2836
      public List<Warehouse> getResult() throws org.apache.thrift.TException {
2837
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2838
          throw new IllegalStateException("Method call not finished!");
2839
        }
2840
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2841
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2842
        return (new Client(prot)).recv_getShippingLocations();
2843
      }
2844
    }
2845
 
2846
    public void getAllVendorItemMappings(org.apache.thrift.async.AsyncMethodCallback<getAllVendorItemMappings_call> resultHandler) throws org.apache.thrift.TException {
2847
      checkReady();
2848
      getAllVendorItemMappings_call method_call = new getAllVendorItemMappings_call(resultHandler, this, ___protocolFactory, ___transport);
2849
      this.___currentMethod = method_call;
2850
      ___manager.call(method_call);
2851
    }
2852
 
2853
    public static class getAllVendorItemMappings_call extends org.apache.thrift.async.TAsyncMethodCall {
2854
      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 {
2855
        super(client, protocolFactory, transport, resultHandler, false);
2856
      }
2857
 
2858
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2859
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVendorItemMappings", org.apache.thrift.protocol.TMessageType.CALL, 0));
2860
        getAllVendorItemMappings_args args = new getAllVendorItemMappings_args();
2861
        args.write(prot);
2862
        prot.writeMessageEnd();
2863
      }
2864
 
2865
      public List<VendorItemMapping> getResult() throws org.apache.thrift.TException {
2866
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2867
          throw new IllegalStateException("Method call not finished!");
2868
        }
2869
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2870
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2871
        return (new Client(prot)).recv_getAllVendorItemMappings();
2872
      }
2873
    }
2874
 
2875
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
2876
      checkReady();
2877
      getInventorySnapshot_call method_call = new getInventorySnapshot_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2878
      this.___currentMethod = method_call;
2879
      ___manager.call(method_call);
2880
    }
2881
 
2882
    public static class getInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
2883
      private long warehouseId;
2884
      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 {
2885
        super(client, protocolFactory, transport, resultHandler, false);
2886
        this.warehouseId = warehouseId;
2887
      }
2888
 
2889
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2890
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2891
        getInventorySnapshot_args args = new getInventorySnapshot_args();
2892
        args.setWarehouseId(warehouseId);
2893
        args.write(prot);
2894
        prot.writeMessageEnd();
2895
      }
2896
 
2897
      public Map<Long,ItemInventory> getResult() throws org.apache.thrift.TException {
2898
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2899
          throw new IllegalStateException("Method call not finished!");
2900
        }
2901
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2902
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2903
        return (new Client(prot)).recv_getInventorySnapshot();
2904
      }
2905
    }
2906
 
2907
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
2908
      checkReady();
2909
      clearItemAvailabilityCache_call method_call = new clearItemAvailabilityCache_call(resultHandler, this, ___protocolFactory, ___transport);
2910
      this.___currentMethod = method_call;
2911
      ___manager.call(method_call);
2912
    }
2913
 
2914
    public static class clearItemAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
2915
      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 {
2916
        super(client, protocolFactory, transport, resultHandler, false);
2917
      }
2918
 
2919
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2920
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
2921
        clearItemAvailabilityCache_args args = new clearItemAvailabilityCache_args();
2922
        args.write(prot);
2923
        prot.writeMessageEnd();
2924
      }
2925
 
2926
      public void getResult() throws org.apache.thrift.TException {
2927
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2928
          throw new IllegalStateException("Method call not finished!");
2929
        }
2930
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2931
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2932
        (new Client(prot)).recv_clearItemAvailabilityCache();
2933
      }
2934
    }
2935
 
2936
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<updateVendorString_call> resultHandler) throws org.apache.thrift.TException {
2937
      checkReady();
2938
      updateVendorString_call method_call = new updateVendorString_call(warehouseId, vendorString, resultHandler, this, ___protocolFactory, ___transport);
2939
      this.___currentMethod = method_call;
2940
      ___manager.call(method_call);
2941
    }
2942
 
2943
    public static class updateVendorString_call extends org.apache.thrift.async.TAsyncMethodCall {
2944
      private long warehouseId;
2945
      private String vendorString;
2946
      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 {
2947
        super(client, protocolFactory, transport, resultHandler, false);
2948
        this.warehouseId = warehouseId;
2949
        this.vendorString = vendorString;
2950
      }
2951
 
2952
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2953
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateVendorString", org.apache.thrift.protocol.TMessageType.CALL, 0));
2954
        updateVendorString_args args = new updateVendorString_args();
2955
        args.setWarehouseId(warehouseId);
2956
        args.setVendorString(vendorString);
2957
        args.write(prot);
2958
        prot.writeMessageEnd();
2959
      }
2960
 
2961
      public void getResult() throws org.apache.thrift.TException {
2962
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2963
          throw new IllegalStateException("Method call not finished!");
2964
        }
2965
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2966
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2967
        (new Client(prot)).recv_updateVendorString();
2968
      }
2969
    }
2970
 
6096 amit.gupta 2971
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
2972
      checkReady();
2973
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
2974
      this.___currentMethod = method_call;
2975
      ___manager.call(method_call);
2976
    }
2977
 
2978
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2979
      private long item_id;
2980
      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 {
2981
        super(client, protocolFactory, transport, resultHandler, false);
2982
        this.item_id = item_id;
2983
      }
2984
 
2985
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2986
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2987
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
2988
        args.setItem_id(item_id);
2989
        args.write(prot);
2990
        prot.writeMessageEnd();
2991
      }
2992
 
2993
      public void getResult() throws org.apache.thrift.TException {
2994
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2995
          throw new IllegalStateException("Method call not finished!");
2996
        }
2997
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2998
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2999
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
3000
      }
3001
    }
3002
 
6467 amar.kumar 3003
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException {
3004
      checkReady();
3005
      getOurWarehouseIdForVendor_call method_call = new getOurWarehouseIdForVendor_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);
3006
      this.___currentMethod = method_call;
3007
      ___manager.call(method_call);
3008
    }
3009
 
3010
    public static class getOurWarehouseIdForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {
3011
      private long vendorId;
3012
      public getOurWarehouseIdForVendor_call(long vendorId, 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 {
3013
        super(client, protocolFactory, transport, resultHandler, false);
3014
        this.vendorId = vendorId;
3015
      }
3016
 
3017
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3018
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOurWarehouseIdForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));
3019
        getOurWarehouseIdForVendor_args args = new getOurWarehouseIdForVendor_args();
3020
        args.setVendorId(vendorId);
3021
        args.write(prot);
3022
        prot.writeMessageEnd();
3023
      }
3024
 
3025
      public long getResult() throws org.apache.thrift.TException {
3026
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3027
          throw new IllegalStateException("Method call not finished!");
3028
        }
3029
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3030
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3031
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
3032
      }
3033
    }
3034
 
6484 amar.kumar 3035
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
3036
      checkReady();
3037
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
3038
      this.___currentMethod = method_call;
3039
      ___manager.call(method_call);
3040
    }
3041
 
3042
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
3043
      private List<Long> item_ids;
3044
      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 {
3045
        super(client, protocolFactory, transport, resultHandler, false);
3046
        this.item_ids = item_ids;
3047
      }
3048
 
3049
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3050
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
3051
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
3052
        args.setItem_ids(item_ids);
3053
        args.write(prot);
3054
        prot.writeMessageEnd();
3055
      }
3056
 
3057
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
3058
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3059
          throw new IllegalStateException("Method call not finished!");
3060
        }
3061
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3062
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3063
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
3064
      }
3065
    }
3066
 
6531 vikram.rag 3067
    public void getMonitoredWarehouseForVendors(List<Long> vendorIds, org.apache.thrift.async.AsyncMethodCallback<getMonitoredWarehouseForVendors_call> resultHandler) throws org.apache.thrift.TException {
3068
      checkReady();
3069
      getMonitoredWarehouseForVendors_call method_call = new getMonitoredWarehouseForVendors_call(vendorIds, resultHandler, this, ___protocolFactory, ___transport);
3070
      this.___currentMethod = method_call;
3071
      ___manager.call(method_call);
3072
    }
3073
 
3074
    public static class getMonitoredWarehouseForVendors_call extends org.apache.thrift.async.TAsyncMethodCall {
3075
      private List<Long> vendorIds;
3076
      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 {
3077
        super(client, protocolFactory, transport, resultHandler, false);
3078
        this.vendorIds = vendorIds;
3079
      }
3080
 
3081
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3082
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMonitoredWarehouseForVendors", org.apache.thrift.protocol.TMessageType.CALL, 0));
3083
        getMonitoredWarehouseForVendors_args args = new getMonitoredWarehouseForVendors_args();
3084
        args.setVendorIds(vendorIds);
3085
        args.write(prot);
3086
        prot.writeMessageEnd();
3087
      }
3088
 
3089
      public List<Long> getResult() throws org.apache.thrift.TException {
3090
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3091
          throw new IllegalStateException("Method call not finished!");
3092
        }
3093
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3094
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3095
        return (new Client(prot)).recv_getMonitoredWarehouseForVendors();
3096
      }
3097
    }
3098
 
3099
    public void getIgnoredWarehouseidsAndItemids(org.apache.thrift.async.AsyncMethodCallback<getIgnoredWarehouseidsAndItemids_call> resultHandler) throws org.apache.thrift.TException {
3100
      checkReady();
3101
      getIgnoredWarehouseidsAndItemids_call method_call = new getIgnoredWarehouseidsAndItemids_call(resultHandler, this, ___protocolFactory, ___transport);
3102
      this.___currentMethod = method_call;
3103
      ___manager.call(method_call);
3104
    }
3105
 
3106
    public static class getIgnoredWarehouseidsAndItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3107
      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 {
3108
        super(client, protocolFactory, transport, resultHandler, false);
3109
      }
3110
 
3111
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3112
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredWarehouseidsAndItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3113
        getIgnoredWarehouseidsAndItemids_args args = new getIgnoredWarehouseidsAndItemids_args();
3114
        args.write(prot);
3115
        prot.writeMessageEnd();
3116
      }
3117
 
3118
      public List<IgnoredInventoryUpdateItems> getResult() throws org.apache.thrift.TException {
3119
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3120
          throw new IllegalStateException("Method call not finished!");
3121
        }
3122
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3123
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3124
        return (new Client(prot)).recv_getIgnoredWarehouseidsAndItemids();
3125
      }
3126
    }
3127
 
3128
    public void insertItemtoIgnoreInventoryUpdatelist(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<insertItemtoIgnoreInventoryUpdatelist_call> resultHandler) throws org.apache.thrift.TException {
3129
      checkReady();
3130
      insertItemtoIgnoreInventoryUpdatelist_call method_call = new insertItemtoIgnoreInventoryUpdatelist_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3131
      this.___currentMethod = method_call;
3132
      ___manager.call(method_call);
3133
    }
3134
 
3135
    public static class insertItemtoIgnoreInventoryUpdatelist_call extends org.apache.thrift.async.TAsyncMethodCall {
3136
      private long item_id;
3137
      private long warehouse_id;
3138
      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 {
3139
        super(client, protocolFactory, transport, resultHandler, false);
3140
        this.item_id = item_id;
3141
        this.warehouse_id = warehouse_id;
3142
      }
3143
 
3144
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3145
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertItemtoIgnoreInventoryUpdatelist", org.apache.thrift.protocol.TMessageType.CALL, 0));
3146
        insertItemtoIgnoreInventoryUpdatelist_args args = new insertItemtoIgnoreInventoryUpdatelist_args();
3147
        args.setItem_id(item_id);
3148
        args.setWarehouse_id(warehouse_id);
3149
        args.write(prot);
3150
        prot.writeMessageEnd();
3151
      }
3152
 
3153
      public boolean getResult() throws org.apache.thrift.TException {
3154
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3155
          throw new IllegalStateException("Method call not finished!");
3156
        }
3157
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3158
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3159
        return (new Client(prot)).recv_insertItemtoIgnoreInventoryUpdatelist();
3160
      }
3161
    }
3162
 
3163
    public void deleteItemFromIgnoredInventoryUpdateList(long item_id, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<deleteItemFromIgnoredInventoryUpdateList_call> resultHandler) throws org.apache.thrift.TException {
3164
      checkReady();
3165
      deleteItemFromIgnoredInventoryUpdateList_call method_call = new deleteItemFromIgnoredInventoryUpdateList_call(item_id, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3166
      this.___currentMethod = method_call;
3167
      ___manager.call(method_call);
3168
    }
3169
 
3170
    public static class deleteItemFromIgnoredInventoryUpdateList_call extends org.apache.thrift.async.TAsyncMethodCall {
3171
      private long item_id;
3172
      private long warehouse_id;
3173
      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 {
3174
        super(client, protocolFactory, transport, resultHandler, false);
3175
        this.item_id = item_id;
3176
        this.warehouse_id = warehouse_id;
3177
      }
3178
 
3179
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3180
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteItemFromIgnoredInventoryUpdateList", org.apache.thrift.protocol.TMessageType.CALL, 0));
3181
        deleteItemFromIgnoredInventoryUpdateList_args args = new deleteItemFromIgnoredInventoryUpdateList_args();
3182
        args.setItem_id(item_id);
3183
        args.setWarehouse_id(warehouse_id);
3184
        args.write(prot);
3185
        prot.writeMessageEnd();
3186
      }
3187
 
3188
      public boolean getResult() throws org.apache.thrift.TException {
3189
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3190
          throw new IllegalStateException("Method call not finished!");
3191
        }
3192
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3193
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3194
        return (new Client(prot)).recv_deleteItemFromIgnoredInventoryUpdateList();
3195
      }
3196
    }
3197
 
3198
    public void getAllIgnoredInventoryupdateItemsCount(org.apache.thrift.async.AsyncMethodCallback<getAllIgnoredInventoryupdateItemsCount_call> resultHandler) throws org.apache.thrift.TException {
3199
      checkReady();
3200
      getAllIgnoredInventoryupdateItemsCount_call method_call = new getAllIgnoredInventoryupdateItemsCount_call(resultHandler, this, ___protocolFactory, ___transport);
3201
      this.___currentMethod = method_call;
3202
      ___manager.call(method_call);
3203
    }
3204
 
3205
    public static class getAllIgnoredInventoryupdateItemsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
3206
      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 {
3207
        super(client, protocolFactory, transport, resultHandler, false);
3208
      }
3209
 
3210
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3211
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllIgnoredInventoryupdateItemsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
3212
        getAllIgnoredInventoryupdateItemsCount_args args = new getAllIgnoredInventoryupdateItemsCount_args();
3213
        args.write(prot);
3214
        prot.writeMessageEnd();
3215
      }
3216
 
3217
      public int getResult() throws org.apache.thrift.TException {
3218
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3219
          throw new IllegalStateException("Method call not finished!");
3220
        }
3221
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3222
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3223
        return (new Client(prot)).recv_getAllIgnoredInventoryupdateItemsCount();
3224
      }
3225
    }
3226
 
3227
    public void getIgnoredInventoryUpdateItemids(int offset, int limit, org.apache.thrift.async.AsyncMethodCallback<getIgnoredInventoryUpdateItemids_call> resultHandler) throws org.apache.thrift.TException {
3228
      checkReady();
3229
      getIgnoredInventoryUpdateItemids_call method_call = new getIgnoredInventoryUpdateItemids_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
3230
      this.___currentMethod = method_call;
3231
      ___manager.call(method_call);
3232
    }
3233
 
3234
    public static class getIgnoredInventoryUpdateItemids_call extends org.apache.thrift.async.TAsyncMethodCall {
3235
      private int offset;
3236
      private int limit;
3237
      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 {
3238
        super(client, protocolFactory, transport, resultHandler, false);
3239
        this.offset = offset;
3240
        this.limit = limit;
3241
      }
3242
 
3243
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3244
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getIgnoredInventoryUpdateItemids", org.apache.thrift.protocol.TMessageType.CALL, 0));
3245
        getIgnoredInventoryUpdateItemids_args args = new getIgnoredInventoryUpdateItemids_args();
3246
        args.setOffset(offset);
3247
        args.setLimit(limit);
3248
        args.write(prot);
3249
        prot.writeMessageEnd();
3250
      }
3251
 
3252
      public List<Long> getResult() throws org.apache.thrift.TException {
3253
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3254
          throw new IllegalStateException("Method call not finished!");
3255
        }
3256
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3257
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3258
        return (new Client(prot)).recv_getIgnoredInventoryUpdateItemids();
3259
      }
3260
    }
3261
 
6821 amar.kumar 3262
    public void updateItemStockPurchaseParams(long item_id, int numOfDaysStock, long minStockLevel, org.apache.thrift.async.AsyncMethodCallback<updateItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3263
      checkReady();
3264
      updateItemStockPurchaseParams_call method_call = new updateItemStockPurchaseParams_call(item_id, numOfDaysStock, minStockLevel, resultHandler, this, ___protocolFactory, ___transport);
3265
      this.___currentMethod = method_call;
3266
      ___manager.call(method_call);
3267
    }
3268
 
3269
    public static class updateItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3270
      private long item_id;
3271
      private int numOfDaysStock;
3272
      private long minStockLevel;
3273
      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 {
3274
        super(client, protocolFactory, transport, resultHandler, false);
3275
        this.item_id = item_id;
3276
        this.numOfDaysStock = numOfDaysStock;
3277
        this.minStockLevel = minStockLevel;
3278
      }
3279
 
3280
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3281
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3282
        updateItemStockPurchaseParams_args args = new updateItemStockPurchaseParams_args();
3283
        args.setItem_id(item_id);
3284
        args.setNumOfDaysStock(numOfDaysStock);
3285
        args.setMinStockLevel(minStockLevel);
3286
        args.write(prot);
3287
        prot.writeMessageEnd();
3288
      }
3289
 
3290
      public void getResult() throws org.apache.thrift.TException {
3291
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3292
          throw new IllegalStateException("Method call not finished!");
3293
        }
3294
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3295
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3296
        (new Client(prot)).recv_updateItemStockPurchaseParams();
3297
      }
3298
    }
3299
 
3300
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3301
      checkReady();
3302
      getItemStockPurchaseParams_call method_call = new getItemStockPurchaseParams_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
3303
      this.___currentMethod = method_call;
3304
      ___manager.call(method_call);
3305
    }
3306
 
3307
    public static class getItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3308
      private long itemId;
3309
      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 {
3310
        super(client, protocolFactory, transport, resultHandler, false);
3311
        this.itemId = itemId;
3312
      }
3313
 
3314
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3315
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3316
        getItemStockPurchaseParams_args args = new getItemStockPurchaseParams_args();
3317
        args.setItemId(itemId);
3318
        args.write(prot);
3319
        prot.writeMessageEnd();
3320
      }
3321
 
3322
      public ItemStockPurchaseParams getResult() throws org.apache.thrift.TException {
3323
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3324
          throw new IllegalStateException("Method call not finished!");
3325
        }
3326
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3327
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3328
        return (new Client(prot)).recv_getItemStockPurchaseParams();
3329
      }
3330
    }
3331
 
3332
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException {
3333
      checkReady();
3334
      addOosStatusForItem_call method_call = new addOosStatusForItem_call(oosStatusMap, date, resultHandler, this, ___protocolFactory, ___transport);
3335
      this.___currentMethod = method_call;
3336
      ___manager.call(method_call);
3337
    }
3338
 
3339
    public static class addOosStatusForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3340
      private Map<Long,Boolean> oosStatusMap;
3341
      private long date;
3342
      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 {
3343
        super(client, protocolFactory, transport, resultHandler, false);
3344
        this.oosStatusMap = oosStatusMap;
3345
        this.date = date;
3346
      }
3347
 
3348
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3349
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOosStatusForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3350
        addOosStatusForItem_args args = new addOosStatusForItem_args();
3351
        args.setOosStatusMap(oosStatusMap);
3352
        args.setDate(date);
3353
        args.write(prot);
3354
        prot.writeMessageEnd();
3355
      }
3356
 
3357
      public void getResult() throws org.apache.thrift.TException {
3358
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3359
          throw new IllegalStateException("Method call not finished!");
3360
        }
3361
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3362
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3363
        (new Client(prot)).recv_addOosStatusForItem();
3364
      }
3365
    }
3366
 
6832 amar.kumar 3367
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException {
3368
      checkReady();
3369
      getOosStatusesForXDaysForItem_call method_call = new getOosStatusesForXDaysForItem_call(itemId, days, resultHandler, this, ___protocolFactory, ___transport);
3370
      this.___currentMethod = method_call;
3371
      ___manager.call(method_call);
3372
    }
3373
 
3374
    public static class getOosStatusesForXDaysForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3375
      private long itemId;
3376
      private int days;
3377
      public getOosStatusesForXDaysForItem_call(long itemId, 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 {
3378
        super(client, protocolFactory, transport, resultHandler, false);
3379
        this.itemId = itemId;
3380
        this.days = days;
3381
      }
3382
 
3383
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3384
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOosStatusesForXDaysForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3385
        getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
3386
        args.setItemId(itemId);
3387
        args.setDays(days);
3388
        args.write(prot);
3389
        prot.writeMessageEnd();
3390
      }
3391
 
3392
      public List<OOSStatus> getResult() throws org.apache.thrift.TException {
3393
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3394
          throw new IllegalStateException("Method call not finished!");
3395
        }
3396
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3398
        return (new Client(prot)).recv_getOosStatusesForXDaysForItem();
3399
      }
3400
    }
3401
 
6857 amar.kumar 3402
    public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException {
3403
      checkReady();
3404
      getNonZeroItemStockPurchaseParams_call method_call = new getNonZeroItemStockPurchaseParams_call(resultHandler, this, ___protocolFactory, ___transport);
3405
      this.___currentMethod = method_call;
3406
      ___manager.call(method_call);
3407
    }
3408
 
3409
    public static class getNonZeroItemStockPurchaseParams_call extends org.apache.thrift.async.TAsyncMethodCall {
3410
      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 {
3411
        super(client, protocolFactory, transport, resultHandler, false);
3412
      }
3413
 
3414
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3415
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonZeroItemStockPurchaseParams", org.apache.thrift.protocol.TMessageType.CALL, 0));
3416
        getNonZeroItemStockPurchaseParams_args args = new getNonZeroItemStockPurchaseParams_args();
3417
        args.write(prot);
3418
        prot.writeMessageEnd();
3419
      }
3420
 
3421
      public List<ItemStockPurchaseParams> getResult() throws org.apache.thrift.TException {
3422
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3423
          throw new IllegalStateException("Method call not finished!");
3424
        }
3425
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3426
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3427
        return (new Client(prot)).recv_getNonZeroItemStockPurchaseParams();
3428
      }
3429
    }
3430
 
7149 amar.kumar 3431
    public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException {
3432
      checkReady();
3433
      getBillableInventoryAndPendingOrders_call method_call = new getBillableInventoryAndPendingOrders_call(resultHandler, this, ___protocolFactory, ___transport);
3434
      this.___currentMethod = method_call;
3435
      ___manager.call(method_call);
3436
    }
3437
 
3438
    public static class getBillableInventoryAndPendingOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
3439
      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 {
3440
        super(client, protocolFactory, transport, resultHandler, false);
3441
      }
3442
 
3443
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3444
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBillableInventoryAndPendingOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
3445
        getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
3446
        args.write(prot);
3447
        prot.writeMessageEnd();
3448
      }
3449
 
3450
      public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
3451
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3452
          throw new IllegalStateException("Method call not finished!");
3453
        }
3454
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3455
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3456
        return (new Client(prot)).recv_getBillableInventoryAndPendingOrders();
3457
      }
3458
    }
3459
 
7281 kshitij.so 3460
    public void getWarehouseName(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseName_call> resultHandler) throws org.apache.thrift.TException {
3461
      checkReady();
3462
      getWarehouseName_call method_call = new getWarehouseName_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
3463
      this.___currentMethod = method_call;
3464
      ___manager.call(method_call);
3465
    }
3466
 
3467
    public static class getWarehouseName_call extends org.apache.thrift.async.TAsyncMethodCall {
3468
      private long warehouse_id;
3469
      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 {
3470
        super(client, protocolFactory, transport, resultHandler, false);
3471
        this.warehouse_id = warehouse_id;
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("getWarehouseName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3476
        getWarehouseName_args args = new getWarehouseName_args();
3477
        args.setWarehouse_id(warehouse_id);
3478
        args.write(prot);
3479
        prot.writeMessageEnd();
3480
      }
3481
 
3482
      public String getResult() throws org.apache.thrift.TException {
3483
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3484
          throw new IllegalStateException("Method call not finished!");
3485
        }
3486
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3487
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3488
        return (new Client(prot)).recv_getWarehouseName();
3489
      }
3490
    }
3491
 
3492
    public void getAmazonInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
3493
      checkReady();
3494
      getAmazonInventoryForItem_call method_call = new getAmazonInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
3495
      this.___currentMethod = method_call;
3496
      ___manager.call(method_call);
3497
    }
3498
 
3499
    public static class getAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3500
      private long item_id;
3501
      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 {
3502
        super(client, protocolFactory, transport, resultHandler, false);
3503
        this.item_id = item_id;
3504
      }
3505
 
3506
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3507
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3508
        getAmazonInventoryForItem_args args = new getAmazonInventoryForItem_args();
3509
        args.setItem_id(item_id);
3510
        args.write(prot);
3511
        prot.writeMessageEnd();
3512
      }
3513
 
3514
      public AmazonInventorySnapshot getResult() throws org.apache.thrift.TException {
3515
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3516
          throw new IllegalStateException("Method call not finished!");
3517
        }
3518
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3519
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3520
        return (new Client(prot)).recv_getAmazonInventoryForItem();
3521
      }
3522
    }
3523
 
3524
    public void getAllAmazonInventory(org.apache.thrift.async.AsyncMethodCallback<getAllAmazonInventory_call> resultHandler) throws org.apache.thrift.TException {
3525
      checkReady();
3526
      getAllAmazonInventory_call method_call = new getAllAmazonInventory_call(resultHandler, this, ___protocolFactory, ___transport);
3527
      this.___currentMethod = method_call;
3528
      ___manager.call(method_call);
3529
    }
3530
 
3531
    public static class getAllAmazonInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
3532
      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 {
3533
        super(client, protocolFactory, transport, resultHandler, false);
3534
      }
3535
 
3536
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3537
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAmazonInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
3538
        getAllAmazonInventory_args args = new getAllAmazonInventory_args();
3539
        args.write(prot);
3540
        prot.writeMessageEnd();
3541
      }
3542
 
3543
      public List<AmazonInventorySnapshot> getResult() throws org.apache.thrift.TException {
3544
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3545
          throw new IllegalStateException("Method call not finished!");
3546
        }
3547
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3548
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3549
        return (new Client(prot)).recv_getAllAmazonInventory();
3550
      }
3551
    }
3552
 
3553
    public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
3554
      checkReady();
3555
      addOrUpdateAmazonInventoryForItem_call method_call = new addOrUpdateAmazonInventoryForItem_call(amazonInventorySnapshot, resultHandler, this, ___protocolFactory, ___transport);
3556
      this.___currentMethod = method_call;
3557
      ___manager.call(method_call);
3558
    }
3559
 
3560
    public static class addOrUpdateAmazonInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
3561
      private AmazonInventorySnapshot amazonInventorySnapshot;
3562
      public addOrUpdateAmazonInventoryForItem_call(AmazonInventorySnapshot amazonInventorySnapshot, 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 {
3563
        super(client, protocolFactory, transport, resultHandler, false);
3564
        this.amazonInventorySnapshot = amazonInventorySnapshot;
3565
      }
3566
 
3567
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3568
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
3569
        addOrUpdateAmazonInventoryForItem_args args = new addOrUpdateAmazonInventoryForItem_args();
3570
        args.setAmazonInventorySnapshot(amazonInventorySnapshot);
3571
        args.write(prot);
3572
        prot.writeMessageEnd();
3573
      }
3574
 
3575
      public void getResult() throws org.apache.thrift.TException {
3576
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
3577
          throw new IllegalStateException("Method call not finished!");
3578
        }
3579
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
3580
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3581
        (new Client(prot)).recv_addOrUpdateAmazonInventoryForItem();
3582
      }
3583
    }
3584
 
5945 mandeep.dh 3585
  }
3586
 
3587
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3588
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3589
    public Processor(I iface) {
3590
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
3591
    }
3592
 
3593
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
3594
      super(iface, getProcessMap(processMap));
3595
    }
3596
 
3597
    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) {
3598
      processMap.put("addWarehouse", new addWarehouse());
3599
      processMap.put("addVendor", new addVendor());
3600
      processMap.put("updateInventoryHistory", new updateInventoryHistory());
3601
      processMap.put("updateInventory", new updateInventory());
3602
      processMap.put("addInventory", new addInventory());
3603
      processMap.put("retireWarehouse", new retireWarehouse());
3604
      processMap.put("getItemInventoryByItemId", new getItemInventoryByItemId());
3605
      processMap.put("getItemAvailibilityAtWarehouse", new getItemAvailibilityAtWarehouse());
3606
      processMap.put("getItemAvailabilityAtLocation", new getItemAvailabilityAtLocation());
3607
      processMap.put("getAllWarehouses", new getAllWarehouses());
3608
      processMap.put("getWarehouse", new getWarehouse());
3609
      processMap.put("getAllItemsForWarehouse", new getAllItemsForWarehouse());
5967 rajveer 3610
      processMap.put("isOrderBillable", new isOrderBillable());
5945 mandeep.dh 3611
      processMap.put("reserveItemInWarehouse", new reserveItemInWarehouse());
3612
      processMap.put("reduceReservationCount", new reduceReservationCount());
3613
      processMap.put("getItemPricing", new getItemPricing());
3614
      processMap.put("getAllItemPricing", new getAllItemPricing());
3615
      processMap.put("addVendorItemPricing", new addVendorItemPricing());
3616
      processMap.put("getVendor", new getVendor());
3617
      processMap.put("getAllVendors", new getAllVendors());
3618
      processMap.put("addVendorItemMapping", new addVendorItemMapping());
3619
      processMap.put("getVendorItemMappings", new getVendorItemMappings());
3620
      processMap.put("getPendingOrdersInventory", new getPendingOrdersInventory());
3621
      processMap.put("getWarehouses", new getWarehouses());
3622
      processMap.put("resetAvailability", new resetAvailability());
3623
      processMap.put("resetAvailabilityForWarehouse", new resetAvailabilityForWarehouse());
3624
      processMap.put("getItemKeysToBeProcessed", new getItemKeysToBeProcessed());
3625
      processMap.put("markMissedInventoryUpdatesAsProcessed", new markMissedInventoryUpdatesAsProcessed());
3626
      processMap.put("getIgnoredItemKeys", new getIgnoredItemKeys());
3627
      processMap.put("addBadInventory", new addBadInventory());
3628
      processMap.put("getShippingLocations", new getShippingLocations());
3629
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
3630
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
3631
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
3632
      processMap.put("updateVendorString", new updateVendorString());
6096 amit.gupta 3633
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
6467 amar.kumar 3634
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
6484 amar.kumar 3635
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
6531 vikram.rag 3636
      processMap.put("getMonitoredWarehouseForVendors", new getMonitoredWarehouseForVendors());
3637
      processMap.put("getIgnoredWarehouseidsAndItemids", new getIgnoredWarehouseidsAndItemids());
3638
      processMap.put("insertItemtoIgnoreInventoryUpdatelist", new insertItemtoIgnoreInventoryUpdatelist());
3639
      processMap.put("deleteItemFromIgnoredInventoryUpdateList", new deleteItemFromIgnoredInventoryUpdateList());
3640
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3641
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
6821 amar.kumar 3642
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
3643
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3644
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
6832 amar.kumar 3645
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
6857 amar.kumar 3646
      processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
7149 amar.kumar 3647
      processMap.put("getBillableInventoryAndPendingOrders", new getBillableInventoryAndPendingOrders());
7281 kshitij.so 3648
      processMap.put("getWarehouseName", new getWarehouseName());
3649
      processMap.put("getAmazonInventoryForItem", new getAmazonInventoryForItem());
3650
      processMap.put("getAllAmazonInventory", new getAllAmazonInventory());
3651
      processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
5945 mandeep.dh 3652
      return processMap;
3653
    }
3654
 
3655
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3656
      public addWarehouse() {
3657
        super("addWarehouse");
3658
      }
3659
 
3660
      protected addWarehouse_args getEmptyArgsInstance() {
3661
        return new addWarehouse_args();
3662
      }
3663
 
3664
      protected addWarehouse_result getResult(I iface, addWarehouse_args args) throws org.apache.thrift.TException {
3665
        addWarehouse_result result = new addWarehouse_result();
3666
        try {
3667
          result.success = iface.addWarehouse(args.warehouse);
3668
          result.setSuccessIsSet(true);
3669
        } catch (InventoryServiceException cex) {
3670
          result.cex = cex;
3671
        }
3672
        return result;
3673
      }
3674
    }
3675
 
3676
    private static class addVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendor_args> {
3677
      public addVendor() {
3678
        super("addVendor");
3679
      }
3680
 
3681
      protected addVendor_args getEmptyArgsInstance() {
3682
        return new addVendor_args();
3683
      }
3684
 
3685
      protected addVendor_result getResult(I iface, addVendor_args args) throws org.apache.thrift.TException {
3686
        addVendor_result result = new addVendor_result();
3687
        try {
3688
          result.success = iface.addVendor(args.vendor);
3689
          result.setSuccessIsSet(true);
3690
        } catch (InventoryServiceException cex) {
3691
          result.cex = cex;
3692
        }
3693
        return result;
3694
      }
3695
    }
3696
 
3697
    private static class updateInventoryHistory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventoryHistory_args> {
3698
      public updateInventoryHistory() {
3699
        super("updateInventoryHistory");
3700
      }
3701
 
3702
      protected updateInventoryHistory_args getEmptyArgsInstance() {
3703
        return new updateInventoryHistory_args();
3704
      }
3705
 
3706
      protected updateInventoryHistory_result getResult(I iface, updateInventoryHistory_args args) throws org.apache.thrift.TException {
3707
        updateInventoryHistory_result result = new updateInventoryHistory_result();
3708
        try {
3709
          iface.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability);
3710
        } catch (InventoryServiceException cex) {
3711
          result.cex = cex;
3712
        }
3713
        return result;
3714
      }
3715
    }
3716
 
3717
    private static class updateInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateInventory_args> {
3718
      public updateInventory() {
3719
        super("updateInventory");
3720
      }
3721
 
3722
      protected updateInventory_args getEmptyArgsInstance() {
3723
        return new updateInventory_args();
3724
      }
3725
 
3726
      protected updateInventory_result getResult(I iface, updateInventory_args args) throws org.apache.thrift.TException {
3727
        updateInventory_result result = new updateInventory_result();
3728
        try {
3729
          iface.updateInventory(args.warehouse_id, args.timestamp, args.availability);
3730
        } catch (InventoryServiceException cex) {
3731
          result.cex = cex;
3732
        }
3733
        return result;
3734
      }
3735
    }
3736
 
3737
    private static class addInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInventory_args> {
3738
      public addInventory() {
3739
        super("addInventory");
3740
      }
3741
 
3742
      protected addInventory_args getEmptyArgsInstance() {
3743
        return new addInventory_args();
3744
      }
3745
 
3746
      protected addInventory_result getResult(I iface, addInventory_args args) throws org.apache.thrift.TException {
3747
        addInventory_result result = new addInventory_result();
3748
        try {
3749
          iface.addInventory(args.itemId, args.warehouseId, args.quantity);
3750
        } catch (InventoryServiceException cex) {
3751
          result.cex = cex;
3752
        }
3753
        return result;
3754
      }
3755
    }
3756
 
3757
    private static class retireWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, retireWarehouse_args> {
3758
      public retireWarehouse() {
3759
        super("retireWarehouse");
3760
      }
3761
 
3762
      protected retireWarehouse_args getEmptyArgsInstance() {
3763
        return new retireWarehouse_args();
3764
      }
3765
 
3766
      protected retireWarehouse_result getResult(I iface, retireWarehouse_args args) throws org.apache.thrift.TException {
3767
        retireWarehouse_result result = new retireWarehouse_result();
3768
        try {
3769
          iface.retireWarehouse(args.warehouse_id);
3770
        } catch (InventoryServiceException cex) {
3771
          result.cex = cex;
3772
        }
3773
        return result;
3774
      }
3775
    }
3776
 
3777
    private static class getItemInventoryByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemInventoryByItemId_args> {
3778
      public getItemInventoryByItemId() {
3779
        super("getItemInventoryByItemId");
3780
      }
3781
 
3782
      protected getItemInventoryByItemId_args getEmptyArgsInstance() {
3783
        return new getItemInventoryByItemId_args();
3784
      }
3785
 
3786
      protected getItemInventoryByItemId_result getResult(I iface, getItemInventoryByItemId_args args) throws org.apache.thrift.TException {
3787
        getItemInventoryByItemId_result result = new getItemInventoryByItemId_result();
3788
        try {
3789
          result.success = iface.getItemInventoryByItemId(args.item_id);
3790
        } catch (InventoryServiceException cex) {
3791
          result.cex = cex;
3792
        }
3793
        return result;
3794
      }
3795
    }
3796
 
3797
    private static class getItemAvailibilityAtWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailibilityAtWarehouse_args> {
3798
      public getItemAvailibilityAtWarehouse() {
3799
        super("getItemAvailibilityAtWarehouse");
3800
      }
3801
 
3802
      protected getItemAvailibilityAtWarehouse_args getEmptyArgsInstance() {
3803
        return new getItemAvailibilityAtWarehouse_args();
3804
      }
3805
 
3806
      protected getItemAvailibilityAtWarehouse_result getResult(I iface, getItemAvailibilityAtWarehouse_args args) throws org.apache.thrift.TException {
3807
        getItemAvailibilityAtWarehouse_result result = new getItemAvailibilityAtWarehouse_result();
3808
        try {
3809
          result.success = iface.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id);
3810
          result.setSuccessIsSet(true);
3811
        } catch (InventoryServiceException cex) {
3812
          result.cex = cex;
3813
        }
3814
        return result;
3815
      }
3816
    }
3817
 
3818
    private static class getItemAvailabilityAtLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilityAtLocation_args> {
3819
      public getItemAvailabilityAtLocation() {
3820
        super("getItemAvailabilityAtLocation");
3821
      }
3822
 
3823
      protected getItemAvailabilityAtLocation_args getEmptyArgsInstance() {
3824
        return new getItemAvailabilityAtLocation_args();
3825
      }
3826
 
3827
      protected getItemAvailabilityAtLocation_result getResult(I iface, getItemAvailabilityAtLocation_args args) throws org.apache.thrift.TException {
3828
        getItemAvailabilityAtLocation_result result = new getItemAvailabilityAtLocation_result();
3829
        try {
5978 rajveer 3830
          result.success = iface.getItemAvailabilityAtLocation(args.itemId, args.sourceId);
5945 mandeep.dh 3831
        } catch (InventoryServiceException isex) {
3832
          result.isex = isex;
3833
        }
3834
        return result;
3835
      }
3836
    }
3837
 
3838
    private static class getAllWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllWarehouses_args> {
3839
      public getAllWarehouses() {
3840
        super("getAllWarehouses");
3841
      }
3842
 
3843
      protected getAllWarehouses_args getEmptyArgsInstance() {
3844
        return new getAllWarehouses_args();
3845
      }
3846
 
3847
      protected getAllWarehouses_result getResult(I iface, getAllWarehouses_args args) throws org.apache.thrift.TException {
3848
        getAllWarehouses_result result = new getAllWarehouses_result();
3849
        try {
3850
          result.success = iface.getAllWarehouses(args.isActive);
3851
        } catch (InventoryServiceException cex) {
3852
          result.cex = cex;
3853
        }
3854
        return result;
3855
      }
3856
    }
3857
 
3858
    private static class getWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouse_args> {
3859
      public getWarehouse() {
3860
        super("getWarehouse");
3861
      }
3862
 
3863
      protected getWarehouse_args getEmptyArgsInstance() {
3864
        return new getWarehouse_args();
3865
      }
3866
 
3867
      protected getWarehouse_result getResult(I iface, getWarehouse_args args) throws org.apache.thrift.TException {
3868
        getWarehouse_result result = new getWarehouse_result();
3869
        try {
3870
          result.success = iface.getWarehouse(args.warehouse_id);
3871
        } catch (InventoryServiceException cex) {
3872
          result.cex = cex;
3873
        }
3874
        return result;
3875
      }
3876
    }
3877
 
3878
    private static class getAllItemsForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemsForWarehouse_args> {
3879
      public getAllItemsForWarehouse() {
3880
        super("getAllItemsForWarehouse");
3881
      }
3882
 
3883
      protected getAllItemsForWarehouse_args getEmptyArgsInstance() {
3884
        return new getAllItemsForWarehouse_args();
3885
      }
3886
 
3887
      protected getAllItemsForWarehouse_result getResult(I iface, getAllItemsForWarehouse_args args) throws org.apache.thrift.TException {
3888
        getAllItemsForWarehouse_result result = new getAllItemsForWarehouse_result();
3889
        try {
3890
          result.success = iface.getAllItemsForWarehouse(args.warehouse_id);
3891
        } catch (InventoryServiceException cex) {
3892
          result.cex = cex;
3893
        }
3894
        return result;
3895
      }
3896
    }
3897
 
5967 rajveer 3898
    private static class isOrderBillable<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isOrderBillable_args> {
3899
      public isOrderBillable() {
3900
        super("isOrderBillable");
3901
      }
3902
 
3903
      protected isOrderBillable_args getEmptyArgsInstance() {
3904
        return new isOrderBillable_args();
3905
      }
3906
 
3907
      protected isOrderBillable_result getResult(I iface, isOrderBillable_args args) throws org.apache.thrift.TException {
3908
        isOrderBillable_result result = new isOrderBillable_result();
3909
        result.success = iface.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId);
3910
        result.setSuccessIsSet(true);
3911
        return result;
3912
      }
3913
    }
3914
 
5945 mandeep.dh 3915
    private static class reserveItemInWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reserveItemInWarehouse_args> {
3916
      public reserveItemInWarehouse() {
3917
        super("reserveItemInWarehouse");
3918
      }
3919
 
3920
      protected reserveItemInWarehouse_args getEmptyArgsInstance() {
3921
        return new reserveItemInWarehouse_args();
3922
      }
3923
 
3924
      protected reserveItemInWarehouse_result getResult(I iface, reserveItemInWarehouse_args args) throws org.apache.thrift.TException {
3925
        reserveItemInWarehouse_result result = new reserveItemInWarehouse_result();
3926
        try {
5967 rajveer 3927
          result.success = iface.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity);
5945 mandeep.dh 3928
          result.setSuccessIsSet(true);
3929
        } catch (InventoryServiceException cex) {
3930
          result.cex = cex;
3931
        }
3932
        return result;
3933
      }
3934
    }
3935
 
3936
    private static class reduceReservationCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reduceReservationCount_args> {
3937
      public reduceReservationCount() {
3938
        super("reduceReservationCount");
3939
      }
3940
 
3941
      protected reduceReservationCount_args getEmptyArgsInstance() {
3942
        return new reduceReservationCount_args();
3943
      }
3944
 
3945
      protected reduceReservationCount_result getResult(I iface, reduceReservationCount_args args) throws org.apache.thrift.TException {
3946
        reduceReservationCount_result result = new reduceReservationCount_result();
3947
        try {
5967 rajveer 3948
          result.success = iface.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity);
5945 mandeep.dh 3949
          result.setSuccessIsSet(true);
3950
        } catch (InventoryServiceException cex) {
3951
          result.cex = cex;
3952
        }
3953
        return result;
3954
      }
3955
    }
3956
 
3957
    private static class getItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPricing_args> {
3958
      public getItemPricing() {
3959
        super("getItemPricing");
3960
      }
3961
 
3962
      protected getItemPricing_args getEmptyArgsInstance() {
3963
        return new getItemPricing_args();
3964
      }
3965
 
3966
      protected getItemPricing_result getResult(I iface, getItemPricing_args args) throws org.apache.thrift.TException {
3967
        getItemPricing_result result = new getItemPricing_result();
3968
        try {
3969
          result.success = iface.getItemPricing(args.itemId, args.vendorId);
3970
        } catch (InventoryServiceException cex) {
3971
          result.cex = cex;
3972
        }
3973
        return result;
3974
      }
3975
    }
3976
 
3977
    private static class getAllItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllItemPricing_args> {
3978
      public getAllItemPricing() {
3979
        super("getAllItemPricing");
3980
      }
3981
 
3982
      protected getAllItemPricing_args getEmptyArgsInstance() {
3983
        return new getAllItemPricing_args();
3984
      }
3985
 
3986
      protected getAllItemPricing_result getResult(I iface, getAllItemPricing_args args) throws org.apache.thrift.TException {
3987
        getAllItemPricing_result result = new getAllItemPricing_result();
3988
        try {
3989
          result.success = iface.getAllItemPricing(args.itemId);
3990
        } catch (InventoryServiceException cex) {
3991
          result.cex = cex;
3992
        }
3993
        return result;
3994
      }
3995
    }
3996
 
3997
    private static class addVendorItemPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemPricing_args> {
3998
      public addVendorItemPricing() {
3999
        super("addVendorItemPricing");
4000
      }
4001
 
4002
      protected addVendorItemPricing_args getEmptyArgsInstance() {
4003
        return new addVendorItemPricing_args();
4004
      }
4005
 
4006
      protected addVendorItemPricing_result getResult(I iface, addVendorItemPricing_args args) throws org.apache.thrift.TException {
4007
        addVendorItemPricing_result result = new addVendorItemPricing_result();
4008
        try {
4009
          iface.addVendorItemPricing(args.vendorItemPricing);
4010
        } catch (InventoryServiceException cex) {
4011
          result.cex = cex;
4012
        }
4013
        return result;
4014
      }
4015
    }
4016
 
4017
    private static class getVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendor_args> {
4018
      public getVendor() {
4019
        super("getVendor");
4020
      }
4021
 
4022
      protected getVendor_args getEmptyArgsInstance() {
4023
        return new getVendor_args();
4024
      }
4025
 
4026
      protected getVendor_result getResult(I iface, getVendor_args args) throws org.apache.thrift.TException {
4027
        getVendor_result result = new getVendor_result();
4028
        result.success = iface.getVendor(args.vendorId);
4029
        return result;
4030
      }
4031
    }
4032
 
4033
    private static class getAllVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendors_args> {
4034
      public getAllVendors() {
4035
        super("getAllVendors");
4036
      }
4037
 
4038
      protected getAllVendors_args getEmptyArgsInstance() {
4039
        return new getAllVendors_args();
4040
      }
4041
 
4042
      protected getAllVendors_result getResult(I iface, getAllVendors_args args) throws org.apache.thrift.TException {
4043
        getAllVendors_result result = new getAllVendors_result();
4044
        result.success = iface.getAllVendors();
4045
        return result;
4046
      }
4047
    }
4048
 
4049
    private static class addVendorItemMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVendorItemMapping_args> {
4050
      public addVendorItemMapping() {
4051
        super("addVendorItemMapping");
4052
      }
4053
 
4054
      protected addVendorItemMapping_args getEmptyArgsInstance() {
4055
        return new addVendorItemMapping_args();
4056
      }
4057
 
4058
      protected addVendorItemMapping_result getResult(I iface, addVendorItemMapping_args args) throws org.apache.thrift.TException {
4059
        addVendorItemMapping_result result = new addVendorItemMapping_result();
4060
        try {
4061
          iface.addVendorItemMapping(args.key, args.vendorItemMapping);
4062
        } catch (InventoryServiceException cex) {
4063
          result.cex = cex;
4064
        }
4065
        return result;
4066
      }
4067
    }
4068
 
4069
    private static class getVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getVendorItemMappings_args> {
4070
      public getVendorItemMappings() {
4071
        super("getVendorItemMappings");
4072
      }
4073
 
4074
      protected getVendorItemMappings_args getEmptyArgsInstance() {
4075
        return new getVendorItemMappings_args();
4076
      }
4077
 
4078
      protected getVendorItemMappings_result getResult(I iface, getVendorItemMappings_args args) throws org.apache.thrift.TException {
4079
        getVendorItemMappings_result result = new getVendorItemMappings_result();
4080
        try {
4081
          result.success = iface.getVendorItemMappings(args.itemId);
4082
        } catch (InventoryServiceException cex) {
4083
          result.cex = cex;
4084
        }
4085
        return result;
4086
      }
4087
    }
4088
 
4089
    private static class getPendingOrdersInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPendingOrdersInventory_args> {
4090
      public getPendingOrdersInventory() {
4091
        super("getPendingOrdersInventory");
4092
      }
4093
 
4094
      protected getPendingOrdersInventory_args getEmptyArgsInstance() {
4095
        return new getPendingOrdersInventory_args();
4096
      }
4097
 
4098
      protected getPendingOrdersInventory_result getResult(I iface, getPendingOrdersInventory_args args) throws org.apache.thrift.TException {
4099
        getPendingOrdersInventory_result result = new getPendingOrdersInventory_result();
4100
        result.success = iface.getPendingOrdersInventory(args.vendorid);
4101
        return result;
4102
      }
4103
    }
4104
 
4105
    private static class getWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouses_args> {
4106
      public getWarehouses() {
4107
        super("getWarehouses");
4108
      }
4109
 
4110
      protected getWarehouses_args getEmptyArgsInstance() {
4111
        return new getWarehouses_args();
4112
      }
4113
 
4114
      protected getWarehouses_result getResult(I iface, getWarehouses_args args) throws org.apache.thrift.TException {
4115
        getWarehouses_result result = new getWarehouses_result();
4116
        result.success = iface.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId);
4117
        return result;
4118
      }
4119
    }
4120
 
4121
    private static class resetAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailability_args> {
4122
      public resetAvailability() {
4123
        super("resetAvailability");
4124
      }
4125
 
4126
      protected resetAvailability_args getEmptyArgsInstance() {
4127
        return new resetAvailability_args();
4128
      }
4129
 
4130
      protected resetAvailability_result getResult(I iface, resetAvailability_args args) throws org.apache.thrift.TException {
4131
        resetAvailability_result result = new resetAvailability_result();
4132
        try {
4133
          iface.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId);
4134
        } catch (InventoryServiceException cex) {
4135
          result.cex = cex;
4136
        }
4137
        return result;
4138
      }
4139
    }
4140
 
4141
    private static class resetAvailabilityForWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, resetAvailabilityForWarehouse_args> {
4142
      public resetAvailabilityForWarehouse() {
4143
        super("resetAvailabilityForWarehouse");
4144
      }
4145
 
4146
      protected resetAvailabilityForWarehouse_args getEmptyArgsInstance() {
4147
        return new resetAvailabilityForWarehouse_args();
4148
      }
4149
 
4150
      protected resetAvailabilityForWarehouse_result getResult(I iface, resetAvailabilityForWarehouse_args args) throws org.apache.thrift.TException {
4151
        resetAvailabilityForWarehouse_result result = new resetAvailabilityForWarehouse_result();
4152
        try {
4153
          iface.resetAvailabilityForWarehouse(args.warehouseId);
4154
        } catch (InventoryServiceException cex) {
4155
          result.cex = cex;
4156
        }
4157
        return result;
4158
      }
4159
    }
4160
 
4161
    private static class getItemKeysToBeProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemKeysToBeProcessed_args> {
4162
      public getItemKeysToBeProcessed() {
4163
        super("getItemKeysToBeProcessed");
4164
      }
4165
 
4166
      protected getItemKeysToBeProcessed_args getEmptyArgsInstance() {
4167
        return new getItemKeysToBeProcessed_args();
4168
      }
4169
 
4170
      protected getItemKeysToBeProcessed_result getResult(I iface, getItemKeysToBeProcessed_args args) throws org.apache.thrift.TException {
4171
        getItemKeysToBeProcessed_result result = new getItemKeysToBeProcessed_result();
4172
        result.success = iface.getItemKeysToBeProcessed(args.warehouseId);
4173
        return result;
4174
      }
4175
    }
4176
 
4177
    private static class markMissedInventoryUpdatesAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMissedInventoryUpdatesAsProcessed_args> {
4178
      public markMissedInventoryUpdatesAsProcessed() {
4179
        super("markMissedInventoryUpdatesAsProcessed");
4180
      }
4181
 
4182
      protected markMissedInventoryUpdatesAsProcessed_args getEmptyArgsInstance() {
4183
        return new markMissedInventoryUpdatesAsProcessed_args();
4184
      }
4185
 
4186
      protected markMissedInventoryUpdatesAsProcessed_result getResult(I iface, markMissedInventoryUpdatesAsProcessed_args args) throws org.apache.thrift.TException {
4187
        markMissedInventoryUpdatesAsProcessed_result result = new markMissedInventoryUpdatesAsProcessed_result();
4188
        iface.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId);
4189
        return result;
4190
      }
4191
    }
4192
 
4193
    private static class getIgnoredItemKeys<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredItemKeys_args> {
4194
      public getIgnoredItemKeys() {
4195
        super("getIgnoredItemKeys");
4196
      }
4197
 
4198
      protected getIgnoredItemKeys_args getEmptyArgsInstance() {
4199
        return new getIgnoredItemKeys_args();
4200
      }
4201
 
4202
      protected getIgnoredItemKeys_result getResult(I iface, getIgnoredItemKeys_args args) throws org.apache.thrift.TException {
4203
        getIgnoredItemKeys_result result = new getIgnoredItemKeys_result();
4204
        result.success = iface.getIgnoredItemKeys();
4205
        return result;
4206
      }
4207
    }
4208
 
4209
    private static class addBadInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBadInventory_args> {
4210
      public addBadInventory() {
4211
        super("addBadInventory");
4212
      }
4213
 
4214
      protected addBadInventory_args getEmptyArgsInstance() {
4215
        return new addBadInventory_args();
4216
      }
4217
 
4218
      protected addBadInventory_result getResult(I iface, addBadInventory_args args) throws org.apache.thrift.TException {
4219
        addBadInventory_result result = new addBadInventory_result();
4220
        try {
4221
          iface.addBadInventory(args.itemId, args.warehouseId, args.quantity);
4222
        } catch (InventoryServiceException cex) {
4223
          result.cex = cex;
4224
        }
4225
        return result;
4226
      }
4227
    }
4228
 
4229
    private static class getShippingLocations<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShippingLocations_args> {
4230
      public getShippingLocations() {
4231
        super("getShippingLocations");
4232
      }
4233
 
4234
      protected getShippingLocations_args getEmptyArgsInstance() {
4235
        return new getShippingLocations_args();
4236
      }
4237
 
4238
      protected getShippingLocations_result getResult(I iface, getShippingLocations_args args) throws org.apache.thrift.TException {
4239
        getShippingLocations_result result = new getShippingLocations_result();
4240
        result.success = iface.getShippingLocations();
4241
        return result;
4242
      }
4243
    }
4244
 
4245
    private static class getAllVendorItemMappings<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVendorItemMappings_args> {
4246
      public getAllVendorItemMappings() {
4247
        super("getAllVendorItemMappings");
4248
      }
4249
 
4250
      protected getAllVendorItemMappings_args getEmptyArgsInstance() {
4251
        return new getAllVendorItemMappings_args();
4252
      }
4253
 
4254
      protected getAllVendorItemMappings_result getResult(I iface, getAllVendorItemMappings_args args) throws org.apache.thrift.TException {
4255
        getAllVendorItemMappings_result result = new getAllVendorItemMappings_result();
4256
        result.success = iface.getAllVendorItemMappings();
4257
        return result;
4258
      }
4259
    }
4260
 
4261
    private static class getInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventorySnapshot_args> {
4262
      public getInventorySnapshot() {
4263
        super("getInventorySnapshot");
4264
      }
4265
 
4266
      protected getInventorySnapshot_args getEmptyArgsInstance() {
4267
        return new getInventorySnapshot_args();
4268
      }
4269
 
4270
      protected getInventorySnapshot_result getResult(I iface, getInventorySnapshot_args args) throws org.apache.thrift.TException {
4271
        getInventorySnapshot_result result = new getInventorySnapshot_result();
4272
        result.success = iface.getInventorySnapshot(args.warehouseId);
4273
        return result;
4274
      }
4275
    }
4276
 
4277
    private static class clearItemAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCache_args> {
4278
      public clearItemAvailabilityCache() {
4279
        super("clearItemAvailabilityCache");
4280
      }
4281
 
4282
      protected clearItemAvailabilityCache_args getEmptyArgsInstance() {
4283
        return new clearItemAvailabilityCache_args();
4284
      }
4285
 
4286
      protected clearItemAvailabilityCache_result getResult(I iface, clearItemAvailabilityCache_args args) throws org.apache.thrift.TException {
4287
        clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
4288
        iface.clearItemAvailabilityCache();
4289
        return result;
4290
      }
4291
    }
4292
 
4293
    private static class updateVendorString<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateVendorString_args> {
4294
      public updateVendorString() {
4295
        super("updateVendorString");
4296
      }
4297
 
4298
      protected updateVendorString_args getEmptyArgsInstance() {
4299
        return new updateVendorString_args();
4300
      }
4301
 
4302
      protected updateVendorString_result getResult(I iface, updateVendorString_args args) throws org.apache.thrift.TException {
4303
        updateVendorString_result result = new updateVendorString_result();
4304
        iface.updateVendorString(args.warehouseId, args.vendorString);
4305
        return result;
4306
      }
4307
    }
4308
 
6096 amit.gupta 4309
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
4310
      public clearItemAvailabilityCacheForItem() {
4311
        super("clearItemAvailabilityCacheForItem");
4312
      }
4313
 
4314
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
4315
        return new clearItemAvailabilityCacheForItem_args();
4316
      }
4317
 
4318
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
4319
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
4320
        iface.clearItemAvailabilityCacheForItem(args.item_id);
4321
        return result;
4322
      }
4323
    }
4324
 
6467 amar.kumar 4325
    private static class getOurWarehouseIdForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOurWarehouseIdForVendor_args> {
4326
      public getOurWarehouseIdForVendor() {
4327
        super("getOurWarehouseIdForVendor");
4328
      }
4329
 
4330
      protected getOurWarehouseIdForVendor_args getEmptyArgsInstance() {
4331
        return new getOurWarehouseIdForVendor_args();
4332
      }
4333
 
4334
      protected getOurWarehouseIdForVendor_result getResult(I iface, getOurWarehouseIdForVendor_args args) throws org.apache.thrift.TException {
4335
        getOurWarehouseIdForVendor_result result = new getOurWarehouseIdForVendor_result();
4336
        result.success = iface.getOurWarehouseIdForVendor(args.vendorId);
4337
        result.setSuccessIsSet(true);
4338
        return result;
4339
      }
4340
    }
4341
 
6484 amar.kumar 4342
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
4343
      public getItemAvailabilitiesAtOurWarehouses() {
4344
        super("getItemAvailabilitiesAtOurWarehouses");
4345
      }
4346
 
4347
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
4348
        return new getItemAvailabilitiesAtOurWarehouses_args();
4349
      }
4350
 
4351
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
4352
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
4353
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
4354
        return result;
4355
      }
4356
    }
4357
 
6531 vikram.rag 4358
    private static class getMonitoredWarehouseForVendors<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMonitoredWarehouseForVendors_args> {
4359
      public getMonitoredWarehouseForVendors() {
4360
        super("getMonitoredWarehouseForVendors");
4361
      }
4362
 
4363
      protected getMonitoredWarehouseForVendors_args getEmptyArgsInstance() {
4364
        return new getMonitoredWarehouseForVendors_args();
4365
      }
4366
 
4367
      protected getMonitoredWarehouseForVendors_result getResult(I iface, getMonitoredWarehouseForVendors_args args) throws org.apache.thrift.TException {
4368
        getMonitoredWarehouseForVendors_result result = new getMonitoredWarehouseForVendors_result();
4369
        result.success = iface.getMonitoredWarehouseForVendors(args.vendorIds);
4370
        return result;
4371
      }
4372
    }
4373
 
4374
    private static class getIgnoredWarehouseidsAndItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredWarehouseidsAndItemids_args> {
4375
      public getIgnoredWarehouseidsAndItemids() {
4376
        super("getIgnoredWarehouseidsAndItemids");
4377
      }
4378
 
4379
      protected getIgnoredWarehouseidsAndItemids_args getEmptyArgsInstance() {
4380
        return new getIgnoredWarehouseidsAndItemids_args();
4381
      }
4382
 
4383
      protected getIgnoredWarehouseidsAndItemids_result getResult(I iface, getIgnoredWarehouseidsAndItemids_args args) throws org.apache.thrift.TException {
4384
        getIgnoredWarehouseidsAndItemids_result result = new getIgnoredWarehouseidsAndItemids_result();
4385
        result.success = iface.getIgnoredWarehouseidsAndItemids();
4386
        return result;
4387
      }
4388
    }
4389
 
4390
    private static class insertItemtoIgnoreInventoryUpdatelist<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertItemtoIgnoreInventoryUpdatelist_args> {
4391
      public insertItemtoIgnoreInventoryUpdatelist() {
4392
        super("insertItemtoIgnoreInventoryUpdatelist");
4393
      }
4394
 
4395
      protected insertItemtoIgnoreInventoryUpdatelist_args getEmptyArgsInstance() {
4396
        return new insertItemtoIgnoreInventoryUpdatelist_args();
4397
      }
4398
 
4399
      protected insertItemtoIgnoreInventoryUpdatelist_result getResult(I iface, insertItemtoIgnoreInventoryUpdatelist_args args) throws org.apache.thrift.TException {
4400
        insertItemtoIgnoreInventoryUpdatelist_result result = new insertItemtoIgnoreInventoryUpdatelist_result();
4401
        result.success = iface.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id);
4402
        result.setSuccessIsSet(true);
4403
        return result;
4404
      }
4405
    }
4406
 
4407
    private static class deleteItemFromIgnoredInventoryUpdateList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteItemFromIgnoredInventoryUpdateList_args> {
4408
      public deleteItemFromIgnoredInventoryUpdateList() {
4409
        super("deleteItemFromIgnoredInventoryUpdateList");
4410
      }
4411
 
4412
      protected deleteItemFromIgnoredInventoryUpdateList_args getEmptyArgsInstance() {
4413
        return new deleteItemFromIgnoredInventoryUpdateList_args();
4414
      }
4415
 
4416
      protected deleteItemFromIgnoredInventoryUpdateList_result getResult(I iface, deleteItemFromIgnoredInventoryUpdateList_args args) throws org.apache.thrift.TException {
4417
        deleteItemFromIgnoredInventoryUpdateList_result result = new deleteItemFromIgnoredInventoryUpdateList_result();
4418
        result.success = iface.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id);
4419
        result.setSuccessIsSet(true);
4420
        return result;
4421
      }
4422
    }
4423
 
4424
    private static class getAllIgnoredInventoryupdateItemsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllIgnoredInventoryupdateItemsCount_args> {
4425
      public getAllIgnoredInventoryupdateItemsCount() {
4426
        super("getAllIgnoredInventoryupdateItemsCount");
4427
      }
4428
 
4429
      protected getAllIgnoredInventoryupdateItemsCount_args getEmptyArgsInstance() {
4430
        return new getAllIgnoredInventoryupdateItemsCount_args();
4431
      }
4432
 
4433
      protected getAllIgnoredInventoryupdateItemsCount_result getResult(I iface, getAllIgnoredInventoryupdateItemsCount_args args) throws org.apache.thrift.TException {
4434
        getAllIgnoredInventoryupdateItemsCount_result result = new getAllIgnoredInventoryupdateItemsCount_result();
4435
        result.success = iface.getAllIgnoredInventoryupdateItemsCount();
4436
        result.setSuccessIsSet(true);
4437
        return result;
4438
      }
4439
    }
4440
 
4441
    private static class getIgnoredInventoryUpdateItemids<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getIgnoredInventoryUpdateItemids_args> {
4442
      public getIgnoredInventoryUpdateItemids() {
4443
        super("getIgnoredInventoryUpdateItemids");
4444
      }
4445
 
4446
      protected getIgnoredInventoryUpdateItemids_args getEmptyArgsInstance() {
4447
        return new getIgnoredInventoryUpdateItemids_args();
4448
      }
4449
 
4450
      protected getIgnoredInventoryUpdateItemids_result getResult(I iface, getIgnoredInventoryUpdateItemids_args args) throws org.apache.thrift.TException {
4451
        getIgnoredInventoryUpdateItemids_result result = new getIgnoredInventoryUpdateItemids_result();
4452
        result.success = iface.getIgnoredInventoryUpdateItemids(args.offset, args.limit);
4453
        return result;
4454
      }
4455
    }
4456
 
6821 amar.kumar 4457
    private static class updateItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemStockPurchaseParams_args> {
4458
      public updateItemStockPurchaseParams() {
4459
        super("updateItemStockPurchaseParams");
4460
      }
4461
 
4462
      protected updateItemStockPurchaseParams_args getEmptyArgsInstance() {
4463
        return new updateItemStockPurchaseParams_args();
4464
      }
4465
 
4466
      protected updateItemStockPurchaseParams_result getResult(I iface, updateItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4467
        updateItemStockPurchaseParams_result result = new updateItemStockPurchaseParams_result();
4468
        iface.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel);
4469
        return result;
4470
      }
4471
    }
4472
 
4473
    private static class getItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemStockPurchaseParams_args> {
4474
      public getItemStockPurchaseParams() {
4475
        super("getItemStockPurchaseParams");
4476
      }
4477
 
4478
      protected getItemStockPurchaseParams_args getEmptyArgsInstance() {
4479
        return new getItemStockPurchaseParams_args();
4480
      }
4481
 
4482
      protected getItemStockPurchaseParams_result getResult(I iface, getItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4483
        getItemStockPurchaseParams_result result = new getItemStockPurchaseParams_result();
4484
        result.success = iface.getItemStockPurchaseParams(args.itemId);
4485
        return result;
4486
      }
4487
    }
4488
 
4489
    private static class addOosStatusForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOosStatusForItem_args> {
4490
      public addOosStatusForItem() {
4491
        super("addOosStatusForItem");
4492
      }
4493
 
4494
      protected addOosStatusForItem_args getEmptyArgsInstance() {
4495
        return new addOosStatusForItem_args();
4496
      }
4497
 
4498
      protected addOosStatusForItem_result getResult(I iface, addOosStatusForItem_args args) throws org.apache.thrift.TException {
4499
        addOosStatusForItem_result result = new addOosStatusForItem_result();
4500
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
4501
        return result;
4502
      }
4503
    }
4504
 
6832 amar.kumar 4505
    private static class getOosStatusesForXDaysForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOosStatusesForXDaysForItem_args> {
4506
      public getOosStatusesForXDaysForItem() {
4507
        super("getOosStatusesForXDaysForItem");
4508
      }
4509
 
4510
      protected getOosStatusesForXDaysForItem_args getEmptyArgsInstance() {
4511
        return new getOosStatusesForXDaysForItem_args();
4512
      }
4513
 
4514
      protected getOosStatusesForXDaysForItem_result getResult(I iface, getOosStatusesForXDaysForItem_args args) throws org.apache.thrift.TException {
4515
        getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
4516
        result.success = iface.getOosStatusesForXDaysForItem(args.itemId, args.days);
4517
        return result;
4518
      }
4519
    }
4520
 
6857 amar.kumar 4521
    private static class getNonZeroItemStockPurchaseParams<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonZeroItemStockPurchaseParams_args> {
4522
      public getNonZeroItemStockPurchaseParams() {
4523
        super("getNonZeroItemStockPurchaseParams");
4524
      }
4525
 
4526
      protected getNonZeroItemStockPurchaseParams_args getEmptyArgsInstance() {
4527
        return new getNonZeroItemStockPurchaseParams_args();
4528
      }
4529
 
4530
      protected getNonZeroItemStockPurchaseParams_result getResult(I iface, getNonZeroItemStockPurchaseParams_args args) throws org.apache.thrift.TException {
4531
        getNonZeroItemStockPurchaseParams_result result = new getNonZeroItemStockPurchaseParams_result();
4532
        result.success = iface.getNonZeroItemStockPurchaseParams();
4533
        return result;
4534
      }
4535
    }
4536
 
7149 amar.kumar 4537
    private static class getBillableInventoryAndPendingOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBillableInventoryAndPendingOrders_args> {
4538
      public getBillableInventoryAndPendingOrders() {
4539
        super("getBillableInventoryAndPendingOrders");
4540
      }
4541
 
4542
      protected getBillableInventoryAndPendingOrders_args getEmptyArgsInstance() {
4543
        return new getBillableInventoryAndPendingOrders_args();
4544
      }
4545
 
4546
      protected getBillableInventoryAndPendingOrders_result getResult(I iface, getBillableInventoryAndPendingOrders_args args) throws org.apache.thrift.TException {
4547
        getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
4548
        result.success = iface.getBillableInventoryAndPendingOrders();
4549
        return result;
4550
      }
4551
    }
4552
 
7281 kshitij.so 4553
    private static class getWarehouseName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseName_args> {
4554
      public getWarehouseName() {
4555
        super("getWarehouseName");
4556
      }
4557
 
4558
      protected getWarehouseName_args getEmptyArgsInstance() {
4559
        return new getWarehouseName_args();
4560
      }
4561
 
4562
      protected getWarehouseName_result getResult(I iface, getWarehouseName_args args) throws org.apache.thrift.TException {
4563
        getWarehouseName_result result = new getWarehouseName_result();
4564
        result.success = iface.getWarehouseName(args.warehouse_id);
4565
        return result;
4566
      }
4567
    }
4568
 
4569
    private static class getAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonInventoryForItem_args> {
4570
      public getAmazonInventoryForItem() {
4571
        super("getAmazonInventoryForItem");
4572
      }
4573
 
4574
      protected getAmazonInventoryForItem_args getEmptyArgsInstance() {
4575
        return new getAmazonInventoryForItem_args();
4576
      }
4577
 
4578
      protected getAmazonInventoryForItem_result getResult(I iface, getAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
4579
        getAmazonInventoryForItem_result result = new getAmazonInventoryForItem_result();
4580
        result.success = iface.getAmazonInventoryForItem(args.item_id);
4581
        return result;
4582
      }
4583
    }
4584
 
4585
    private static class getAllAmazonInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAmazonInventory_args> {
4586
      public getAllAmazonInventory() {
4587
        super("getAllAmazonInventory");
4588
      }
4589
 
4590
      protected getAllAmazonInventory_args getEmptyArgsInstance() {
4591
        return new getAllAmazonInventory_args();
4592
      }
4593
 
4594
      protected getAllAmazonInventory_result getResult(I iface, getAllAmazonInventory_args args) throws org.apache.thrift.TException {
4595
        getAllAmazonInventory_result result = new getAllAmazonInventory_result();
4596
        result.success = iface.getAllAmazonInventory();
4597
        return result;
4598
      }
4599
    }
4600
 
4601
    private static class addOrUpdateAmazonInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonInventoryForItem_args> {
4602
      public addOrUpdateAmazonInventoryForItem() {
4603
        super("addOrUpdateAmazonInventoryForItem");
4604
      }
4605
 
4606
      protected addOrUpdateAmazonInventoryForItem_args getEmptyArgsInstance() {
4607
        return new addOrUpdateAmazonInventoryForItem_args();
4608
      }
4609
 
4610
      protected addOrUpdateAmazonInventoryForItem_result getResult(I iface, addOrUpdateAmazonInventoryForItem_args args) throws org.apache.thrift.TException {
4611
        addOrUpdateAmazonInventoryForItem_result result = new addOrUpdateAmazonInventoryForItem_result();
4612
        iface.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot);
4613
        return result;
4614
      }
4615
    }
4616
 
5945 mandeep.dh 4617
  }
4618
 
4619
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4621
 
4622
    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);
4623
 
4624
    private Warehouse warehouse; // required
4625
 
4626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4628
      WAREHOUSE((short)1, "warehouse");
4629
 
4630
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4631
 
4632
      static {
4633
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4634
          byName.put(field.getFieldName(), field);
4635
        }
4636
      }
4637
 
4638
      /**
4639
       * Find the _Fields constant that matches fieldId, or null if its not found.
4640
       */
4641
      public static _Fields findByThriftId(int fieldId) {
4642
        switch(fieldId) {
4643
          case 1: // WAREHOUSE
4644
            return WAREHOUSE;
4645
          default:
4646
            return null;
4647
        }
4648
      }
4649
 
4650
      /**
4651
       * Find the _Fields constant that matches fieldId, throwing an exception
4652
       * if it is not found.
4653
       */
4654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4655
        _Fields fields = findByThriftId(fieldId);
4656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4657
        return fields;
4658
      }
4659
 
4660
      /**
4661
       * Find the _Fields constant that matches name, or null if its not found.
4662
       */
4663
      public static _Fields findByName(String name) {
4664
        return byName.get(name);
4665
      }
4666
 
4667
      private final short _thriftId;
4668
      private final String _fieldName;
4669
 
4670
      _Fields(short thriftId, String fieldName) {
4671
        _thriftId = thriftId;
4672
        _fieldName = fieldName;
4673
      }
4674
 
4675
      public short getThriftFieldId() {
4676
        return _thriftId;
4677
      }
4678
 
4679
      public String getFieldName() {
4680
        return _fieldName;
4681
      }
4682
    }
4683
 
4684
    // isset id assignments
4685
 
4686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4687
    static {
4688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4689
      tmpMap.put(_Fields.WAREHOUSE, new org.apache.thrift.meta_data.FieldMetaData("warehouse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4690
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
4691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_args.class, metaDataMap);
4693
    }
4694
 
4695
    public addWarehouse_args() {
4696
    }
4697
 
4698
    public addWarehouse_args(
4699
      Warehouse warehouse)
4700
    {
4701
      this();
4702
      this.warehouse = warehouse;
4703
    }
4704
 
4705
    /**
4706
     * Performs a deep copy on <i>other</i>.
4707
     */
4708
    public addWarehouse_args(addWarehouse_args other) {
4709
      if (other.isSetWarehouse()) {
4710
        this.warehouse = new Warehouse(other.warehouse);
4711
      }
4712
    }
4713
 
4714
    public addWarehouse_args deepCopy() {
4715
      return new addWarehouse_args(this);
4716
    }
4717
 
4718
    @Override
4719
    public void clear() {
4720
      this.warehouse = null;
4721
    }
4722
 
4723
    public Warehouse getWarehouse() {
4724
      return this.warehouse;
4725
    }
4726
 
4727
    public void setWarehouse(Warehouse warehouse) {
4728
      this.warehouse = warehouse;
4729
    }
4730
 
4731
    public void unsetWarehouse() {
4732
      this.warehouse = null;
4733
    }
4734
 
4735
    /** Returns true if field warehouse is set (has been assigned a value) and false otherwise */
4736
    public boolean isSetWarehouse() {
4737
      return this.warehouse != null;
4738
    }
4739
 
4740
    public void setWarehouseIsSet(boolean value) {
4741
      if (!value) {
4742
        this.warehouse = null;
4743
      }
4744
    }
4745
 
4746
    public void setFieldValue(_Fields field, Object value) {
4747
      switch (field) {
4748
      case WAREHOUSE:
4749
        if (value == null) {
4750
          unsetWarehouse();
4751
        } else {
4752
          setWarehouse((Warehouse)value);
4753
        }
4754
        break;
4755
 
4756
      }
4757
    }
4758
 
4759
    public Object getFieldValue(_Fields field) {
4760
      switch (field) {
4761
      case WAREHOUSE:
4762
        return getWarehouse();
4763
 
4764
      }
4765
      throw new IllegalStateException();
4766
    }
4767
 
4768
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4769
    public boolean isSet(_Fields field) {
4770
      if (field == null) {
4771
        throw new IllegalArgumentException();
4772
      }
4773
 
4774
      switch (field) {
4775
      case WAREHOUSE:
4776
        return isSetWarehouse();
4777
      }
4778
      throw new IllegalStateException();
4779
    }
4780
 
4781
    @Override
4782
    public boolean equals(Object that) {
4783
      if (that == null)
4784
        return false;
4785
      if (that instanceof addWarehouse_args)
4786
        return this.equals((addWarehouse_args)that);
4787
      return false;
4788
    }
4789
 
4790
    public boolean equals(addWarehouse_args that) {
4791
      if (that == null)
4792
        return false;
4793
 
4794
      boolean this_present_warehouse = true && this.isSetWarehouse();
4795
      boolean that_present_warehouse = true && that.isSetWarehouse();
4796
      if (this_present_warehouse || that_present_warehouse) {
4797
        if (!(this_present_warehouse && that_present_warehouse))
4798
          return false;
4799
        if (!this.warehouse.equals(that.warehouse))
4800
          return false;
4801
      }
4802
 
4803
      return true;
4804
    }
4805
 
4806
    @Override
4807
    public int hashCode() {
4808
      return 0;
4809
    }
4810
 
4811
    public int compareTo(addWarehouse_args other) {
4812
      if (!getClass().equals(other.getClass())) {
4813
        return getClass().getName().compareTo(other.getClass().getName());
4814
      }
4815
 
4816
      int lastComparison = 0;
4817
      addWarehouse_args typedOther = (addWarehouse_args)other;
4818
 
4819
      lastComparison = Boolean.valueOf(isSetWarehouse()).compareTo(typedOther.isSetWarehouse());
4820
      if (lastComparison != 0) {
4821
        return lastComparison;
4822
      }
4823
      if (isSetWarehouse()) {
4824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse, typedOther.warehouse);
4825
        if (lastComparison != 0) {
4826
          return lastComparison;
4827
        }
4828
      }
4829
      return 0;
4830
    }
4831
 
4832
    public _Fields fieldForId(int fieldId) {
4833
      return _Fields.findByThriftId(fieldId);
4834
    }
4835
 
4836
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4837
      org.apache.thrift.protocol.TField field;
4838
      iprot.readStructBegin();
4839
      while (true)
4840
      {
4841
        field = iprot.readFieldBegin();
4842
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4843
          break;
4844
        }
4845
        switch (field.id) {
4846
          case 1: // WAREHOUSE
4847
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4848
              this.warehouse = new Warehouse();
4849
              this.warehouse.read(iprot);
4850
            } else { 
4851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4852
            }
4853
            break;
4854
          default:
4855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4856
        }
4857
        iprot.readFieldEnd();
4858
      }
4859
      iprot.readStructEnd();
4860
      validate();
4861
    }
4862
 
4863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4864
      validate();
4865
 
4866
      oprot.writeStructBegin(STRUCT_DESC);
4867
      if (this.warehouse != null) {
4868
        oprot.writeFieldBegin(WAREHOUSE_FIELD_DESC);
4869
        this.warehouse.write(oprot);
4870
        oprot.writeFieldEnd();
4871
      }
4872
      oprot.writeFieldStop();
4873
      oprot.writeStructEnd();
4874
    }
4875
 
4876
    @Override
4877
    public String toString() {
4878
      StringBuilder sb = new StringBuilder("addWarehouse_args(");
4879
      boolean first = true;
4880
 
4881
      sb.append("warehouse:");
4882
      if (this.warehouse == null) {
4883
        sb.append("null");
4884
      } else {
4885
        sb.append(this.warehouse);
4886
      }
4887
      first = false;
4888
      sb.append(")");
4889
      return sb.toString();
4890
    }
4891
 
4892
    public void validate() throws org.apache.thrift.TException {
4893
      // check for required fields
4894
    }
4895
 
4896
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4897
      try {
4898
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4899
      } catch (org.apache.thrift.TException te) {
4900
        throw new java.io.IOException(te);
4901
      }
4902
    }
4903
 
4904
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4905
      try {
4906
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4907
      } catch (org.apache.thrift.TException te) {
4908
        throw new java.io.IOException(te);
4909
      }
4910
    }
4911
 
4912
  }
4913
 
4914
  public static class addWarehouse_result implements org.apache.thrift.TBase<addWarehouse_result, addWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
4915
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_result");
4916
 
4917
    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);
4918
    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);
4919
 
4920
    private long success; // required
4921
    private InventoryServiceException cex; // required
4922
 
4923
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4924
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4925
      SUCCESS((short)0, "success"),
4926
      CEX((short)1, "cex");
4927
 
4928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4929
 
4930
      static {
4931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4932
          byName.put(field.getFieldName(), field);
4933
        }
4934
      }
4935
 
4936
      /**
4937
       * Find the _Fields constant that matches fieldId, or null if its not found.
4938
       */
4939
      public static _Fields findByThriftId(int fieldId) {
4940
        switch(fieldId) {
4941
          case 0: // SUCCESS
4942
            return SUCCESS;
4943
          case 1: // CEX
4944
            return CEX;
4945
          default:
4946
            return null;
4947
        }
4948
      }
4949
 
4950
      /**
4951
       * Find the _Fields constant that matches fieldId, throwing an exception
4952
       * if it is not found.
4953
       */
4954
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4955
        _Fields fields = findByThriftId(fieldId);
4956
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4957
        return fields;
4958
      }
4959
 
4960
      /**
4961
       * Find the _Fields constant that matches name, or null if its not found.
4962
       */
4963
      public static _Fields findByName(String name) {
4964
        return byName.get(name);
4965
      }
4966
 
4967
      private final short _thriftId;
4968
      private final String _fieldName;
4969
 
4970
      _Fields(short thriftId, String fieldName) {
4971
        _thriftId = thriftId;
4972
        _fieldName = fieldName;
4973
      }
4974
 
4975
      public short getThriftFieldId() {
4976
        return _thriftId;
4977
      }
4978
 
4979
      public String getFieldName() {
4980
        return _fieldName;
4981
      }
4982
    }
4983
 
4984
    // isset id assignments
4985
    private static final int __SUCCESS_ISSET_ID = 0;
4986
    private BitSet __isset_bit_vector = new BitSet(1);
4987
 
4988
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4989
    static {
4990
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4991
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4992
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4993
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4994
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4995
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4996
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addWarehouse_result.class, metaDataMap);
4997
    }
4998
 
4999
    public addWarehouse_result() {
5000
    }
5001
 
5002
    public addWarehouse_result(
5003
      long success,
5004
      InventoryServiceException cex)
5005
    {
5006
      this();
5007
      this.success = success;
5008
      setSuccessIsSet(true);
5009
      this.cex = cex;
5010
    }
5011
 
5012
    /**
5013
     * Performs a deep copy on <i>other</i>.
5014
     */
5015
    public addWarehouse_result(addWarehouse_result other) {
5016
      __isset_bit_vector.clear();
5017
      __isset_bit_vector.or(other.__isset_bit_vector);
5018
      this.success = other.success;
5019
      if (other.isSetCex()) {
5020
        this.cex = new InventoryServiceException(other.cex);
5021
      }
5022
    }
5023
 
5024
    public addWarehouse_result deepCopy() {
5025
      return new addWarehouse_result(this);
5026
    }
5027
 
5028
    @Override
5029
    public void clear() {
5030
      setSuccessIsSet(false);
5031
      this.success = 0;
5032
      this.cex = null;
5033
    }
5034
 
5035
    public long getSuccess() {
5036
      return this.success;
5037
    }
5038
 
5039
    public void setSuccess(long success) {
5040
      this.success = success;
5041
      setSuccessIsSet(true);
5042
    }
5043
 
5044
    public void unsetSuccess() {
5045
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5046
    }
5047
 
5048
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5049
    public boolean isSetSuccess() {
5050
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5051
    }
5052
 
5053
    public void setSuccessIsSet(boolean value) {
5054
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5055
    }
5056
 
5057
    public InventoryServiceException getCex() {
5058
      return this.cex;
5059
    }
5060
 
5061
    public void setCex(InventoryServiceException cex) {
5062
      this.cex = cex;
5063
    }
5064
 
5065
    public void unsetCex() {
5066
      this.cex = null;
5067
    }
5068
 
5069
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5070
    public boolean isSetCex() {
5071
      return this.cex != null;
5072
    }
5073
 
5074
    public void setCexIsSet(boolean value) {
5075
      if (!value) {
5076
        this.cex = null;
5077
      }
5078
    }
5079
 
5080
    public void setFieldValue(_Fields field, Object value) {
5081
      switch (field) {
5082
      case SUCCESS:
5083
        if (value == null) {
5084
          unsetSuccess();
5085
        } else {
5086
          setSuccess((Long)value);
5087
        }
5088
        break;
5089
 
5090
      case CEX:
5091
        if (value == null) {
5092
          unsetCex();
5093
        } else {
5094
          setCex((InventoryServiceException)value);
5095
        }
5096
        break;
5097
 
5098
      }
5099
    }
5100
 
5101
    public Object getFieldValue(_Fields field) {
5102
      switch (field) {
5103
      case SUCCESS:
5104
        return Long.valueOf(getSuccess());
5105
 
5106
      case CEX:
5107
        return getCex();
5108
 
5109
      }
5110
      throw new IllegalStateException();
5111
    }
5112
 
5113
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5114
    public boolean isSet(_Fields field) {
5115
      if (field == null) {
5116
        throw new IllegalArgumentException();
5117
      }
5118
 
5119
      switch (field) {
5120
      case SUCCESS:
5121
        return isSetSuccess();
5122
      case CEX:
5123
        return isSetCex();
5124
      }
5125
      throw new IllegalStateException();
5126
    }
5127
 
5128
    @Override
5129
    public boolean equals(Object that) {
5130
      if (that == null)
5131
        return false;
5132
      if (that instanceof addWarehouse_result)
5133
        return this.equals((addWarehouse_result)that);
5134
      return false;
5135
    }
5136
 
5137
    public boolean equals(addWarehouse_result that) {
5138
      if (that == null)
5139
        return false;
5140
 
5141
      boolean this_present_success = true;
5142
      boolean that_present_success = true;
5143
      if (this_present_success || that_present_success) {
5144
        if (!(this_present_success && that_present_success))
5145
          return false;
5146
        if (this.success != that.success)
5147
          return false;
5148
      }
5149
 
5150
      boolean this_present_cex = true && this.isSetCex();
5151
      boolean that_present_cex = true && that.isSetCex();
5152
      if (this_present_cex || that_present_cex) {
5153
        if (!(this_present_cex && that_present_cex))
5154
          return false;
5155
        if (!this.cex.equals(that.cex))
5156
          return false;
5157
      }
5158
 
5159
      return true;
5160
    }
5161
 
5162
    @Override
5163
    public int hashCode() {
5164
      return 0;
5165
    }
5166
 
5167
    public int compareTo(addWarehouse_result other) {
5168
      if (!getClass().equals(other.getClass())) {
5169
        return getClass().getName().compareTo(other.getClass().getName());
5170
      }
5171
 
5172
      int lastComparison = 0;
5173
      addWarehouse_result typedOther = (addWarehouse_result)other;
5174
 
5175
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5176
      if (lastComparison != 0) {
5177
        return lastComparison;
5178
      }
5179
      if (isSetSuccess()) {
5180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5181
        if (lastComparison != 0) {
5182
          return lastComparison;
5183
        }
5184
      }
5185
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5186
      if (lastComparison != 0) {
5187
        return lastComparison;
5188
      }
5189
      if (isSetCex()) {
5190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5191
        if (lastComparison != 0) {
5192
          return lastComparison;
5193
        }
5194
      }
5195
      return 0;
5196
    }
5197
 
5198
    public _Fields fieldForId(int fieldId) {
5199
      return _Fields.findByThriftId(fieldId);
5200
    }
5201
 
5202
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5203
      org.apache.thrift.protocol.TField field;
5204
      iprot.readStructBegin();
5205
      while (true)
5206
      {
5207
        field = iprot.readFieldBegin();
5208
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5209
          break;
5210
        }
5211
        switch (field.id) {
5212
          case 0: // SUCCESS
5213
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5214
              this.success = iprot.readI64();
5215
              setSuccessIsSet(true);
5216
            } else { 
5217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5218
            }
5219
            break;
5220
          case 1: // CEX
5221
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5222
              this.cex = new InventoryServiceException();
5223
              this.cex.read(iprot);
5224
            } else { 
5225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5226
            }
5227
            break;
5228
          default:
5229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5230
        }
5231
        iprot.readFieldEnd();
5232
      }
5233
      iprot.readStructEnd();
5234
      validate();
5235
    }
5236
 
5237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5238
      oprot.writeStructBegin(STRUCT_DESC);
5239
 
5240
      if (this.isSetSuccess()) {
5241
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5242
        oprot.writeI64(this.success);
5243
        oprot.writeFieldEnd();
5244
      } else if (this.isSetCex()) {
5245
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5246
        this.cex.write(oprot);
5247
        oprot.writeFieldEnd();
5248
      }
5249
      oprot.writeFieldStop();
5250
      oprot.writeStructEnd();
5251
    }
5252
 
5253
    @Override
5254
    public String toString() {
5255
      StringBuilder sb = new StringBuilder("addWarehouse_result(");
5256
      boolean first = true;
5257
 
5258
      sb.append("success:");
5259
      sb.append(this.success);
5260
      first = false;
5261
      if (!first) sb.append(", ");
5262
      sb.append("cex:");
5263
      if (this.cex == null) {
5264
        sb.append("null");
5265
      } else {
5266
        sb.append(this.cex);
5267
      }
5268
      first = false;
5269
      sb.append(")");
5270
      return sb.toString();
5271
    }
5272
 
5273
    public void validate() throws org.apache.thrift.TException {
5274
      // check for required fields
5275
    }
5276
 
5277
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5278
      try {
5279
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5280
      } catch (org.apache.thrift.TException te) {
5281
        throw new java.io.IOException(te);
5282
      }
5283
    }
5284
 
5285
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5286
      try {
7322 vikram.rag 5287
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5288
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 5289
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5290
      } catch (org.apache.thrift.TException te) {
5291
        throw new java.io.IOException(te);
5292
      }
5293
    }
5294
 
5295
  }
5296
 
5297
  public static class addVendor_args implements org.apache.thrift.TBase<addVendor_args, addVendor_args._Fields>, java.io.Serializable, Cloneable   {
5298
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_args");
5299
 
5300
    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);
5301
 
5302
    private Vendor vendor; // required
5303
 
5304
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5305
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5306
      VENDOR((short)1, "vendor");
5307
 
5308
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5309
 
5310
      static {
5311
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5312
          byName.put(field.getFieldName(), field);
5313
        }
5314
      }
5315
 
5316
      /**
5317
       * Find the _Fields constant that matches fieldId, or null if its not found.
5318
       */
5319
      public static _Fields findByThriftId(int fieldId) {
5320
        switch(fieldId) {
5321
          case 1: // VENDOR
5322
            return VENDOR;
5323
          default:
5324
            return null;
5325
        }
5326
      }
5327
 
5328
      /**
5329
       * Find the _Fields constant that matches fieldId, throwing an exception
5330
       * if it is not found.
5331
       */
5332
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5333
        _Fields fields = findByThriftId(fieldId);
5334
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5335
        return fields;
5336
      }
5337
 
5338
      /**
5339
       * Find the _Fields constant that matches name, or null if its not found.
5340
       */
5341
      public static _Fields findByName(String name) {
5342
        return byName.get(name);
5343
      }
5344
 
5345
      private final short _thriftId;
5346
      private final String _fieldName;
5347
 
5348
      _Fields(short thriftId, String fieldName) {
5349
        _thriftId = thriftId;
5350
        _fieldName = fieldName;
5351
      }
5352
 
5353
      public short getThriftFieldId() {
5354
        return _thriftId;
5355
      }
5356
 
5357
      public String getFieldName() {
5358
        return _fieldName;
5359
      }
5360
    }
5361
 
5362
    // isset id assignments
5363
 
5364
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5365
    static {
5366
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5367
      tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5368
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
5369
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5370
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_args.class, metaDataMap);
5371
    }
5372
 
5373
    public addVendor_args() {
5374
    }
5375
 
5376
    public addVendor_args(
5377
      Vendor vendor)
5378
    {
5379
      this();
5380
      this.vendor = vendor;
5381
    }
5382
 
5383
    /**
5384
     * Performs a deep copy on <i>other</i>.
5385
     */
5386
    public addVendor_args(addVendor_args other) {
5387
      if (other.isSetVendor()) {
5388
        this.vendor = new Vendor(other.vendor);
5389
      }
5390
    }
5391
 
5392
    public addVendor_args deepCopy() {
5393
      return new addVendor_args(this);
5394
    }
5395
 
5396
    @Override
5397
    public void clear() {
5398
      this.vendor = null;
5399
    }
5400
 
5401
    public Vendor getVendor() {
5402
      return this.vendor;
5403
    }
5404
 
5405
    public void setVendor(Vendor vendor) {
5406
      this.vendor = vendor;
5407
    }
5408
 
5409
    public void unsetVendor() {
5410
      this.vendor = null;
5411
    }
5412
 
5413
    /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
5414
    public boolean isSetVendor() {
5415
      return this.vendor != null;
5416
    }
5417
 
5418
    public void setVendorIsSet(boolean value) {
5419
      if (!value) {
5420
        this.vendor = null;
5421
      }
5422
    }
5423
 
5424
    public void setFieldValue(_Fields field, Object value) {
5425
      switch (field) {
5426
      case VENDOR:
5427
        if (value == null) {
5428
          unsetVendor();
5429
        } else {
5430
          setVendor((Vendor)value);
5431
        }
5432
        break;
5433
 
5434
      }
5435
    }
5436
 
5437
    public Object getFieldValue(_Fields field) {
5438
      switch (field) {
5439
      case VENDOR:
5440
        return getVendor();
5441
 
5442
      }
5443
      throw new IllegalStateException();
5444
    }
5445
 
5446
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5447
    public boolean isSet(_Fields field) {
5448
      if (field == null) {
5449
        throw new IllegalArgumentException();
5450
      }
5451
 
5452
      switch (field) {
5453
      case VENDOR:
5454
        return isSetVendor();
5455
      }
5456
      throw new IllegalStateException();
5457
    }
5458
 
5459
    @Override
5460
    public boolean equals(Object that) {
5461
      if (that == null)
5462
        return false;
5463
      if (that instanceof addVendor_args)
5464
        return this.equals((addVendor_args)that);
5465
      return false;
5466
    }
5467
 
5468
    public boolean equals(addVendor_args that) {
5469
      if (that == null)
5470
        return false;
5471
 
5472
      boolean this_present_vendor = true && this.isSetVendor();
5473
      boolean that_present_vendor = true && that.isSetVendor();
5474
      if (this_present_vendor || that_present_vendor) {
5475
        if (!(this_present_vendor && that_present_vendor))
5476
          return false;
5477
        if (!this.vendor.equals(that.vendor))
5478
          return false;
5479
      }
5480
 
5481
      return true;
5482
    }
5483
 
5484
    @Override
5485
    public int hashCode() {
5486
      return 0;
5487
    }
5488
 
5489
    public int compareTo(addVendor_args other) {
5490
      if (!getClass().equals(other.getClass())) {
5491
        return getClass().getName().compareTo(other.getClass().getName());
5492
      }
5493
 
5494
      int lastComparison = 0;
5495
      addVendor_args typedOther = (addVendor_args)other;
5496
 
5497
      lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
5498
      if (lastComparison != 0) {
5499
        return lastComparison;
5500
      }
5501
      if (isSetVendor()) {
5502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
5503
        if (lastComparison != 0) {
5504
          return lastComparison;
5505
        }
5506
      }
5507
      return 0;
5508
    }
5509
 
5510
    public _Fields fieldForId(int fieldId) {
5511
      return _Fields.findByThriftId(fieldId);
5512
    }
5513
 
5514
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5515
      org.apache.thrift.protocol.TField field;
5516
      iprot.readStructBegin();
5517
      while (true)
5518
      {
5519
        field = iprot.readFieldBegin();
5520
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5521
          break;
5522
        }
5523
        switch (field.id) {
5524
          case 1: // VENDOR
5525
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5526
              this.vendor = new Vendor();
5527
              this.vendor.read(iprot);
5528
            } else { 
5529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5530
            }
5531
            break;
5532
          default:
5533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5534
        }
5535
        iprot.readFieldEnd();
5536
      }
5537
      iprot.readStructEnd();
5538
      validate();
5539
    }
5540
 
5541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5542
      validate();
5543
 
5544
      oprot.writeStructBegin(STRUCT_DESC);
5545
      if (this.vendor != null) {
5546
        oprot.writeFieldBegin(VENDOR_FIELD_DESC);
5547
        this.vendor.write(oprot);
5548
        oprot.writeFieldEnd();
5549
      }
5550
      oprot.writeFieldStop();
5551
      oprot.writeStructEnd();
5552
    }
5553
 
5554
    @Override
5555
    public String toString() {
5556
      StringBuilder sb = new StringBuilder("addVendor_args(");
5557
      boolean first = true;
5558
 
5559
      sb.append("vendor:");
5560
      if (this.vendor == null) {
5561
        sb.append("null");
5562
      } else {
5563
        sb.append(this.vendor);
5564
      }
5565
      first = false;
5566
      sb.append(")");
5567
      return sb.toString();
5568
    }
5569
 
5570
    public void validate() throws org.apache.thrift.TException {
5571
      // check for required fields
5572
    }
5573
 
5574
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5575
      try {
5576
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5577
      } catch (org.apache.thrift.TException te) {
5578
        throw new java.io.IOException(te);
5579
      }
5580
    }
5581
 
5582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5583
      try {
5584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5585
      } catch (org.apache.thrift.TException te) {
5586
        throw new java.io.IOException(te);
5587
      }
5588
    }
5589
 
5590
  }
5591
 
5592
  public static class addVendor_result implements org.apache.thrift.TBase<addVendor_result, addVendor_result._Fields>, java.io.Serializable, Cloneable   {
5593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendor_result");
5594
 
5595
    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);
5596
    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);
5597
 
5598
    private long success; // required
5599
    private InventoryServiceException cex; // required
5600
 
5601
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5602
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5603
      SUCCESS((short)0, "success"),
5604
      CEX((short)1, "cex");
5605
 
5606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5607
 
5608
      static {
5609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5610
          byName.put(field.getFieldName(), field);
5611
        }
5612
      }
5613
 
5614
      /**
5615
       * Find the _Fields constant that matches fieldId, or null if its not found.
5616
       */
5617
      public static _Fields findByThriftId(int fieldId) {
5618
        switch(fieldId) {
5619
          case 0: // SUCCESS
5620
            return SUCCESS;
5621
          case 1: // CEX
5622
            return CEX;
5623
          default:
5624
            return null;
5625
        }
5626
      }
5627
 
5628
      /**
5629
       * Find the _Fields constant that matches fieldId, throwing an exception
5630
       * if it is not found.
5631
       */
5632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5633
        _Fields fields = findByThriftId(fieldId);
5634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5635
        return fields;
5636
      }
5637
 
5638
      /**
5639
       * Find the _Fields constant that matches name, or null if its not found.
5640
       */
5641
      public static _Fields findByName(String name) {
5642
        return byName.get(name);
5643
      }
5644
 
5645
      private final short _thriftId;
5646
      private final String _fieldName;
5647
 
5648
      _Fields(short thriftId, String fieldName) {
5649
        _thriftId = thriftId;
5650
        _fieldName = fieldName;
5651
      }
5652
 
5653
      public short getThriftFieldId() {
5654
        return _thriftId;
5655
      }
5656
 
5657
      public String getFieldName() {
5658
        return _fieldName;
5659
      }
5660
    }
5661
 
5662
    // isset id assignments
5663
    private static final int __SUCCESS_ISSET_ID = 0;
5664
    private BitSet __isset_bit_vector = new BitSet(1);
5665
 
5666
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5667
    static {
5668
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5669
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5670
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5671
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5672
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendor_result.class, metaDataMap);
5675
    }
5676
 
5677
    public addVendor_result() {
5678
    }
5679
 
5680
    public addVendor_result(
5681
      long success,
5682
      InventoryServiceException cex)
5683
    {
5684
      this();
5685
      this.success = success;
5686
      setSuccessIsSet(true);
5687
      this.cex = cex;
5688
    }
5689
 
5690
    /**
5691
     * Performs a deep copy on <i>other</i>.
5692
     */
5693
    public addVendor_result(addVendor_result other) {
5694
      __isset_bit_vector.clear();
5695
      __isset_bit_vector.or(other.__isset_bit_vector);
5696
      this.success = other.success;
5697
      if (other.isSetCex()) {
5698
        this.cex = new InventoryServiceException(other.cex);
5699
      }
5700
    }
5701
 
5702
    public addVendor_result deepCopy() {
5703
      return new addVendor_result(this);
5704
    }
5705
 
5706
    @Override
5707
    public void clear() {
5708
      setSuccessIsSet(false);
5709
      this.success = 0;
5710
      this.cex = null;
5711
    }
5712
 
5713
    public long getSuccess() {
5714
      return this.success;
5715
    }
5716
 
5717
    public void setSuccess(long success) {
5718
      this.success = success;
5719
      setSuccessIsSet(true);
5720
    }
5721
 
5722
    public void unsetSuccess() {
5723
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5724
    }
5725
 
5726
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5727
    public boolean isSetSuccess() {
5728
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5729
    }
5730
 
5731
    public void setSuccessIsSet(boolean value) {
5732
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5733
    }
5734
 
5735
    public InventoryServiceException getCex() {
5736
      return this.cex;
5737
    }
5738
 
5739
    public void setCex(InventoryServiceException cex) {
5740
      this.cex = cex;
5741
    }
5742
 
5743
    public void unsetCex() {
5744
      this.cex = null;
5745
    }
5746
 
5747
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
5748
    public boolean isSetCex() {
5749
      return this.cex != null;
5750
    }
5751
 
5752
    public void setCexIsSet(boolean value) {
5753
      if (!value) {
5754
        this.cex = null;
5755
      }
5756
    }
5757
 
5758
    public void setFieldValue(_Fields field, Object value) {
5759
      switch (field) {
5760
      case SUCCESS:
5761
        if (value == null) {
5762
          unsetSuccess();
5763
        } else {
5764
          setSuccess((Long)value);
5765
        }
5766
        break;
5767
 
5768
      case CEX:
5769
        if (value == null) {
5770
          unsetCex();
5771
        } else {
5772
          setCex((InventoryServiceException)value);
5773
        }
5774
        break;
5775
 
5776
      }
5777
    }
5778
 
5779
    public Object getFieldValue(_Fields field) {
5780
      switch (field) {
5781
      case SUCCESS:
5782
        return Long.valueOf(getSuccess());
5783
 
5784
      case CEX:
5785
        return getCex();
5786
 
5787
      }
5788
      throw new IllegalStateException();
5789
    }
5790
 
5791
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5792
    public boolean isSet(_Fields field) {
5793
      if (field == null) {
5794
        throw new IllegalArgumentException();
5795
      }
5796
 
5797
      switch (field) {
5798
      case SUCCESS:
5799
        return isSetSuccess();
5800
      case CEX:
5801
        return isSetCex();
5802
      }
5803
      throw new IllegalStateException();
5804
    }
5805
 
5806
    @Override
5807
    public boolean equals(Object that) {
5808
      if (that == null)
5809
        return false;
5810
      if (that instanceof addVendor_result)
5811
        return this.equals((addVendor_result)that);
5812
      return false;
5813
    }
5814
 
5815
    public boolean equals(addVendor_result that) {
5816
      if (that == null)
5817
        return false;
5818
 
5819
      boolean this_present_success = true;
5820
      boolean that_present_success = true;
5821
      if (this_present_success || that_present_success) {
5822
        if (!(this_present_success && that_present_success))
5823
          return false;
5824
        if (this.success != that.success)
5825
          return false;
5826
      }
5827
 
5828
      boolean this_present_cex = true && this.isSetCex();
5829
      boolean that_present_cex = true && that.isSetCex();
5830
      if (this_present_cex || that_present_cex) {
5831
        if (!(this_present_cex && that_present_cex))
5832
          return false;
5833
        if (!this.cex.equals(that.cex))
5834
          return false;
5835
      }
5836
 
5837
      return true;
5838
    }
5839
 
5840
    @Override
5841
    public int hashCode() {
5842
      return 0;
5843
    }
5844
 
5845
    public int compareTo(addVendor_result other) {
5846
      if (!getClass().equals(other.getClass())) {
5847
        return getClass().getName().compareTo(other.getClass().getName());
5848
      }
5849
 
5850
      int lastComparison = 0;
5851
      addVendor_result typedOther = (addVendor_result)other;
5852
 
5853
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5854
      if (lastComparison != 0) {
5855
        return lastComparison;
5856
      }
5857
      if (isSetSuccess()) {
5858
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5859
        if (lastComparison != 0) {
5860
          return lastComparison;
5861
        }
5862
      }
5863
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
5864
      if (lastComparison != 0) {
5865
        return lastComparison;
5866
      }
5867
      if (isSetCex()) {
5868
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
5869
        if (lastComparison != 0) {
5870
          return lastComparison;
5871
        }
5872
      }
5873
      return 0;
5874
    }
5875
 
5876
    public _Fields fieldForId(int fieldId) {
5877
      return _Fields.findByThriftId(fieldId);
5878
    }
5879
 
5880
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5881
      org.apache.thrift.protocol.TField field;
5882
      iprot.readStructBegin();
5883
      while (true)
5884
      {
5885
        field = iprot.readFieldBegin();
5886
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5887
          break;
5888
        }
5889
        switch (field.id) {
5890
          case 0: // SUCCESS
5891
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5892
              this.success = iprot.readI64();
5893
              setSuccessIsSet(true);
5894
            } else { 
5895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5896
            }
5897
            break;
5898
          case 1: // CEX
5899
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5900
              this.cex = new InventoryServiceException();
5901
              this.cex.read(iprot);
5902
            } else { 
5903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5904
            }
5905
            break;
5906
          default:
5907
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5908
        }
5909
        iprot.readFieldEnd();
5910
      }
5911
      iprot.readStructEnd();
5912
      validate();
5913
    }
5914
 
5915
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5916
      oprot.writeStructBegin(STRUCT_DESC);
5917
 
5918
      if (this.isSetSuccess()) {
5919
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5920
        oprot.writeI64(this.success);
5921
        oprot.writeFieldEnd();
5922
      } else if (this.isSetCex()) {
5923
        oprot.writeFieldBegin(CEX_FIELD_DESC);
5924
        this.cex.write(oprot);
5925
        oprot.writeFieldEnd();
5926
      }
5927
      oprot.writeFieldStop();
5928
      oprot.writeStructEnd();
5929
    }
5930
 
5931
    @Override
5932
    public String toString() {
5933
      StringBuilder sb = new StringBuilder("addVendor_result(");
5934
      boolean first = true;
5935
 
5936
      sb.append("success:");
5937
      sb.append(this.success);
5938
      first = false;
5939
      if (!first) sb.append(", ");
5940
      sb.append("cex:");
5941
      if (this.cex == null) {
5942
        sb.append("null");
5943
      } else {
5944
        sb.append(this.cex);
5945
      }
5946
      first = false;
5947
      sb.append(")");
5948
      return sb.toString();
5949
    }
5950
 
5951
    public void validate() throws org.apache.thrift.TException {
5952
      // check for required fields
5953
    }
5954
 
5955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5956
      try {
5957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5958
      } catch (org.apache.thrift.TException te) {
5959
        throw new java.io.IOException(te);
5960
      }
5961
    }
5962
 
5963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5964
      try {
7322 vikram.rag 5965
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5966
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 5967
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5968
      } catch (org.apache.thrift.TException te) {
5969
        throw new java.io.IOException(te);
5970
      }
5971
    }
5972
 
5973
  }
5974
 
5975
  public static class updateInventoryHistory_args implements org.apache.thrift.TBase<updateInventoryHistory_args, updateInventoryHistory_args._Fields>, java.io.Serializable, Cloneable   {
5976
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_args");
5977
 
5978
    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);
5979
    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);
5980
    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);
5981
 
5982
    private long warehouse_id; // required
5983
    private String timestamp; // required
5984
    private Map<String,Long> availability; // required
5985
 
5986
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5987
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5988
      WAREHOUSE_ID((short)1, "warehouse_id"),
5989
      TIMESTAMP((short)2, "timestamp"),
5990
      AVAILABILITY((short)3, "availability");
5991
 
5992
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5993
 
5994
      static {
5995
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5996
          byName.put(field.getFieldName(), field);
5997
        }
5998
      }
5999
 
6000
      /**
6001
       * Find the _Fields constant that matches fieldId, or null if its not found.
6002
       */
6003
      public static _Fields findByThriftId(int fieldId) {
6004
        switch(fieldId) {
6005
          case 1: // WAREHOUSE_ID
6006
            return WAREHOUSE_ID;
6007
          case 2: // TIMESTAMP
6008
            return TIMESTAMP;
6009
          case 3: // AVAILABILITY
6010
            return AVAILABILITY;
6011
          default:
6012
            return null;
6013
        }
6014
      }
6015
 
6016
      /**
6017
       * Find the _Fields constant that matches fieldId, throwing an exception
6018
       * if it is not found.
6019
       */
6020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6021
        _Fields fields = findByThriftId(fieldId);
6022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6023
        return fields;
6024
      }
6025
 
6026
      /**
6027
       * Find the _Fields constant that matches name, or null if its not found.
6028
       */
6029
      public static _Fields findByName(String name) {
6030
        return byName.get(name);
6031
      }
6032
 
6033
      private final short _thriftId;
6034
      private final String _fieldName;
6035
 
6036
      _Fields(short thriftId, String fieldName) {
6037
        _thriftId = thriftId;
6038
        _fieldName = fieldName;
6039
      }
6040
 
6041
      public short getThriftFieldId() {
6042
        return _thriftId;
6043
      }
6044
 
6045
      public String getFieldName() {
6046
        return _fieldName;
6047
      }
6048
    }
6049
 
6050
    // isset id assignments
6051
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
6052
    private BitSet __isset_bit_vector = new BitSet(1);
6053
 
6054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6055
    static {
6056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6057
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6059
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6060
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6061
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6062
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
6063
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
6064
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
6065
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6066
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_args.class, metaDataMap);
6067
    }
6068
 
6069
    public updateInventoryHistory_args() {
6070
    }
6071
 
6072
    public updateInventoryHistory_args(
6073
      long warehouse_id,
6074
      String timestamp,
6075
      Map<String,Long> availability)
6076
    {
6077
      this();
6078
      this.warehouse_id = warehouse_id;
6079
      setWarehouse_idIsSet(true);
6080
      this.timestamp = timestamp;
6081
      this.availability = availability;
6082
    }
6083
 
6084
    /**
6085
     * Performs a deep copy on <i>other</i>.
6086
     */
6087
    public updateInventoryHistory_args(updateInventoryHistory_args other) {
6088
      __isset_bit_vector.clear();
6089
      __isset_bit_vector.or(other.__isset_bit_vector);
6090
      this.warehouse_id = other.warehouse_id;
6091
      if (other.isSetTimestamp()) {
6092
        this.timestamp = other.timestamp;
6093
      }
6094
      if (other.isSetAvailability()) {
6095
        Map<String,Long> __this__availability = new HashMap<String,Long>();
6096
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
6097
 
6098
          String other_element_key = other_element.getKey();
6099
          Long other_element_value = other_element.getValue();
6100
 
6101
          String __this__availability_copy_key = other_element_key;
6102
 
6103
          Long __this__availability_copy_value = other_element_value;
6104
 
6105
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
6106
        }
6107
        this.availability = __this__availability;
6108
      }
6109
    }
6110
 
6111
    public updateInventoryHistory_args deepCopy() {
6112
      return new updateInventoryHistory_args(this);
6113
    }
6114
 
6115
    @Override
6116
    public void clear() {
6117
      setWarehouse_idIsSet(false);
6118
      this.warehouse_id = 0;
6119
      this.timestamp = null;
6120
      this.availability = null;
6121
    }
6122
 
6123
    public long getWarehouse_id() {
6124
      return this.warehouse_id;
6125
    }
6126
 
6127
    public void setWarehouse_id(long warehouse_id) {
6128
      this.warehouse_id = warehouse_id;
6129
      setWarehouse_idIsSet(true);
6130
    }
6131
 
6132
    public void unsetWarehouse_id() {
6133
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
6134
    }
6135
 
6136
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
6137
    public boolean isSetWarehouse_id() {
6138
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
6139
    }
6140
 
6141
    public void setWarehouse_idIsSet(boolean value) {
6142
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
6143
    }
6144
 
6145
    public String getTimestamp() {
6146
      return this.timestamp;
6147
    }
6148
 
6149
    public void setTimestamp(String timestamp) {
6150
      this.timestamp = timestamp;
6151
    }
6152
 
6153
    public void unsetTimestamp() {
6154
      this.timestamp = null;
6155
    }
6156
 
6157
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
6158
    public boolean isSetTimestamp() {
6159
      return this.timestamp != null;
6160
    }
6161
 
6162
    public void setTimestampIsSet(boolean value) {
6163
      if (!value) {
6164
        this.timestamp = null;
6165
      }
6166
    }
6167
 
6168
    public int getAvailabilitySize() {
6169
      return (this.availability == null) ? 0 : this.availability.size();
6170
    }
6171
 
6172
    public void putToAvailability(String key, long val) {
6173
      if (this.availability == null) {
6174
        this.availability = new HashMap<String,Long>();
6175
      }
6176
      this.availability.put(key, val);
6177
    }
6178
 
6179
    public Map<String,Long> getAvailability() {
6180
      return this.availability;
6181
    }
6182
 
6183
    public void setAvailability(Map<String,Long> availability) {
6184
      this.availability = availability;
6185
    }
6186
 
6187
    public void unsetAvailability() {
6188
      this.availability = null;
6189
    }
6190
 
6191
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
6192
    public boolean isSetAvailability() {
6193
      return this.availability != null;
6194
    }
6195
 
6196
    public void setAvailabilityIsSet(boolean value) {
6197
      if (!value) {
6198
        this.availability = null;
6199
      }
6200
    }
6201
 
6202
    public void setFieldValue(_Fields field, Object value) {
6203
      switch (field) {
6204
      case WAREHOUSE_ID:
6205
        if (value == null) {
6206
          unsetWarehouse_id();
6207
        } else {
6208
          setWarehouse_id((Long)value);
6209
        }
6210
        break;
6211
 
6212
      case TIMESTAMP:
6213
        if (value == null) {
6214
          unsetTimestamp();
6215
        } else {
6216
          setTimestamp((String)value);
6217
        }
6218
        break;
6219
 
6220
      case AVAILABILITY:
6221
        if (value == null) {
6222
          unsetAvailability();
6223
        } else {
6224
          setAvailability((Map<String,Long>)value);
6225
        }
6226
        break;
6227
 
6228
      }
6229
    }
6230
 
6231
    public Object getFieldValue(_Fields field) {
6232
      switch (field) {
6233
      case WAREHOUSE_ID:
6234
        return Long.valueOf(getWarehouse_id());
6235
 
6236
      case TIMESTAMP:
6237
        return getTimestamp();
6238
 
6239
      case AVAILABILITY:
6240
        return getAvailability();
6241
 
6242
      }
6243
      throw new IllegalStateException();
6244
    }
6245
 
6246
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6247
    public boolean isSet(_Fields field) {
6248
      if (field == null) {
6249
        throw new IllegalArgumentException();
6250
      }
6251
 
6252
      switch (field) {
6253
      case WAREHOUSE_ID:
6254
        return isSetWarehouse_id();
6255
      case TIMESTAMP:
6256
        return isSetTimestamp();
6257
      case AVAILABILITY:
6258
        return isSetAvailability();
6259
      }
6260
      throw new IllegalStateException();
6261
    }
6262
 
6263
    @Override
6264
    public boolean equals(Object that) {
6265
      if (that == null)
6266
        return false;
6267
      if (that instanceof updateInventoryHistory_args)
6268
        return this.equals((updateInventoryHistory_args)that);
6269
      return false;
6270
    }
6271
 
6272
    public boolean equals(updateInventoryHistory_args that) {
6273
      if (that == null)
6274
        return false;
6275
 
6276
      boolean this_present_warehouse_id = true;
6277
      boolean that_present_warehouse_id = true;
6278
      if (this_present_warehouse_id || that_present_warehouse_id) {
6279
        if (!(this_present_warehouse_id && that_present_warehouse_id))
6280
          return false;
6281
        if (this.warehouse_id != that.warehouse_id)
6282
          return false;
6283
      }
6284
 
6285
      boolean this_present_timestamp = true && this.isSetTimestamp();
6286
      boolean that_present_timestamp = true && that.isSetTimestamp();
6287
      if (this_present_timestamp || that_present_timestamp) {
6288
        if (!(this_present_timestamp && that_present_timestamp))
6289
          return false;
6290
        if (!this.timestamp.equals(that.timestamp))
6291
          return false;
6292
      }
6293
 
6294
      boolean this_present_availability = true && this.isSetAvailability();
6295
      boolean that_present_availability = true && that.isSetAvailability();
6296
      if (this_present_availability || that_present_availability) {
6297
        if (!(this_present_availability && that_present_availability))
6298
          return false;
6299
        if (!this.availability.equals(that.availability))
6300
          return false;
6301
      }
6302
 
6303
      return true;
6304
    }
6305
 
6306
    @Override
6307
    public int hashCode() {
6308
      return 0;
6309
    }
6310
 
6311
    public int compareTo(updateInventoryHistory_args other) {
6312
      if (!getClass().equals(other.getClass())) {
6313
        return getClass().getName().compareTo(other.getClass().getName());
6314
      }
6315
 
6316
      int lastComparison = 0;
6317
      updateInventoryHistory_args typedOther = (updateInventoryHistory_args)other;
6318
 
6319
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
6320
      if (lastComparison != 0) {
6321
        return lastComparison;
6322
      }
6323
      if (isSetWarehouse_id()) {
6324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
6325
        if (lastComparison != 0) {
6326
          return lastComparison;
6327
        }
6328
      }
6329
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
6330
      if (lastComparison != 0) {
6331
        return lastComparison;
6332
      }
6333
      if (isSetTimestamp()) {
6334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
6335
        if (lastComparison != 0) {
6336
          return lastComparison;
6337
        }
6338
      }
6339
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
6340
      if (lastComparison != 0) {
6341
        return lastComparison;
6342
      }
6343
      if (isSetAvailability()) {
6344
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
6345
        if (lastComparison != 0) {
6346
          return lastComparison;
6347
        }
6348
      }
6349
      return 0;
6350
    }
6351
 
6352
    public _Fields fieldForId(int fieldId) {
6353
      return _Fields.findByThriftId(fieldId);
6354
    }
6355
 
6356
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6357
      org.apache.thrift.protocol.TField field;
6358
      iprot.readStructBegin();
6359
      while (true)
6360
      {
6361
        field = iprot.readFieldBegin();
6362
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6363
          break;
6364
        }
6365
        switch (field.id) {
6366
          case 1: // WAREHOUSE_ID
6367
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6368
              this.warehouse_id = iprot.readI64();
6369
              setWarehouse_idIsSet(true);
6370
            } else { 
6371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6372
            }
6373
            break;
6374
          case 2: // TIMESTAMP
6375
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6376
              this.timestamp = iprot.readString();
6377
            } else { 
6378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6379
            }
6380
            break;
6381
          case 3: // AVAILABILITY
6382
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
6383
              {
6384
                org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin();
6385
                this.availability = new HashMap<String,Long>(2*_map10.size);
6386
                for (int _i11 = 0; _i11 < _map10.size; ++_i11)
6387
                {
6388
                  String _key12; // required
6389
                  long _val13; // required
6390
                  _key12 = iprot.readString();
6391
                  _val13 = iprot.readI64();
6392
                  this.availability.put(_key12, _val13);
6393
                }
6394
                iprot.readMapEnd();
6395
              }
6396
            } else { 
6397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6398
            }
6399
            break;
6400
          default:
6401
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6402
        }
6403
        iprot.readFieldEnd();
6404
      }
6405
      iprot.readStructEnd();
6406
      validate();
6407
    }
6408
 
6409
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6410
      validate();
6411
 
6412
      oprot.writeStructBegin(STRUCT_DESC);
6413
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
6414
      oprot.writeI64(this.warehouse_id);
6415
      oprot.writeFieldEnd();
6416
      if (this.timestamp != null) {
6417
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
6418
        oprot.writeString(this.timestamp);
6419
        oprot.writeFieldEnd();
6420
      }
6421
      if (this.availability != null) {
6422
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
6423
        {
6424
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
6425
          for (Map.Entry<String, Long> _iter14 : this.availability.entrySet())
6426
          {
6427
            oprot.writeString(_iter14.getKey());
6428
            oprot.writeI64(_iter14.getValue());
6429
          }
6430
          oprot.writeMapEnd();
6431
        }
6432
        oprot.writeFieldEnd();
6433
      }
6434
      oprot.writeFieldStop();
6435
      oprot.writeStructEnd();
6436
    }
6437
 
6438
    @Override
6439
    public String toString() {
6440
      StringBuilder sb = new StringBuilder("updateInventoryHistory_args(");
6441
      boolean first = true;
6442
 
6443
      sb.append("warehouse_id:");
6444
      sb.append(this.warehouse_id);
6445
      first = false;
6446
      if (!first) sb.append(", ");
6447
      sb.append("timestamp:");
6448
      if (this.timestamp == null) {
6449
        sb.append("null");
6450
      } else {
6451
        sb.append(this.timestamp);
6452
      }
6453
      first = false;
6454
      if (!first) sb.append(", ");
6455
      sb.append("availability:");
6456
      if (this.availability == null) {
6457
        sb.append("null");
6458
      } else {
6459
        sb.append(this.availability);
6460
      }
6461
      first = false;
6462
      sb.append(")");
6463
      return sb.toString();
6464
    }
6465
 
6466
    public void validate() throws org.apache.thrift.TException {
6467
      // check for required fields
6468
    }
6469
 
6470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6471
      try {
6472
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6473
      } catch (org.apache.thrift.TException te) {
6474
        throw new java.io.IOException(te);
6475
      }
6476
    }
6477
 
6478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6479
      try {
7322 vikram.rag 6480
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6481
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 6482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6483
      } catch (org.apache.thrift.TException te) {
6484
        throw new java.io.IOException(te);
6485
      }
6486
    }
6487
 
6488
  }
6489
 
6490
  public static class updateInventoryHistory_result implements org.apache.thrift.TBase<updateInventoryHistory_result, updateInventoryHistory_result._Fields>, java.io.Serializable, Cloneable   {
6491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventoryHistory_result");
6492
 
6493
    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);
6494
 
6495
    private InventoryServiceException cex; // required
6496
 
6497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6499
      CEX((short)1, "cex");
6500
 
6501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6502
 
6503
      static {
6504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6505
          byName.put(field.getFieldName(), field);
6506
        }
6507
      }
6508
 
6509
      /**
6510
       * Find the _Fields constant that matches fieldId, or null if its not found.
6511
       */
6512
      public static _Fields findByThriftId(int fieldId) {
6513
        switch(fieldId) {
6514
          case 1: // CEX
6515
            return CEX;
6516
          default:
6517
            return null;
6518
        }
6519
      }
6520
 
6521
      /**
6522
       * Find the _Fields constant that matches fieldId, throwing an exception
6523
       * if it is not found.
6524
       */
6525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6526
        _Fields fields = findByThriftId(fieldId);
6527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6528
        return fields;
6529
      }
6530
 
6531
      /**
6532
       * Find the _Fields constant that matches name, or null if its not found.
6533
       */
6534
      public static _Fields findByName(String name) {
6535
        return byName.get(name);
6536
      }
6537
 
6538
      private final short _thriftId;
6539
      private final String _fieldName;
6540
 
6541
      _Fields(short thriftId, String fieldName) {
6542
        _thriftId = thriftId;
6543
        _fieldName = fieldName;
6544
      }
6545
 
6546
      public short getThriftFieldId() {
6547
        return _thriftId;
6548
      }
6549
 
6550
      public String getFieldName() {
6551
        return _fieldName;
6552
      }
6553
    }
6554
 
6555
    // isset id assignments
6556
 
6557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6558
    static {
6559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6560
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventoryHistory_result.class, metaDataMap);
6564
    }
6565
 
6566
    public updateInventoryHistory_result() {
6567
    }
6568
 
6569
    public updateInventoryHistory_result(
6570
      InventoryServiceException cex)
6571
    {
6572
      this();
6573
      this.cex = cex;
6574
    }
6575
 
6576
    /**
6577
     * Performs a deep copy on <i>other</i>.
6578
     */
6579
    public updateInventoryHistory_result(updateInventoryHistory_result other) {
6580
      if (other.isSetCex()) {
6581
        this.cex = new InventoryServiceException(other.cex);
6582
      }
6583
    }
6584
 
6585
    public updateInventoryHistory_result deepCopy() {
6586
      return new updateInventoryHistory_result(this);
6587
    }
6588
 
6589
    @Override
6590
    public void clear() {
6591
      this.cex = null;
6592
    }
6593
 
6594
    public InventoryServiceException getCex() {
6595
      return this.cex;
6596
    }
6597
 
6598
    public void setCex(InventoryServiceException cex) {
6599
      this.cex = cex;
6600
    }
6601
 
6602
    public void unsetCex() {
6603
      this.cex = null;
6604
    }
6605
 
6606
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
6607
    public boolean isSetCex() {
6608
      return this.cex != null;
6609
    }
6610
 
6611
    public void setCexIsSet(boolean value) {
6612
      if (!value) {
6613
        this.cex = null;
6614
      }
6615
    }
6616
 
6617
    public void setFieldValue(_Fields field, Object value) {
6618
      switch (field) {
6619
      case CEX:
6620
        if (value == null) {
6621
          unsetCex();
6622
        } else {
6623
          setCex((InventoryServiceException)value);
6624
        }
6625
        break;
6626
 
6627
      }
6628
    }
6629
 
6630
    public Object getFieldValue(_Fields field) {
6631
      switch (field) {
6632
      case CEX:
6633
        return getCex();
6634
 
6635
      }
6636
      throw new IllegalStateException();
6637
    }
6638
 
6639
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6640
    public boolean isSet(_Fields field) {
6641
      if (field == null) {
6642
        throw new IllegalArgumentException();
6643
      }
6644
 
6645
      switch (field) {
6646
      case CEX:
6647
        return isSetCex();
6648
      }
6649
      throw new IllegalStateException();
6650
    }
6651
 
6652
    @Override
6653
    public boolean equals(Object that) {
6654
      if (that == null)
6655
        return false;
6656
      if (that instanceof updateInventoryHistory_result)
6657
        return this.equals((updateInventoryHistory_result)that);
6658
      return false;
6659
    }
6660
 
6661
    public boolean equals(updateInventoryHistory_result that) {
6662
      if (that == null)
6663
        return false;
6664
 
6665
      boolean this_present_cex = true && this.isSetCex();
6666
      boolean that_present_cex = true && that.isSetCex();
6667
      if (this_present_cex || that_present_cex) {
6668
        if (!(this_present_cex && that_present_cex))
6669
          return false;
6670
        if (!this.cex.equals(that.cex))
6671
          return false;
6672
      }
6673
 
6674
      return true;
6675
    }
6676
 
6677
    @Override
6678
    public int hashCode() {
6679
      return 0;
6680
    }
6681
 
6682
    public int compareTo(updateInventoryHistory_result other) {
6683
      if (!getClass().equals(other.getClass())) {
6684
        return getClass().getName().compareTo(other.getClass().getName());
6685
      }
6686
 
6687
      int lastComparison = 0;
6688
      updateInventoryHistory_result typedOther = (updateInventoryHistory_result)other;
6689
 
6690
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
6691
      if (lastComparison != 0) {
6692
        return lastComparison;
6693
      }
6694
      if (isSetCex()) {
6695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
6696
        if (lastComparison != 0) {
6697
          return lastComparison;
6698
        }
6699
      }
6700
      return 0;
6701
    }
6702
 
6703
    public _Fields fieldForId(int fieldId) {
6704
      return _Fields.findByThriftId(fieldId);
6705
    }
6706
 
6707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6708
      org.apache.thrift.protocol.TField field;
6709
      iprot.readStructBegin();
6710
      while (true)
6711
      {
6712
        field = iprot.readFieldBegin();
6713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6714
          break;
6715
        }
6716
        switch (field.id) {
6717
          case 1: // CEX
6718
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6719
              this.cex = new InventoryServiceException();
6720
              this.cex.read(iprot);
6721
            } else { 
6722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6723
            }
6724
            break;
6725
          default:
6726
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6727
        }
6728
        iprot.readFieldEnd();
6729
      }
6730
      iprot.readStructEnd();
6731
      validate();
6732
    }
6733
 
6734
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6735
      oprot.writeStructBegin(STRUCT_DESC);
6736
 
6737
      if (this.isSetCex()) {
6738
        oprot.writeFieldBegin(CEX_FIELD_DESC);
6739
        this.cex.write(oprot);
6740
        oprot.writeFieldEnd();
6741
      }
6742
      oprot.writeFieldStop();
6743
      oprot.writeStructEnd();
6744
    }
6745
 
6746
    @Override
6747
    public String toString() {
6748
      StringBuilder sb = new StringBuilder("updateInventoryHistory_result(");
6749
      boolean first = true;
6750
 
6751
      sb.append("cex:");
6752
      if (this.cex == null) {
6753
        sb.append("null");
6754
      } else {
6755
        sb.append(this.cex);
6756
      }
6757
      first = false;
6758
      sb.append(")");
6759
      return sb.toString();
6760
    }
6761
 
6762
    public void validate() throws org.apache.thrift.TException {
6763
      // check for required fields
6764
    }
6765
 
6766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6767
      try {
6768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6769
      } catch (org.apache.thrift.TException te) {
6770
        throw new java.io.IOException(te);
6771
      }
6772
    }
6773
 
6774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6775
      try {
6776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6777
      } catch (org.apache.thrift.TException te) {
6778
        throw new java.io.IOException(te);
6779
      }
6780
    }
6781
 
6782
  }
6783
 
6784
  public static class updateInventory_args implements org.apache.thrift.TBase<updateInventory_args, updateInventory_args._Fields>, java.io.Serializable, Cloneable   {
6785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_args");
6786
 
6787
    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);
6788
    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);
6789
    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);
6790
 
6791
    private long warehouse_id; // required
6792
    private String timestamp; // required
6793
    private Map<String,Long> availability; // required
6794
 
6795
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6796
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6797
      WAREHOUSE_ID((short)1, "warehouse_id"),
6798
      TIMESTAMP((short)2, "timestamp"),
6799
      AVAILABILITY((short)3, "availability");
6800
 
6801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6802
 
6803
      static {
6804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6805
          byName.put(field.getFieldName(), field);
6806
        }
6807
      }
6808
 
6809
      /**
6810
       * Find the _Fields constant that matches fieldId, or null if its not found.
6811
       */
6812
      public static _Fields findByThriftId(int fieldId) {
6813
        switch(fieldId) {
6814
          case 1: // WAREHOUSE_ID
6815
            return WAREHOUSE_ID;
6816
          case 2: // TIMESTAMP
6817
            return TIMESTAMP;
6818
          case 3: // AVAILABILITY
6819
            return AVAILABILITY;
6820
          default:
6821
            return null;
6822
        }
6823
      }
6824
 
6825
      /**
6826
       * Find the _Fields constant that matches fieldId, throwing an exception
6827
       * if it is not found.
6828
       */
6829
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6830
        _Fields fields = findByThriftId(fieldId);
6831
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6832
        return fields;
6833
      }
6834
 
6835
      /**
6836
       * Find the _Fields constant that matches name, or null if its not found.
6837
       */
6838
      public static _Fields findByName(String name) {
6839
        return byName.get(name);
6840
      }
6841
 
6842
      private final short _thriftId;
6843
      private final String _fieldName;
6844
 
6845
      _Fields(short thriftId, String fieldName) {
6846
        _thriftId = thriftId;
6847
        _fieldName = fieldName;
6848
      }
6849
 
6850
      public short getThriftFieldId() {
6851
        return _thriftId;
6852
      }
6853
 
6854
      public String getFieldName() {
6855
        return _fieldName;
6856
      }
6857
    }
6858
 
6859
    // isset id assignments
6860
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
6861
    private BitSet __isset_bit_vector = new BitSet(1);
6862
 
6863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6864
    static {
6865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6866
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6868
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6869
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6870
      tmpMap.put(_Fields.AVAILABILITY, new org.apache.thrift.meta_data.FieldMetaData("availability", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6871
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
6872
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
6873
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
6874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_args.class, metaDataMap);
6876
    }
6877
 
6878
    public updateInventory_args() {
6879
    }
6880
 
6881
    public updateInventory_args(
6882
      long warehouse_id,
6883
      String timestamp,
6884
      Map<String,Long> availability)
6885
    {
6886
      this();
6887
      this.warehouse_id = warehouse_id;
6888
      setWarehouse_idIsSet(true);
6889
      this.timestamp = timestamp;
6890
      this.availability = availability;
6891
    }
6892
 
6893
    /**
6894
     * Performs a deep copy on <i>other</i>.
6895
     */
6896
    public updateInventory_args(updateInventory_args other) {
6897
      __isset_bit_vector.clear();
6898
      __isset_bit_vector.or(other.__isset_bit_vector);
6899
      this.warehouse_id = other.warehouse_id;
6900
      if (other.isSetTimestamp()) {
6901
        this.timestamp = other.timestamp;
6902
      }
6903
      if (other.isSetAvailability()) {
6904
        Map<String,Long> __this__availability = new HashMap<String,Long>();
6905
        for (Map.Entry<String, Long> other_element : other.availability.entrySet()) {
6906
 
6907
          String other_element_key = other_element.getKey();
6908
          Long other_element_value = other_element.getValue();
6909
 
6910
          String __this__availability_copy_key = other_element_key;
6911
 
6912
          Long __this__availability_copy_value = other_element_value;
6913
 
6914
          __this__availability.put(__this__availability_copy_key, __this__availability_copy_value);
6915
        }
6916
        this.availability = __this__availability;
6917
      }
6918
    }
6919
 
6920
    public updateInventory_args deepCopy() {
6921
      return new updateInventory_args(this);
6922
    }
6923
 
6924
    @Override
6925
    public void clear() {
6926
      setWarehouse_idIsSet(false);
6927
      this.warehouse_id = 0;
6928
      this.timestamp = null;
6929
      this.availability = null;
6930
    }
6931
 
6932
    public long getWarehouse_id() {
6933
      return this.warehouse_id;
6934
    }
6935
 
6936
    public void setWarehouse_id(long warehouse_id) {
6937
      this.warehouse_id = warehouse_id;
6938
      setWarehouse_idIsSet(true);
6939
    }
6940
 
6941
    public void unsetWarehouse_id() {
6942
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
6943
    }
6944
 
6945
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
6946
    public boolean isSetWarehouse_id() {
6947
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
6948
    }
6949
 
6950
    public void setWarehouse_idIsSet(boolean value) {
6951
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
6952
    }
6953
 
6954
    public String getTimestamp() {
6955
      return this.timestamp;
6956
    }
6957
 
6958
    public void setTimestamp(String timestamp) {
6959
      this.timestamp = timestamp;
6960
    }
6961
 
6962
    public void unsetTimestamp() {
6963
      this.timestamp = null;
6964
    }
6965
 
6966
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
6967
    public boolean isSetTimestamp() {
6968
      return this.timestamp != null;
6969
    }
6970
 
6971
    public void setTimestampIsSet(boolean value) {
6972
      if (!value) {
6973
        this.timestamp = null;
6974
      }
6975
    }
6976
 
6977
    public int getAvailabilitySize() {
6978
      return (this.availability == null) ? 0 : this.availability.size();
6979
    }
6980
 
6981
    public void putToAvailability(String key, long val) {
6982
      if (this.availability == null) {
6983
        this.availability = new HashMap<String,Long>();
6984
      }
6985
      this.availability.put(key, val);
6986
    }
6987
 
6988
    public Map<String,Long> getAvailability() {
6989
      return this.availability;
6990
    }
6991
 
6992
    public void setAvailability(Map<String,Long> availability) {
6993
      this.availability = availability;
6994
    }
6995
 
6996
    public void unsetAvailability() {
6997
      this.availability = null;
6998
    }
6999
 
7000
    /** Returns true if field availability is set (has been assigned a value) and false otherwise */
7001
    public boolean isSetAvailability() {
7002
      return this.availability != null;
7003
    }
7004
 
7005
    public void setAvailabilityIsSet(boolean value) {
7006
      if (!value) {
7007
        this.availability = null;
7008
      }
7009
    }
7010
 
7011
    public void setFieldValue(_Fields field, Object value) {
7012
      switch (field) {
7013
      case WAREHOUSE_ID:
7014
        if (value == null) {
7015
          unsetWarehouse_id();
7016
        } else {
7017
          setWarehouse_id((Long)value);
7018
        }
7019
        break;
7020
 
7021
      case TIMESTAMP:
7022
        if (value == null) {
7023
          unsetTimestamp();
7024
        } else {
7025
          setTimestamp((String)value);
7026
        }
7027
        break;
7028
 
7029
      case AVAILABILITY:
7030
        if (value == null) {
7031
          unsetAvailability();
7032
        } else {
7033
          setAvailability((Map<String,Long>)value);
7034
        }
7035
        break;
7036
 
7037
      }
7038
    }
7039
 
7040
    public Object getFieldValue(_Fields field) {
7041
      switch (field) {
7042
      case WAREHOUSE_ID:
7043
        return Long.valueOf(getWarehouse_id());
7044
 
7045
      case TIMESTAMP:
7046
        return getTimestamp();
7047
 
7048
      case AVAILABILITY:
7049
        return getAvailability();
7050
 
7051
      }
7052
      throw new IllegalStateException();
7053
    }
7054
 
7055
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7056
    public boolean isSet(_Fields field) {
7057
      if (field == null) {
7058
        throw new IllegalArgumentException();
7059
      }
7060
 
7061
      switch (field) {
7062
      case WAREHOUSE_ID:
7063
        return isSetWarehouse_id();
7064
      case TIMESTAMP:
7065
        return isSetTimestamp();
7066
      case AVAILABILITY:
7067
        return isSetAvailability();
7068
      }
7069
      throw new IllegalStateException();
7070
    }
7071
 
7072
    @Override
7073
    public boolean equals(Object that) {
7074
      if (that == null)
7075
        return false;
7076
      if (that instanceof updateInventory_args)
7077
        return this.equals((updateInventory_args)that);
7078
      return false;
7079
    }
7080
 
7081
    public boolean equals(updateInventory_args that) {
7082
      if (that == null)
7083
        return false;
7084
 
7085
      boolean this_present_warehouse_id = true;
7086
      boolean that_present_warehouse_id = true;
7087
      if (this_present_warehouse_id || that_present_warehouse_id) {
7088
        if (!(this_present_warehouse_id && that_present_warehouse_id))
7089
          return false;
7090
        if (this.warehouse_id != that.warehouse_id)
7091
          return false;
7092
      }
7093
 
7094
      boolean this_present_timestamp = true && this.isSetTimestamp();
7095
      boolean that_present_timestamp = true && that.isSetTimestamp();
7096
      if (this_present_timestamp || that_present_timestamp) {
7097
        if (!(this_present_timestamp && that_present_timestamp))
7098
          return false;
7099
        if (!this.timestamp.equals(that.timestamp))
7100
          return false;
7101
      }
7102
 
7103
      boolean this_present_availability = true && this.isSetAvailability();
7104
      boolean that_present_availability = true && that.isSetAvailability();
7105
      if (this_present_availability || that_present_availability) {
7106
        if (!(this_present_availability && that_present_availability))
7107
          return false;
7108
        if (!this.availability.equals(that.availability))
7109
          return false;
7110
      }
7111
 
7112
      return true;
7113
    }
7114
 
7115
    @Override
7116
    public int hashCode() {
7117
      return 0;
7118
    }
7119
 
7120
    public int compareTo(updateInventory_args other) {
7121
      if (!getClass().equals(other.getClass())) {
7122
        return getClass().getName().compareTo(other.getClass().getName());
7123
      }
7124
 
7125
      int lastComparison = 0;
7126
      updateInventory_args typedOther = (updateInventory_args)other;
7127
 
7128
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
7129
      if (lastComparison != 0) {
7130
        return lastComparison;
7131
      }
7132
      if (isSetWarehouse_id()) {
7133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
7134
        if (lastComparison != 0) {
7135
          return lastComparison;
7136
        }
7137
      }
7138
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
7139
      if (lastComparison != 0) {
7140
        return lastComparison;
7141
      }
7142
      if (isSetTimestamp()) {
7143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
7144
        if (lastComparison != 0) {
7145
          return lastComparison;
7146
        }
7147
      }
7148
      lastComparison = Boolean.valueOf(isSetAvailability()).compareTo(typedOther.isSetAvailability());
7149
      if (lastComparison != 0) {
7150
        return lastComparison;
7151
      }
7152
      if (isSetAvailability()) {
7153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availability, typedOther.availability);
7154
        if (lastComparison != 0) {
7155
          return lastComparison;
7156
        }
7157
      }
7158
      return 0;
7159
    }
7160
 
7161
    public _Fields fieldForId(int fieldId) {
7162
      return _Fields.findByThriftId(fieldId);
7163
    }
7164
 
7165
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7166
      org.apache.thrift.protocol.TField field;
7167
      iprot.readStructBegin();
7168
      while (true)
7169
      {
7170
        field = iprot.readFieldBegin();
7171
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7172
          break;
7173
        }
7174
        switch (field.id) {
7175
          case 1: // WAREHOUSE_ID
7176
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7177
              this.warehouse_id = iprot.readI64();
7178
              setWarehouse_idIsSet(true);
7179
            } else { 
7180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7181
            }
7182
            break;
7183
          case 2: // TIMESTAMP
7184
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7185
              this.timestamp = iprot.readString();
7186
            } else { 
7187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7188
            }
7189
            break;
7190
          case 3: // AVAILABILITY
7191
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
7192
              {
7193
                org.apache.thrift.protocol.TMap _map15 = iprot.readMapBegin();
7194
                this.availability = new HashMap<String,Long>(2*_map15.size);
7195
                for (int _i16 = 0; _i16 < _map15.size; ++_i16)
7196
                {
7197
                  String _key17; // required
7198
                  long _val18; // required
7199
                  _key17 = iprot.readString();
7200
                  _val18 = iprot.readI64();
7201
                  this.availability.put(_key17, _val18);
7202
                }
7203
                iprot.readMapEnd();
7204
              }
7205
            } else { 
7206
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7207
            }
7208
            break;
7209
          default:
7210
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7211
        }
7212
        iprot.readFieldEnd();
7213
      }
7214
      iprot.readStructEnd();
7215
      validate();
7216
    }
7217
 
7218
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7219
      validate();
7220
 
7221
      oprot.writeStructBegin(STRUCT_DESC);
7222
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
7223
      oprot.writeI64(this.warehouse_id);
7224
      oprot.writeFieldEnd();
7225
      if (this.timestamp != null) {
7226
        oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
7227
        oprot.writeString(this.timestamp);
7228
        oprot.writeFieldEnd();
7229
      }
7230
      if (this.availability != null) {
7231
        oprot.writeFieldBegin(AVAILABILITY_FIELD_DESC);
7232
        {
7233
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.availability.size()));
7234
          for (Map.Entry<String, Long> _iter19 : this.availability.entrySet())
7235
          {
7236
            oprot.writeString(_iter19.getKey());
7237
            oprot.writeI64(_iter19.getValue());
7238
          }
7239
          oprot.writeMapEnd();
7240
        }
7241
        oprot.writeFieldEnd();
7242
      }
7243
      oprot.writeFieldStop();
7244
      oprot.writeStructEnd();
7245
    }
7246
 
7247
    @Override
7248
    public String toString() {
7249
      StringBuilder sb = new StringBuilder("updateInventory_args(");
7250
      boolean first = true;
7251
 
7252
      sb.append("warehouse_id:");
7253
      sb.append(this.warehouse_id);
7254
      first = false;
7255
      if (!first) sb.append(", ");
7256
      sb.append("timestamp:");
7257
      if (this.timestamp == null) {
7258
        sb.append("null");
7259
      } else {
7260
        sb.append(this.timestamp);
7261
      }
7262
      first = false;
7263
      if (!first) sb.append(", ");
7264
      sb.append("availability:");
7265
      if (this.availability == null) {
7266
        sb.append("null");
7267
      } else {
7268
        sb.append(this.availability);
7269
      }
7270
      first = false;
7271
      sb.append(")");
7272
      return sb.toString();
7273
    }
7274
 
7275
    public void validate() throws org.apache.thrift.TException {
7276
      // check for required fields
7277
    }
7278
 
7279
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7280
      try {
7281
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7282
      } catch (org.apache.thrift.TException te) {
7283
        throw new java.io.IOException(te);
7284
      }
7285
    }
7286
 
7287
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7288
      try {
7289
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7290
        __isset_bit_vector = new BitSet(1);
7291
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7292
      } catch (org.apache.thrift.TException te) {
7293
        throw new java.io.IOException(te);
7294
      }
7295
    }
7296
 
7297
  }
7298
 
7299
  public static class updateInventory_result implements org.apache.thrift.TBase<updateInventory_result, updateInventory_result._Fields>, java.io.Serializable, Cloneable   {
7300
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateInventory_result");
7301
 
7302
    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);
7303
 
7304
    private InventoryServiceException cex; // required
7305
 
7306
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7307
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7308
      CEX((short)1, "cex");
7309
 
7310
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7311
 
7312
      static {
7313
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7314
          byName.put(field.getFieldName(), field);
7315
        }
7316
      }
7317
 
7318
      /**
7319
       * Find the _Fields constant that matches fieldId, or null if its not found.
7320
       */
7321
      public static _Fields findByThriftId(int fieldId) {
7322
        switch(fieldId) {
7323
          case 1: // CEX
7324
            return CEX;
7325
          default:
7326
            return null;
7327
        }
7328
      }
7329
 
7330
      /**
7331
       * Find the _Fields constant that matches fieldId, throwing an exception
7332
       * if it is not found.
7333
       */
7334
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7335
        _Fields fields = findByThriftId(fieldId);
7336
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7337
        return fields;
7338
      }
7339
 
7340
      /**
7341
       * Find the _Fields constant that matches name, or null if its not found.
7342
       */
7343
      public static _Fields findByName(String name) {
7344
        return byName.get(name);
7345
      }
7346
 
7347
      private final short _thriftId;
7348
      private final String _fieldName;
7349
 
7350
      _Fields(short thriftId, String fieldName) {
7351
        _thriftId = thriftId;
7352
        _fieldName = fieldName;
7353
      }
7354
 
7355
      public short getThriftFieldId() {
7356
        return _thriftId;
7357
      }
7358
 
7359
      public String getFieldName() {
7360
        return _fieldName;
7361
      }
7362
    }
7363
 
7364
    // isset id assignments
7365
 
7366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7367
    static {
7368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7369
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7370
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7371
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7372
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateInventory_result.class, metaDataMap);
7373
    }
7374
 
7375
    public updateInventory_result() {
7376
    }
7377
 
7378
    public updateInventory_result(
7379
      InventoryServiceException cex)
7380
    {
7381
      this();
7382
      this.cex = cex;
7383
    }
7384
 
7385
    /**
7386
     * Performs a deep copy on <i>other</i>.
7387
     */
7388
    public updateInventory_result(updateInventory_result other) {
7389
      if (other.isSetCex()) {
7390
        this.cex = new InventoryServiceException(other.cex);
7391
      }
7392
    }
7393
 
7394
    public updateInventory_result deepCopy() {
7395
      return new updateInventory_result(this);
7396
    }
7397
 
7398
    @Override
7399
    public void clear() {
7400
      this.cex = null;
7401
    }
7402
 
7403
    public InventoryServiceException getCex() {
7404
      return this.cex;
7405
    }
7406
 
7407
    public void setCex(InventoryServiceException cex) {
7408
      this.cex = cex;
7409
    }
7410
 
7411
    public void unsetCex() {
7412
      this.cex = null;
7413
    }
7414
 
7415
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
7416
    public boolean isSetCex() {
7417
      return this.cex != null;
7418
    }
7419
 
7420
    public void setCexIsSet(boolean value) {
7421
      if (!value) {
7422
        this.cex = null;
7423
      }
7424
    }
7425
 
7426
    public void setFieldValue(_Fields field, Object value) {
7427
      switch (field) {
7428
      case CEX:
7429
        if (value == null) {
7430
          unsetCex();
7431
        } else {
7432
          setCex((InventoryServiceException)value);
7433
        }
7434
        break;
7435
 
7436
      }
7437
    }
7438
 
7439
    public Object getFieldValue(_Fields field) {
7440
      switch (field) {
7441
      case CEX:
7442
        return getCex();
7443
 
7444
      }
7445
      throw new IllegalStateException();
7446
    }
7447
 
7448
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7449
    public boolean isSet(_Fields field) {
7450
      if (field == null) {
7451
        throw new IllegalArgumentException();
7452
      }
7453
 
7454
      switch (field) {
7455
      case CEX:
7456
        return isSetCex();
7457
      }
7458
      throw new IllegalStateException();
7459
    }
7460
 
7461
    @Override
7462
    public boolean equals(Object that) {
7463
      if (that == null)
7464
        return false;
7465
      if (that instanceof updateInventory_result)
7466
        return this.equals((updateInventory_result)that);
7467
      return false;
7468
    }
7469
 
7470
    public boolean equals(updateInventory_result that) {
7471
      if (that == null)
7472
        return false;
7473
 
7474
      boolean this_present_cex = true && this.isSetCex();
7475
      boolean that_present_cex = true && that.isSetCex();
7476
      if (this_present_cex || that_present_cex) {
7477
        if (!(this_present_cex && that_present_cex))
7478
          return false;
7479
        if (!this.cex.equals(that.cex))
7480
          return false;
7481
      }
7482
 
7483
      return true;
7484
    }
7485
 
7486
    @Override
7487
    public int hashCode() {
7488
      return 0;
7489
    }
7490
 
7491
    public int compareTo(updateInventory_result other) {
7492
      if (!getClass().equals(other.getClass())) {
7493
        return getClass().getName().compareTo(other.getClass().getName());
7494
      }
7495
 
7496
      int lastComparison = 0;
7497
      updateInventory_result typedOther = (updateInventory_result)other;
7498
 
7499
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
7500
      if (lastComparison != 0) {
7501
        return lastComparison;
7502
      }
7503
      if (isSetCex()) {
7504
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
7505
        if (lastComparison != 0) {
7506
          return lastComparison;
7507
        }
7508
      }
7509
      return 0;
7510
    }
7511
 
7512
    public _Fields fieldForId(int fieldId) {
7513
      return _Fields.findByThriftId(fieldId);
7514
    }
7515
 
7516
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7517
      org.apache.thrift.protocol.TField field;
7518
      iprot.readStructBegin();
7519
      while (true)
7520
      {
7521
        field = iprot.readFieldBegin();
7522
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7523
          break;
7524
        }
7525
        switch (field.id) {
7526
          case 1: // CEX
7527
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7528
              this.cex = new InventoryServiceException();
7529
              this.cex.read(iprot);
7530
            } else { 
7531
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7532
            }
7533
            break;
7534
          default:
7535
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7536
        }
7537
        iprot.readFieldEnd();
7538
      }
7539
      iprot.readStructEnd();
7540
      validate();
7541
    }
7542
 
7543
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7544
      oprot.writeStructBegin(STRUCT_DESC);
7545
 
7546
      if (this.isSetCex()) {
7547
        oprot.writeFieldBegin(CEX_FIELD_DESC);
7548
        this.cex.write(oprot);
7549
        oprot.writeFieldEnd();
7550
      }
7551
      oprot.writeFieldStop();
7552
      oprot.writeStructEnd();
7553
    }
7554
 
7555
    @Override
7556
    public String toString() {
7557
      StringBuilder sb = new StringBuilder("updateInventory_result(");
7558
      boolean first = true;
7559
 
7560
      sb.append("cex:");
7561
      if (this.cex == null) {
7562
        sb.append("null");
7563
      } else {
7564
        sb.append(this.cex);
7565
      }
7566
      first = false;
7567
      sb.append(")");
7568
      return sb.toString();
7569
    }
7570
 
7571
    public void validate() throws org.apache.thrift.TException {
7572
      // check for required fields
7573
    }
7574
 
7575
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7576
      try {
7577
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7578
      } catch (org.apache.thrift.TException te) {
7579
        throw new java.io.IOException(te);
7580
      }
7581
    }
7582
 
7583
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7584
      try {
7585
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7586
      } catch (org.apache.thrift.TException te) {
7587
        throw new java.io.IOException(te);
7588
      }
7589
    }
7590
 
7591
  }
7592
 
7593
  public static class addInventory_args implements org.apache.thrift.TBase<addInventory_args, addInventory_args._Fields>, java.io.Serializable, Cloneable   {
7594
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_args");
7595
 
7596
    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);
7597
    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);
7598
    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);
7599
 
7600
    private long itemId; // required
7601
    private long warehouseId; // required
7602
    private long quantity; // required
7603
 
7604
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7605
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7606
      ITEM_ID((short)1, "itemId"),
7607
      WAREHOUSE_ID((short)2, "warehouseId"),
7608
      QUANTITY((short)3, "quantity");
7609
 
7610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7611
 
7612
      static {
7613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7614
          byName.put(field.getFieldName(), field);
7615
        }
7616
      }
7617
 
7618
      /**
7619
       * Find the _Fields constant that matches fieldId, or null if its not found.
7620
       */
7621
      public static _Fields findByThriftId(int fieldId) {
7622
        switch(fieldId) {
7623
          case 1: // ITEM_ID
7624
            return ITEM_ID;
7625
          case 2: // WAREHOUSE_ID
7626
            return WAREHOUSE_ID;
7627
          case 3: // QUANTITY
7628
            return QUANTITY;
7629
          default:
7630
            return null;
7631
        }
7632
      }
7633
 
7634
      /**
7635
       * Find the _Fields constant that matches fieldId, throwing an exception
7636
       * if it is not found.
7637
       */
7638
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7639
        _Fields fields = findByThriftId(fieldId);
7640
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7641
        return fields;
7642
      }
7643
 
7644
      /**
7645
       * Find the _Fields constant that matches name, or null if its not found.
7646
       */
7647
      public static _Fields findByName(String name) {
7648
        return byName.get(name);
7649
      }
7650
 
7651
      private final short _thriftId;
7652
      private final String _fieldName;
7653
 
7654
      _Fields(short thriftId, String fieldName) {
7655
        _thriftId = thriftId;
7656
        _fieldName = fieldName;
7657
      }
7658
 
7659
      public short getThriftFieldId() {
7660
        return _thriftId;
7661
      }
7662
 
7663
      public String getFieldName() {
7664
        return _fieldName;
7665
      }
7666
    }
7667
 
7668
    // isset id assignments
7669
    private static final int __ITEMID_ISSET_ID = 0;
7670
    private static final int __WAREHOUSEID_ISSET_ID = 1;
7671
    private static final int __QUANTITY_ISSET_ID = 2;
7672
    private BitSet __isset_bit_vector = new BitSet(3);
7673
 
7674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7675
    static {
7676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7677
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7678
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7679
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7680
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7681
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_args.class, metaDataMap);
7685
    }
7686
 
7687
    public addInventory_args() {
7688
    }
7689
 
7690
    public addInventory_args(
7691
      long itemId,
7692
      long warehouseId,
7693
      long quantity)
7694
    {
7695
      this();
7696
      this.itemId = itemId;
7697
      setItemIdIsSet(true);
7698
      this.warehouseId = warehouseId;
7699
      setWarehouseIdIsSet(true);
7700
      this.quantity = quantity;
7701
      setQuantityIsSet(true);
7702
    }
7703
 
7704
    /**
7705
     * Performs a deep copy on <i>other</i>.
7706
     */
7707
    public addInventory_args(addInventory_args other) {
7708
      __isset_bit_vector.clear();
7709
      __isset_bit_vector.or(other.__isset_bit_vector);
7710
      this.itemId = other.itemId;
7711
      this.warehouseId = other.warehouseId;
7712
      this.quantity = other.quantity;
7713
    }
7714
 
7715
    public addInventory_args deepCopy() {
7716
      return new addInventory_args(this);
7717
    }
7718
 
7719
    @Override
7720
    public void clear() {
7721
      setItemIdIsSet(false);
7722
      this.itemId = 0;
7723
      setWarehouseIdIsSet(false);
7724
      this.warehouseId = 0;
7725
      setQuantityIsSet(false);
7726
      this.quantity = 0;
7727
    }
7728
 
7729
    public long getItemId() {
7730
      return this.itemId;
7731
    }
7732
 
7733
    public void setItemId(long itemId) {
7734
      this.itemId = itemId;
7735
      setItemIdIsSet(true);
7736
    }
7737
 
7738
    public void unsetItemId() {
7739
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
7740
    }
7741
 
7742
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
7743
    public boolean isSetItemId() {
7744
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
7745
    }
7746
 
7747
    public void setItemIdIsSet(boolean value) {
7748
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
7749
    }
7750
 
7751
    public long getWarehouseId() {
7752
      return this.warehouseId;
7753
    }
7754
 
7755
    public void setWarehouseId(long warehouseId) {
7756
      this.warehouseId = warehouseId;
7757
      setWarehouseIdIsSet(true);
7758
    }
7759
 
7760
    public void unsetWarehouseId() {
7761
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
7762
    }
7763
 
7764
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
7765
    public boolean isSetWarehouseId() {
7766
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
7767
    }
7768
 
7769
    public void setWarehouseIdIsSet(boolean value) {
7770
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
7771
    }
7772
 
7773
    public long getQuantity() {
7774
      return this.quantity;
7775
    }
7776
 
7777
    public void setQuantity(long quantity) {
7778
      this.quantity = quantity;
7779
      setQuantityIsSet(true);
7780
    }
7781
 
7782
    public void unsetQuantity() {
7783
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7784
    }
7785
 
7786
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7787
    public boolean isSetQuantity() {
7788
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7789
    }
7790
 
7791
    public void setQuantityIsSet(boolean value) {
7792
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7793
    }
7794
 
7795
    public void setFieldValue(_Fields field, Object value) {
7796
      switch (field) {
7797
      case ITEM_ID:
7798
        if (value == null) {
7799
          unsetItemId();
7800
        } else {
7801
          setItemId((Long)value);
7802
        }
7803
        break;
7804
 
7805
      case WAREHOUSE_ID:
7806
        if (value == null) {
7807
          unsetWarehouseId();
7808
        } else {
7809
          setWarehouseId((Long)value);
7810
        }
7811
        break;
7812
 
7813
      case QUANTITY:
7814
        if (value == null) {
7815
          unsetQuantity();
7816
        } else {
7817
          setQuantity((Long)value);
7818
        }
7819
        break;
7820
 
7821
      }
7822
    }
7823
 
7824
    public Object getFieldValue(_Fields field) {
7825
      switch (field) {
7826
      case ITEM_ID:
7827
        return Long.valueOf(getItemId());
7828
 
7829
      case WAREHOUSE_ID:
7830
        return Long.valueOf(getWarehouseId());
7831
 
7832
      case QUANTITY:
7833
        return Long.valueOf(getQuantity());
7834
 
7835
      }
7836
      throw new IllegalStateException();
7837
    }
7838
 
7839
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7840
    public boolean isSet(_Fields field) {
7841
      if (field == null) {
7842
        throw new IllegalArgumentException();
7843
      }
7844
 
7845
      switch (field) {
7846
      case ITEM_ID:
7847
        return isSetItemId();
7848
      case WAREHOUSE_ID:
7849
        return isSetWarehouseId();
7850
      case QUANTITY:
7851
        return isSetQuantity();
7852
      }
7853
      throw new IllegalStateException();
7854
    }
7855
 
7856
    @Override
7857
    public boolean equals(Object that) {
7858
      if (that == null)
7859
        return false;
7860
      if (that instanceof addInventory_args)
7861
        return this.equals((addInventory_args)that);
7862
      return false;
7863
    }
7864
 
7865
    public boolean equals(addInventory_args that) {
7866
      if (that == null)
7867
        return false;
7868
 
7869
      boolean this_present_itemId = true;
7870
      boolean that_present_itemId = true;
7871
      if (this_present_itemId || that_present_itemId) {
7872
        if (!(this_present_itemId && that_present_itemId))
7873
          return false;
7874
        if (this.itemId != that.itemId)
7875
          return false;
7876
      }
7877
 
7878
      boolean this_present_warehouseId = true;
7879
      boolean that_present_warehouseId = true;
7880
      if (this_present_warehouseId || that_present_warehouseId) {
7881
        if (!(this_present_warehouseId && that_present_warehouseId))
7882
          return false;
7883
        if (this.warehouseId != that.warehouseId)
7884
          return false;
7885
      }
7886
 
7887
      boolean this_present_quantity = true;
7888
      boolean that_present_quantity = true;
7889
      if (this_present_quantity || that_present_quantity) {
7890
        if (!(this_present_quantity && that_present_quantity))
7891
          return false;
7892
        if (this.quantity != that.quantity)
7893
          return false;
7894
      }
7895
 
7896
      return true;
7897
    }
7898
 
7899
    @Override
7900
    public int hashCode() {
7901
      return 0;
7902
    }
7903
 
7904
    public int compareTo(addInventory_args other) {
7905
      if (!getClass().equals(other.getClass())) {
7906
        return getClass().getName().compareTo(other.getClass().getName());
7907
      }
7908
 
7909
      int lastComparison = 0;
7910
      addInventory_args typedOther = (addInventory_args)other;
7911
 
7912
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
7913
      if (lastComparison != 0) {
7914
        return lastComparison;
7915
      }
7916
      if (isSetItemId()) {
7917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
7918
        if (lastComparison != 0) {
7919
          return lastComparison;
7920
        }
7921
      }
7922
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
7923
      if (lastComparison != 0) {
7924
        return lastComparison;
7925
      }
7926
      if (isSetWarehouseId()) {
7927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
7928
        if (lastComparison != 0) {
7929
          return lastComparison;
7930
        }
7931
      }
7932
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
7933
      if (lastComparison != 0) {
7934
        return lastComparison;
7935
      }
7936
      if (isSetQuantity()) {
7937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
7938
        if (lastComparison != 0) {
7939
          return lastComparison;
7940
        }
7941
      }
7942
      return 0;
7943
    }
7944
 
7945
    public _Fields fieldForId(int fieldId) {
7946
      return _Fields.findByThriftId(fieldId);
7947
    }
7948
 
7949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7950
      org.apache.thrift.protocol.TField field;
7951
      iprot.readStructBegin();
7952
      while (true)
7953
      {
7954
        field = iprot.readFieldBegin();
7955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7956
          break;
7957
        }
7958
        switch (field.id) {
7959
          case 1: // ITEM_ID
7960
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7961
              this.itemId = iprot.readI64();
7962
              setItemIdIsSet(true);
7963
            } else { 
7964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7965
            }
7966
            break;
7967
          case 2: // WAREHOUSE_ID
7968
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7969
              this.warehouseId = iprot.readI64();
7970
              setWarehouseIdIsSet(true);
7971
            } else { 
7972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7973
            }
7974
            break;
7975
          case 3: // QUANTITY
7976
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7977
              this.quantity = iprot.readI64();
7978
              setQuantityIsSet(true);
7979
            } else { 
7980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7981
            }
7982
            break;
7983
          default:
7984
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7985
        }
7986
        iprot.readFieldEnd();
7987
      }
7988
      iprot.readStructEnd();
7989
      validate();
7990
    }
7991
 
7992
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7993
      validate();
7994
 
7995
      oprot.writeStructBegin(STRUCT_DESC);
7996
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
7997
      oprot.writeI64(this.itemId);
7998
      oprot.writeFieldEnd();
7999
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8000
      oprot.writeI64(this.warehouseId);
8001
      oprot.writeFieldEnd();
8002
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
8003
      oprot.writeI64(this.quantity);
8004
      oprot.writeFieldEnd();
8005
      oprot.writeFieldStop();
8006
      oprot.writeStructEnd();
8007
    }
8008
 
8009
    @Override
8010
    public String toString() {
8011
      StringBuilder sb = new StringBuilder("addInventory_args(");
8012
      boolean first = true;
8013
 
8014
      sb.append("itemId:");
8015
      sb.append(this.itemId);
8016
      first = false;
8017
      if (!first) sb.append(", ");
8018
      sb.append("warehouseId:");
8019
      sb.append(this.warehouseId);
8020
      first = false;
8021
      if (!first) sb.append(", ");
8022
      sb.append("quantity:");
8023
      sb.append(this.quantity);
8024
      first = false;
8025
      sb.append(")");
8026
      return sb.toString();
8027
    }
8028
 
8029
    public void validate() throws org.apache.thrift.TException {
8030
      // check for required fields
8031
    }
8032
 
8033
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8034
      try {
8035
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8036
      } catch (org.apache.thrift.TException te) {
8037
        throw new java.io.IOException(te);
8038
      }
8039
    }
8040
 
8041
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8042
      try {
8043
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8044
        __isset_bit_vector = new BitSet(1);
8045
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8046
      } catch (org.apache.thrift.TException te) {
8047
        throw new java.io.IOException(te);
8048
      }
8049
    }
8050
 
8051
  }
8052
 
8053
  public static class addInventory_result implements org.apache.thrift.TBase<addInventory_result, addInventory_result._Fields>, java.io.Serializable, Cloneable   {
8054
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInventory_result");
8055
 
8056
    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);
8057
 
8058
    private InventoryServiceException cex; // required
8059
 
8060
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8061
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8062
      CEX((short)1, "cex");
8063
 
8064
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8065
 
8066
      static {
8067
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8068
          byName.put(field.getFieldName(), field);
8069
        }
8070
      }
8071
 
8072
      /**
8073
       * Find the _Fields constant that matches fieldId, or null if its not found.
8074
       */
8075
      public static _Fields findByThriftId(int fieldId) {
8076
        switch(fieldId) {
8077
          case 1: // CEX
8078
            return CEX;
8079
          default:
8080
            return null;
8081
        }
8082
      }
8083
 
8084
      /**
8085
       * Find the _Fields constant that matches fieldId, throwing an exception
8086
       * if it is not found.
8087
       */
8088
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8089
        _Fields fields = findByThriftId(fieldId);
8090
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8091
        return fields;
8092
      }
8093
 
8094
      /**
8095
       * Find the _Fields constant that matches name, or null if its not found.
8096
       */
8097
      public static _Fields findByName(String name) {
8098
        return byName.get(name);
8099
      }
8100
 
8101
      private final short _thriftId;
8102
      private final String _fieldName;
8103
 
8104
      _Fields(short thriftId, String fieldName) {
8105
        _thriftId = thriftId;
8106
        _fieldName = fieldName;
8107
      }
8108
 
8109
      public short getThriftFieldId() {
8110
        return _thriftId;
8111
      }
8112
 
8113
      public String getFieldName() {
8114
        return _fieldName;
8115
      }
8116
    }
8117
 
8118
    // isset id assignments
8119
 
8120
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8121
    static {
8122
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8123
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8124
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8125
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8126
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInventory_result.class, metaDataMap);
8127
    }
8128
 
8129
    public addInventory_result() {
8130
    }
8131
 
8132
    public addInventory_result(
8133
      InventoryServiceException cex)
8134
    {
8135
      this();
8136
      this.cex = cex;
8137
    }
8138
 
8139
    /**
8140
     * Performs a deep copy on <i>other</i>.
8141
     */
8142
    public addInventory_result(addInventory_result other) {
8143
      if (other.isSetCex()) {
8144
        this.cex = new InventoryServiceException(other.cex);
8145
      }
8146
    }
8147
 
8148
    public addInventory_result deepCopy() {
8149
      return new addInventory_result(this);
8150
    }
8151
 
8152
    @Override
8153
    public void clear() {
8154
      this.cex = null;
8155
    }
8156
 
8157
    public InventoryServiceException getCex() {
8158
      return this.cex;
8159
    }
8160
 
8161
    public void setCex(InventoryServiceException cex) {
8162
      this.cex = cex;
8163
    }
8164
 
8165
    public void unsetCex() {
8166
      this.cex = null;
8167
    }
8168
 
8169
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8170
    public boolean isSetCex() {
8171
      return this.cex != null;
8172
    }
8173
 
8174
    public void setCexIsSet(boolean value) {
8175
      if (!value) {
8176
        this.cex = null;
8177
      }
8178
    }
8179
 
8180
    public void setFieldValue(_Fields field, Object value) {
8181
      switch (field) {
8182
      case CEX:
8183
        if (value == null) {
8184
          unsetCex();
8185
        } else {
8186
          setCex((InventoryServiceException)value);
8187
        }
8188
        break;
8189
 
8190
      }
8191
    }
8192
 
8193
    public Object getFieldValue(_Fields field) {
8194
      switch (field) {
8195
      case CEX:
8196
        return getCex();
8197
 
8198
      }
8199
      throw new IllegalStateException();
8200
    }
8201
 
8202
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8203
    public boolean isSet(_Fields field) {
8204
      if (field == null) {
8205
        throw new IllegalArgumentException();
8206
      }
8207
 
8208
      switch (field) {
8209
      case CEX:
8210
        return isSetCex();
8211
      }
8212
      throw new IllegalStateException();
8213
    }
8214
 
8215
    @Override
8216
    public boolean equals(Object that) {
8217
      if (that == null)
8218
        return false;
8219
      if (that instanceof addInventory_result)
8220
        return this.equals((addInventory_result)that);
8221
      return false;
8222
    }
8223
 
8224
    public boolean equals(addInventory_result that) {
8225
      if (that == null)
8226
        return false;
8227
 
8228
      boolean this_present_cex = true && this.isSetCex();
8229
      boolean that_present_cex = true && that.isSetCex();
8230
      if (this_present_cex || that_present_cex) {
8231
        if (!(this_present_cex && that_present_cex))
8232
          return false;
8233
        if (!this.cex.equals(that.cex))
8234
          return false;
8235
      }
8236
 
8237
      return true;
8238
    }
8239
 
8240
    @Override
8241
    public int hashCode() {
8242
      return 0;
8243
    }
8244
 
8245
    public int compareTo(addInventory_result other) {
8246
      if (!getClass().equals(other.getClass())) {
8247
        return getClass().getName().compareTo(other.getClass().getName());
8248
      }
8249
 
8250
      int lastComparison = 0;
8251
      addInventory_result typedOther = (addInventory_result)other;
8252
 
8253
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8254
      if (lastComparison != 0) {
8255
        return lastComparison;
8256
      }
8257
      if (isSetCex()) {
8258
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8259
        if (lastComparison != 0) {
8260
          return lastComparison;
8261
        }
8262
      }
8263
      return 0;
8264
    }
8265
 
8266
    public _Fields fieldForId(int fieldId) {
8267
      return _Fields.findByThriftId(fieldId);
8268
    }
8269
 
8270
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8271
      org.apache.thrift.protocol.TField field;
8272
      iprot.readStructBegin();
8273
      while (true)
8274
      {
8275
        field = iprot.readFieldBegin();
8276
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8277
          break;
8278
        }
8279
        switch (field.id) {
8280
          case 1: // CEX
8281
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8282
              this.cex = new InventoryServiceException();
8283
              this.cex.read(iprot);
8284
            } else { 
8285
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8286
            }
8287
            break;
8288
          default:
8289
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8290
        }
8291
        iprot.readFieldEnd();
8292
      }
8293
      iprot.readStructEnd();
8294
      validate();
8295
    }
8296
 
8297
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8298
      oprot.writeStructBegin(STRUCT_DESC);
8299
 
8300
      if (this.isSetCex()) {
8301
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8302
        this.cex.write(oprot);
8303
        oprot.writeFieldEnd();
8304
      }
8305
      oprot.writeFieldStop();
8306
      oprot.writeStructEnd();
8307
    }
8308
 
8309
    @Override
8310
    public String toString() {
8311
      StringBuilder sb = new StringBuilder("addInventory_result(");
8312
      boolean first = true;
8313
 
8314
      sb.append("cex:");
8315
      if (this.cex == null) {
8316
        sb.append("null");
8317
      } else {
8318
        sb.append(this.cex);
8319
      }
8320
      first = false;
8321
      sb.append(")");
8322
      return sb.toString();
8323
    }
8324
 
8325
    public void validate() throws org.apache.thrift.TException {
8326
      // check for required fields
8327
    }
8328
 
8329
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8330
      try {
8331
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8332
      } catch (org.apache.thrift.TException te) {
8333
        throw new java.io.IOException(te);
8334
      }
8335
    }
8336
 
8337
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8338
      try {
8339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8340
      } catch (org.apache.thrift.TException te) {
8341
        throw new java.io.IOException(te);
8342
      }
8343
    }
8344
 
8345
  }
8346
 
8347
  public static class retireWarehouse_args implements org.apache.thrift.TBase<retireWarehouse_args, retireWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
8348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_args");
8349
 
8350
    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);
8351
 
8352
    private long warehouse_id; // required
8353
 
8354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8356
      WAREHOUSE_ID((short)1, "warehouse_id");
8357
 
8358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8359
 
8360
      static {
8361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8362
          byName.put(field.getFieldName(), field);
8363
        }
8364
      }
8365
 
8366
      /**
8367
       * Find the _Fields constant that matches fieldId, or null if its not found.
8368
       */
8369
      public static _Fields findByThriftId(int fieldId) {
8370
        switch(fieldId) {
8371
          case 1: // WAREHOUSE_ID
8372
            return WAREHOUSE_ID;
8373
          default:
8374
            return null;
8375
        }
8376
      }
8377
 
8378
      /**
8379
       * Find the _Fields constant that matches fieldId, throwing an exception
8380
       * if it is not found.
8381
       */
8382
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8383
        _Fields fields = findByThriftId(fieldId);
8384
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8385
        return fields;
8386
      }
8387
 
8388
      /**
8389
       * Find the _Fields constant that matches name, or null if its not found.
8390
       */
8391
      public static _Fields findByName(String name) {
8392
        return byName.get(name);
8393
      }
8394
 
8395
      private final short _thriftId;
8396
      private final String _fieldName;
8397
 
8398
      _Fields(short thriftId, String fieldName) {
8399
        _thriftId = thriftId;
8400
        _fieldName = fieldName;
8401
      }
8402
 
8403
      public short getThriftFieldId() {
8404
        return _thriftId;
8405
      }
8406
 
8407
      public String getFieldName() {
8408
        return _fieldName;
8409
      }
8410
    }
8411
 
8412
    // isset id assignments
8413
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
8414
    private BitSet __isset_bit_vector = new BitSet(1);
8415
 
8416
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8417
    static {
8418
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8419
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8421
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8422
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_args.class, metaDataMap);
8423
    }
8424
 
8425
    public retireWarehouse_args() {
8426
    }
8427
 
8428
    public retireWarehouse_args(
8429
      long warehouse_id)
8430
    {
8431
      this();
8432
      this.warehouse_id = warehouse_id;
8433
      setWarehouse_idIsSet(true);
8434
    }
8435
 
8436
    /**
8437
     * Performs a deep copy on <i>other</i>.
8438
     */
8439
    public retireWarehouse_args(retireWarehouse_args other) {
8440
      __isset_bit_vector.clear();
8441
      __isset_bit_vector.or(other.__isset_bit_vector);
8442
      this.warehouse_id = other.warehouse_id;
8443
    }
8444
 
8445
    public retireWarehouse_args deepCopy() {
8446
      return new retireWarehouse_args(this);
8447
    }
8448
 
8449
    @Override
8450
    public void clear() {
8451
      setWarehouse_idIsSet(false);
8452
      this.warehouse_id = 0;
8453
    }
8454
 
8455
    public long getWarehouse_id() {
8456
      return this.warehouse_id;
8457
    }
8458
 
8459
    public void setWarehouse_id(long warehouse_id) {
8460
      this.warehouse_id = warehouse_id;
8461
      setWarehouse_idIsSet(true);
8462
    }
8463
 
8464
    public void unsetWarehouse_id() {
8465
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
8466
    }
8467
 
8468
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
8469
    public boolean isSetWarehouse_id() {
8470
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
8471
    }
8472
 
8473
    public void setWarehouse_idIsSet(boolean value) {
8474
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
8475
    }
8476
 
8477
    public void setFieldValue(_Fields field, Object value) {
8478
      switch (field) {
8479
      case WAREHOUSE_ID:
8480
        if (value == null) {
8481
          unsetWarehouse_id();
8482
        } else {
8483
          setWarehouse_id((Long)value);
8484
        }
8485
        break;
8486
 
8487
      }
8488
    }
8489
 
8490
    public Object getFieldValue(_Fields field) {
8491
      switch (field) {
8492
      case WAREHOUSE_ID:
8493
        return Long.valueOf(getWarehouse_id());
8494
 
8495
      }
8496
      throw new IllegalStateException();
8497
    }
8498
 
8499
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8500
    public boolean isSet(_Fields field) {
8501
      if (field == null) {
8502
        throw new IllegalArgumentException();
8503
      }
8504
 
8505
      switch (field) {
8506
      case WAREHOUSE_ID:
8507
        return isSetWarehouse_id();
8508
      }
8509
      throw new IllegalStateException();
8510
    }
8511
 
8512
    @Override
8513
    public boolean equals(Object that) {
8514
      if (that == null)
8515
        return false;
8516
      if (that instanceof retireWarehouse_args)
8517
        return this.equals((retireWarehouse_args)that);
8518
      return false;
8519
    }
8520
 
8521
    public boolean equals(retireWarehouse_args that) {
8522
      if (that == null)
8523
        return false;
8524
 
8525
      boolean this_present_warehouse_id = true;
8526
      boolean that_present_warehouse_id = true;
8527
      if (this_present_warehouse_id || that_present_warehouse_id) {
8528
        if (!(this_present_warehouse_id && that_present_warehouse_id))
8529
          return false;
8530
        if (this.warehouse_id != that.warehouse_id)
8531
          return false;
8532
      }
8533
 
8534
      return true;
8535
    }
8536
 
8537
    @Override
8538
    public int hashCode() {
8539
      return 0;
8540
    }
8541
 
8542
    public int compareTo(retireWarehouse_args other) {
8543
      if (!getClass().equals(other.getClass())) {
8544
        return getClass().getName().compareTo(other.getClass().getName());
8545
      }
8546
 
8547
      int lastComparison = 0;
8548
      retireWarehouse_args typedOther = (retireWarehouse_args)other;
8549
 
8550
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
8551
      if (lastComparison != 0) {
8552
        return lastComparison;
8553
      }
8554
      if (isSetWarehouse_id()) {
8555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
8556
        if (lastComparison != 0) {
8557
          return lastComparison;
8558
        }
8559
      }
8560
      return 0;
8561
    }
8562
 
8563
    public _Fields fieldForId(int fieldId) {
8564
      return _Fields.findByThriftId(fieldId);
8565
    }
8566
 
8567
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8568
      org.apache.thrift.protocol.TField field;
8569
      iprot.readStructBegin();
8570
      while (true)
8571
      {
8572
        field = iprot.readFieldBegin();
8573
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8574
          break;
8575
        }
8576
        switch (field.id) {
8577
          case 1: // WAREHOUSE_ID
8578
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8579
              this.warehouse_id = iprot.readI64();
8580
              setWarehouse_idIsSet(true);
8581
            } else { 
8582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8583
            }
8584
            break;
8585
          default:
8586
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8587
        }
8588
        iprot.readFieldEnd();
8589
      }
8590
      iprot.readStructEnd();
8591
      validate();
8592
    }
8593
 
8594
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8595
      validate();
8596
 
8597
      oprot.writeStructBegin(STRUCT_DESC);
8598
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8599
      oprot.writeI64(this.warehouse_id);
8600
      oprot.writeFieldEnd();
8601
      oprot.writeFieldStop();
8602
      oprot.writeStructEnd();
8603
    }
8604
 
8605
    @Override
8606
    public String toString() {
8607
      StringBuilder sb = new StringBuilder("retireWarehouse_args(");
8608
      boolean first = true;
8609
 
8610
      sb.append("warehouse_id:");
8611
      sb.append(this.warehouse_id);
8612
      first = false;
8613
      sb.append(")");
8614
      return sb.toString();
8615
    }
8616
 
8617
    public void validate() throws org.apache.thrift.TException {
8618
      // check for required fields
8619
    }
8620
 
8621
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8622
      try {
8623
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8624
      } catch (org.apache.thrift.TException te) {
8625
        throw new java.io.IOException(te);
8626
      }
8627
    }
8628
 
8629
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8630
      try {
8631
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8632
        __isset_bit_vector = new BitSet(1);
8633
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8634
      } catch (org.apache.thrift.TException te) {
8635
        throw new java.io.IOException(te);
8636
      }
8637
    }
8638
 
8639
  }
8640
 
8641
  public static class retireWarehouse_result implements org.apache.thrift.TBase<retireWarehouse_result, retireWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
8642
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retireWarehouse_result");
8643
 
8644
    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);
8645
 
8646
    private InventoryServiceException cex; // required
8647
 
8648
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8649
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8650
      CEX((short)1, "cex");
8651
 
8652
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8653
 
8654
      static {
8655
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8656
          byName.put(field.getFieldName(), field);
8657
        }
8658
      }
8659
 
8660
      /**
8661
       * Find the _Fields constant that matches fieldId, or null if its not found.
8662
       */
8663
      public static _Fields findByThriftId(int fieldId) {
8664
        switch(fieldId) {
8665
          case 1: // CEX
8666
            return CEX;
8667
          default:
8668
            return null;
8669
        }
8670
      }
8671
 
8672
      /**
8673
       * Find the _Fields constant that matches fieldId, throwing an exception
8674
       * if it is not found.
8675
       */
8676
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8677
        _Fields fields = findByThriftId(fieldId);
8678
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8679
        return fields;
8680
      }
8681
 
8682
      /**
8683
       * Find the _Fields constant that matches name, or null if its not found.
8684
       */
8685
      public static _Fields findByName(String name) {
8686
        return byName.get(name);
8687
      }
8688
 
8689
      private final short _thriftId;
8690
      private final String _fieldName;
8691
 
8692
      _Fields(short thriftId, String fieldName) {
8693
        _thriftId = thriftId;
8694
        _fieldName = fieldName;
8695
      }
8696
 
8697
      public short getThriftFieldId() {
8698
        return _thriftId;
8699
      }
8700
 
8701
      public String getFieldName() {
8702
        return _fieldName;
8703
      }
8704
    }
8705
 
8706
    // isset id assignments
8707
 
8708
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8709
    static {
8710
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8711
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8712
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8713
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8714
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retireWarehouse_result.class, metaDataMap);
8715
    }
8716
 
8717
    public retireWarehouse_result() {
8718
    }
8719
 
8720
    public retireWarehouse_result(
8721
      InventoryServiceException cex)
8722
    {
8723
      this();
8724
      this.cex = cex;
8725
    }
8726
 
8727
    /**
8728
     * Performs a deep copy on <i>other</i>.
8729
     */
8730
    public retireWarehouse_result(retireWarehouse_result other) {
8731
      if (other.isSetCex()) {
8732
        this.cex = new InventoryServiceException(other.cex);
8733
      }
8734
    }
8735
 
8736
    public retireWarehouse_result deepCopy() {
8737
      return new retireWarehouse_result(this);
8738
    }
8739
 
8740
    @Override
8741
    public void clear() {
8742
      this.cex = null;
8743
    }
8744
 
8745
    public InventoryServiceException getCex() {
8746
      return this.cex;
8747
    }
8748
 
8749
    public void setCex(InventoryServiceException cex) {
8750
      this.cex = cex;
8751
    }
8752
 
8753
    public void unsetCex() {
8754
      this.cex = null;
8755
    }
8756
 
8757
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
8758
    public boolean isSetCex() {
8759
      return this.cex != null;
8760
    }
8761
 
8762
    public void setCexIsSet(boolean value) {
8763
      if (!value) {
8764
        this.cex = null;
8765
      }
8766
    }
8767
 
8768
    public void setFieldValue(_Fields field, Object value) {
8769
      switch (field) {
8770
      case CEX:
8771
        if (value == null) {
8772
          unsetCex();
8773
        } else {
8774
          setCex((InventoryServiceException)value);
8775
        }
8776
        break;
8777
 
8778
      }
8779
    }
8780
 
8781
    public Object getFieldValue(_Fields field) {
8782
      switch (field) {
8783
      case CEX:
8784
        return getCex();
8785
 
8786
      }
8787
      throw new IllegalStateException();
8788
    }
8789
 
8790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8791
    public boolean isSet(_Fields field) {
8792
      if (field == null) {
8793
        throw new IllegalArgumentException();
8794
      }
8795
 
8796
      switch (field) {
8797
      case CEX:
8798
        return isSetCex();
8799
      }
8800
      throw new IllegalStateException();
8801
    }
8802
 
8803
    @Override
8804
    public boolean equals(Object that) {
8805
      if (that == null)
8806
        return false;
8807
      if (that instanceof retireWarehouse_result)
8808
        return this.equals((retireWarehouse_result)that);
8809
      return false;
8810
    }
8811
 
8812
    public boolean equals(retireWarehouse_result that) {
8813
      if (that == null)
8814
        return false;
8815
 
8816
      boolean this_present_cex = true && this.isSetCex();
8817
      boolean that_present_cex = true && that.isSetCex();
8818
      if (this_present_cex || that_present_cex) {
8819
        if (!(this_present_cex && that_present_cex))
8820
          return false;
8821
        if (!this.cex.equals(that.cex))
8822
          return false;
8823
      }
8824
 
8825
      return true;
8826
    }
8827
 
8828
    @Override
8829
    public int hashCode() {
8830
      return 0;
8831
    }
8832
 
8833
    public int compareTo(retireWarehouse_result other) {
8834
      if (!getClass().equals(other.getClass())) {
8835
        return getClass().getName().compareTo(other.getClass().getName());
8836
      }
8837
 
8838
      int lastComparison = 0;
8839
      retireWarehouse_result typedOther = (retireWarehouse_result)other;
8840
 
8841
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
8842
      if (lastComparison != 0) {
8843
        return lastComparison;
8844
      }
8845
      if (isSetCex()) {
8846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
8847
        if (lastComparison != 0) {
8848
          return lastComparison;
8849
        }
8850
      }
8851
      return 0;
8852
    }
8853
 
8854
    public _Fields fieldForId(int fieldId) {
8855
      return _Fields.findByThriftId(fieldId);
8856
    }
8857
 
8858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8859
      org.apache.thrift.protocol.TField field;
8860
      iprot.readStructBegin();
8861
      while (true)
8862
      {
8863
        field = iprot.readFieldBegin();
8864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8865
          break;
8866
        }
8867
        switch (field.id) {
8868
          case 1: // CEX
8869
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8870
              this.cex = new InventoryServiceException();
8871
              this.cex.read(iprot);
8872
            } else { 
8873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8874
            }
8875
            break;
8876
          default:
8877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8878
        }
8879
        iprot.readFieldEnd();
8880
      }
8881
      iprot.readStructEnd();
8882
      validate();
8883
    }
8884
 
8885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8886
      oprot.writeStructBegin(STRUCT_DESC);
8887
 
8888
      if (this.isSetCex()) {
8889
        oprot.writeFieldBegin(CEX_FIELD_DESC);
8890
        this.cex.write(oprot);
8891
        oprot.writeFieldEnd();
8892
      }
8893
      oprot.writeFieldStop();
8894
      oprot.writeStructEnd();
8895
    }
8896
 
8897
    @Override
8898
    public String toString() {
8899
      StringBuilder sb = new StringBuilder("retireWarehouse_result(");
8900
      boolean first = true;
8901
 
8902
      sb.append("cex:");
8903
      if (this.cex == null) {
8904
        sb.append("null");
8905
      } else {
8906
        sb.append(this.cex);
8907
      }
8908
      first = false;
8909
      sb.append(")");
8910
      return sb.toString();
8911
    }
8912
 
8913
    public void validate() throws org.apache.thrift.TException {
8914
      // check for required fields
8915
    }
8916
 
8917
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8918
      try {
8919
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8920
      } catch (org.apache.thrift.TException te) {
8921
        throw new java.io.IOException(te);
8922
      }
8923
    }
8924
 
8925
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8926
      try {
8927
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8928
      } catch (org.apache.thrift.TException te) {
8929
        throw new java.io.IOException(te);
8930
      }
8931
    }
8932
 
8933
  }
8934
 
8935
  public static class getItemInventoryByItemId_args implements org.apache.thrift.TBase<getItemInventoryByItemId_args, getItemInventoryByItemId_args._Fields>, java.io.Serializable, Cloneable   {
8936
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_args");
8937
 
8938
    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);
8939
 
8940
    private long item_id; // required
8941
 
8942
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8943
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8944
      ITEM_ID((short)1, "item_id");
8945
 
8946
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8947
 
8948
      static {
8949
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8950
          byName.put(field.getFieldName(), field);
8951
        }
8952
      }
8953
 
8954
      /**
8955
       * Find the _Fields constant that matches fieldId, or null if its not found.
8956
       */
8957
      public static _Fields findByThriftId(int fieldId) {
8958
        switch(fieldId) {
8959
          case 1: // ITEM_ID
8960
            return ITEM_ID;
8961
          default:
8962
            return null;
8963
        }
8964
      }
8965
 
8966
      /**
8967
       * Find the _Fields constant that matches fieldId, throwing an exception
8968
       * if it is not found.
8969
       */
8970
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8971
        _Fields fields = findByThriftId(fieldId);
8972
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8973
        return fields;
8974
      }
8975
 
8976
      /**
8977
       * Find the _Fields constant that matches name, or null if its not found.
8978
       */
8979
      public static _Fields findByName(String name) {
8980
        return byName.get(name);
8981
      }
8982
 
8983
      private final short _thriftId;
8984
      private final String _fieldName;
8985
 
8986
      _Fields(short thriftId, String fieldName) {
8987
        _thriftId = thriftId;
8988
        _fieldName = fieldName;
8989
      }
8990
 
8991
      public short getThriftFieldId() {
8992
        return _thriftId;
8993
      }
8994
 
8995
      public String getFieldName() {
8996
        return _fieldName;
8997
      }
8998
    }
8999
 
9000
    // isset id assignments
9001
    private static final int __ITEM_ID_ISSET_ID = 0;
9002
    private BitSet __isset_bit_vector = new BitSet(1);
9003
 
9004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9005
    static {
9006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9007
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9008
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9009
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9010
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_args.class, metaDataMap);
9011
    }
9012
 
9013
    public getItemInventoryByItemId_args() {
9014
    }
9015
 
9016
    public getItemInventoryByItemId_args(
9017
      long item_id)
9018
    {
9019
      this();
9020
      this.item_id = item_id;
9021
      setItem_idIsSet(true);
9022
    }
9023
 
9024
    /**
9025
     * Performs a deep copy on <i>other</i>.
9026
     */
9027
    public getItemInventoryByItemId_args(getItemInventoryByItemId_args other) {
9028
      __isset_bit_vector.clear();
9029
      __isset_bit_vector.or(other.__isset_bit_vector);
9030
      this.item_id = other.item_id;
9031
    }
9032
 
9033
    public getItemInventoryByItemId_args deepCopy() {
9034
      return new getItemInventoryByItemId_args(this);
9035
    }
9036
 
9037
    @Override
9038
    public void clear() {
9039
      setItem_idIsSet(false);
9040
      this.item_id = 0;
9041
    }
9042
 
9043
    public long getItem_id() {
9044
      return this.item_id;
9045
    }
9046
 
9047
    public void setItem_id(long item_id) {
9048
      this.item_id = item_id;
9049
      setItem_idIsSet(true);
9050
    }
9051
 
9052
    public void unsetItem_id() {
9053
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
9054
    }
9055
 
9056
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
9057
    public boolean isSetItem_id() {
9058
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
9059
    }
9060
 
9061
    public void setItem_idIsSet(boolean value) {
9062
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
9063
    }
9064
 
9065
    public void setFieldValue(_Fields field, Object value) {
9066
      switch (field) {
9067
      case ITEM_ID:
9068
        if (value == null) {
9069
          unsetItem_id();
9070
        } else {
9071
          setItem_id((Long)value);
9072
        }
9073
        break;
9074
 
9075
      }
9076
    }
9077
 
9078
    public Object getFieldValue(_Fields field) {
9079
      switch (field) {
9080
      case ITEM_ID:
9081
        return Long.valueOf(getItem_id());
9082
 
9083
      }
9084
      throw new IllegalStateException();
9085
    }
9086
 
9087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9088
    public boolean isSet(_Fields field) {
9089
      if (field == null) {
9090
        throw new IllegalArgumentException();
9091
      }
9092
 
9093
      switch (field) {
9094
      case ITEM_ID:
9095
        return isSetItem_id();
9096
      }
9097
      throw new IllegalStateException();
9098
    }
9099
 
9100
    @Override
9101
    public boolean equals(Object that) {
9102
      if (that == null)
9103
        return false;
9104
      if (that instanceof getItemInventoryByItemId_args)
9105
        return this.equals((getItemInventoryByItemId_args)that);
9106
      return false;
9107
    }
9108
 
9109
    public boolean equals(getItemInventoryByItemId_args that) {
9110
      if (that == null)
9111
        return false;
9112
 
9113
      boolean this_present_item_id = true;
9114
      boolean that_present_item_id = true;
9115
      if (this_present_item_id || that_present_item_id) {
9116
        if (!(this_present_item_id && that_present_item_id))
9117
          return false;
9118
        if (this.item_id != that.item_id)
9119
          return false;
9120
      }
9121
 
9122
      return true;
9123
    }
9124
 
9125
    @Override
9126
    public int hashCode() {
9127
      return 0;
9128
    }
9129
 
9130
    public int compareTo(getItemInventoryByItemId_args other) {
9131
      if (!getClass().equals(other.getClass())) {
9132
        return getClass().getName().compareTo(other.getClass().getName());
9133
      }
9134
 
9135
      int lastComparison = 0;
9136
      getItemInventoryByItemId_args typedOther = (getItemInventoryByItemId_args)other;
9137
 
9138
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
9139
      if (lastComparison != 0) {
9140
        return lastComparison;
9141
      }
9142
      if (isSetItem_id()) {
9143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
9144
        if (lastComparison != 0) {
9145
          return lastComparison;
9146
        }
9147
      }
9148
      return 0;
9149
    }
9150
 
9151
    public _Fields fieldForId(int fieldId) {
9152
      return _Fields.findByThriftId(fieldId);
9153
    }
9154
 
9155
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9156
      org.apache.thrift.protocol.TField field;
9157
      iprot.readStructBegin();
9158
      while (true)
9159
      {
9160
        field = iprot.readFieldBegin();
9161
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9162
          break;
9163
        }
9164
        switch (field.id) {
9165
          case 1: // ITEM_ID
9166
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9167
              this.item_id = iprot.readI64();
9168
              setItem_idIsSet(true);
9169
            } else { 
9170
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9171
            }
9172
            break;
9173
          default:
9174
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9175
        }
9176
        iprot.readFieldEnd();
9177
      }
9178
      iprot.readStructEnd();
9179
      validate();
9180
    }
9181
 
9182
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9183
      validate();
9184
 
9185
      oprot.writeStructBegin(STRUCT_DESC);
9186
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9187
      oprot.writeI64(this.item_id);
9188
      oprot.writeFieldEnd();
9189
      oprot.writeFieldStop();
9190
      oprot.writeStructEnd();
9191
    }
9192
 
9193
    @Override
9194
    public String toString() {
9195
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_args(");
9196
      boolean first = true;
9197
 
9198
      sb.append("item_id:");
9199
      sb.append(this.item_id);
9200
      first = false;
9201
      sb.append(")");
9202
      return sb.toString();
9203
    }
9204
 
9205
    public void validate() throws org.apache.thrift.TException {
9206
      // check for required fields
9207
    }
9208
 
9209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9210
      try {
9211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9212
      } catch (org.apache.thrift.TException te) {
9213
        throw new java.io.IOException(te);
9214
      }
9215
    }
9216
 
9217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9218
      try {
9219
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9220
        __isset_bit_vector = new BitSet(1);
9221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9222
      } catch (org.apache.thrift.TException te) {
9223
        throw new java.io.IOException(te);
9224
      }
9225
    }
9226
 
9227
  }
9228
 
9229
  public static class getItemInventoryByItemId_result implements org.apache.thrift.TBase<getItemInventoryByItemId_result, getItemInventoryByItemId_result._Fields>, java.io.Serializable, Cloneable   {
9230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemInventoryByItemId_result");
9231
 
9232
    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);
9233
    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);
9234
 
9235
    private ItemInventory success; // required
9236
    private InventoryServiceException cex; // required
9237
 
9238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9240
      SUCCESS((short)0, "success"),
9241
      CEX((short)1, "cex");
9242
 
9243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9244
 
9245
      static {
9246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9247
          byName.put(field.getFieldName(), field);
9248
        }
9249
      }
9250
 
9251
      /**
9252
       * Find the _Fields constant that matches fieldId, or null if its not found.
9253
       */
9254
      public static _Fields findByThriftId(int fieldId) {
9255
        switch(fieldId) {
9256
          case 0: // SUCCESS
9257
            return SUCCESS;
9258
          case 1: // CEX
9259
            return CEX;
9260
          default:
9261
            return null;
9262
        }
9263
      }
9264
 
9265
      /**
9266
       * Find the _Fields constant that matches fieldId, throwing an exception
9267
       * if it is not found.
9268
       */
9269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9270
        _Fields fields = findByThriftId(fieldId);
9271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9272
        return fields;
9273
      }
9274
 
9275
      /**
9276
       * Find the _Fields constant that matches name, or null if its not found.
9277
       */
9278
      public static _Fields findByName(String name) {
9279
        return byName.get(name);
9280
      }
9281
 
9282
      private final short _thriftId;
9283
      private final String _fieldName;
9284
 
9285
      _Fields(short thriftId, String fieldName) {
9286
        _thriftId = thriftId;
9287
        _fieldName = fieldName;
9288
      }
9289
 
9290
      public short getThriftFieldId() {
9291
        return _thriftId;
9292
      }
9293
 
9294
      public String getFieldName() {
9295
        return _fieldName;
9296
      }
9297
    }
9298
 
9299
    // isset id assignments
9300
 
9301
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9302
    static {
9303
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9304
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9305
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class)));
9306
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9307
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9308
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9309
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemInventoryByItemId_result.class, metaDataMap);
9310
    }
9311
 
9312
    public getItemInventoryByItemId_result() {
9313
    }
9314
 
9315
    public getItemInventoryByItemId_result(
9316
      ItemInventory success,
9317
      InventoryServiceException cex)
9318
    {
9319
      this();
9320
      this.success = success;
9321
      this.cex = cex;
9322
    }
9323
 
9324
    /**
9325
     * Performs a deep copy on <i>other</i>.
9326
     */
9327
    public getItemInventoryByItemId_result(getItemInventoryByItemId_result other) {
9328
      if (other.isSetSuccess()) {
9329
        this.success = new ItemInventory(other.success);
9330
      }
9331
      if (other.isSetCex()) {
9332
        this.cex = new InventoryServiceException(other.cex);
9333
      }
9334
    }
9335
 
9336
    public getItemInventoryByItemId_result deepCopy() {
9337
      return new getItemInventoryByItemId_result(this);
9338
    }
9339
 
9340
    @Override
9341
    public void clear() {
9342
      this.success = null;
9343
      this.cex = null;
9344
    }
9345
 
9346
    public ItemInventory getSuccess() {
9347
      return this.success;
9348
    }
9349
 
9350
    public void setSuccess(ItemInventory success) {
9351
      this.success = success;
9352
    }
9353
 
9354
    public void unsetSuccess() {
9355
      this.success = null;
9356
    }
9357
 
9358
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9359
    public boolean isSetSuccess() {
9360
      return this.success != null;
9361
    }
9362
 
9363
    public void setSuccessIsSet(boolean value) {
9364
      if (!value) {
9365
        this.success = null;
9366
      }
9367
    }
9368
 
9369
    public InventoryServiceException getCex() {
9370
      return this.cex;
9371
    }
9372
 
9373
    public void setCex(InventoryServiceException cex) {
9374
      this.cex = cex;
9375
    }
9376
 
9377
    public void unsetCex() {
9378
      this.cex = null;
9379
    }
9380
 
9381
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
9382
    public boolean isSetCex() {
9383
      return this.cex != null;
9384
    }
9385
 
9386
    public void setCexIsSet(boolean value) {
9387
      if (!value) {
9388
        this.cex = null;
9389
      }
9390
    }
9391
 
9392
    public void setFieldValue(_Fields field, Object value) {
9393
      switch (field) {
9394
      case SUCCESS:
9395
        if (value == null) {
9396
          unsetSuccess();
9397
        } else {
9398
          setSuccess((ItemInventory)value);
9399
        }
9400
        break;
9401
 
9402
      case CEX:
9403
        if (value == null) {
9404
          unsetCex();
9405
        } else {
9406
          setCex((InventoryServiceException)value);
9407
        }
9408
        break;
9409
 
9410
      }
9411
    }
9412
 
9413
    public Object getFieldValue(_Fields field) {
9414
      switch (field) {
9415
      case SUCCESS:
9416
        return getSuccess();
9417
 
9418
      case CEX:
9419
        return getCex();
9420
 
9421
      }
9422
      throw new IllegalStateException();
9423
    }
9424
 
9425
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9426
    public boolean isSet(_Fields field) {
9427
      if (field == null) {
9428
        throw new IllegalArgumentException();
9429
      }
9430
 
9431
      switch (field) {
9432
      case SUCCESS:
9433
        return isSetSuccess();
9434
      case CEX:
9435
        return isSetCex();
9436
      }
9437
      throw new IllegalStateException();
9438
    }
9439
 
9440
    @Override
9441
    public boolean equals(Object that) {
9442
      if (that == null)
9443
        return false;
9444
      if (that instanceof getItemInventoryByItemId_result)
9445
        return this.equals((getItemInventoryByItemId_result)that);
9446
      return false;
9447
    }
9448
 
9449
    public boolean equals(getItemInventoryByItemId_result that) {
9450
      if (that == null)
9451
        return false;
9452
 
9453
      boolean this_present_success = true && this.isSetSuccess();
9454
      boolean that_present_success = true && that.isSetSuccess();
9455
      if (this_present_success || that_present_success) {
9456
        if (!(this_present_success && that_present_success))
9457
          return false;
9458
        if (!this.success.equals(that.success))
9459
          return false;
9460
      }
9461
 
9462
      boolean this_present_cex = true && this.isSetCex();
9463
      boolean that_present_cex = true && that.isSetCex();
9464
      if (this_present_cex || that_present_cex) {
9465
        if (!(this_present_cex && that_present_cex))
9466
          return false;
9467
        if (!this.cex.equals(that.cex))
9468
          return false;
9469
      }
9470
 
9471
      return true;
9472
    }
9473
 
9474
    @Override
9475
    public int hashCode() {
9476
      return 0;
9477
    }
9478
 
9479
    public int compareTo(getItemInventoryByItemId_result other) {
9480
      if (!getClass().equals(other.getClass())) {
9481
        return getClass().getName().compareTo(other.getClass().getName());
9482
      }
9483
 
9484
      int lastComparison = 0;
9485
      getItemInventoryByItemId_result typedOther = (getItemInventoryByItemId_result)other;
9486
 
9487
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9488
      if (lastComparison != 0) {
9489
        return lastComparison;
9490
      }
9491
      if (isSetSuccess()) {
9492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9493
        if (lastComparison != 0) {
9494
          return lastComparison;
9495
        }
9496
      }
9497
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
9498
      if (lastComparison != 0) {
9499
        return lastComparison;
9500
      }
9501
      if (isSetCex()) {
9502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
9503
        if (lastComparison != 0) {
9504
          return lastComparison;
9505
        }
9506
      }
9507
      return 0;
9508
    }
9509
 
9510
    public _Fields fieldForId(int fieldId) {
9511
      return _Fields.findByThriftId(fieldId);
9512
    }
9513
 
9514
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9515
      org.apache.thrift.protocol.TField field;
9516
      iprot.readStructBegin();
9517
      while (true)
9518
      {
9519
        field = iprot.readFieldBegin();
9520
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9521
          break;
9522
        }
9523
        switch (field.id) {
9524
          case 0: // SUCCESS
9525
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9526
              this.success = new ItemInventory();
9527
              this.success.read(iprot);
9528
            } else { 
9529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9530
            }
9531
            break;
9532
          case 1: // CEX
9533
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9534
              this.cex = new InventoryServiceException();
9535
              this.cex.read(iprot);
9536
            } else { 
9537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9538
            }
9539
            break;
9540
          default:
9541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9542
        }
9543
        iprot.readFieldEnd();
9544
      }
9545
      iprot.readStructEnd();
9546
      validate();
9547
    }
9548
 
9549
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9550
      oprot.writeStructBegin(STRUCT_DESC);
9551
 
9552
      if (this.isSetSuccess()) {
9553
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9554
        this.success.write(oprot);
9555
        oprot.writeFieldEnd();
9556
      } else if (this.isSetCex()) {
9557
        oprot.writeFieldBegin(CEX_FIELD_DESC);
9558
        this.cex.write(oprot);
9559
        oprot.writeFieldEnd();
9560
      }
9561
      oprot.writeFieldStop();
9562
      oprot.writeStructEnd();
9563
    }
9564
 
9565
    @Override
9566
    public String toString() {
9567
      StringBuilder sb = new StringBuilder("getItemInventoryByItemId_result(");
9568
      boolean first = true;
9569
 
9570
      sb.append("success:");
9571
      if (this.success == null) {
9572
        sb.append("null");
9573
      } else {
9574
        sb.append(this.success);
9575
      }
9576
      first = false;
9577
      if (!first) sb.append(", ");
9578
      sb.append("cex:");
9579
      if (this.cex == null) {
9580
        sb.append("null");
9581
      } else {
9582
        sb.append(this.cex);
9583
      }
9584
      first = false;
9585
      sb.append(")");
9586
      return sb.toString();
9587
    }
9588
 
9589
    public void validate() throws org.apache.thrift.TException {
9590
      // check for required fields
9591
    }
9592
 
9593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9594
      try {
9595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9596
      } catch (org.apache.thrift.TException te) {
9597
        throw new java.io.IOException(te);
9598
      }
9599
    }
9600
 
9601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9602
      try {
9603
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9604
      } catch (org.apache.thrift.TException te) {
9605
        throw new java.io.IOException(te);
9606
      }
9607
    }
9608
 
9609
  }
9610
 
9611
  public static class getItemAvailibilityAtWarehouse_args implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_args, getItemAvailibilityAtWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
9612
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_args");
9613
 
9614
    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);
9615
    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);
9616
 
9617
    private long warehouse_id; // required
9618
    private long item_id; // required
9619
 
9620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9622
      WAREHOUSE_ID((short)1, "warehouse_id"),
9623
      ITEM_ID((short)2, "item_id");
9624
 
9625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9626
 
9627
      static {
9628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9629
          byName.put(field.getFieldName(), field);
9630
        }
9631
      }
9632
 
9633
      /**
9634
       * Find the _Fields constant that matches fieldId, or null if its not found.
9635
       */
9636
      public static _Fields findByThriftId(int fieldId) {
9637
        switch(fieldId) {
9638
          case 1: // WAREHOUSE_ID
9639
            return WAREHOUSE_ID;
9640
          case 2: // ITEM_ID
9641
            return ITEM_ID;
9642
          default:
9643
            return null;
9644
        }
9645
      }
9646
 
9647
      /**
9648
       * Find the _Fields constant that matches fieldId, throwing an exception
9649
       * if it is not found.
9650
       */
9651
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9652
        _Fields fields = findByThriftId(fieldId);
9653
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9654
        return fields;
9655
      }
9656
 
9657
      /**
9658
       * Find the _Fields constant that matches name, or null if its not found.
9659
       */
9660
      public static _Fields findByName(String name) {
9661
        return byName.get(name);
9662
      }
9663
 
9664
      private final short _thriftId;
9665
      private final String _fieldName;
9666
 
9667
      _Fields(short thriftId, String fieldName) {
9668
        _thriftId = thriftId;
9669
        _fieldName = fieldName;
9670
      }
9671
 
9672
      public short getThriftFieldId() {
9673
        return _thriftId;
9674
      }
9675
 
9676
      public String getFieldName() {
9677
        return _fieldName;
9678
      }
9679
    }
9680
 
9681
    // isset id assignments
9682
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
9683
    private static final int __ITEM_ID_ISSET_ID = 1;
9684
    private BitSet __isset_bit_vector = new BitSet(2);
9685
 
9686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9687
    static {
9688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9689
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9691
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_args.class, metaDataMap);
9695
    }
9696
 
9697
    public getItemAvailibilityAtWarehouse_args() {
9698
    }
9699
 
9700
    public getItemAvailibilityAtWarehouse_args(
9701
      long warehouse_id,
9702
      long item_id)
9703
    {
9704
      this();
9705
      this.warehouse_id = warehouse_id;
9706
      setWarehouse_idIsSet(true);
9707
      this.item_id = item_id;
9708
      setItem_idIsSet(true);
9709
    }
9710
 
9711
    /**
9712
     * Performs a deep copy on <i>other</i>.
9713
     */
9714
    public getItemAvailibilityAtWarehouse_args(getItemAvailibilityAtWarehouse_args other) {
9715
      __isset_bit_vector.clear();
9716
      __isset_bit_vector.or(other.__isset_bit_vector);
9717
      this.warehouse_id = other.warehouse_id;
9718
      this.item_id = other.item_id;
9719
    }
9720
 
9721
    public getItemAvailibilityAtWarehouse_args deepCopy() {
9722
      return new getItemAvailibilityAtWarehouse_args(this);
9723
    }
9724
 
9725
    @Override
9726
    public void clear() {
9727
      setWarehouse_idIsSet(false);
9728
      this.warehouse_id = 0;
9729
      setItem_idIsSet(false);
9730
      this.item_id = 0;
9731
    }
9732
 
9733
    public long getWarehouse_id() {
9734
      return this.warehouse_id;
9735
    }
9736
 
9737
    public void setWarehouse_id(long warehouse_id) {
9738
      this.warehouse_id = warehouse_id;
9739
      setWarehouse_idIsSet(true);
9740
    }
9741
 
9742
    public void unsetWarehouse_id() {
9743
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
9744
    }
9745
 
9746
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
9747
    public boolean isSetWarehouse_id() {
9748
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
9749
    }
9750
 
9751
    public void setWarehouse_idIsSet(boolean value) {
9752
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
9753
    }
9754
 
9755
    public long getItem_id() {
9756
      return this.item_id;
9757
    }
9758
 
9759
    public void setItem_id(long item_id) {
9760
      this.item_id = item_id;
9761
      setItem_idIsSet(true);
9762
    }
9763
 
9764
    public void unsetItem_id() {
9765
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
9766
    }
9767
 
9768
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
9769
    public boolean isSetItem_id() {
9770
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
9771
    }
9772
 
9773
    public void setItem_idIsSet(boolean value) {
9774
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
9775
    }
9776
 
9777
    public void setFieldValue(_Fields field, Object value) {
9778
      switch (field) {
9779
      case WAREHOUSE_ID:
9780
        if (value == null) {
9781
          unsetWarehouse_id();
9782
        } else {
9783
          setWarehouse_id((Long)value);
9784
        }
9785
        break;
9786
 
9787
      case ITEM_ID:
9788
        if (value == null) {
9789
          unsetItem_id();
9790
        } else {
9791
          setItem_id((Long)value);
9792
        }
9793
        break;
9794
 
9795
      }
9796
    }
9797
 
9798
    public Object getFieldValue(_Fields field) {
9799
      switch (field) {
9800
      case WAREHOUSE_ID:
9801
        return Long.valueOf(getWarehouse_id());
9802
 
9803
      case ITEM_ID:
9804
        return Long.valueOf(getItem_id());
9805
 
9806
      }
9807
      throw new IllegalStateException();
9808
    }
9809
 
9810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9811
    public boolean isSet(_Fields field) {
9812
      if (field == null) {
9813
        throw new IllegalArgumentException();
9814
      }
9815
 
9816
      switch (field) {
9817
      case WAREHOUSE_ID:
9818
        return isSetWarehouse_id();
9819
      case ITEM_ID:
9820
        return isSetItem_id();
9821
      }
9822
      throw new IllegalStateException();
9823
    }
9824
 
9825
    @Override
9826
    public boolean equals(Object that) {
9827
      if (that == null)
9828
        return false;
9829
      if (that instanceof getItemAvailibilityAtWarehouse_args)
9830
        return this.equals((getItemAvailibilityAtWarehouse_args)that);
9831
      return false;
9832
    }
9833
 
9834
    public boolean equals(getItemAvailibilityAtWarehouse_args that) {
9835
      if (that == null)
9836
        return false;
9837
 
9838
      boolean this_present_warehouse_id = true;
9839
      boolean that_present_warehouse_id = true;
9840
      if (this_present_warehouse_id || that_present_warehouse_id) {
9841
        if (!(this_present_warehouse_id && that_present_warehouse_id))
9842
          return false;
9843
        if (this.warehouse_id != that.warehouse_id)
9844
          return false;
9845
      }
9846
 
9847
      boolean this_present_item_id = true;
9848
      boolean that_present_item_id = true;
9849
      if (this_present_item_id || that_present_item_id) {
9850
        if (!(this_present_item_id && that_present_item_id))
9851
          return false;
9852
        if (this.item_id != that.item_id)
9853
          return false;
9854
      }
9855
 
9856
      return true;
9857
    }
9858
 
9859
    @Override
9860
    public int hashCode() {
9861
      return 0;
9862
    }
9863
 
9864
    public int compareTo(getItemAvailibilityAtWarehouse_args other) {
9865
      if (!getClass().equals(other.getClass())) {
9866
        return getClass().getName().compareTo(other.getClass().getName());
9867
      }
9868
 
9869
      int lastComparison = 0;
9870
      getItemAvailibilityAtWarehouse_args typedOther = (getItemAvailibilityAtWarehouse_args)other;
9871
 
9872
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
9873
      if (lastComparison != 0) {
9874
        return lastComparison;
9875
      }
9876
      if (isSetWarehouse_id()) {
9877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
9878
        if (lastComparison != 0) {
9879
          return lastComparison;
9880
        }
9881
      }
9882
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
9883
      if (lastComparison != 0) {
9884
        return lastComparison;
9885
      }
9886
      if (isSetItem_id()) {
9887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
9888
        if (lastComparison != 0) {
9889
          return lastComparison;
9890
        }
9891
      }
9892
      return 0;
9893
    }
9894
 
9895
    public _Fields fieldForId(int fieldId) {
9896
      return _Fields.findByThriftId(fieldId);
9897
    }
9898
 
9899
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9900
      org.apache.thrift.protocol.TField field;
9901
      iprot.readStructBegin();
9902
      while (true)
9903
      {
9904
        field = iprot.readFieldBegin();
9905
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9906
          break;
9907
        }
9908
        switch (field.id) {
9909
          case 1: // WAREHOUSE_ID
9910
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9911
              this.warehouse_id = iprot.readI64();
9912
              setWarehouse_idIsSet(true);
9913
            } else { 
9914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9915
            }
9916
            break;
9917
          case 2: // ITEM_ID
9918
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9919
              this.item_id = iprot.readI64();
9920
              setItem_idIsSet(true);
9921
            } else { 
9922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9923
            }
9924
            break;
9925
          default:
9926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9927
        }
9928
        iprot.readFieldEnd();
9929
      }
9930
      iprot.readStructEnd();
9931
      validate();
9932
    }
9933
 
9934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9935
      validate();
9936
 
9937
      oprot.writeStructBegin(STRUCT_DESC);
9938
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9939
      oprot.writeI64(this.warehouse_id);
9940
      oprot.writeFieldEnd();
9941
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9942
      oprot.writeI64(this.item_id);
9943
      oprot.writeFieldEnd();
9944
      oprot.writeFieldStop();
9945
      oprot.writeStructEnd();
9946
    }
9947
 
9948
    @Override
9949
    public String toString() {
9950
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_args(");
9951
      boolean first = true;
9952
 
9953
      sb.append("warehouse_id:");
9954
      sb.append(this.warehouse_id);
9955
      first = false;
9956
      if (!first) sb.append(", ");
9957
      sb.append("item_id:");
9958
      sb.append(this.item_id);
9959
      first = false;
9960
      sb.append(")");
9961
      return sb.toString();
9962
    }
9963
 
9964
    public void validate() throws org.apache.thrift.TException {
9965
      // check for required fields
9966
    }
9967
 
9968
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9969
      try {
9970
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9971
      } catch (org.apache.thrift.TException te) {
9972
        throw new java.io.IOException(te);
9973
      }
9974
    }
9975
 
9976
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9977
      try {
9978
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9979
        __isset_bit_vector = new BitSet(1);
9980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9981
      } catch (org.apache.thrift.TException te) {
9982
        throw new java.io.IOException(te);
9983
      }
9984
    }
9985
 
9986
  }
9987
 
9988
  public static class getItemAvailibilityAtWarehouse_result implements org.apache.thrift.TBase<getItemAvailibilityAtWarehouse_result, getItemAvailibilityAtWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
9989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailibilityAtWarehouse_result");
9990
 
9991
    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);
9992
    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);
9993
 
9994
    private long success; // required
9995
    private InventoryServiceException cex; // required
9996
 
9997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9999
      SUCCESS((short)0, "success"),
10000
      CEX((short)1, "cex");
10001
 
10002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10003
 
10004
      static {
10005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10006
          byName.put(field.getFieldName(), field);
10007
        }
10008
      }
10009
 
10010
      /**
10011
       * Find the _Fields constant that matches fieldId, or null if its not found.
10012
       */
10013
      public static _Fields findByThriftId(int fieldId) {
10014
        switch(fieldId) {
10015
          case 0: // SUCCESS
10016
            return SUCCESS;
10017
          case 1: // CEX
10018
            return CEX;
10019
          default:
10020
            return null;
10021
        }
10022
      }
10023
 
10024
      /**
10025
       * Find the _Fields constant that matches fieldId, throwing an exception
10026
       * if it is not found.
10027
       */
10028
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10029
        _Fields fields = findByThriftId(fieldId);
10030
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10031
        return fields;
10032
      }
10033
 
10034
      /**
10035
       * Find the _Fields constant that matches name, or null if its not found.
10036
       */
10037
      public static _Fields findByName(String name) {
10038
        return byName.get(name);
10039
      }
10040
 
10041
      private final short _thriftId;
10042
      private final String _fieldName;
10043
 
10044
      _Fields(short thriftId, String fieldName) {
10045
        _thriftId = thriftId;
10046
        _fieldName = fieldName;
10047
      }
10048
 
10049
      public short getThriftFieldId() {
10050
        return _thriftId;
10051
      }
10052
 
10053
      public String getFieldName() {
10054
        return _fieldName;
10055
      }
10056
    }
10057
 
10058
    // isset id assignments
10059
    private static final int __SUCCESS_ISSET_ID = 0;
10060
    private BitSet __isset_bit_vector = new BitSet(1);
10061
 
10062
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10063
    static {
10064
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10065
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10067
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10068
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10069
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10070
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailibilityAtWarehouse_result.class, metaDataMap);
10071
    }
10072
 
10073
    public getItemAvailibilityAtWarehouse_result() {
10074
    }
10075
 
10076
    public getItemAvailibilityAtWarehouse_result(
10077
      long success,
10078
      InventoryServiceException cex)
10079
    {
10080
      this();
10081
      this.success = success;
10082
      setSuccessIsSet(true);
10083
      this.cex = cex;
10084
    }
10085
 
10086
    /**
10087
     * Performs a deep copy on <i>other</i>.
10088
     */
10089
    public getItemAvailibilityAtWarehouse_result(getItemAvailibilityAtWarehouse_result other) {
10090
      __isset_bit_vector.clear();
10091
      __isset_bit_vector.or(other.__isset_bit_vector);
10092
      this.success = other.success;
10093
      if (other.isSetCex()) {
10094
        this.cex = new InventoryServiceException(other.cex);
10095
      }
10096
    }
10097
 
10098
    public getItemAvailibilityAtWarehouse_result deepCopy() {
10099
      return new getItemAvailibilityAtWarehouse_result(this);
10100
    }
10101
 
10102
    @Override
10103
    public void clear() {
10104
      setSuccessIsSet(false);
10105
      this.success = 0;
10106
      this.cex = null;
10107
    }
10108
 
10109
    public long getSuccess() {
10110
      return this.success;
10111
    }
10112
 
10113
    public void setSuccess(long success) {
10114
      this.success = success;
10115
      setSuccessIsSet(true);
10116
    }
10117
 
10118
    public void unsetSuccess() {
10119
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10120
    }
10121
 
10122
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10123
    public boolean isSetSuccess() {
10124
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10125
    }
10126
 
10127
    public void setSuccessIsSet(boolean value) {
10128
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10129
    }
10130
 
10131
    public InventoryServiceException getCex() {
10132
      return this.cex;
10133
    }
10134
 
10135
    public void setCex(InventoryServiceException cex) {
10136
      this.cex = cex;
10137
    }
10138
 
10139
    public void unsetCex() {
10140
      this.cex = null;
10141
    }
10142
 
10143
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
10144
    public boolean isSetCex() {
10145
      return this.cex != null;
10146
    }
10147
 
10148
    public void setCexIsSet(boolean value) {
10149
      if (!value) {
10150
        this.cex = null;
10151
      }
10152
    }
10153
 
10154
    public void setFieldValue(_Fields field, Object value) {
10155
      switch (field) {
10156
      case SUCCESS:
10157
        if (value == null) {
10158
          unsetSuccess();
10159
        } else {
10160
          setSuccess((Long)value);
10161
        }
10162
        break;
10163
 
10164
      case CEX:
10165
        if (value == null) {
10166
          unsetCex();
10167
        } else {
10168
          setCex((InventoryServiceException)value);
10169
        }
10170
        break;
10171
 
10172
      }
10173
    }
10174
 
10175
    public Object getFieldValue(_Fields field) {
10176
      switch (field) {
10177
      case SUCCESS:
10178
        return Long.valueOf(getSuccess());
10179
 
10180
      case CEX:
10181
        return getCex();
10182
 
10183
      }
10184
      throw new IllegalStateException();
10185
    }
10186
 
10187
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10188
    public boolean isSet(_Fields field) {
10189
      if (field == null) {
10190
        throw new IllegalArgumentException();
10191
      }
10192
 
10193
      switch (field) {
10194
      case SUCCESS:
10195
        return isSetSuccess();
10196
      case CEX:
10197
        return isSetCex();
10198
      }
10199
      throw new IllegalStateException();
10200
    }
10201
 
10202
    @Override
10203
    public boolean equals(Object that) {
10204
      if (that == null)
10205
        return false;
10206
      if (that instanceof getItemAvailibilityAtWarehouse_result)
10207
        return this.equals((getItemAvailibilityAtWarehouse_result)that);
10208
      return false;
10209
    }
10210
 
10211
    public boolean equals(getItemAvailibilityAtWarehouse_result that) {
10212
      if (that == null)
10213
        return false;
10214
 
10215
      boolean this_present_success = true;
10216
      boolean that_present_success = true;
10217
      if (this_present_success || that_present_success) {
10218
        if (!(this_present_success && that_present_success))
10219
          return false;
10220
        if (this.success != that.success)
10221
          return false;
10222
      }
10223
 
10224
      boolean this_present_cex = true && this.isSetCex();
10225
      boolean that_present_cex = true && that.isSetCex();
10226
      if (this_present_cex || that_present_cex) {
10227
        if (!(this_present_cex && that_present_cex))
10228
          return false;
10229
        if (!this.cex.equals(that.cex))
10230
          return false;
10231
      }
10232
 
10233
      return true;
10234
    }
10235
 
10236
    @Override
10237
    public int hashCode() {
10238
      return 0;
10239
    }
10240
 
10241
    public int compareTo(getItemAvailibilityAtWarehouse_result other) {
10242
      if (!getClass().equals(other.getClass())) {
10243
        return getClass().getName().compareTo(other.getClass().getName());
10244
      }
10245
 
10246
      int lastComparison = 0;
10247
      getItemAvailibilityAtWarehouse_result typedOther = (getItemAvailibilityAtWarehouse_result)other;
10248
 
10249
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10250
      if (lastComparison != 0) {
10251
        return lastComparison;
10252
      }
10253
      if (isSetSuccess()) {
10254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10255
        if (lastComparison != 0) {
10256
          return lastComparison;
10257
        }
10258
      }
10259
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
10260
      if (lastComparison != 0) {
10261
        return lastComparison;
10262
      }
10263
      if (isSetCex()) {
10264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
10265
        if (lastComparison != 0) {
10266
          return lastComparison;
10267
        }
10268
      }
10269
      return 0;
10270
    }
10271
 
10272
    public _Fields fieldForId(int fieldId) {
10273
      return _Fields.findByThriftId(fieldId);
10274
    }
10275
 
10276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10277
      org.apache.thrift.protocol.TField field;
10278
      iprot.readStructBegin();
10279
      while (true)
10280
      {
10281
        field = iprot.readFieldBegin();
10282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10283
          break;
10284
        }
10285
        switch (field.id) {
10286
          case 0: // SUCCESS
10287
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10288
              this.success = iprot.readI64();
10289
              setSuccessIsSet(true);
10290
            } else { 
10291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10292
            }
10293
            break;
10294
          case 1: // CEX
10295
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10296
              this.cex = new InventoryServiceException();
10297
              this.cex.read(iprot);
10298
            } else { 
10299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10300
            }
10301
            break;
10302
          default:
10303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10304
        }
10305
        iprot.readFieldEnd();
10306
      }
10307
      iprot.readStructEnd();
10308
      validate();
10309
    }
10310
 
10311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10312
      oprot.writeStructBegin(STRUCT_DESC);
10313
 
10314
      if (this.isSetSuccess()) {
10315
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10316
        oprot.writeI64(this.success);
10317
        oprot.writeFieldEnd();
10318
      } else if (this.isSetCex()) {
10319
        oprot.writeFieldBegin(CEX_FIELD_DESC);
10320
        this.cex.write(oprot);
10321
        oprot.writeFieldEnd();
10322
      }
10323
      oprot.writeFieldStop();
10324
      oprot.writeStructEnd();
10325
    }
10326
 
10327
    @Override
10328
    public String toString() {
10329
      StringBuilder sb = new StringBuilder("getItemAvailibilityAtWarehouse_result(");
10330
      boolean first = true;
10331
 
10332
      sb.append("success:");
10333
      sb.append(this.success);
10334
      first = false;
10335
      if (!first) sb.append(", ");
10336
      sb.append("cex:");
10337
      if (this.cex == null) {
10338
        sb.append("null");
10339
      } else {
10340
        sb.append(this.cex);
10341
      }
10342
      first = false;
10343
      sb.append(")");
10344
      return sb.toString();
10345
    }
10346
 
10347
    public void validate() throws org.apache.thrift.TException {
10348
      // check for required fields
10349
    }
10350
 
10351
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10352
      try {
10353
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10354
      } catch (org.apache.thrift.TException te) {
10355
        throw new java.io.IOException(te);
10356
      }
10357
    }
10358
 
10359
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10360
      try {
7322 vikram.rag 10361
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10362
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 10363
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10364
      } catch (org.apache.thrift.TException te) {
10365
        throw new java.io.IOException(te);
10366
      }
10367
    }
10368
 
10369
  }
10370
 
10371
  public static class getItemAvailabilityAtLocation_args implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_args, getItemAvailabilityAtLocation_args._Fields>, java.io.Serializable, Cloneable   {
10372
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_args");
10373
 
10374
    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 10375
    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 10376
 
10377
    private long itemId; // required
5978 rajveer 10378
    private long sourceId; // required
5945 mandeep.dh 10379
 
10380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5978 rajveer 10382
      ITEM_ID((short)1, "itemId"),
10383
      SOURCE_ID((short)2, "sourceId");
5945 mandeep.dh 10384
 
10385
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10386
 
10387
      static {
10388
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10389
          byName.put(field.getFieldName(), field);
10390
        }
10391
      }
10392
 
10393
      /**
10394
       * Find the _Fields constant that matches fieldId, or null if its not found.
10395
       */
10396
      public static _Fields findByThriftId(int fieldId) {
10397
        switch(fieldId) {
10398
          case 1: // ITEM_ID
10399
            return ITEM_ID;
5978 rajveer 10400
          case 2: // SOURCE_ID
10401
            return SOURCE_ID;
5945 mandeep.dh 10402
          default:
10403
            return null;
10404
        }
10405
      }
10406
 
10407
      /**
10408
       * Find the _Fields constant that matches fieldId, throwing an exception
10409
       * if it is not found.
10410
       */
10411
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10412
        _Fields fields = findByThriftId(fieldId);
10413
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10414
        return fields;
10415
      }
10416
 
10417
      /**
10418
       * Find the _Fields constant that matches name, or null if its not found.
10419
       */
10420
      public static _Fields findByName(String name) {
10421
        return byName.get(name);
10422
      }
10423
 
10424
      private final short _thriftId;
10425
      private final String _fieldName;
10426
 
10427
      _Fields(short thriftId, String fieldName) {
10428
        _thriftId = thriftId;
10429
        _fieldName = fieldName;
10430
      }
10431
 
10432
      public short getThriftFieldId() {
10433
        return _thriftId;
10434
      }
10435
 
10436
      public String getFieldName() {
10437
        return _fieldName;
10438
      }
10439
    }
10440
 
10441
    // isset id assignments
10442
    private static final int __ITEMID_ISSET_ID = 0;
5978 rajveer 10443
    private static final int __SOURCEID_ISSET_ID = 1;
10444
    private BitSet __isset_bit_vector = new BitSet(2);
5945 mandeep.dh 10445
 
10446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10447
    static {
10448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10449
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10450
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5978 rajveer 10451
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10452
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 10453
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10454
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_args.class, metaDataMap);
10455
    }
10456
 
10457
    public getItemAvailabilityAtLocation_args() {
10458
    }
10459
 
10460
    public getItemAvailabilityAtLocation_args(
5978 rajveer 10461
      long itemId,
10462
      long sourceId)
5945 mandeep.dh 10463
    {
10464
      this();
10465
      this.itemId = itemId;
10466
      setItemIdIsSet(true);
5978 rajveer 10467
      this.sourceId = sourceId;
10468
      setSourceIdIsSet(true);
5945 mandeep.dh 10469
    }
10470
 
10471
    /**
10472
     * Performs a deep copy on <i>other</i>.
10473
     */
10474
    public getItemAvailabilityAtLocation_args(getItemAvailabilityAtLocation_args other) {
10475
      __isset_bit_vector.clear();
10476
      __isset_bit_vector.or(other.__isset_bit_vector);
10477
      this.itemId = other.itemId;
5978 rajveer 10478
      this.sourceId = other.sourceId;
5945 mandeep.dh 10479
    }
10480
 
10481
    public getItemAvailabilityAtLocation_args deepCopy() {
10482
      return new getItemAvailabilityAtLocation_args(this);
10483
    }
10484
 
10485
    @Override
10486
    public void clear() {
10487
      setItemIdIsSet(false);
10488
      this.itemId = 0;
5978 rajveer 10489
      setSourceIdIsSet(false);
10490
      this.sourceId = 0;
5945 mandeep.dh 10491
    }
10492
 
10493
    public long getItemId() {
10494
      return this.itemId;
10495
    }
10496
 
10497
    public void setItemId(long itemId) {
10498
      this.itemId = itemId;
10499
      setItemIdIsSet(true);
10500
    }
10501
 
10502
    public void unsetItemId() {
10503
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
10504
    }
10505
 
10506
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
10507
    public boolean isSetItemId() {
10508
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
10509
    }
10510
 
10511
    public void setItemIdIsSet(boolean value) {
10512
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
10513
    }
10514
 
5978 rajveer 10515
    public long getSourceId() {
10516
      return this.sourceId;
10517
    }
10518
 
10519
    public void setSourceId(long sourceId) {
10520
      this.sourceId = sourceId;
10521
      setSourceIdIsSet(true);
10522
    }
10523
 
10524
    public void unsetSourceId() {
10525
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
10526
    }
10527
 
10528
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
10529
    public boolean isSetSourceId() {
10530
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
10531
    }
10532
 
10533
    public void setSourceIdIsSet(boolean value) {
10534
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
10535
    }
10536
 
5945 mandeep.dh 10537
    public void setFieldValue(_Fields field, Object value) {
10538
      switch (field) {
10539
      case ITEM_ID:
10540
        if (value == null) {
10541
          unsetItemId();
10542
        } else {
10543
          setItemId((Long)value);
10544
        }
10545
        break;
10546
 
5978 rajveer 10547
      case SOURCE_ID:
10548
        if (value == null) {
10549
          unsetSourceId();
10550
        } else {
10551
          setSourceId((Long)value);
10552
        }
10553
        break;
10554
 
5945 mandeep.dh 10555
      }
10556
    }
10557
 
10558
    public Object getFieldValue(_Fields field) {
10559
      switch (field) {
10560
      case ITEM_ID:
10561
        return Long.valueOf(getItemId());
10562
 
5978 rajveer 10563
      case SOURCE_ID:
10564
        return Long.valueOf(getSourceId());
10565
 
5945 mandeep.dh 10566
      }
10567
      throw new IllegalStateException();
10568
    }
10569
 
10570
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10571
    public boolean isSet(_Fields field) {
10572
      if (field == null) {
10573
        throw new IllegalArgumentException();
10574
      }
10575
 
10576
      switch (field) {
10577
      case ITEM_ID:
10578
        return isSetItemId();
5978 rajveer 10579
      case SOURCE_ID:
10580
        return isSetSourceId();
5945 mandeep.dh 10581
      }
10582
      throw new IllegalStateException();
10583
    }
10584
 
10585
    @Override
10586
    public boolean equals(Object that) {
10587
      if (that == null)
10588
        return false;
10589
      if (that instanceof getItemAvailabilityAtLocation_args)
10590
        return this.equals((getItemAvailabilityAtLocation_args)that);
10591
      return false;
10592
    }
10593
 
10594
    public boolean equals(getItemAvailabilityAtLocation_args that) {
10595
      if (that == null)
10596
        return false;
10597
 
10598
      boolean this_present_itemId = true;
10599
      boolean that_present_itemId = true;
10600
      if (this_present_itemId || that_present_itemId) {
10601
        if (!(this_present_itemId && that_present_itemId))
10602
          return false;
10603
        if (this.itemId != that.itemId)
10604
          return false;
10605
      }
10606
 
5978 rajveer 10607
      boolean this_present_sourceId = true;
10608
      boolean that_present_sourceId = true;
10609
      if (this_present_sourceId || that_present_sourceId) {
10610
        if (!(this_present_sourceId && that_present_sourceId))
10611
          return false;
10612
        if (this.sourceId != that.sourceId)
10613
          return false;
10614
      }
10615
 
5945 mandeep.dh 10616
      return true;
10617
    }
10618
 
10619
    @Override
10620
    public int hashCode() {
10621
      return 0;
10622
    }
10623
 
10624
    public int compareTo(getItemAvailabilityAtLocation_args other) {
10625
      if (!getClass().equals(other.getClass())) {
10626
        return getClass().getName().compareTo(other.getClass().getName());
10627
      }
10628
 
10629
      int lastComparison = 0;
10630
      getItemAvailabilityAtLocation_args typedOther = (getItemAvailabilityAtLocation_args)other;
10631
 
10632
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
10633
      if (lastComparison != 0) {
10634
        return lastComparison;
10635
      }
10636
      if (isSetItemId()) {
10637
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
10638
        if (lastComparison != 0) {
10639
          return lastComparison;
10640
        }
10641
      }
5978 rajveer 10642
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
10643
      if (lastComparison != 0) {
10644
        return lastComparison;
10645
      }
10646
      if (isSetSourceId()) {
10647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
10648
        if (lastComparison != 0) {
10649
          return lastComparison;
10650
        }
10651
      }
5945 mandeep.dh 10652
      return 0;
10653
    }
10654
 
10655
    public _Fields fieldForId(int fieldId) {
10656
      return _Fields.findByThriftId(fieldId);
10657
    }
10658
 
10659
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10660
      org.apache.thrift.protocol.TField field;
10661
      iprot.readStructBegin();
10662
      while (true)
10663
      {
10664
        field = iprot.readFieldBegin();
10665
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10666
          break;
10667
        }
10668
        switch (field.id) {
10669
          case 1: // ITEM_ID
10670
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10671
              this.itemId = iprot.readI64();
10672
              setItemIdIsSet(true);
10673
            } else { 
10674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10675
            }
10676
            break;
5978 rajveer 10677
          case 2: // SOURCE_ID
10678
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10679
              this.sourceId = iprot.readI64();
10680
              setSourceIdIsSet(true);
10681
            } else { 
10682
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10683
            }
10684
            break;
5945 mandeep.dh 10685
          default:
10686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10687
        }
10688
        iprot.readFieldEnd();
10689
      }
10690
      iprot.readStructEnd();
10691
      validate();
10692
    }
10693
 
10694
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10695
      validate();
10696
 
10697
      oprot.writeStructBegin(STRUCT_DESC);
10698
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
10699
      oprot.writeI64(this.itemId);
10700
      oprot.writeFieldEnd();
5978 rajveer 10701
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
10702
      oprot.writeI64(this.sourceId);
10703
      oprot.writeFieldEnd();
5945 mandeep.dh 10704
      oprot.writeFieldStop();
10705
      oprot.writeStructEnd();
10706
    }
10707
 
10708
    @Override
10709
    public String toString() {
10710
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_args(");
10711
      boolean first = true;
10712
 
10713
      sb.append("itemId:");
10714
      sb.append(this.itemId);
10715
      first = false;
5978 rajveer 10716
      if (!first) sb.append(", ");
10717
      sb.append("sourceId:");
10718
      sb.append(this.sourceId);
10719
      first = false;
5945 mandeep.dh 10720
      sb.append(")");
10721
      return sb.toString();
10722
    }
10723
 
10724
    public void validate() throws org.apache.thrift.TException {
10725
      // check for required fields
10726
    }
10727
 
10728
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10729
      try {
10730
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10731
      } catch (org.apache.thrift.TException te) {
10732
        throw new java.io.IOException(te);
10733
      }
10734
    }
10735
 
10736
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10737
      try {
10738
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10739
      } catch (org.apache.thrift.TException te) {
10740
        throw new java.io.IOException(te);
10741
      }
10742
    }
10743
 
10744
  }
10745
 
10746
  public static class getItemAvailabilityAtLocation_result implements org.apache.thrift.TBase<getItemAvailabilityAtLocation_result, getItemAvailabilityAtLocation_result._Fields>, java.io.Serializable, Cloneable   {
10747
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilityAtLocation_result");
10748
 
10749
    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);
10750
    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);
10751
 
10752
    private List<Long> success; // required
10753
    private InventoryServiceException isex; // required
10754
 
10755
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10756
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10757
      SUCCESS((short)0, "success"),
10758
      ISEX((short)1, "isex");
10759
 
10760
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10761
 
10762
      static {
10763
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10764
          byName.put(field.getFieldName(), field);
10765
        }
10766
      }
10767
 
10768
      /**
10769
       * Find the _Fields constant that matches fieldId, or null if its not found.
10770
       */
10771
      public static _Fields findByThriftId(int fieldId) {
10772
        switch(fieldId) {
10773
          case 0: // SUCCESS
10774
            return SUCCESS;
10775
          case 1: // ISEX
10776
            return ISEX;
10777
          default:
10778
            return null;
10779
        }
10780
      }
10781
 
10782
      /**
10783
       * Find the _Fields constant that matches fieldId, throwing an exception
10784
       * if it is not found.
10785
       */
10786
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10787
        _Fields fields = findByThriftId(fieldId);
10788
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10789
        return fields;
10790
      }
10791
 
10792
      /**
10793
       * Find the _Fields constant that matches name, or null if its not found.
10794
       */
10795
      public static _Fields findByName(String name) {
10796
        return byName.get(name);
10797
      }
10798
 
10799
      private final short _thriftId;
10800
      private final String _fieldName;
10801
 
10802
      _Fields(short thriftId, String fieldName) {
10803
        _thriftId = thriftId;
10804
        _fieldName = fieldName;
10805
      }
10806
 
10807
      public short getThriftFieldId() {
10808
        return _thriftId;
10809
      }
10810
 
10811
      public String getFieldName() {
10812
        return _fieldName;
10813
      }
10814
    }
10815
 
10816
    // isset id assignments
10817
 
10818
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10819
    static {
10820
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10821
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10822
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10823
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10824
      tmpMap.put(_Fields.ISEX, new org.apache.thrift.meta_data.FieldMetaData("isex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10825
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10826
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10827
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilityAtLocation_result.class, metaDataMap);
10828
    }
10829
 
10830
    public getItemAvailabilityAtLocation_result() {
10831
    }
10832
 
10833
    public getItemAvailabilityAtLocation_result(
10834
      List<Long> success,
10835
      InventoryServiceException isex)
10836
    {
10837
      this();
10838
      this.success = success;
10839
      this.isex = isex;
10840
    }
10841
 
10842
    /**
10843
     * Performs a deep copy on <i>other</i>.
10844
     */
10845
    public getItemAvailabilityAtLocation_result(getItemAvailabilityAtLocation_result other) {
10846
      if (other.isSetSuccess()) {
10847
        List<Long> __this__success = new ArrayList<Long>();
10848
        for (Long other_element : other.success) {
10849
          __this__success.add(other_element);
10850
        }
10851
        this.success = __this__success;
10852
      }
10853
      if (other.isSetIsex()) {
10854
        this.isex = new InventoryServiceException(other.isex);
10855
      }
10856
    }
10857
 
10858
    public getItemAvailabilityAtLocation_result deepCopy() {
10859
      return new getItemAvailabilityAtLocation_result(this);
10860
    }
10861
 
10862
    @Override
10863
    public void clear() {
10864
      this.success = null;
10865
      this.isex = null;
10866
    }
10867
 
10868
    public int getSuccessSize() {
10869
      return (this.success == null) ? 0 : this.success.size();
10870
    }
10871
 
10872
    public java.util.Iterator<Long> getSuccessIterator() {
10873
      return (this.success == null) ? null : this.success.iterator();
10874
    }
10875
 
10876
    public void addToSuccess(long elem) {
10877
      if (this.success == null) {
10878
        this.success = new ArrayList<Long>();
10879
      }
10880
      this.success.add(elem);
10881
    }
10882
 
10883
    public List<Long> getSuccess() {
10884
      return this.success;
10885
    }
10886
 
10887
    public void setSuccess(List<Long> success) {
10888
      this.success = success;
10889
    }
10890
 
10891
    public void unsetSuccess() {
10892
      this.success = null;
10893
    }
10894
 
10895
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10896
    public boolean isSetSuccess() {
10897
      return this.success != null;
10898
    }
10899
 
10900
    public void setSuccessIsSet(boolean value) {
10901
      if (!value) {
10902
        this.success = null;
10903
      }
10904
    }
10905
 
10906
    public InventoryServiceException getIsex() {
10907
      return this.isex;
10908
    }
10909
 
10910
    public void setIsex(InventoryServiceException isex) {
10911
      this.isex = isex;
10912
    }
10913
 
10914
    public void unsetIsex() {
10915
      this.isex = null;
10916
    }
10917
 
10918
    /** Returns true if field isex is set (has been assigned a value) and false otherwise */
10919
    public boolean isSetIsex() {
10920
      return this.isex != null;
10921
    }
10922
 
10923
    public void setIsexIsSet(boolean value) {
10924
      if (!value) {
10925
        this.isex = null;
10926
      }
10927
    }
10928
 
10929
    public void setFieldValue(_Fields field, Object value) {
10930
      switch (field) {
10931
      case SUCCESS:
10932
        if (value == null) {
10933
          unsetSuccess();
10934
        } else {
10935
          setSuccess((List<Long>)value);
10936
        }
10937
        break;
10938
 
10939
      case ISEX:
10940
        if (value == null) {
10941
          unsetIsex();
10942
        } else {
10943
          setIsex((InventoryServiceException)value);
10944
        }
10945
        break;
10946
 
10947
      }
10948
    }
10949
 
10950
    public Object getFieldValue(_Fields field) {
10951
      switch (field) {
10952
      case SUCCESS:
10953
        return getSuccess();
10954
 
10955
      case ISEX:
10956
        return getIsex();
10957
 
10958
      }
10959
      throw new IllegalStateException();
10960
    }
10961
 
10962
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10963
    public boolean isSet(_Fields field) {
10964
      if (field == null) {
10965
        throw new IllegalArgumentException();
10966
      }
10967
 
10968
      switch (field) {
10969
      case SUCCESS:
10970
        return isSetSuccess();
10971
      case ISEX:
10972
        return isSetIsex();
10973
      }
10974
      throw new IllegalStateException();
10975
    }
10976
 
10977
    @Override
10978
    public boolean equals(Object that) {
10979
      if (that == null)
10980
        return false;
10981
      if (that instanceof getItemAvailabilityAtLocation_result)
10982
        return this.equals((getItemAvailabilityAtLocation_result)that);
10983
      return false;
10984
    }
10985
 
10986
    public boolean equals(getItemAvailabilityAtLocation_result that) {
10987
      if (that == null)
10988
        return false;
10989
 
10990
      boolean this_present_success = true && this.isSetSuccess();
10991
      boolean that_present_success = true && that.isSetSuccess();
10992
      if (this_present_success || that_present_success) {
10993
        if (!(this_present_success && that_present_success))
10994
          return false;
10995
        if (!this.success.equals(that.success))
10996
          return false;
10997
      }
10998
 
10999
      boolean this_present_isex = true && this.isSetIsex();
11000
      boolean that_present_isex = true && that.isSetIsex();
11001
      if (this_present_isex || that_present_isex) {
11002
        if (!(this_present_isex && that_present_isex))
11003
          return false;
11004
        if (!this.isex.equals(that.isex))
11005
          return false;
11006
      }
11007
 
11008
      return true;
11009
    }
11010
 
11011
    @Override
11012
    public int hashCode() {
11013
      return 0;
11014
    }
11015
 
11016
    public int compareTo(getItemAvailabilityAtLocation_result other) {
11017
      if (!getClass().equals(other.getClass())) {
11018
        return getClass().getName().compareTo(other.getClass().getName());
11019
      }
11020
 
11021
      int lastComparison = 0;
11022
      getItemAvailabilityAtLocation_result typedOther = (getItemAvailabilityAtLocation_result)other;
11023
 
11024
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11025
      if (lastComparison != 0) {
11026
        return lastComparison;
11027
      }
11028
      if (isSetSuccess()) {
11029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11030
        if (lastComparison != 0) {
11031
          return lastComparison;
11032
        }
11033
      }
11034
      lastComparison = Boolean.valueOf(isSetIsex()).compareTo(typedOther.isSetIsex());
11035
      if (lastComparison != 0) {
11036
        return lastComparison;
11037
      }
11038
      if (isSetIsex()) {
11039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isex, typedOther.isex);
11040
        if (lastComparison != 0) {
11041
          return lastComparison;
11042
        }
11043
      }
11044
      return 0;
11045
    }
11046
 
11047
    public _Fields fieldForId(int fieldId) {
11048
      return _Fields.findByThriftId(fieldId);
11049
    }
11050
 
11051
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11052
      org.apache.thrift.protocol.TField field;
11053
      iprot.readStructBegin();
11054
      while (true)
11055
      {
11056
        field = iprot.readFieldBegin();
11057
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11058
          break;
11059
        }
11060
        switch (field.id) {
11061
          case 0: // SUCCESS
11062
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11063
              {
11064
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
11065
                this.success = new ArrayList<Long>(_list20.size);
11066
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
11067
                {
11068
                  long _elem22; // required
11069
                  _elem22 = iprot.readI64();
11070
                  this.success.add(_elem22);
11071
                }
11072
                iprot.readListEnd();
11073
              }
11074
            } else { 
11075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11076
            }
11077
            break;
11078
          case 1: // ISEX
11079
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11080
              this.isex = new InventoryServiceException();
11081
              this.isex.read(iprot);
11082
            } else { 
11083
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11084
            }
11085
            break;
11086
          default:
11087
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11088
        }
11089
        iprot.readFieldEnd();
11090
      }
11091
      iprot.readStructEnd();
11092
      validate();
11093
    }
11094
 
11095
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11096
      oprot.writeStructBegin(STRUCT_DESC);
11097
 
11098
      if (this.isSetSuccess()) {
11099
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11100
        {
11101
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
11102
          for (long _iter23 : this.success)
11103
          {
11104
            oprot.writeI64(_iter23);
11105
          }
11106
          oprot.writeListEnd();
11107
        }
11108
        oprot.writeFieldEnd();
11109
      } else if (this.isSetIsex()) {
11110
        oprot.writeFieldBegin(ISEX_FIELD_DESC);
11111
        this.isex.write(oprot);
11112
        oprot.writeFieldEnd();
11113
      }
11114
      oprot.writeFieldStop();
11115
      oprot.writeStructEnd();
11116
    }
11117
 
11118
    @Override
11119
    public String toString() {
11120
      StringBuilder sb = new StringBuilder("getItemAvailabilityAtLocation_result(");
11121
      boolean first = true;
11122
 
11123
      sb.append("success:");
11124
      if (this.success == null) {
11125
        sb.append("null");
11126
      } else {
11127
        sb.append(this.success);
11128
      }
11129
      first = false;
11130
      if (!first) sb.append(", ");
11131
      sb.append("isex:");
11132
      if (this.isex == null) {
11133
        sb.append("null");
11134
      } else {
11135
        sb.append(this.isex);
11136
      }
11137
      first = false;
11138
      sb.append(")");
11139
      return sb.toString();
11140
    }
11141
 
11142
    public void validate() throws org.apache.thrift.TException {
11143
      // check for required fields
11144
    }
11145
 
11146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11147
      try {
11148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11149
      } catch (org.apache.thrift.TException te) {
11150
        throw new java.io.IOException(te);
11151
      }
11152
    }
11153
 
11154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11155
      try {
11156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11157
      } catch (org.apache.thrift.TException te) {
11158
        throw new java.io.IOException(te);
11159
      }
11160
    }
11161
 
11162
  }
11163
 
11164
  public static class getAllWarehouses_args implements org.apache.thrift.TBase<getAllWarehouses_args, getAllWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
11165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_args");
11166
 
11167
    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);
11168
 
11169
    private boolean isActive; // required
11170
 
11171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11172
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11173
      IS_ACTIVE((short)1, "isActive");
11174
 
11175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11176
 
11177
      static {
11178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11179
          byName.put(field.getFieldName(), field);
11180
        }
11181
      }
11182
 
11183
      /**
11184
       * Find the _Fields constant that matches fieldId, or null if its not found.
11185
       */
11186
      public static _Fields findByThriftId(int fieldId) {
11187
        switch(fieldId) {
11188
          case 1: // IS_ACTIVE
11189
            return IS_ACTIVE;
11190
          default:
11191
            return null;
11192
        }
11193
      }
11194
 
11195
      /**
11196
       * Find the _Fields constant that matches fieldId, throwing an exception
11197
       * if it is not found.
11198
       */
11199
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11200
        _Fields fields = findByThriftId(fieldId);
11201
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11202
        return fields;
11203
      }
11204
 
11205
      /**
11206
       * Find the _Fields constant that matches name, or null if its not found.
11207
       */
11208
      public static _Fields findByName(String name) {
11209
        return byName.get(name);
11210
      }
11211
 
11212
      private final short _thriftId;
11213
      private final String _fieldName;
11214
 
11215
      _Fields(short thriftId, String fieldName) {
11216
        _thriftId = thriftId;
11217
        _fieldName = fieldName;
11218
      }
11219
 
11220
      public short getThriftFieldId() {
11221
        return _thriftId;
11222
      }
11223
 
11224
      public String getFieldName() {
11225
        return _fieldName;
11226
      }
11227
    }
11228
 
11229
    // isset id assignments
11230
    private static final int __ISACTIVE_ISSET_ID = 0;
11231
    private BitSet __isset_bit_vector = new BitSet(1);
11232
 
11233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11234
    static {
11235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11236
      tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_args.class, metaDataMap);
11240
    }
11241
 
11242
    public getAllWarehouses_args() {
11243
    }
11244
 
11245
    public getAllWarehouses_args(
11246
      boolean isActive)
11247
    {
11248
      this();
11249
      this.isActive = isActive;
11250
      setIsActiveIsSet(true);
11251
    }
11252
 
11253
    /**
11254
     * Performs a deep copy on <i>other</i>.
11255
     */
11256
    public getAllWarehouses_args(getAllWarehouses_args other) {
11257
      __isset_bit_vector.clear();
11258
      __isset_bit_vector.or(other.__isset_bit_vector);
11259
      this.isActive = other.isActive;
11260
    }
11261
 
11262
    public getAllWarehouses_args deepCopy() {
11263
      return new getAllWarehouses_args(this);
11264
    }
11265
 
11266
    @Override
11267
    public void clear() {
11268
      setIsActiveIsSet(false);
11269
      this.isActive = false;
11270
    }
11271
 
11272
    public boolean isIsActive() {
11273
      return this.isActive;
11274
    }
11275
 
11276
    public void setIsActive(boolean isActive) {
11277
      this.isActive = isActive;
11278
      setIsActiveIsSet(true);
11279
    }
11280
 
11281
    public void unsetIsActive() {
11282
      __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
11283
    }
11284
 
11285
    /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
11286
    public boolean isSetIsActive() {
11287
      return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
11288
    }
11289
 
11290
    public void setIsActiveIsSet(boolean value) {
11291
      __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
11292
    }
11293
 
11294
    public void setFieldValue(_Fields field, Object value) {
11295
      switch (field) {
11296
      case IS_ACTIVE:
11297
        if (value == null) {
11298
          unsetIsActive();
11299
        } else {
11300
          setIsActive((Boolean)value);
11301
        }
11302
        break;
11303
 
11304
      }
11305
    }
11306
 
11307
    public Object getFieldValue(_Fields field) {
11308
      switch (field) {
11309
      case IS_ACTIVE:
11310
        return Boolean.valueOf(isIsActive());
11311
 
11312
      }
11313
      throw new IllegalStateException();
11314
    }
11315
 
11316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11317
    public boolean isSet(_Fields field) {
11318
      if (field == null) {
11319
        throw new IllegalArgumentException();
11320
      }
11321
 
11322
      switch (field) {
11323
      case IS_ACTIVE:
11324
        return isSetIsActive();
11325
      }
11326
      throw new IllegalStateException();
11327
    }
11328
 
11329
    @Override
11330
    public boolean equals(Object that) {
11331
      if (that == null)
11332
        return false;
11333
      if (that instanceof getAllWarehouses_args)
11334
        return this.equals((getAllWarehouses_args)that);
11335
      return false;
11336
    }
11337
 
11338
    public boolean equals(getAllWarehouses_args that) {
11339
      if (that == null)
11340
        return false;
11341
 
11342
      boolean this_present_isActive = true;
11343
      boolean that_present_isActive = true;
11344
      if (this_present_isActive || that_present_isActive) {
11345
        if (!(this_present_isActive && that_present_isActive))
11346
          return false;
11347
        if (this.isActive != that.isActive)
11348
          return false;
11349
      }
11350
 
11351
      return true;
11352
    }
11353
 
11354
    @Override
11355
    public int hashCode() {
11356
      return 0;
11357
    }
11358
 
11359
    public int compareTo(getAllWarehouses_args other) {
11360
      if (!getClass().equals(other.getClass())) {
11361
        return getClass().getName().compareTo(other.getClass().getName());
11362
      }
11363
 
11364
      int lastComparison = 0;
11365
      getAllWarehouses_args typedOther = (getAllWarehouses_args)other;
11366
 
11367
      lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
11368
      if (lastComparison != 0) {
11369
        return lastComparison;
11370
      }
11371
      if (isSetIsActive()) {
11372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
11373
        if (lastComparison != 0) {
11374
          return lastComparison;
11375
        }
11376
      }
11377
      return 0;
11378
    }
11379
 
11380
    public _Fields fieldForId(int fieldId) {
11381
      return _Fields.findByThriftId(fieldId);
11382
    }
11383
 
11384
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11385
      org.apache.thrift.protocol.TField field;
11386
      iprot.readStructBegin();
11387
      while (true)
11388
      {
11389
        field = iprot.readFieldBegin();
11390
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11391
          break;
11392
        }
11393
        switch (field.id) {
11394
          case 1: // IS_ACTIVE
11395
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11396
              this.isActive = iprot.readBool();
11397
              setIsActiveIsSet(true);
11398
            } else { 
11399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11400
            }
11401
            break;
11402
          default:
11403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11404
        }
11405
        iprot.readFieldEnd();
11406
      }
11407
      iprot.readStructEnd();
11408
      validate();
11409
    }
11410
 
11411
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11412
      validate();
11413
 
11414
      oprot.writeStructBegin(STRUCT_DESC);
11415
      oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
11416
      oprot.writeBool(this.isActive);
11417
      oprot.writeFieldEnd();
11418
      oprot.writeFieldStop();
11419
      oprot.writeStructEnd();
11420
    }
11421
 
11422
    @Override
11423
    public String toString() {
11424
      StringBuilder sb = new StringBuilder("getAllWarehouses_args(");
11425
      boolean first = true;
11426
 
11427
      sb.append("isActive:");
11428
      sb.append(this.isActive);
11429
      first = false;
11430
      sb.append(")");
11431
      return sb.toString();
11432
    }
11433
 
11434
    public void validate() throws org.apache.thrift.TException {
11435
      // check for required fields
11436
    }
11437
 
11438
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11439
      try {
11440
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11441
      } catch (org.apache.thrift.TException te) {
11442
        throw new java.io.IOException(te);
11443
      }
11444
    }
11445
 
11446
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11447
      try {
11448
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11449
        __isset_bit_vector = new BitSet(1);
11450
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11451
      } catch (org.apache.thrift.TException te) {
11452
        throw new java.io.IOException(te);
11453
      }
11454
    }
11455
 
11456
  }
11457
 
11458
  public static class getAllWarehouses_result implements org.apache.thrift.TBase<getAllWarehouses_result, getAllWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
11459
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllWarehouses_result");
11460
 
11461
    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);
11462
    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);
11463
 
11464
    private List<Warehouse> success; // required
11465
    private InventoryServiceException cex; // required
11466
 
11467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11469
      SUCCESS((short)0, "success"),
11470
      CEX((short)1, "cex");
11471
 
11472
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11473
 
11474
      static {
11475
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11476
          byName.put(field.getFieldName(), field);
11477
        }
11478
      }
11479
 
11480
      /**
11481
       * Find the _Fields constant that matches fieldId, or null if its not found.
11482
       */
11483
      public static _Fields findByThriftId(int fieldId) {
11484
        switch(fieldId) {
11485
          case 0: // SUCCESS
11486
            return SUCCESS;
11487
          case 1: // CEX
11488
            return CEX;
11489
          default:
11490
            return null;
11491
        }
11492
      }
11493
 
11494
      /**
11495
       * Find the _Fields constant that matches fieldId, throwing an exception
11496
       * if it is not found.
11497
       */
11498
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11499
        _Fields fields = findByThriftId(fieldId);
11500
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11501
        return fields;
11502
      }
11503
 
11504
      /**
11505
       * Find the _Fields constant that matches name, or null if its not found.
11506
       */
11507
      public static _Fields findByName(String name) {
11508
        return byName.get(name);
11509
      }
11510
 
11511
      private final short _thriftId;
11512
      private final String _fieldName;
11513
 
11514
      _Fields(short thriftId, String fieldName) {
11515
        _thriftId = thriftId;
11516
        _fieldName = fieldName;
11517
      }
11518
 
11519
      public short getThriftFieldId() {
11520
        return _thriftId;
11521
      }
11522
 
11523
      public String getFieldName() {
11524
        return _fieldName;
11525
      }
11526
    }
11527
 
11528
    // isset id assignments
11529
 
11530
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11531
    static {
11532
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11533
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11534
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11535
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
11536
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11538
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11539
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllWarehouses_result.class, metaDataMap);
11540
    }
11541
 
11542
    public getAllWarehouses_result() {
11543
    }
11544
 
11545
    public getAllWarehouses_result(
11546
      List<Warehouse> success,
11547
      InventoryServiceException cex)
11548
    {
11549
      this();
11550
      this.success = success;
11551
      this.cex = cex;
11552
    }
11553
 
11554
    /**
11555
     * Performs a deep copy on <i>other</i>.
11556
     */
11557
    public getAllWarehouses_result(getAllWarehouses_result other) {
11558
      if (other.isSetSuccess()) {
11559
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
11560
        for (Warehouse other_element : other.success) {
11561
          __this__success.add(new Warehouse(other_element));
11562
        }
11563
        this.success = __this__success;
11564
      }
11565
      if (other.isSetCex()) {
11566
        this.cex = new InventoryServiceException(other.cex);
11567
      }
11568
    }
11569
 
11570
    public getAllWarehouses_result deepCopy() {
11571
      return new getAllWarehouses_result(this);
11572
    }
11573
 
11574
    @Override
11575
    public void clear() {
11576
      this.success = null;
11577
      this.cex = null;
11578
    }
11579
 
11580
    public int getSuccessSize() {
11581
      return (this.success == null) ? 0 : this.success.size();
11582
    }
11583
 
11584
    public java.util.Iterator<Warehouse> getSuccessIterator() {
11585
      return (this.success == null) ? null : this.success.iterator();
11586
    }
11587
 
11588
    public void addToSuccess(Warehouse elem) {
11589
      if (this.success == null) {
11590
        this.success = new ArrayList<Warehouse>();
11591
      }
11592
      this.success.add(elem);
11593
    }
11594
 
11595
    public List<Warehouse> getSuccess() {
11596
      return this.success;
11597
    }
11598
 
11599
    public void setSuccess(List<Warehouse> success) {
11600
      this.success = success;
11601
    }
11602
 
11603
    public void unsetSuccess() {
11604
      this.success = null;
11605
    }
11606
 
11607
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11608
    public boolean isSetSuccess() {
11609
      return this.success != null;
11610
    }
11611
 
11612
    public void setSuccessIsSet(boolean value) {
11613
      if (!value) {
11614
        this.success = null;
11615
      }
11616
    }
11617
 
11618
    public InventoryServiceException getCex() {
11619
      return this.cex;
11620
    }
11621
 
11622
    public void setCex(InventoryServiceException cex) {
11623
      this.cex = cex;
11624
    }
11625
 
11626
    public void unsetCex() {
11627
      this.cex = null;
11628
    }
11629
 
11630
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
11631
    public boolean isSetCex() {
11632
      return this.cex != null;
11633
    }
11634
 
11635
    public void setCexIsSet(boolean value) {
11636
      if (!value) {
11637
        this.cex = null;
11638
      }
11639
    }
11640
 
11641
    public void setFieldValue(_Fields field, Object value) {
11642
      switch (field) {
11643
      case SUCCESS:
11644
        if (value == null) {
11645
          unsetSuccess();
11646
        } else {
11647
          setSuccess((List<Warehouse>)value);
11648
        }
11649
        break;
11650
 
11651
      case CEX:
11652
        if (value == null) {
11653
          unsetCex();
11654
        } else {
11655
          setCex((InventoryServiceException)value);
11656
        }
11657
        break;
11658
 
11659
      }
11660
    }
11661
 
11662
    public Object getFieldValue(_Fields field) {
11663
      switch (field) {
11664
      case SUCCESS:
11665
        return getSuccess();
11666
 
11667
      case CEX:
11668
        return getCex();
11669
 
11670
      }
11671
      throw new IllegalStateException();
11672
    }
11673
 
11674
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11675
    public boolean isSet(_Fields field) {
11676
      if (field == null) {
11677
        throw new IllegalArgumentException();
11678
      }
11679
 
11680
      switch (field) {
11681
      case SUCCESS:
11682
        return isSetSuccess();
11683
      case CEX:
11684
        return isSetCex();
11685
      }
11686
      throw new IllegalStateException();
11687
    }
11688
 
11689
    @Override
11690
    public boolean equals(Object that) {
11691
      if (that == null)
11692
        return false;
11693
      if (that instanceof getAllWarehouses_result)
11694
        return this.equals((getAllWarehouses_result)that);
11695
      return false;
11696
    }
11697
 
11698
    public boolean equals(getAllWarehouses_result that) {
11699
      if (that == null)
11700
        return false;
11701
 
11702
      boolean this_present_success = true && this.isSetSuccess();
11703
      boolean that_present_success = true && that.isSetSuccess();
11704
      if (this_present_success || that_present_success) {
11705
        if (!(this_present_success && that_present_success))
11706
          return false;
11707
        if (!this.success.equals(that.success))
11708
          return false;
11709
      }
11710
 
11711
      boolean this_present_cex = true && this.isSetCex();
11712
      boolean that_present_cex = true && that.isSetCex();
11713
      if (this_present_cex || that_present_cex) {
11714
        if (!(this_present_cex && that_present_cex))
11715
          return false;
11716
        if (!this.cex.equals(that.cex))
11717
          return false;
11718
      }
11719
 
11720
      return true;
11721
    }
11722
 
11723
    @Override
11724
    public int hashCode() {
11725
      return 0;
11726
    }
11727
 
11728
    public int compareTo(getAllWarehouses_result other) {
11729
      if (!getClass().equals(other.getClass())) {
11730
        return getClass().getName().compareTo(other.getClass().getName());
11731
      }
11732
 
11733
      int lastComparison = 0;
11734
      getAllWarehouses_result typedOther = (getAllWarehouses_result)other;
11735
 
11736
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11737
      if (lastComparison != 0) {
11738
        return lastComparison;
11739
      }
11740
      if (isSetSuccess()) {
11741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11742
        if (lastComparison != 0) {
11743
          return lastComparison;
11744
        }
11745
      }
11746
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
11747
      if (lastComparison != 0) {
11748
        return lastComparison;
11749
      }
11750
      if (isSetCex()) {
11751
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
11752
        if (lastComparison != 0) {
11753
          return lastComparison;
11754
        }
11755
      }
11756
      return 0;
11757
    }
11758
 
11759
    public _Fields fieldForId(int fieldId) {
11760
      return _Fields.findByThriftId(fieldId);
11761
    }
11762
 
11763
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11764
      org.apache.thrift.protocol.TField field;
11765
      iprot.readStructBegin();
11766
      while (true)
11767
      {
11768
        field = iprot.readFieldBegin();
11769
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11770
          break;
11771
        }
11772
        switch (field.id) {
11773
          case 0: // SUCCESS
11774
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11775
              {
11776
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
11777
                this.success = new ArrayList<Warehouse>(_list24.size);
11778
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
11779
                {
11780
                  Warehouse _elem26; // required
11781
                  _elem26 = new Warehouse();
11782
                  _elem26.read(iprot);
11783
                  this.success.add(_elem26);
11784
                }
11785
                iprot.readListEnd();
11786
              }
11787
            } else { 
11788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11789
            }
11790
            break;
11791
          case 1: // CEX
11792
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11793
              this.cex = new InventoryServiceException();
11794
              this.cex.read(iprot);
11795
            } else { 
11796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11797
            }
11798
            break;
11799
          default:
11800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11801
        }
11802
        iprot.readFieldEnd();
11803
      }
11804
      iprot.readStructEnd();
11805
      validate();
11806
    }
11807
 
11808
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11809
      oprot.writeStructBegin(STRUCT_DESC);
11810
 
11811
      if (this.isSetSuccess()) {
11812
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11813
        {
11814
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11815
          for (Warehouse _iter27 : this.success)
11816
          {
11817
            _iter27.write(oprot);
11818
          }
11819
          oprot.writeListEnd();
11820
        }
11821
        oprot.writeFieldEnd();
11822
      } else if (this.isSetCex()) {
11823
        oprot.writeFieldBegin(CEX_FIELD_DESC);
11824
        this.cex.write(oprot);
11825
        oprot.writeFieldEnd();
11826
      }
11827
      oprot.writeFieldStop();
11828
      oprot.writeStructEnd();
11829
    }
11830
 
11831
    @Override
11832
    public String toString() {
11833
      StringBuilder sb = new StringBuilder("getAllWarehouses_result(");
11834
      boolean first = true;
11835
 
11836
      sb.append("success:");
11837
      if (this.success == null) {
11838
        sb.append("null");
11839
      } else {
11840
        sb.append(this.success);
11841
      }
11842
      first = false;
11843
      if (!first) sb.append(", ");
11844
      sb.append("cex:");
11845
      if (this.cex == null) {
11846
        sb.append("null");
11847
      } else {
11848
        sb.append(this.cex);
11849
      }
11850
      first = false;
11851
      sb.append(")");
11852
      return sb.toString();
11853
    }
11854
 
11855
    public void validate() throws org.apache.thrift.TException {
11856
      // check for required fields
11857
    }
11858
 
11859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11860
      try {
11861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11862
      } catch (org.apache.thrift.TException te) {
11863
        throw new java.io.IOException(te);
11864
      }
11865
    }
11866
 
11867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11868
      try {
11869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11870
      } catch (org.apache.thrift.TException te) {
11871
        throw new java.io.IOException(te);
11872
      }
11873
    }
11874
 
11875
  }
11876
 
11877
  public static class getWarehouse_args implements org.apache.thrift.TBase<getWarehouse_args, getWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
11878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_args");
11879
 
11880
    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);
11881
 
11882
    private long warehouse_id; // required
11883
 
11884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11886
      WAREHOUSE_ID((short)1, "warehouse_id");
11887
 
11888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11889
 
11890
      static {
11891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11892
          byName.put(field.getFieldName(), field);
11893
        }
11894
      }
11895
 
11896
      /**
11897
       * Find the _Fields constant that matches fieldId, or null if its not found.
11898
       */
11899
      public static _Fields findByThriftId(int fieldId) {
11900
        switch(fieldId) {
11901
          case 1: // WAREHOUSE_ID
11902
            return WAREHOUSE_ID;
11903
          default:
11904
            return null;
11905
        }
11906
      }
11907
 
11908
      /**
11909
       * Find the _Fields constant that matches fieldId, throwing an exception
11910
       * if it is not found.
11911
       */
11912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11913
        _Fields fields = findByThriftId(fieldId);
11914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11915
        return fields;
11916
      }
11917
 
11918
      /**
11919
       * Find the _Fields constant that matches name, or null if its not found.
11920
       */
11921
      public static _Fields findByName(String name) {
11922
        return byName.get(name);
11923
      }
11924
 
11925
      private final short _thriftId;
11926
      private final String _fieldName;
11927
 
11928
      _Fields(short thriftId, String fieldName) {
11929
        _thriftId = thriftId;
11930
        _fieldName = fieldName;
11931
      }
11932
 
11933
      public short getThriftFieldId() {
11934
        return _thriftId;
11935
      }
11936
 
11937
      public String getFieldName() {
11938
        return _fieldName;
11939
      }
11940
    }
11941
 
11942
    // isset id assignments
11943
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
11944
    private BitSet __isset_bit_vector = new BitSet(1);
11945
 
11946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11947
    static {
11948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11949
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_args.class, metaDataMap);
11953
    }
11954
 
11955
    public getWarehouse_args() {
11956
    }
11957
 
11958
    public getWarehouse_args(
11959
      long warehouse_id)
11960
    {
11961
      this();
11962
      this.warehouse_id = warehouse_id;
11963
      setWarehouse_idIsSet(true);
11964
    }
11965
 
11966
    /**
11967
     * Performs a deep copy on <i>other</i>.
11968
     */
11969
    public getWarehouse_args(getWarehouse_args other) {
11970
      __isset_bit_vector.clear();
11971
      __isset_bit_vector.or(other.__isset_bit_vector);
11972
      this.warehouse_id = other.warehouse_id;
11973
    }
11974
 
11975
    public getWarehouse_args deepCopy() {
11976
      return new getWarehouse_args(this);
11977
    }
11978
 
11979
    @Override
11980
    public void clear() {
11981
      setWarehouse_idIsSet(false);
11982
      this.warehouse_id = 0;
11983
    }
11984
 
11985
    public long getWarehouse_id() {
11986
      return this.warehouse_id;
11987
    }
11988
 
11989
    public void setWarehouse_id(long warehouse_id) {
11990
      this.warehouse_id = warehouse_id;
11991
      setWarehouse_idIsSet(true);
11992
    }
11993
 
11994
    public void unsetWarehouse_id() {
11995
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
11996
    }
11997
 
11998
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
11999
    public boolean isSetWarehouse_id() {
12000
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12001
    }
12002
 
12003
    public void setWarehouse_idIsSet(boolean value) {
12004
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12005
    }
12006
 
12007
    public void setFieldValue(_Fields field, Object value) {
12008
      switch (field) {
12009
      case WAREHOUSE_ID:
12010
        if (value == null) {
12011
          unsetWarehouse_id();
12012
        } else {
12013
          setWarehouse_id((Long)value);
12014
        }
12015
        break;
12016
 
12017
      }
12018
    }
12019
 
12020
    public Object getFieldValue(_Fields field) {
12021
      switch (field) {
12022
      case WAREHOUSE_ID:
12023
        return Long.valueOf(getWarehouse_id());
12024
 
12025
      }
12026
      throw new IllegalStateException();
12027
    }
12028
 
12029
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12030
    public boolean isSet(_Fields field) {
12031
      if (field == null) {
12032
        throw new IllegalArgumentException();
12033
      }
12034
 
12035
      switch (field) {
12036
      case WAREHOUSE_ID:
12037
        return isSetWarehouse_id();
12038
      }
12039
      throw new IllegalStateException();
12040
    }
12041
 
12042
    @Override
12043
    public boolean equals(Object that) {
12044
      if (that == null)
12045
        return false;
12046
      if (that instanceof getWarehouse_args)
12047
        return this.equals((getWarehouse_args)that);
12048
      return false;
12049
    }
12050
 
12051
    public boolean equals(getWarehouse_args that) {
12052
      if (that == null)
12053
        return false;
12054
 
12055
      boolean this_present_warehouse_id = true;
12056
      boolean that_present_warehouse_id = true;
12057
      if (this_present_warehouse_id || that_present_warehouse_id) {
12058
        if (!(this_present_warehouse_id && that_present_warehouse_id))
12059
          return false;
12060
        if (this.warehouse_id != that.warehouse_id)
12061
          return false;
12062
      }
12063
 
12064
      return true;
12065
    }
12066
 
12067
    @Override
12068
    public int hashCode() {
12069
      return 0;
12070
    }
12071
 
12072
    public int compareTo(getWarehouse_args other) {
12073
      if (!getClass().equals(other.getClass())) {
12074
        return getClass().getName().compareTo(other.getClass().getName());
12075
      }
12076
 
12077
      int lastComparison = 0;
12078
      getWarehouse_args typedOther = (getWarehouse_args)other;
12079
 
12080
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
12081
      if (lastComparison != 0) {
12082
        return lastComparison;
12083
      }
12084
      if (isSetWarehouse_id()) {
12085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
12086
        if (lastComparison != 0) {
12087
          return lastComparison;
12088
        }
12089
      }
12090
      return 0;
12091
    }
12092
 
12093
    public _Fields fieldForId(int fieldId) {
12094
      return _Fields.findByThriftId(fieldId);
12095
    }
12096
 
12097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12098
      org.apache.thrift.protocol.TField field;
12099
      iprot.readStructBegin();
12100
      while (true)
12101
      {
12102
        field = iprot.readFieldBegin();
12103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12104
          break;
12105
        }
12106
        switch (field.id) {
12107
          case 1: // WAREHOUSE_ID
12108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12109
              this.warehouse_id = iprot.readI64();
12110
              setWarehouse_idIsSet(true);
12111
            } else { 
12112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12113
            }
12114
            break;
12115
          default:
12116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12117
        }
12118
        iprot.readFieldEnd();
12119
      }
12120
      iprot.readStructEnd();
12121
      validate();
12122
    }
12123
 
12124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12125
      validate();
12126
 
12127
      oprot.writeStructBegin(STRUCT_DESC);
12128
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12129
      oprot.writeI64(this.warehouse_id);
12130
      oprot.writeFieldEnd();
12131
      oprot.writeFieldStop();
12132
      oprot.writeStructEnd();
12133
    }
12134
 
12135
    @Override
12136
    public String toString() {
12137
      StringBuilder sb = new StringBuilder("getWarehouse_args(");
12138
      boolean first = true;
12139
 
12140
      sb.append("warehouse_id:");
12141
      sb.append(this.warehouse_id);
12142
      first = false;
12143
      sb.append(")");
12144
      return sb.toString();
12145
    }
12146
 
12147
    public void validate() throws org.apache.thrift.TException {
12148
      // check for required fields
12149
    }
12150
 
12151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12152
      try {
12153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12154
      } catch (org.apache.thrift.TException te) {
12155
        throw new java.io.IOException(te);
12156
      }
12157
    }
12158
 
12159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12160
      try {
12161
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12162
        __isset_bit_vector = new BitSet(1);
12163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12164
      } catch (org.apache.thrift.TException te) {
12165
        throw new java.io.IOException(te);
12166
      }
12167
    }
12168
 
12169
  }
12170
 
12171
  public static class getWarehouse_result implements org.apache.thrift.TBase<getWarehouse_result, getWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
12172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouse_result");
12173
 
12174
    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);
12175
    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);
12176
 
12177
    private Warehouse success; // required
12178
    private InventoryServiceException cex; // required
12179
 
12180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12182
      SUCCESS((short)0, "success"),
12183
      CEX((short)1, "cex");
12184
 
12185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12186
 
12187
      static {
12188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12189
          byName.put(field.getFieldName(), field);
12190
        }
12191
      }
12192
 
12193
      /**
12194
       * Find the _Fields constant that matches fieldId, or null if its not found.
12195
       */
12196
      public static _Fields findByThriftId(int fieldId) {
12197
        switch(fieldId) {
12198
          case 0: // SUCCESS
12199
            return SUCCESS;
12200
          case 1: // CEX
12201
            return CEX;
12202
          default:
12203
            return null;
12204
        }
12205
      }
12206
 
12207
      /**
12208
       * Find the _Fields constant that matches fieldId, throwing an exception
12209
       * if it is not found.
12210
       */
12211
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12212
        _Fields fields = findByThriftId(fieldId);
12213
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12214
        return fields;
12215
      }
12216
 
12217
      /**
12218
       * Find the _Fields constant that matches name, or null if its not found.
12219
       */
12220
      public static _Fields findByName(String name) {
12221
        return byName.get(name);
12222
      }
12223
 
12224
      private final short _thriftId;
12225
      private final String _fieldName;
12226
 
12227
      _Fields(short thriftId, String fieldName) {
12228
        _thriftId = thriftId;
12229
        _fieldName = fieldName;
12230
      }
12231
 
12232
      public short getThriftFieldId() {
12233
        return _thriftId;
12234
      }
12235
 
12236
      public String getFieldName() {
12237
        return _fieldName;
12238
      }
12239
    }
12240
 
12241
    // isset id assignments
12242
 
12243
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12244
    static {
12245
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12246
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12247
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class)));
12248
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12250
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12251
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouse_result.class, metaDataMap);
12252
    }
12253
 
12254
    public getWarehouse_result() {
12255
    }
12256
 
12257
    public getWarehouse_result(
12258
      Warehouse success,
12259
      InventoryServiceException cex)
12260
    {
12261
      this();
12262
      this.success = success;
12263
      this.cex = cex;
12264
    }
12265
 
12266
    /**
12267
     * Performs a deep copy on <i>other</i>.
12268
     */
12269
    public getWarehouse_result(getWarehouse_result other) {
12270
      if (other.isSetSuccess()) {
12271
        this.success = new Warehouse(other.success);
12272
      }
12273
      if (other.isSetCex()) {
12274
        this.cex = new InventoryServiceException(other.cex);
12275
      }
12276
    }
12277
 
12278
    public getWarehouse_result deepCopy() {
12279
      return new getWarehouse_result(this);
12280
    }
12281
 
12282
    @Override
12283
    public void clear() {
12284
      this.success = null;
12285
      this.cex = null;
12286
    }
12287
 
12288
    public Warehouse getSuccess() {
12289
      return this.success;
12290
    }
12291
 
12292
    public void setSuccess(Warehouse success) {
12293
      this.success = success;
12294
    }
12295
 
12296
    public void unsetSuccess() {
12297
      this.success = null;
12298
    }
12299
 
12300
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12301
    public boolean isSetSuccess() {
12302
      return this.success != null;
12303
    }
12304
 
12305
    public void setSuccessIsSet(boolean value) {
12306
      if (!value) {
12307
        this.success = null;
12308
      }
12309
    }
12310
 
12311
    public InventoryServiceException getCex() {
12312
      return this.cex;
12313
    }
12314
 
12315
    public void setCex(InventoryServiceException cex) {
12316
      this.cex = cex;
12317
    }
12318
 
12319
    public void unsetCex() {
12320
      this.cex = null;
12321
    }
12322
 
12323
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
12324
    public boolean isSetCex() {
12325
      return this.cex != null;
12326
    }
12327
 
12328
    public void setCexIsSet(boolean value) {
12329
      if (!value) {
12330
        this.cex = null;
12331
      }
12332
    }
12333
 
12334
    public void setFieldValue(_Fields field, Object value) {
12335
      switch (field) {
12336
      case SUCCESS:
12337
        if (value == null) {
12338
          unsetSuccess();
12339
        } else {
12340
          setSuccess((Warehouse)value);
12341
        }
12342
        break;
12343
 
12344
      case CEX:
12345
        if (value == null) {
12346
          unsetCex();
12347
        } else {
12348
          setCex((InventoryServiceException)value);
12349
        }
12350
        break;
12351
 
12352
      }
12353
    }
12354
 
12355
    public Object getFieldValue(_Fields field) {
12356
      switch (field) {
12357
      case SUCCESS:
12358
        return getSuccess();
12359
 
12360
      case CEX:
12361
        return getCex();
12362
 
12363
      }
12364
      throw new IllegalStateException();
12365
    }
12366
 
12367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12368
    public boolean isSet(_Fields field) {
12369
      if (field == null) {
12370
        throw new IllegalArgumentException();
12371
      }
12372
 
12373
      switch (field) {
12374
      case SUCCESS:
12375
        return isSetSuccess();
12376
      case CEX:
12377
        return isSetCex();
12378
      }
12379
      throw new IllegalStateException();
12380
    }
12381
 
12382
    @Override
12383
    public boolean equals(Object that) {
12384
      if (that == null)
12385
        return false;
12386
      if (that instanceof getWarehouse_result)
12387
        return this.equals((getWarehouse_result)that);
12388
      return false;
12389
    }
12390
 
12391
    public boolean equals(getWarehouse_result that) {
12392
      if (that == null)
12393
        return false;
12394
 
12395
      boolean this_present_success = true && this.isSetSuccess();
12396
      boolean that_present_success = true && that.isSetSuccess();
12397
      if (this_present_success || that_present_success) {
12398
        if (!(this_present_success && that_present_success))
12399
          return false;
12400
        if (!this.success.equals(that.success))
12401
          return false;
12402
      }
12403
 
12404
      boolean this_present_cex = true && this.isSetCex();
12405
      boolean that_present_cex = true && that.isSetCex();
12406
      if (this_present_cex || that_present_cex) {
12407
        if (!(this_present_cex && that_present_cex))
12408
          return false;
12409
        if (!this.cex.equals(that.cex))
12410
          return false;
12411
      }
12412
 
12413
      return true;
12414
    }
12415
 
12416
    @Override
12417
    public int hashCode() {
12418
      return 0;
12419
    }
12420
 
12421
    public int compareTo(getWarehouse_result other) {
12422
      if (!getClass().equals(other.getClass())) {
12423
        return getClass().getName().compareTo(other.getClass().getName());
12424
      }
12425
 
12426
      int lastComparison = 0;
12427
      getWarehouse_result typedOther = (getWarehouse_result)other;
12428
 
12429
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12430
      if (lastComparison != 0) {
12431
        return lastComparison;
12432
      }
12433
      if (isSetSuccess()) {
12434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12435
        if (lastComparison != 0) {
12436
          return lastComparison;
12437
        }
12438
      }
12439
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
12440
      if (lastComparison != 0) {
12441
        return lastComparison;
12442
      }
12443
      if (isSetCex()) {
12444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
12445
        if (lastComparison != 0) {
12446
          return lastComparison;
12447
        }
12448
      }
12449
      return 0;
12450
    }
12451
 
12452
    public _Fields fieldForId(int fieldId) {
12453
      return _Fields.findByThriftId(fieldId);
12454
    }
12455
 
12456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12457
      org.apache.thrift.protocol.TField field;
12458
      iprot.readStructBegin();
12459
      while (true)
12460
      {
12461
        field = iprot.readFieldBegin();
12462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12463
          break;
12464
        }
12465
        switch (field.id) {
12466
          case 0: // SUCCESS
12467
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12468
              this.success = new Warehouse();
12469
              this.success.read(iprot);
12470
            } else { 
12471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12472
            }
12473
            break;
12474
          case 1: // CEX
12475
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12476
              this.cex = new InventoryServiceException();
12477
              this.cex.read(iprot);
12478
            } else { 
12479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12480
            }
12481
            break;
12482
          default:
12483
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12484
        }
12485
        iprot.readFieldEnd();
12486
      }
12487
      iprot.readStructEnd();
12488
      validate();
12489
    }
12490
 
12491
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12492
      oprot.writeStructBegin(STRUCT_DESC);
12493
 
12494
      if (this.isSetSuccess()) {
12495
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12496
        this.success.write(oprot);
12497
        oprot.writeFieldEnd();
12498
      } else if (this.isSetCex()) {
12499
        oprot.writeFieldBegin(CEX_FIELD_DESC);
12500
        this.cex.write(oprot);
12501
        oprot.writeFieldEnd();
12502
      }
12503
      oprot.writeFieldStop();
12504
      oprot.writeStructEnd();
12505
    }
12506
 
12507
    @Override
12508
    public String toString() {
12509
      StringBuilder sb = new StringBuilder("getWarehouse_result(");
12510
      boolean first = true;
12511
 
12512
      sb.append("success:");
12513
      if (this.success == null) {
12514
        sb.append("null");
12515
      } else {
12516
        sb.append(this.success);
12517
      }
12518
      first = false;
12519
      if (!first) sb.append(", ");
12520
      sb.append("cex:");
12521
      if (this.cex == null) {
12522
        sb.append("null");
12523
      } else {
12524
        sb.append(this.cex);
12525
      }
12526
      first = false;
12527
      sb.append(")");
12528
      return sb.toString();
12529
    }
12530
 
12531
    public void validate() throws org.apache.thrift.TException {
12532
      // check for required fields
12533
    }
12534
 
12535
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12536
      try {
12537
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12538
      } catch (org.apache.thrift.TException te) {
12539
        throw new java.io.IOException(te);
12540
      }
12541
    }
12542
 
12543
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12544
      try {
12545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12546
      } catch (org.apache.thrift.TException te) {
12547
        throw new java.io.IOException(te);
12548
      }
12549
    }
12550
 
12551
  }
12552
 
12553
  public static class getAllItemsForWarehouse_args implements org.apache.thrift.TBase<getAllItemsForWarehouse_args, getAllItemsForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
12554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_args");
12555
 
12556
    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);
12557
 
12558
    private long warehouse_id; // required
12559
 
12560
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12561
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12562
      WAREHOUSE_ID((short)1, "warehouse_id");
12563
 
12564
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12565
 
12566
      static {
12567
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12568
          byName.put(field.getFieldName(), field);
12569
        }
12570
      }
12571
 
12572
      /**
12573
       * Find the _Fields constant that matches fieldId, or null if its not found.
12574
       */
12575
      public static _Fields findByThriftId(int fieldId) {
12576
        switch(fieldId) {
12577
          case 1: // WAREHOUSE_ID
12578
            return WAREHOUSE_ID;
12579
          default:
12580
            return null;
12581
        }
12582
      }
12583
 
12584
      /**
12585
       * Find the _Fields constant that matches fieldId, throwing an exception
12586
       * if it is not found.
12587
       */
12588
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12589
        _Fields fields = findByThriftId(fieldId);
12590
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12591
        return fields;
12592
      }
12593
 
12594
      /**
12595
       * Find the _Fields constant that matches name, or null if its not found.
12596
       */
12597
      public static _Fields findByName(String name) {
12598
        return byName.get(name);
12599
      }
12600
 
12601
      private final short _thriftId;
12602
      private final String _fieldName;
12603
 
12604
      _Fields(short thriftId, String fieldName) {
12605
        _thriftId = thriftId;
12606
        _fieldName = fieldName;
12607
      }
12608
 
12609
      public short getThriftFieldId() {
12610
        return _thriftId;
12611
      }
12612
 
12613
      public String getFieldName() {
12614
        return _fieldName;
12615
      }
12616
    }
12617
 
12618
    // isset id assignments
12619
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
12620
    private BitSet __isset_bit_vector = new BitSet(1);
12621
 
12622
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12623
    static {
12624
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12625
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12626
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12627
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12628
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_args.class, metaDataMap);
12629
    }
12630
 
12631
    public getAllItemsForWarehouse_args() {
12632
    }
12633
 
12634
    public getAllItemsForWarehouse_args(
12635
      long warehouse_id)
12636
    {
12637
      this();
12638
      this.warehouse_id = warehouse_id;
12639
      setWarehouse_idIsSet(true);
12640
    }
12641
 
12642
    /**
12643
     * Performs a deep copy on <i>other</i>.
12644
     */
12645
    public getAllItemsForWarehouse_args(getAllItemsForWarehouse_args other) {
12646
      __isset_bit_vector.clear();
12647
      __isset_bit_vector.or(other.__isset_bit_vector);
12648
      this.warehouse_id = other.warehouse_id;
12649
    }
12650
 
12651
    public getAllItemsForWarehouse_args deepCopy() {
12652
      return new getAllItemsForWarehouse_args(this);
12653
    }
12654
 
12655
    @Override
12656
    public void clear() {
12657
      setWarehouse_idIsSet(false);
12658
      this.warehouse_id = 0;
12659
    }
12660
 
12661
    public long getWarehouse_id() {
12662
      return this.warehouse_id;
12663
    }
12664
 
12665
    public void setWarehouse_id(long warehouse_id) {
12666
      this.warehouse_id = warehouse_id;
12667
      setWarehouse_idIsSet(true);
12668
    }
12669
 
12670
    public void unsetWarehouse_id() {
12671
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
12672
    }
12673
 
12674
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
12675
    public boolean isSetWarehouse_id() {
12676
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
12677
    }
12678
 
12679
    public void setWarehouse_idIsSet(boolean value) {
12680
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
12681
    }
12682
 
12683
    public void setFieldValue(_Fields field, Object value) {
12684
      switch (field) {
12685
      case WAREHOUSE_ID:
12686
        if (value == null) {
12687
          unsetWarehouse_id();
12688
        } else {
12689
          setWarehouse_id((Long)value);
12690
        }
12691
        break;
12692
 
12693
      }
12694
    }
12695
 
12696
    public Object getFieldValue(_Fields field) {
12697
      switch (field) {
12698
      case WAREHOUSE_ID:
12699
        return Long.valueOf(getWarehouse_id());
12700
 
12701
      }
12702
      throw new IllegalStateException();
12703
    }
12704
 
12705
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12706
    public boolean isSet(_Fields field) {
12707
      if (field == null) {
12708
        throw new IllegalArgumentException();
12709
      }
12710
 
12711
      switch (field) {
12712
      case WAREHOUSE_ID:
12713
        return isSetWarehouse_id();
12714
      }
12715
      throw new IllegalStateException();
12716
    }
12717
 
12718
    @Override
12719
    public boolean equals(Object that) {
12720
      if (that == null)
12721
        return false;
12722
      if (that instanceof getAllItemsForWarehouse_args)
12723
        return this.equals((getAllItemsForWarehouse_args)that);
12724
      return false;
12725
    }
12726
 
12727
    public boolean equals(getAllItemsForWarehouse_args that) {
12728
      if (that == null)
12729
        return false;
12730
 
12731
      boolean this_present_warehouse_id = true;
12732
      boolean that_present_warehouse_id = true;
12733
      if (this_present_warehouse_id || that_present_warehouse_id) {
12734
        if (!(this_present_warehouse_id && that_present_warehouse_id))
12735
          return false;
12736
        if (this.warehouse_id != that.warehouse_id)
12737
          return false;
12738
      }
12739
 
12740
      return true;
12741
    }
12742
 
12743
    @Override
12744
    public int hashCode() {
12745
      return 0;
12746
    }
12747
 
12748
    public int compareTo(getAllItemsForWarehouse_args other) {
12749
      if (!getClass().equals(other.getClass())) {
12750
        return getClass().getName().compareTo(other.getClass().getName());
12751
      }
12752
 
12753
      int lastComparison = 0;
12754
      getAllItemsForWarehouse_args typedOther = (getAllItemsForWarehouse_args)other;
12755
 
12756
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
12757
      if (lastComparison != 0) {
12758
        return lastComparison;
12759
      }
12760
      if (isSetWarehouse_id()) {
12761
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
12762
        if (lastComparison != 0) {
12763
          return lastComparison;
12764
        }
12765
      }
12766
      return 0;
12767
    }
12768
 
12769
    public _Fields fieldForId(int fieldId) {
12770
      return _Fields.findByThriftId(fieldId);
12771
    }
12772
 
12773
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12774
      org.apache.thrift.protocol.TField field;
12775
      iprot.readStructBegin();
12776
      while (true)
12777
      {
12778
        field = iprot.readFieldBegin();
12779
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12780
          break;
12781
        }
12782
        switch (field.id) {
12783
          case 1: // WAREHOUSE_ID
12784
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12785
              this.warehouse_id = iprot.readI64();
12786
              setWarehouse_idIsSet(true);
12787
            } else { 
12788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12789
            }
12790
            break;
12791
          default:
12792
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12793
        }
12794
        iprot.readFieldEnd();
12795
      }
12796
      iprot.readStructEnd();
12797
      validate();
12798
    }
12799
 
12800
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12801
      validate();
12802
 
12803
      oprot.writeStructBegin(STRUCT_DESC);
12804
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
12805
      oprot.writeI64(this.warehouse_id);
12806
      oprot.writeFieldEnd();
12807
      oprot.writeFieldStop();
12808
      oprot.writeStructEnd();
12809
    }
12810
 
12811
    @Override
12812
    public String toString() {
12813
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_args(");
12814
      boolean first = true;
12815
 
12816
      sb.append("warehouse_id:");
12817
      sb.append(this.warehouse_id);
12818
      first = false;
12819
      sb.append(")");
12820
      return sb.toString();
12821
    }
12822
 
12823
    public void validate() throws org.apache.thrift.TException {
12824
      // check for required fields
12825
    }
12826
 
12827
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12828
      try {
12829
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12830
      } catch (org.apache.thrift.TException te) {
12831
        throw new java.io.IOException(te);
12832
      }
12833
    }
12834
 
12835
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12836
      try {
12837
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12838
        __isset_bit_vector = new BitSet(1);
12839
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12840
      } catch (org.apache.thrift.TException te) {
12841
        throw new java.io.IOException(te);
12842
      }
12843
    }
12844
 
12845
  }
12846
 
12847
  public static class getAllItemsForWarehouse_result implements org.apache.thrift.TBase<getAllItemsForWarehouse_result, getAllItemsForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
12848
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemsForWarehouse_result");
12849
 
12850
    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);
12851
    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);
12852
 
12853
    private List<Long> success; // required
12854
    private InventoryServiceException cex; // required
12855
 
12856
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12857
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12858
      SUCCESS((short)0, "success"),
12859
      CEX((short)1, "cex");
12860
 
12861
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12862
 
12863
      static {
12864
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12865
          byName.put(field.getFieldName(), field);
12866
        }
12867
      }
12868
 
12869
      /**
12870
       * Find the _Fields constant that matches fieldId, or null if its not found.
12871
       */
12872
      public static _Fields findByThriftId(int fieldId) {
12873
        switch(fieldId) {
12874
          case 0: // SUCCESS
12875
            return SUCCESS;
12876
          case 1: // CEX
12877
            return CEX;
12878
          default:
12879
            return null;
12880
        }
12881
      }
12882
 
12883
      /**
12884
       * Find the _Fields constant that matches fieldId, throwing an exception
12885
       * if it is not found.
12886
       */
12887
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12888
        _Fields fields = findByThriftId(fieldId);
12889
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12890
        return fields;
12891
      }
12892
 
12893
      /**
12894
       * Find the _Fields constant that matches name, or null if its not found.
12895
       */
12896
      public static _Fields findByName(String name) {
12897
        return byName.get(name);
12898
      }
12899
 
12900
      private final short _thriftId;
12901
      private final String _fieldName;
12902
 
12903
      _Fields(short thriftId, String fieldName) {
12904
        _thriftId = thriftId;
12905
        _fieldName = fieldName;
12906
      }
12907
 
12908
      public short getThriftFieldId() {
12909
        return _thriftId;
12910
      }
12911
 
12912
      public String getFieldName() {
12913
        return _fieldName;
12914
      }
12915
    }
12916
 
12917
    // isset id assignments
12918
 
12919
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12920
    static {
12921
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12922
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12923
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12924
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
12925
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12927
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12928
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemsForWarehouse_result.class, metaDataMap);
12929
    }
12930
 
12931
    public getAllItemsForWarehouse_result() {
12932
    }
12933
 
12934
    public getAllItemsForWarehouse_result(
12935
      List<Long> success,
12936
      InventoryServiceException cex)
12937
    {
12938
      this();
12939
      this.success = success;
12940
      this.cex = cex;
12941
    }
12942
 
12943
    /**
12944
     * Performs a deep copy on <i>other</i>.
12945
     */
12946
    public getAllItemsForWarehouse_result(getAllItemsForWarehouse_result other) {
12947
      if (other.isSetSuccess()) {
12948
        List<Long> __this__success = new ArrayList<Long>();
12949
        for (Long other_element : other.success) {
12950
          __this__success.add(other_element);
12951
        }
12952
        this.success = __this__success;
12953
      }
12954
      if (other.isSetCex()) {
12955
        this.cex = new InventoryServiceException(other.cex);
12956
      }
12957
    }
12958
 
12959
    public getAllItemsForWarehouse_result deepCopy() {
12960
      return new getAllItemsForWarehouse_result(this);
12961
    }
12962
 
12963
    @Override
12964
    public void clear() {
12965
      this.success = null;
12966
      this.cex = null;
12967
    }
12968
 
12969
    public int getSuccessSize() {
12970
      return (this.success == null) ? 0 : this.success.size();
12971
    }
12972
 
12973
    public java.util.Iterator<Long> getSuccessIterator() {
12974
      return (this.success == null) ? null : this.success.iterator();
12975
    }
12976
 
12977
    public void addToSuccess(long elem) {
12978
      if (this.success == null) {
12979
        this.success = new ArrayList<Long>();
12980
      }
12981
      this.success.add(elem);
12982
    }
12983
 
12984
    public List<Long> getSuccess() {
12985
      return this.success;
12986
    }
12987
 
12988
    public void setSuccess(List<Long> success) {
12989
      this.success = success;
12990
    }
12991
 
12992
    public void unsetSuccess() {
12993
      this.success = null;
12994
    }
12995
 
12996
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12997
    public boolean isSetSuccess() {
12998
      return this.success != null;
12999
    }
13000
 
13001
    public void setSuccessIsSet(boolean value) {
13002
      if (!value) {
13003
        this.success = null;
13004
      }
13005
    }
13006
 
13007
    public InventoryServiceException getCex() {
13008
      return this.cex;
13009
    }
13010
 
13011
    public void setCex(InventoryServiceException cex) {
13012
      this.cex = cex;
13013
    }
13014
 
13015
    public void unsetCex() {
13016
      this.cex = null;
13017
    }
13018
 
13019
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
13020
    public boolean isSetCex() {
13021
      return this.cex != null;
13022
    }
13023
 
13024
    public void setCexIsSet(boolean value) {
13025
      if (!value) {
13026
        this.cex = null;
13027
      }
13028
    }
13029
 
13030
    public void setFieldValue(_Fields field, Object value) {
13031
      switch (field) {
13032
      case SUCCESS:
13033
        if (value == null) {
13034
          unsetSuccess();
13035
        } else {
13036
          setSuccess((List<Long>)value);
13037
        }
13038
        break;
13039
 
13040
      case CEX:
13041
        if (value == null) {
13042
          unsetCex();
13043
        } else {
13044
          setCex((InventoryServiceException)value);
13045
        }
13046
        break;
13047
 
13048
      }
13049
    }
13050
 
13051
    public Object getFieldValue(_Fields field) {
13052
      switch (field) {
13053
      case SUCCESS:
13054
        return getSuccess();
13055
 
13056
      case CEX:
13057
        return getCex();
13058
 
13059
      }
13060
      throw new IllegalStateException();
13061
    }
13062
 
13063
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13064
    public boolean isSet(_Fields field) {
13065
      if (field == null) {
13066
        throw new IllegalArgumentException();
13067
      }
13068
 
13069
      switch (field) {
13070
      case SUCCESS:
13071
        return isSetSuccess();
13072
      case CEX:
13073
        return isSetCex();
13074
      }
13075
      throw new IllegalStateException();
13076
    }
13077
 
13078
    @Override
13079
    public boolean equals(Object that) {
13080
      if (that == null)
13081
        return false;
13082
      if (that instanceof getAllItemsForWarehouse_result)
13083
        return this.equals((getAllItemsForWarehouse_result)that);
13084
      return false;
13085
    }
13086
 
13087
    public boolean equals(getAllItemsForWarehouse_result that) {
13088
      if (that == null)
13089
        return false;
13090
 
13091
      boolean this_present_success = true && this.isSetSuccess();
13092
      boolean that_present_success = true && that.isSetSuccess();
13093
      if (this_present_success || that_present_success) {
13094
        if (!(this_present_success && that_present_success))
13095
          return false;
13096
        if (!this.success.equals(that.success))
13097
          return false;
13098
      }
13099
 
13100
      boolean this_present_cex = true && this.isSetCex();
13101
      boolean that_present_cex = true && that.isSetCex();
13102
      if (this_present_cex || that_present_cex) {
13103
        if (!(this_present_cex && that_present_cex))
13104
          return false;
13105
        if (!this.cex.equals(that.cex))
13106
          return false;
13107
      }
13108
 
13109
      return true;
13110
    }
13111
 
13112
    @Override
13113
    public int hashCode() {
13114
      return 0;
13115
    }
13116
 
13117
    public int compareTo(getAllItemsForWarehouse_result other) {
13118
      if (!getClass().equals(other.getClass())) {
13119
        return getClass().getName().compareTo(other.getClass().getName());
13120
      }
13121
 
13122
      int lastComparison = 0;
13123
      getAllItemsForWarehouse_result typedOther = (getAllItemsForWarehouse_result)other;
13124
 
13125
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13126
      if (lastComparison != 0) {
13127
        return lastComparison;
13128
      }
13129
      if (isSetSuccess()) {
13130
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13131
        if (lastComparison != 0) {
13132
          return lastComparison;
13133
        }
13134
      }
13135
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
13136
      if (lastComparison != 0) {
13137
        return lastComparison;
13138
      }
13139
      if (isSetCex()) {
13140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
13141
        if (lastComparison != 0) {
13142
          return lastComparison;
13143
        }
13144
      }
13145
      return 0;
13146
    }
13147
 
13148
    public _Fields fieldForId(int fieldId) {
13149
      return _Fields.findByThriftId(fieldId);
13150
    }
13151
 
13152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13153
      org.apache.thrift.protocol.TField field;
13154
      iprot.readStructBegin();
13155
      while (true)
13156
      {
13157
        field = iprot.readFieldBegin();
13158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13159
          break;
13160
        }
13161
        switch (field.id) {
13162
          case 0: // SUCCESS
13163
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13164
              {
13165
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
13166
                this.success = new ArrayList<Long>(_list28.size);
13167
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
13168
                {
13169
                  long _elem30; // required
13170
                  _elem30 = iprot.readI64();
13171
                  this.success.add(_elem30);
13172
                }
13173
                iprot.readListEnd();
13174
              }
13175
            } else { 
13176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13177
            }
13178
            break;
13179
          case 1: // CEX
13180
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13181
              this.cex = new InventoryServiceException();
13182
              this.cex.read(iprot);
13183
            } else { 
13184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13185
            }
13186
            break;
13187
          default:
13188
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13189
        }
13190
        iprot.readFieldEnd();
13191
      }
13192
      iprot.readStructEnd();
13193
      validate();
13194
    }
13195
 
13196
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13197
      oprot.writeStructBegin(STRUCT_DESC);
13198
 
13199
      if (this.isSetSuccess()) {
13200
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13201
        {
13202
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
13203
          for (long _iter31 : this.success)
13204
          {
13205
            oprot.writeI64(_iter31);
13206
          }
13207
          oprot.writeListEnd();
13208
        }
13209
        oprot.writeFieldEnd();
13210
      } else if (this.isSetCex()) {
13211
        oprot.writeFieldBegin(CEX_FIELD_DESC);
13212
        this.cex.write(oprot);
13213
        oprot.writeFieldEnd();
13214
      }
13215
      oprot.writeFieldStop();
13216
      oprot.writeStructEnd();
13217
    }
13218
 
13219
    @Override
13220
    public String toString() {
13221
      StringBuilder sb = new StringBuilder("getAllItemsForWarehouse_result(");
13222
      boolean first = true;
13223
 
13224
      sb.append("success:");
13225
      if (this.success == null) {
13226
        sb.append("null");
13227
      } else {
13228
        sb.append(this.success);
13229
      }
13230
      first = false;
13231
      if (!first) sb.append(", ");
13232
      sb.append("cex:");
13233
      if (this.cex == null) {
13234
        sb.append("null");
13235
      } else {
13236
        sb.append(this.cex);
13237
      }
13238
      first = false;
13239
      sb.append(")");
13240
      return sb.toString();
13241
    }
13242
 
13243
    public void validate() throws org.apache.thrift.TException {
13244
      // check for required fields
13245
    }
13246
 
13247
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13248
      try {
13249
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13250
      } catch (org.apache.thrift.TException te) {
13251
        throw new java.io.IOException(te);
13252
      }
13253
    }
13254
 
13255
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13256
      try {
13257
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13258
      } catch (org.apache.thrift.TException te) {
13259
        throw new java.io.IOException(te);
13260
      }
13261
    }
13262
 
13263
  }
13264
 
5967 rajveer 13265
  public static class isOrderBillable_args implements org.apache.thrift.TBase<isOrderBillable_args, isOrderBillable_args._Fields>, java.io.Serializable, Cloneable   {
13266
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_args");
13267
 
13268
    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);
13269
    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);
13270
    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);
13271
    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);
13272
 
13273
    private long itemId; // required
13274
    private long warehouseId; // required
13275
    private long sourceId; // required
13276
    private long orderId; // required
13277
 
13278
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13279
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13280
      ITEM_ID((short)1, "itemId"),
13281
      WAREHOUSE_ID((short)2, "warehouseId"),
13282
      SOURCE_ID((short)3, "sourceId"),
13283
      ORDER_ID((short)4, "orderId");
13284
 
13285
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13286
 
13287
      static {
13288
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13289
          byName.put(field.getFieldName(), field);
13290
        }
13291
      }
13292
 
13293
      /**
13294
       * Find the _Fields constant that matches fieldId, or null if its not found.
13295
       */
13296
      public static _Fields findByThriftId(int fieldId) {
13297
        switch(fieldId) {
13298
          case 1: // ITEM_ID
13299
            return ITEM_ID;
13300
          case 2: // WAREHOUSE_ID
13301
            return WAREHOUSE_ID;
13302
          case 3: // SOURCE_ID
13303
            return SOURCE_ID;
13304
          case 4: // ORDER_ID
13305
            return ORDER_ID;
13306
          default:
13307
            return null;
13308
        }
13309
      }
13310
 
13311
      /**
13312
       * Find the _Fields constant that matches fieldId, throwing an exception
13313
       * if it is not found.
13314
       */
13315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13316
        _Fields fields = findByThriftId(fieldId);
13317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13318
        return fields;
13319
      }
13320
 
13321
      /**
13322
       * Find the _Fields constant that matches name, or null if its not found.
13323
       */
13324
      public static _Fields findByName(String name) {
13325
        return byName.get(name);
13326
      }
13327
 
13328
      private final short _thriftId;
13329
      private final String _fieldName;
13330
 
13331
      _Fields(short thriftId, String fieldName) {
13332
        _thriftId = thriftId;
13333
        _fieldName = fieldName;
13334
      }
13335
 
13336
      public short getThriftFieldId() {
13337
        return _thriftId;
13338
      }
13339
 
13340
      public String getFieldName() {
13341
        return _fieldName;
13342
      }
13343
    }
13344
 
13345
    // isset id assignments
13346
    private static final int __ITEMID_ISSET_ID = 0;
13347
    private static final int __WAREHOUSEID_ISSET_ID = 1;
13348
    private static final int __SOURCEID_ISSET_ID = 2;
13349
    private static final int __ORDERID_ISSET_ID = 3;
13350
    private BitSet __isset_bit_vector = new BitSet(4);
13351
 
13352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13353
    static {
13354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13355
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13357
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13359
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13361
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_args.class, metaDataMap);
13365
    }
13366
 
13367
    public isOrderBillable_args() {
13368
    }
13369
 
13370
    public isOrderBillable_args(
13371
      long itemId,
13372
      long warehouseId,
13373
      long sourceId,
13374
      long orderId)
13375
    {
13376
      this();
13377
      this.itemId = itemId;
13378
      setItemIdIsSet(true);
13379
      this.warehouseId = warehouseId;
13380
      setWarehouseIdIsSet(true);
13381
      this.sourceId = sourceId;
13382
      setSourceIdIsSet(true);
13383
      this.orderId = orderId;
13384
      setOrderIdIsSet(true);
13385
    }
13386
 
13387
    /**
13388
     * Performs a deep copy on <i>other</i>.
13389
     */
13390
    public isOrderBillable_args(isOrderBillable_args other) {
13391
      __isset_bit_vector.clear();
13392
      __isset_bit_vector.or(other.__isset_bit_vector);
13393
      this.itemId = other.itemId;
13394
      this.warehouseId = other.warehouseId;
13395
      this.sourceId = other.sourceId;
13396
      this.orderId = other.orderId;
13397
    }
13398
 
13399
    public isOrderBillable_args deepCopy() {
13400
      return new isOrderBillable_args(this);
13401
    }
13402
 
13403
    @Override
13404
    public void clear() {
13405
      setItemIdIsSet(false);
13406
      this.itemId = 0;
13407
      setWarehouseIdIsSet(false);
13408
      this.warehouseId = 0;
13409
      setSourceIdIsSet(false);
13410
      this.sourceId = 0;
13411
      setOrderIdIsSet(false);
13412
      this.orderId = 0;
13413
    }
13414
 
13415
    public long getItemId() {
13416
      return this.itemId;
13417
    }
13418
 
13419
    public void setItemId(long itemId) {
13420
      this.itemId = itemId;
13421
      setItemIdIsSet(true);
13422
    }
13423
 
13424
    public void unsetItemId() {
13425
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
13426
    }
13427
 
13428
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
13429
    public boolean isSetItemId() {
13430
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
13431
    }
13432
 
13433
    public void setItemIdIsSet(boolean value) {
13434
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
13435
    }
13436
 
13437
    public long getWarehouseId() {
13438
      return this.warehouseId;
13439
    }
13440
 
13441
    public void setWarehouseId(long warehouseId) {
13442
      this.warehouseId = warehouseId;
13443
      setWarehouseIdIsSet(true);
13444
    }
13445
 
13446
    public void unsetWarehouseId() {
13447
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
13448
    }
13449
 
13450
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
13451
    public boolean isSetWarehouseId() {
13452
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
13453
    }
13454
 
13455
    public void setWarehouseIdIsSet(boolean value) {
13456
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
13457
    }
13458
 
13459
    public long getSourceId() {
13460
      return this.sourceId;
13461
    }
13462
 
13463
    public void setSourceId(long sourceId) {
13464
      this.sourceId = sourceId;
13465
      setSourceIdIsSet(true);
13466
    }
13467
 
13468
    public void unsetSourceId() {
13469
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
13470
    }
13471
 
13472
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
13473
    public boolean isSetSourceId() {
13474
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
13475
    }
13476
 
13477
    public void setSourceIdIsSet(boolean value) {
13478
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
13479
    }
13480
 
13481
    public long getOrderId() {
13482
      return this.orderId;
13483
    }
13484
 
13485
    public void setOrderId(long orderId) {
13486
      this.orderId = orderId;
13487
      setOrderIdIsSet(true);
13488
    }
13489
 
13490
    public void unsetOrderId() {
13491
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13492
    }
13493
 
13494
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13495
    public boolean isSetOrderId() {
13496
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13497
    }
13498
 
13499
    public void setOrderIdIsSet(boolean value) {
13500
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13501
    }
13502
 
13503
    public void setFieldValue(_Fields field, Object value) {
13504
      switch (field) {
13505
      case ITEM_ID:
13506
        if (value == null) {
13507
          unsetItemId();
13508
        } else {
13509
          setItemId((Long)value);
13510
        }
13511
        break;
13512
 
13513
      case WAREHOUSE_ID:
13514
        if (value == null) {
13515
          unsetWarehouseId();
13516
        } else {
13517
          setWarehouseId((Long)value);
13518
        }
13519
        break;
13520
 
13521
      case SOURCE_ID:
13522
        if (value == null) {
13523
          unsetSourceId();
13524
        } else {
13525
          setSourceId((Long)value);
13526
        }
13527
        break;
13528
 
13529
      case ORDER_ID:
13530
        if (value == null) {
13531
          unsetOrderId();
13532
        } else {
13533
          setOrderId((Long)value);
13534
        }
13535
        break;
13536
 
13537
      }
13538
    }
13539
 
13540
    public Object getFieldValue(_Fields field) {
13541
      switch (field) {
13542
      case ITEM_ID:
13543
        return Long.valueOf(getItemId());
13544
 
13545
      case WAREHOUSE_ID:
13546
        return Long.valueOf(getWarehouseId());
13547
 
13548
      case SOURCE_ID:
13549
        return Long.valueOf(getSourceId());
13550
 
13551
      case ORDER_ID:
13552
        return Long.valueOf(getOrderId());
13553
 
13554
      }
13555
      throw new IllegalStateException();
13556
    }
13557
 
13558
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13559
    public boolean isSet(_Fields field) {
13560
      if (field == null) {
13561
        throw new IllegalArgumentException();
13562
      }
13563
 
13564
      switch (field) {
13565
      case ITEM_ID:
13566
        return isSetItemId();
13567
      case WAREHOUSE_ID:
13568
        return isSetWarehouseId();
13569
      case SOURCE_ID:
13570
        return isSetSourceId();
13571
      case ORDER_ID:
13572
        return isSetOrderId();
13573
      }
13574
      throw new IllegalStateException();
13575
    }
13576
 
13577
    @Override
13578
    public boolean equals(Object that) {
13579
      if (that == null)
13580
        return false;
13581
      if (that instanceof isOrderBillable_args)
13582
        return this.equals((isOrderBillable_args)that);
13583
      return false;
13584
    }
13585
 
13586
    public boolean equals(isOrderBillable_args that) {
13587
      if (that == null)
13588
        return false;
13589
 
13590
      boolean this_present_itemId = true;
13591
      boolean that_present_itemId = true;
13592
      if (this_present_itemId || that_present_itemId) {
13593
        if (!(this_present_itemId && that_present_itemId))
13594
          return false;
13595
        if (this.itemId != that.itemId)
13596
          return false;
13597
      }
13598
 
13599
      boolean this_present_warehouseId = true;
13600
      boolean that_present_warehouseId = true;
13601
      if (this_present_warehouseId || that_present_warehouseId) {
13602
        if (!(this_present_warehouseId && that_present_warehouseId))
13603
          return false;
13604
        if (this.warehouseId != that.warehouseId)
13605
          return false;
13606
      }
13607
 
13608
      boolean this_present_sourceId = true;
13609
      boolean that_present_sourceId = true;
13610
      if (this_present_sourceId || that_present_sourceId) {
13611
        if (!(this_present_sourceId && that_present_sourceId))
13612
          return false;
13613
        if (this.sourceId != that.sourceId)
13614
          return false;
13615
      }
13616
 
13617
      boolean this_present_orderId = true;
13618
      boolean that_present_orderId = true;
13619
      if (this_present_orderId || that_present_orderId) {
13620
        if (!(this_present_orderId && that_present_orderId))
13621
          return false;
13622
        if (this.orderId != that.orderId)
13623
          return false;
13624
      }
13625
 
13626
      return true;
13627
    }
13628
 
13629
    @Override
13630
    public int hashCode() {
13631
      return 0;
13632
    }
13633
 
13634
    public int compareTo(isOrderBillable_args other) {
13635
      if (!getClass().equals(other.getClass())) {
13636
        return getClass().getName().compareTo(other.getClass().getName());
13637
      }
13638
 
13639
      int lastComparison = 0;
13640
      isOrderBillable_args typedOther = (isOrderBillable_args)other;
13641
 
13642
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
13643
      if (lastComparison != 0) {
13644
        return lastComparison;
13645
      }
13646
      if (isSetItemId()) {
13647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
13648
        if (lastComparison != 0) {
13649
          return lastComparison;
13650
        }
13651
      }
13652
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
13653
      if (lastComparison != 0) {
13654
        return lastComparison;
13655
      }
13656
      if (isSetWarehouseId()) {
13657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
13658
        if (lastComparison != 0) {
13659
          return lastComparison;
13660
        }
13661
      }
13662
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
13663
      if (lastComparison != 0) {
13664
        return lastComparison;
13665
      }
13666
      if (isSetSourceId()) {
13667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
13668
        if (lastComparison != 0) {
13669
          return lastComparison;
13670
        }
13671
      }
13672
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13673
      if (lastComparison != 0) {
13674
        return lastComparison;
13675
      }
13676
      if (isSetOrderId()) {
13677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13678
        if (lastComparison != 0) {
13679
          return lastComparison;
13680
        }
13681
      }
13682
      return 0;
13683
    }
13684
 
13685
    public _Fields fieldForId(int fieldId) {
13686
      return _Fields.findByThriftId(fieldId);
13687
    }
13688
 
13689
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13690
      org.apache.thrift.protocol.TField field;
13691
      iprot.readStructBegin();
13692
      while (true)
13693
      {
13694
        field = iprot.readFieldBegin();
13695
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13696
          break;
13697
        }
13698
        switch (field.id) {
13699
          case 1: // ITEM_ID
13700
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13701
              this.itemId = iprot.readI64();
13702
              setItemIdIsSet(true);
13703
            } else { 
13704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13705
            }
13706
            break;
13707
          case 2: // WAREHOUSE_ID
13708
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13709
              this.warehouseId = iprot.readI64();
13710
              setWarehouseIdIsSet(true);
13711
            } else { 
13712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13713
            }
13714
            break;
13715
          case 3: // SOURCE_ID
13716
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13717
              this.sourceId = iprot.readI64();
13718
              setSourceIdIsSet(true);
13719
            } else { 
13720
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13721
            }
13722
            break;
13723
          case 4: // ORDER_ID
13724
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13725
              this.orderId = iprot.readI64();
13726
              setOrderIdIsSet(true);
13727
            } else { 
13728
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13729
            }
13730
            break;
13731
          default:
13732
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13733
        }
13734
        iprot.readFieldEnd();
13735
      }
13736
      iprot.readStructEnd();
13737
      validate();
13738
    }
13739
 
13740
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13741
      validate();
13742
 
13743
      oprot.writeStructBegin(STRUCT_DESC);
13744
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
13745
      oprot.writeI64(this.itemId);
13746
      oprot.writeFieldEnd();
13747
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
13748
      oprot.writeI64(this.warehouseId);
13749
      oprot.writeFieldEnd();
13750
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
13751
      oprot.writeI64(this.sourceId);
13752
      oprot.writeFieldEnd();
13753
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
13754
      oprot.writeI64(this.orderId);
13755
      oprot.writeFieldEnd();
13756
      oprot.writeFieldStop();
13757
      oprot.writeStructEnd();
13758
    }
13759
 
13760
    @Override
13761
    public String toString() {
13762
      StringBuilder sb = new StringBuilder("isOrderBillable_args(");
13763
      boolean first = true;
13764
 
13765
      sb.append("itemId:");
13766
      sb.append(this.itemId);
13767
      first = false;
13768
      if (!first) sb.append(", ");
13769
      sb.append("warehouseId:");
13770
      sb.append(this.warehouseId);
13771
      first = false;
13772
      if (!first) sb.append(", ");
13773
      sb.append("sourceId:");
13774
      sb.append(this.sourceId);
13775
      first = false;
13776
      if (!first) sb.append(", ");
13777
      sb.append("orderId:");
13778
      sb.append(this.orderId);
13779
      first = false;
13780
      sb.append(")");
13781
      return sb.toString();
13782
    }
13783
 
13784
    public void validate() throws org.apache.thrift.TException {
13785
      // check for required fields
13786
    }
13787
 
13788
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13789
      try {
13790
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13791
      } catch (org.apache.thrift.TException te) {
13792
        throw new java.io.IOException(te);
13793
      }
13794
    }
13795
 
13796
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13797
      try {
13798
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13799
      } catch (org.apache.thrift.TException te) {
13800
        throw new java.io.IOException(te);
13801
      }
13802
    }
13803
 
13804
  }
13805
 
13806
  public static class isOrderBillable_result implements org.apache.thrift.TBase<isOrderBillable_result, isOrderBillable_result._Fields>, java.io.Serializable, Cloneable   {
13807
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isOrderBillable_result");
13808
 
13809
    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);
13810
 
13811
    private boolean success; // required
13812
 
13813
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13814
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13815
      SUCCESS((short)0, "success");
13816
 
13817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13818
 
13819
      static {
13820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13821
          byName.put(field.getFieldName(), field);
13822
        }
13823
      }
13824
 
13825
      /**
13826
       * Find the _Fields constant that matches fieldId, or null if its not found.
13827
       */
13828
      public static _Fields findByThriftId(int fieldId) {
13829
        switch(fieldId) {
13830
          case 0: // SUCCESS
13831
            return SUCCESS;
13832
          default:
13833
            return null;
13834
        }
13835
      }
13836
 
13837
      /**
13838
       * Find the _Fields constant that matches fieldId, throwing an exception
13839
       * if it is not found.
13840
       */
13841
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13842
        _Fields fields = findByThriftId(fieldId);
13843
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13844
        return fields;
13845
      }
13846
 
13847
      /**
13848
       * Find the _Fields constant that matches name, or null if its not found.
13849
       */
13850
      public static _Fields findByName(String name) {
13851
        return byName.get(name);
13852
      }
13853
 
13854
      private final short _thriftId;
13855
      private final String _fieldName;
13856
 
13857
      _Fields(short thriftId, String fieldName) {
13858
        _thriftId = thriftId;
13859
        _fieldName = fieldName;
13860
      }
13861
 
13862
      public short getThriftFieldId() {
13863
        return _thriftId;
13864
      }
13865
 
13866
      public String getFieldName() {
13867
        return _fieldName;
13868
      }
13869
    }
13870
 
13871
    // isset id assignments
13872
    private static final int __SUCCESS_ISSET_ID = 0;
13873
    private BitSet __isset_bit_vector = new BitSet(1);
13874
 
13875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13876
    static {
13877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13878
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isOrderBillable_result.class, metaDataMap);
13882
    }
13883
 
13884
    public isOrderBillable_result() {
13885
    }
13886
 
13887
    public isOrderBillable_result(
13888
      boolean success)
13889
    {
13890
      this();
13891
      this.success = success;
13892
      setSuccessIsSet(true);
13893
    }
13894
 
13895
    /**
13896
     * Performs a deep copy on <i>other</i>.
13897
     */
13898
    public isOrderBillable_result(isOrderBillable_result other) {
13899
      __isset_bit_vector.clear();
13900
      __isset_bit_vector.or(other.__isset_bit_vector);
13901
      this.success = other.success;
13902
    }
13903
 
13904
    public isOrderBillable_result deepCopy() {
13905
      return new isOrderBillable_result(this);
13906
    }
13907
 
13908
    @Override
13909
    public void clear() {
13910
      setSuccessIsSet(false);
13911
      this.success = false;
13912
    }
13913
 
13914
    public boolean isSuccess() {
13915
      return this.success;
13916
    }
13917
 
13918
    public void setSuccess(boolean success) {
13919
      this.success = success;
13920
      setSuccessIsSet(true);
13921
    }
13922
 
13923
    public void unsetSuccess() {
13924
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13925
    }
13926
 
13927
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13928
    public boolean isSetSuccess() {
13929
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13930
    }
13931
 
13932
    public void setSuccessIsSet(boolean value) {
13933
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13934
    }
13935
 
13936
    public void setFieldValue(_Fields field, Object value) {
13937
      switch (field) {
13938
      case SUCCESS:
13939
        if (value == null) {
13940
          unsetSuccess();
13941
        } else {
13942
          setSuccess((Boolean)value);
13943
        }
13944
        break;
13945
 
13946
      }
13947
    }
13948
 
13949
    public Object getFieldValue(_Fields field) {
13950
      switch (field) {
13951
      case SUCCESS:
13952
        return Boolean.valueOf(isSuccess());
13953
 
13954
      }
13955
      throw new IllegalStateException();
13956
    }
13957
 
13958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13959
    public boolean isSet(_Fields field) {
13960
      if (field == null) {
13961
        throw new IllegalArgumentException();
13962
      }
13963
 
13964
      switch (field) {
13965
      case SUCCESS:
13966
        return isSetSuccess();
13967
      }
13968
      throw new IllegalStateException();
13969
    }
13970
 
13971
    @Override
13972
    public boolean equals(Object that) {
13973
      if (that == null)
13974
        return false;
13975
      if (that instanceof isOrderBillable_result)
13976
        return this.equals((isOrderBillable_result)that);
13977
      return false;
13978
    }
13979
 
13980
    public boolean equals(isOrderBillable_result that) {
13981
      if (that == null)
13982
        return false;
13983
 
13984
      boolean this_present_success = true;
13985
      boolean that_present_success = true;
13986
      if (this_present_success || that_present_success) {
13987
        if (!(this_present_success && that_present_success))
13988
          return false;
13989
        if (this.success != that.success)
13990
          return false;
13991
      }
13992
 
13993
      return true;
13994
    }
13995
 
13996
    @Override
13997
    public int hashCode() {
13998
      return 0;
13999
    }
14000
 
14001
    public int compareTo(isOrderBillable_result other) {
14002
      if (!getClass().equals(other.getClass())) {
14003
        return getClass().getName().compareTo(other.getClass().getName());
14004
      }
14005
 
14006
      int lastComparison = 0;
14007
      isOrderBillable_result typedOther = (isOrderBillable_result)other;
14008
 
14009
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14010
      if (lastComparison != 0) {
14011
        return lastComparison;
14012
      }
14013
      if (isSetSuccess()) {
14014
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14015
        if (lastComparison != 0) {
14016
          return lastComparison;
14017
        }
14018
      }
14019
      return 0;
14020
    }
14021
 
14022
    public _Fields fieldForId(int fieldId) {
14023
      return _Fields.findByThriftId(fieldId);
14024
    }
14025
 
14026
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14027
      org.apache.thrift.protocol.TField field;
14028
      iprot.readStructBegin();
14029
      while (true)
14030
      {
14031
        field = iprot.readFieldBegin();
14032
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14033
          break;
14034
        }
14035
        switch (field.id) {
14036
          case 0: // SUCCESS
14037
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14038
              this.success = iprot.readBool();
14039
              setSuccessIsSet(true);
14040
            } else { 
14041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14042
            }
14043
            break;
14044
          default:
14045
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14046
        }
14047
        iprot.readFieldEnd();
14048
      }
14049
      iprot.readStructEnd();
14050
      validate();
14051
    }
14052
 
14053
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14054
      oprot.writeStructBegin(STRUCT_DESC);
14055
 
14056
      if (this.isSetSuccess()) {
14057
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14058
        oprot.writeBool(this.success);
14059
        oprot.writeFieldEnd();
14060
      }
14061
      oprot.writeFieldStop();
14062
      oprot.writeStructEnd();
14063
    }
14064
 
14065
    @Override
14066
    public String toString() {
14067
      StringBuilder sb = new StringBuilder("isOrderBillable_result(");
14068
      boolean first = true;
14069
 
14070
      sb.append("success:");
14071
      sb.append(this.success);
14072
      first = false;
14073
      sb.append(")");
14074
      return sb.toString();
14075
    }
14076
 
14077
    public void validate() throws org.apache.thrift.TException {
14078
      // check for required fields
14079
    }
14080
 
14081
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14082
      try {
14083
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14084
      } catch (org.apache.thrift.TException te) {
14085
        throw new java.io.IOException(te);
14086
      }
14087
    }
14088
 
14089
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14090
      try {
7322 vikram.rag 14091
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14092
        __isset_bit_vector = new BitSet(1);
5967 rajveer 14093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14094
      } catch (org.apache.thrift.TException te) {
14095
        throw new java.io.IOException(te);
14096
      }
14097
    }
14098
 
14099
  }
14100
 
5945 mandeep.dh 14101
  public static class reserveItemInWarehouse_args implements org.apache.thrift.TBase<reserveItemInWarehouse_args, reserveItemInWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
14102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_args");
14103
 
14104
    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);
14105
    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 14106
    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);
14107
    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);
14108
    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);
14109
    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);
14110
    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 14111
 
14112
    private long itemId; // required
14113
    private long warehouseId; // required
5967 rajveer 14114
    private long sourceId; // required
14115
    private long orderId; // required
14116
    private long createdTimestamp; // required
14117
    private long promisedShippingTimestamp; // required
5945 mandeep.dh 14118
    private double quantity; // required
14119
 
14120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14122
      ITEM_ID((short)1, "itemId"),
14123
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 14124
      SOURCE_ID((short)3, "sourceId"),
14125
      ORDER_ID((short)4, "orderId"),
14126
      CREATED_TIMESTAMP((short)5, "createdTimestamp"),
14127
      PROMISED_SHIPPING_TIMESTAMP((short)6, "promisedShippingTimestamp"),
14128
      QUANTITY((short)7, "quantity");
5945 mandeep.dh 14129
 
14130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14131
 
14132
      static {
14133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14134
          byName.put(field.getFieldName(), field);
14135
        }
14136
      }
14137
 
14138
      /**
14139
       * Find the _Fields constant that matches fieldId, or null if its not found.
14140
       */
14141
      public static _Fields findByThriftId(int fieldId) {
14142
        switch(fieldId) {
14143
          case 1: // ITEM_ID
14144
            return ITEM_ID;
14145
          case 2: // WAREHOUSE_ID
14146
            return WAREHOUSE_ID;
5967 rajveer 14147
          case 3: // SOURCE_ID
14148
            return SOURCE_ID;
14149
          case 4: // ORDER_ID
14150
            return ORDER_ID;
14151
          case 5: // CREATED_TIMESTAMP
14152
            return CREATED_TIMESTAMP;
14153
          case 6: // PROMISED_SHIPPING_TIMESTAMP
14154
            return PROMISED_SHIPPING_TIMESTAMP;
14155
          case 7: // QUANTITY
5945 mandeep.dh 14156
            return QUANTITY;
14157
          default:
14158
            return null;
14159
        }
14160
      }
14161
 
14162
      /**
14163
       * Find the _Fields constant that matches fieldId, throwing an exception
14164
       * if it is not found.
14165
       */
14166
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14167
        _Fields fields = findByThriftId(fieldId);
14168
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14169
        return fields;
14170
      }
14171
 
14172
      /**
14173
       * Find the _Fields constant that matches name, or null if its not found.
14174
       */
14175
      public static _Fields findByName(String name) {
14176
        return byName.get(name);
14177
      }
14178
 
14179
      private final short _thriftId;
14180
      private final String _fieldName;
14181
 
14182
      _Fields(short thriftId, String fieldName) {
14183
        _thriftId = thriftId;
14184
        _fieldName = fieldName;
14185
      }
14186
 
14187
      public short getThriftFieldId() {
14188
        return _thriftId;
14189
      }
14190
 
14191
      public String getFieldName() {
14192
        return _fieldName;
14193
      }
14194
    }
14195
 
14196
    // isset id assignments
14197
    private static final int __ITEMID_ISSET_ID = 0;
14198
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 14199
    private static final int __SOURCEID_ISSET_ID = 2;
14200
    private static final int __ORDERID_ISSET_ID = 3;
14201
    private static final int __CREATEDTIMESTAMP_ISSET_ID = 4;
14202
    private static final int __PROMISEDSHIPPINGTIMESTAMP_ISSET_ID = 5;
14203
    private static final int __QUANTITY_ISSET_ID = 6;
14204
    private BitSet __isset_bit_vector = new BitSet(7);
5945 mandeep.dh 14205
 
14206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14207
    static {
14208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14209
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14211
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 14213
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14214
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14215
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14217
      tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("createdTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14219
      tmpMap.put(_Fields.PROMISED_SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("promisedShippingTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 14221
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14222
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
14223
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14224
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_args.class, metaDataMap);
14225
    }
14226
 
14227
    public reserveItemInWarehouse_args() {
14228
    }
14229
 
14230
    public reserveItemInWarehouse_args(
14231
      long itemId,
14232
      long warehouseId,
5967 rajveer 14233
      long sourceId,
14234
      long orderId,
14235
      long createdTimestamp,
14236
      long promisedShippingTimestamp,
5945 mandeep.dh 14237
      double quantity)
14238
    {
14239
      this();
14240
      this.itemId = itemId;
14241
      setItemIdIsSet(true);
14242
      this.warehouseId = warehouseId;
14243
      setWarehouseIdIsSet(true);
5967 rajveer 14244
      this.sourceId = sourceId;
14245
      setSourceIdIsSet(true);
14246
      this.orderId = orderId;
14247
      setOrderIdIsSet(true);
14248
      this.createdTimestamp = createdTimestamp;
14249
      setCreatedTimestampIsSet(true);
14250
      this.promisedShippingTimestamp = promisedShippingTimestamp;
14251
      setPromisedShippingTimestampIsSet(true);
5945 mandeep.dh 14252
      this.quantity = quantity;
14253
      setQuantityIsSet(true);
14254
    }
14255
 
14256
    /**
14257
     * Performs a deep copy on <i>other</i>.
14258
     */
14259
    public reserveItemInWarehouse_args(reserveItemInWarehouse_args other) {
14260
      __isset_bit_vector.clear();
14261
      __isset_bit_vector.or(other.__isset_bit_vector);
14262
      this.itemId = other.itemId;
14263
      this.warehouseId = other.warehouseId;
5967 rajveer 14264
      this.sourceId = other.sourceId;
14265
      this.orderId = other.orderId;
14266
      this.createdTimestamp = other.createdTimestamp;
14267
      this.promisedShippingTimestamp = other.promisedShippingTimestamp;
5945 mandeep.dh 14268
      this.quantity = other.quantity;
14269
    }
14270
 
14271
    public reserveItemInWarehouse_args deepCopy() {
14272
      return new reserveItemInWarehouse_args(this);
14273
    }
14274
 
14275
    @Override
14276
    public void clear() {
14277
      setItemIdIsSet(false);
14278
      this.itemId = 0;
14279
      setWarehouseIdIsSet(false);
14280
      this.warehouseId = 0;
5967 rajveer 14281
      setSourceIdIsSet(false);
14282
      this.sourceId = 0;
14283
      setOrderIdIsSet(false);
14284
      this.orderId = 0;
14285
      setCreatedTimestampIsSet(false);
14286
      this.createdTimestamp = 0;
14287
      setPromisedShippingTimestampIsSet(false);
14288
      this.promisedShippingTimestamp = 0;
5945 mandeep.dh 14289
      setQuantityIsSet(false);
14290
      this.quantity = 0.0;
14291
    }
14292
 
14293
    public long getItemId() {
14294
      return this.itemId;
14295
    }
14296
 
14297
    public void setItemId(long itemId) {
14298
      this.itemId = itemId;
14299
      setItemIdIsSet(true);
14300
    }
14301
 
14302
    public void unsetItemId() {
14303
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14304
    }
14305
 
14306
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14307
    public boolean isSetItemId() {
14308
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14309
    }
14310
 
14311
    public void setItemIdIsSet(boolean value) {
14312
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14313
    }
14314
 
14315
    public long getWarehouseId() {
14316
      return this.warehouseId;
14317
    }
14318
 
14319
    public void setWarehouseId(long warehouseId) {
14320
      this.warehouseId = warehouseId;
14321
      setWarehouseIdIsSet(true);
14322
    }
14323
 
14324
    public void unsetWarehouseId() {
14325
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
14326
    }
14327
 
14328
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
14329
    public boolean isSetWarehouseId() {
14330
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
14331
    }
14332
 
14333
    public void setWarehouseIdIsSet(boolean value) {
14334
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
14335
    }
14336
 
5967 rajveer 14337
    public long getSourceId() {
14338
      return this.sourceId;
14339
    }
14340
 
14341
    public void setSourceId(long sourceId) {
14342
      this.sourceId = sourceId;
14343
      setSourceIdIsSet(true);
14344
    }
14345
 
14346
    public void unsetSourceId() {
14347
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
14348
    }
14349
 
14350
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
14351
    public boolean isSetSourceId() {
14352
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
14353
    }
14354
 
14355
    public void setSourceIdIsSet(boolean value) {
14356
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
14357
    }
14358
 
14359
    public long getOrderId() {
14360
      return this.orderId;
14361
    }
14362
 
14363
    public void setOrderId(long orderId) {
14364
      this.orderId = orderId;
14365
      setOrderIdIsSet(true);
14366
    }
14367
 
14368
    public void unsetOrderId() {
14369
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
14370
    }
14371
 
14372
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
14373
    public boolean isSetOrderId() {
14374
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
14375
    }
14376
 
14377
    public void setOrderIdIsSet(boolean value) {
14378
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
14379
    }
14380
 
14381
    public long getCreatedTimestamp() {
14382
      return this.createdTimestamp;
14383
    }
14384
 
14385
    public void setCreatedTimestamp(long createdTimestamp) {
14386
      this.createdTimestamp = createdTimestamp;
14387
      setCreatedTimestampIsSet(true);
14388
    }
14389
 
14390
    public void unsetCreatedTimestamp() {
14391
      __isset_bit_vector.clear(__CREATEDTIMESTAMP_ISSET_ID);
14392
    }
14393
 
14394
    /** Returns true if field createdTimestamp is set (has been assigned a value) and false otherwise */
14395
    public boolean isSetCreatedTimestamp() {
14396
      return __isset_bit_vector.get(__CREATEDTIMESTAMP_ISSET_ID);
14397
    }
14398
 
14399
    public void setCreatedTimestampIsSet(boolean value) {
14400
      __isset_bit_vector.set(__CREATEDTIMESTAMP_ISSET_ID, value);
14401
    }
14402
 
14403
    public long getPromisedShippingTimestamp() {
14404
      return this.promisedShippingTimestamp;
14405
    }
14406
 
14407
    public void setPromisedShippingTimestamp(long promisedShippingTimestamp) {
14408
      this.promisedShippingTimestamp = promisedShippingTimestamp;
14409
      setPromisedShippingTimestampIsSet(true);
14410
    }
14411
 
14412
    public void unsetPromisedShippingTimestamp() {
14413
      __isset_bit_vector.clear(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
14414
    }
14415
 
14416
    /** Returns true if field promisedShippingTimestamp is set (has been assigned a value) and false otherwise */
14417
    public boolean isSetPromisedShippingTimestamp() {
14418
      return __isset_bit_vector.get(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID);
14419
    }
14420
 
14421
    public void setPromisedShippingTimestampIsSet(boolean value) {
14422
      __isset_bit_vector.set(__PROMISEDSHIPPINGTIMESTAMP_ISSET_ID, value);
14423
    }
14424
 
5945 mandeep.dh 14425
    public double getQuantity() {
14426
      return this.quantity;
14427
    }
14428
 
14429
    public void setQuantity(double quantity) {
14430
      this.quantity = quantity;
14431
      setQuantityIsSet(true);
14432
    }
14433
 
14434
    public void unsetQuantity() {
14435
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
14436
    }
14437
 
14438
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
14439
    public boolean isSetQuantity() {
14440
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
14441
    }
14442
 
14443
    public void setQuantityIsSet(boolean value) {
14444
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
14445
    }
14446
 
14447
    public void setFieldValue(_Fields field, Object value) {
14448
      switch (field) {
14449
      case ITEM_ID:
14450
        if (value == null) {
14451
          unsetItemId();
14452
        } else {
14453
          setItemId((Long)value);
14454
        }
14455
        break;
14456
 
14457
      case WAREHOUSE_ID:
14458
        if (value == null) {
14459
          unsetWarehouseId();
14460
        } else {
14461
          setWarehouseId((Long)value);
14462
        }
14463
        break;
14464
 
5967 rajveer 14465
      case SOURCE_ID:
14466
        if (value == null) {
14467
          unsetSourceId();
14468
        } else {
14469
          setSourceId((Long)value);
14470
        }
14471
        break;
14472
 
14473
      case ORDER_ID:
14474
        if (value == null) {
14475
          unsetOrderId();
14476
        } else {
14477
          setOrderId((Long)value);
14478
        }
14479
        break;
14480
 
14481
      case CREATED_TIMESTAMP:
14482
        if (value == null) {
14483
          unsetCreatedTimestamp();
14484
        } else {
14485
          setCreatedTimestamp((Long)value);
14486
        }
14487
        break;
14488
 
14489
      case PROMISED_SHIPPING_TIMESTAMP:
14490
        if (value == null) {
14491
          unsetPromisedShippingTimestamp();
14492
        } else {
14493
          setPromisedShippingTimestamp((Long)value);
14494
        }
14495
        break;
14496
 
5945 mandeep.dh 14497
      case QUANTITY:
14498
        if (value == null) {
14499
          unsetQuantity();
14500
        } else {
14501
          setQuantity((Double)value);
14502
        }
14503
        break;
14504
 
14505
      }
14506
    }
14507
 
14508
    public Object getFieldValue(_Fields field) {
14509
      switch (field) {
14510
      case ITEM_ID:
14511
        return Long.valueOf(getItemId());
14512
 
14513
      case WAREHOUSE_ID:
14514
        return Long.valueOf(getWarehouseId());
14515
 
5967 rajveer 14516
      case SOURCE_ID:
14517
        return Long.valueOf(getSourceId());
14518
 
14519
      case ORDER_ID:
14520
        return Long.valueOf(getOrderId());
14521
 
14522
      case CREATED_TIMESTAMP:
14523
        return Long.valueOf(getCreatedTimestamp());
14524
 
14525
      case PROMISED_SHIPPING_TIMESTAMP:
14526
        return Long.valueOf(getPromisedShippingTimestamp());
14527
 
5945 mandeep.dh 14528
      case QUANTITY:
14529
        return Double.valueOf(getQuantity());
14530
 
14531
      }
14532
      throw new IllegalStateException();
14533
    }
14534
 
14535
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14536
    public boolean isSet(_Fields field) {
14537
      if (field == null) {
14538
        throw new IllegalArgumentException();
14539
      }
14540
 
14541
      switch (field) {
14542
      case ITEM_ID:
14543
        return isSetItemId();
14544
      case WAREHOUSE_ID:
14545
        return isSetWarehouseId();
5967 rajveer 14546
      case SOURCE_ID:
14547
        return isSetSourceId();
14548
      case ORDER_ID:
14549
        return isSetOrderId();
14550
      case CREATED_TIMESTAMP:
14551
        return isSetCreatedTimestamp();
14552
      case PROMISED_SHIPPING_TIMESTAMP:
14553
        return isSetPromisedShippingTimestamp();
5945 mandeep.dh 14554
      case QUANTITY:
14555
        return isSetQuantity();
14556
      }
14557
      throw new IllegalStateException();
14558
    }
14559
 
14560
    @Override
14561
    public boolean equals(Object that) {
14562
      if (that == null)
14563
        return false;
14564
      if (that instanceof reserveItemInWarehouse_args)
14565
        return this.equals((reserveItemInWarehouse_args)that);
14566
      return false;
14567
    }
14568
 
14569
    public boolean equals(reserveItemInWarehouse_args that) {
14570
      if (that == null)
14571
        return false;
14572
 
14573
      boolean this_present_itemId = true;
14574
      boolean that_present_itemId = true;
14575
      if (this_present_itemId || that_present_itemId) {
14576
        if (!(this_present_itemId && that_present_itemId))
14577
          return false;
14578
        if (this.itemId != that.itemId)
14579
          return false;
14580
      }
14581
 
14582
      boolean this_present_warehouseId = true;
14583
      boolean that_present_warehouseId = true;
14584
      if (this_present_warehouseId || that_present_warehouseId) {
14585
        if (!(this_present_warehouseId && that_present_warehouseId))
14586
          return false;
14587
        if (this.warehouseId != that.warehouseId)
14588
          return false;
14589
      }
14590
 
5967 rajveer 14591
      boolean this_present_sourceId = true;
14592
      boolean that_present_sourceId = true;
14593
      if (this_present_sourceId || that_present_sourceId) {
14594
        if (!(this_present_sourceId && that_present_sourceId))
14595
          return false;
14596
        if (this.sourceId != that.sourceId)
14597
          return false;
14598
      }
14599
 
14600
      boolean this_present_orderId = true;
14601
      boolean that_present_orderId = true;
14602
      if (this_present_orderId || that_present_orderId) {
14603
        if (!(this_present_orderId && that_present_orderId))
14604
          return false;
14605
        if (this.orderId != that.orderId)
14606
          return false;
14607
      }
14608
 
14609
      boolean this_present_createdTimestamp = true;
14610
      boolean that_present_createdTimestamp = true;
14611
      if (this_present_createdTimestamp || that_present_createdTimestamp) {
14612
        if (!(this_present_createdTimestamp && that_present_createdTimestamp))
14613
          return false;
14614
        if (this.createdTimestamp != that.createdTimestamp)
14615
          return false;
14616
      }
14617
 
14618
      boolean this_present_promisedShippingTimestamp = true;
14619
      boolean that_present_promisedShippingTimestamp = true;
14620
      if (this_present_promisedShippingTimestamp || that_present_promisedShippingTimestamp) {
14621
        if (!(this_present_promisedShippingTimestamp && that_present_promisedShippingTimestamp))
14622
          return false;
14623
        if (this.promisedShippingTimestamp != that.promisedShippingTimestamp)
14624
          return false;
14625
      }
14626
 
5945 mandeep.dh 14627
      boolean this_present_quantity = true;
14628
      boolean that_present_quantity = true;
14629
      if (this_present_quantity || that_present_quantity) {
14630
        if (!(this_present_quantity && that_present_quantity))
14631
          return false;
14632
        if (this.quantity != that.quantity)
14633
          return false;
14634
      }
14635
 
14636
      return true;
14637
    }
14638
 
14639
    @Override
14640
    public int hashCode() {
14641
      return 0;
14642
    }
14643
 
14644
    public int compareTo(reserveItemInWarehouse_args other) {
14645
      if (!getClass().equals(other.getClass())) {
14646
        return getClass().getName().compareTo(other.getClass().getName());
14647
      }
14648
 
14649
      int lastComparison = 0;
14650
      reserveItemInWarehouse_args typedOther = (reserveItemInWarehouse_args)other;
14651
 
14652
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
14653
      if (lastComparison != 0) {
14654
        return lastComparison;
14655
      }
14656
      if (isSetItemId()) {
14657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
14658
        if (lastComparison != 0) {
14659
          return lastComparison;
14660
        }
14661
      }
14662
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
14663
      if (lastComparison != 0) {
14664
        return lastComparison;
14665
      }
14666
      if (isSetWarehouseId()) {
14667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
14668
        if (lastComparison != 0) {
14669
          return lastComparison;
14670
        }
14671
      }
5967 rajveer 14672
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
14673
      if (lastComparison != 0) {
14674
        return lastComparison;
14675
      }
14676
      if (isSetSourceId()) {
14677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
14678
        if (lastComparison != 0) {
14679
          return lastComparison;
14680
        }
14681
      }
14682
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
14683
      if (lastComparison != 0) {
14684
        return lastComparison;
14685
      }
14686
      if (isSetOrderId()) {
14687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
14688
        if (lastComparison != 0) {
14689
          return lastComparison;
14690
        }
14691
      }
14692
      lastComparison = Boolean.valueOf(isSetCreatedTimestamp()).compareTo(typedOther.isSetCreatedTimestamp());
14693
      if (lastComparison != 0) {
14694
        return lastComparison;
14695
      }
14696
      if (isSetCreatedTimestamp()) {
14697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdTimestamp, typedOther.createdTimestamp);
14698
        if (lastComparison != 0) {
14699
          return lastComparison;
14700
        }
14701
      }
14702
      lastComparison = Boolean.valueOf(isSetPromisedShippingTimestamp()).compareTo(typedOther.isSetPromisedShippingTimestamp());
14703
      if (lastComparison != 0) {
14704
        return lastComparison;
14705
      }
14706
      if (isSetPromisedShippingTimestamp()) {
14707
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promisedShippingTimestamp, typedOther.promisedShippingTimestamp);
14708
        if (lastComparison != 0) {
14709
          return lastComparison;
14710
        }
14711
      }
5945 mandeep.dh 14712
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
14713
      if (lastComparison != 0) {
14714
        return lastComparison;
14715
      }
14716
      if (isSetQuantity()) {
14717
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
14718
        if (lastComparison != 0) {
14719
          return lastComparison;
14720
        }
14721
      }
14722
      return 0;
14723
    }
14724
 
14725
    public _Fields fieldForId(int fieldId) {
14726
      return _Fields.findByThriftId(fieldId);
14727
    }
14728
 
14729
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14730
      org.apache.thrift.protocol.TField field;
14731
      iprot.readStructBegin();
14732
      while (true)
14733
      {
14734
        field = iprot.readFieldBegin();
14735
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14736
          break;
14737
        }
14738
        switch (field.id) {
14739
          case 1: // ITEM_ID
14740
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14741
              this.itemId = iprot.readI64();
14742
              setItemIdIsSet(true);
14743
            } else { 
14744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14745
            }
14746
            break;
14747
          case 2: // WAREHOUSE_ID
14748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14749
              this.warehouseId = iprot.readI64();
14750
              setWarehouseIdIsSet(true);
14751
            } else { 
14752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14753
            }
14754
            break;
5967 rajveer 14755
          case 3: // SOURCE_ID
14756
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14757
              this.sourceId = iprot.readI64();
14758
              setSourceIdIsSet(true);
14759
            } else { 
14760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14761
            }
14762
            break;
14763
          case 4: // ORDER_ID
14764
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14765
              this.orderId = iprot.readI64();
14766
              setOrderIdIsSet(true);
14767
            } else { 
14768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14769
            }
14770
            break;
14771
          case 5: // CREATED_TIMESTAMP
14772
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14773
              this.createdTimestamp = iprot.readI64();
14774
              setCreatedTimestampIsSet(true);
14775
            } else { 
14776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14777
            }
14778
            break;
14779
          case 6: // PROMISED_SHIPPING_TIMESTAMP
14780
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14781
              this.promisedShippingTimestamp = iprot.readI64();
14782
              setPromisedShippingTimestampIsSet(true);
14783
            } else { 
14784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14785
            }
14786
            break;
14787
          case 7: // QUANTITY
5945 mandeep.dh 14788
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
14789
              this.quantity = iprot.readDouble();
14790
              setQuantityIsSet(true);
14791
            } else { 
14792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14793
            }
14794
            break;
14795
          default:
14796
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14797
        }
14798
        iprot.readFieldEnd();
14799
      }
14800
      iprot.readStructEnd();
14801
      validate();
14802
    }
14803
 
14804
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14805
      validate();
14806
 
14807
      oprot.writeStructBegin(STRUCT_DESC);
14808
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
14809
      oprot.writeI64(this.itemId);
14810
      oprot.writeFieldEnd();
14811
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
14812
      oprot.writeI64(this.warehouseId);
14813
      oprot.writeFieldEnd();
5967 rajveer 14814
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
14815
      oprot.writeI64(this.sourceId);
14816
      oprot.writeFieldEnd();
14817
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
14818
      oprot.writeI64(this.orderId);
14819
      oprot.writeFieldEnd();
14820
      oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
14821
      oprot.writeI64(this.createdTimestamp);
14822
      oprot.writeFieldEnd();
14823
      oprot.writeFieldBegin(PROMISED_SHIPPING_TIMESTAMP_FIELD_DESC);
14824
      oprot.writeI64(this.promisedShippingTimestamp);
14825
      oprot.writeFieldEnd();
5945 mandeep.dh 14826
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
14827
      oprot.writeDouble(this.quantity);
14828
      oprot.writeFieldEnd();
14829
      oprot.writeFieldStop();
14830
      oprot.writeStructEnd();
14831
    }
14832
 
14833
    @Override
14834
    public String toString() {
14835
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_args(");
14836
      boolean first = true;
14837
 
14838
      sb.append("itemId:");
14839
      sb.append(this.itemId);
14840
      first = false;
14841
      if (!first) sb.append(", ");
14842
      sb.append("warehouseId:");
14843
      sb.append(this.warehouseId);
14844
      first = false;
14845
      if (!first) sb.append(", ");
5967 rajveer 14846
      sb.append("sourceId:");
14847
      sb.append(this.sourceId);
14848
      first = false;
14849
      if (!first) sb.append(", ");
14850
      sb.append("orderId:");
14851
      sb.append(this.orderId);
14852
      first = false;
14853
      if (!first) sb.append(", ");
14854
      sb.append("createdTimestamp:");
14855
      sb.append(this.createdTimestamp);
14856
      first = false;
14857
      if (!first) sb.append(", ");
14858
      sb.append("promisedShippingTimestamp:");
14859
      sb.append(this.promisedShippingTimestamp);
14860
      first = false;
14861
      if (!first) sb.append(", ");
5945 mandeep.dh 14862
      sb.append("quantity:");
14863
      sb.append(this.quantity);
14864
      first = false;
14865
      sb.append(")");
14866
      return sb.toString();
14867
    }
14868
 
14869
    public void validate() throws org.apache.thrift.TException {
14870
      // check for required fields
14871
    }
14872
 
14873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14874
      try {
14875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14876
      } catch (org.apache.thrift.TException te) {
14877
        throw new java.io.IOException(te);
14878
      }
14879
    }
14880
 
14881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14882
      try {
14883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14884
      } catch (org.apache.thrift.TException te) {
14885
        throw new java.io.IOException(te);
14886
      }
14887
    }
14888
 
14889
  }
14890
 
14891
  public static class reserveItemInWarehouse_result implements org.apache.thrift.TBase<reserveItemInWarehouse_result, reserveItemInWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
14892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reserveItemInWarehouse_result");
14893
 
14894
    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);
14895
    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);
14896
 
14897
    private boolean success; // required
14898
    private InventoryServiceException cex; // required
14899
 
14900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14902
      SUCCESS((short)0, "success"),
14903
      CEX((short)1, "cex");
14904
 
14905
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14906
 
14907
      static {
14908
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14909
          byName.put(field.getFieldName(), field);
14910
        }
14911
      }
14912
 
14913
      /**
14914
       * Find the _Fields constant that matches fieldId, or null if its not found.
14915
       */
14916
      public static _Fields findByThriftId(int fieldId) {
14917
        switch(fieldId) {
14918
          case 0: // SUCCESS
14919
            return SUCCESS;
14920
          case 1: // CEX
14921
            return CEX;
14922
          default:
14923
            return null;
14924
        }
14925
      }
14926
 
14927
      /**
14928
       * Find the _Fields constant that matches fieldId, throwing an exception
14929
       * if it is not found.
14930
       */
14931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14932
        _Fields fields = findByThriftId(fieldId);
14933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14934
        return fields;
14935
      }
14936
 
14937
      /**
14938
       * Find the _Fields constant that matches name, or null if its not found.
14939
       */
14940
      public static _Fields findByName(String name) {
14941
        return byName.get(name);
14942
      }
14943
 
14944
      private final short _thriftId;
14945
      private final String _fieldName;
14946
 
14947
      _Fields(short thriftId, String fieldName) {
14948
        _thriftId = thriftId;
14949
        _fieldName = fieldName;
14950
      }
14951
 
14952
      public short getThriftFieldId() {
14953
        return _thriftId;
14954
      }
14955
 
14956
      public String getFieldName() {
14957
        return _fieldName;
14958
      }
14959
    }
14960
 
14961
    // isset id assignments
14962
    private static final int __SUCCESS_ISSET_ID = 0;
14963
    private BitSet __isset_bit_vector = new BitSet(1);
14964
 
14965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14966
    static {
14967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14968
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14970
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14971
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14972
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14973
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reserveItemInWarehouse_result.class, metaDataMap);
14974
    }
14975
 
14976
    public reserveItemInWarehouse_result() {
14977
    }
14978
 
14979
    public reserveItemInWarehouse_result(
14980
      boolean success,
14981
      InventoryServiceException cex)
14982
    {
14983
      this();
14984
      this.success = success;
14985
      setSuccessIsSet(true);
14986
      this.cex = cex;
14987
    }
14988
 
14989
    /**
14990
     * Performs a deep copy on <i>other</i>.
14991
     */
14992
    public reserveItemInWarehouse_result(reserveItemInWarehouse_result other) {
14993
      __isset_bit_vector.clear();
14994
      __isset_bit_vector.or(other.__isset_bit_vector);
14995
      this.success = other.success;
14996
      if (other.isSetCex()) {
14997
        this.cex = new InventoryServiceException(other.cex);
14998
      }
14999
    }
15000
 
15001
    public reserveItemInWarehouse_result deepCopy() {
15002
      return new reserveItemInWarehouse_result(this);
15003
    }
15004
 
15005
    @Override
15006
    public void clear() {
15007
      setSuccessIsSet(false);
15008
      this.success = false;
15009
      this.cex = null;
15010
    }
15011
 
15012
    public boolean isSuccess() {
15013
      return this.success;
15014
    }
15015
 
15016
    public void setSuccess(boolean success) {
15017
      this.success = success;
15018
      setSuccessIsSet(true);
15019
    }
15020
 
15021
    public void unsetSuccess() {
15022
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15023
    }
15024
 
15025
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15026
    public boolean isSetSuccess() {
15027
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15028
    }
15029
 
15030
    public void setSuccessIsSet(boolean value) {
15031
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15032
    }
15033
 
15034
    public InventoryServiceException getCex() {
15035
      return this.cex;
15036
    }
15037
 
15038
    public void setCex(InventoryServiceException cex) {
15039
      this.cex = cex;
15040
    }
15041
 
15042
    public void unsetCex() {
15043
      this.cex = null;
15044
    }
15045
 
15046
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
15047
    public boolean isSetCex() {
15048
      return this.cex != null;
15049
    }
15050
 
15051
    public void setCexIsSet(boolean value) {
15052
      if (!value) {
15053
        this.cex = null;
15054
      }
15055
    }
15056
 
15057
    public void setFieldValue(_Fields field, Object value) {
15058
      switch (field) {
15059
      case SUCCESS:
15060
        if (value == null) {
15061
          unsetSuccess();
15062
        } else {
15063
          setSuccess((Boolean)value);
15064
        }
15065
        break;
15066
 
15067
      case CEX:
15068
        if (value == null) {
15069
          unsetCex();
15070
        } else {
15071
          setCex((InventoryServiceException)value);
15072
        }
15073
        break;
15074
 
15075
      }
15076
    }
15077
 
15078
    public Object getFieldValue(_Fields field) {
15079
      switch (field) {
15080
      case SUCCESS:
15081
        return Boolean.valueOf(isSuccess());
15082
 
15083
      case CEX:
15084
        return getCex();
15085
 
15086
      }
15087
      throw new IllegalStateException();
15088
    }
15089
 
15090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15091
    public boolean isSet(_Fields field) {
15092
      if (field == null) {
15093
        throw new IllegalArgumentException();
15094
      }
15095
 
15096
      switch (field) {
15097
      case SUCCESS:
15098
        return isSetSuccess();
15099
      case CEX:
15100
        return isSetCex();
15101
      }
15102
      throw new IllegalStateException();
15103
    }
15104
 
15105
    @Override
15106
    public boolean equals(Object that) {
15107
      if (that == null)
15108
        return false;
15109
      if (that instanceof reserveItemInWarehouse_result)
15110
        return this.equals((reserveItemInWarehouse_result)that);
15111
      return false;
15112
    }
15113
 
15114
    public boolean equals(reserveItemInWarehouse_result that) {
15115
      if (that == null)
15116
        return false;
15117
 
15118
      boolean this_present_success = true;
15119
      boolean that_present_success = true;
15120
      if (this_present_success || that_present_success) {
15121
        if (!(this_present_success && that_present_success))
15122
          return false;
15123
        if (this.success != that.success)
15124
          return false;
15125
      }
15126
 
15127
      boolean this_present_cex = true && this.isSetCex();
15128
      boolean that_present_cex = true && that.isSetCex();
15129
      if (this_present_cex || that_present_cex) {
15130
        if (!(this_present_cex && that_present_cex))
15131
          return false;
15132
        if (!this.cex.equals(that.cex))
15133
          return false;
15134
      }
15135
 
15136
      return true;
15137
    }
15138
 
15139
    @Override
15140
    public int hashCode() {
15141
      return 0;
15142
    }
15143
 
15144
    public int compareTo(reserveItemInWarehouse_result other) {
15145
      if (!getClass().equals(other.getClass())) {
15146
        return getClass().getName().compareTo(other.getClass().getName());
15147
      }
15148
 
15149
      int lastComparison = 0;
15150
      reserveItemInWarehouse_result typedOther = (reserveItemInWarehouse_result)other;
15151
 
15152
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15153
      if (lastComparison != 0) {
15154
        return lastComparison;
15155
      }
15156
      if (isSetSuccess()) {
15157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15158
        if (lastComparison != 0) {
15159
          return lastComparison;
15160
        }
15161
      }
15162
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
15163
      if (lastComparison != 0) {
15164
        return lastComparison;
15165
      }
15166
      if (isSetCex()) {
15167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
15168
        if (lastComparison != 0) {
15169
          return lastComparison;
15170
        }
15171
      }
15172
      return 0;
15173
    }
15174
 
15175
    public _Fields fieldForId(int fieldId) {
15176
      return _Fields.findByThriftId(fieldId);
15177
    }
15178
 
15179
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15180
      org.apache.thrift.protocol.TField field;
15181
      iprot.readStructBegin();
15182
      while (true)
15183
      {
15184
        field = iprot.readFieldBegin();
15185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15186
          break;
15187
        }
15188
        switch (field.id) {
15189
          case 0: // SUCCESS
15190
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15191
              this.success = iprot.readBool();
15192
              setSuccessIsSet(true);
15193
            } else { 
15194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15195
            }
15196
            break;
15197
          case 1: // CEX
15198
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15199
              this.cex = new InventoryServiceException();
15200
              this.cex.read(iprot);
15201
            } else { 
15202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15203
            }
15204
            break;
15205
          default:
15206
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15207
        }
15208
        iprot.readFieldEnd();
15209
      }
15210
      iprot.readStructEnd();
15211
      validate();
15212
    }
15213
 
15214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15215
      oprot.writeStructBegin(STRUCT_DESC);
15216
 
15217
      if (this.isSetSuccess()) {
15218
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15219
        oprot.writeBool(this.success);
15220
        oprot.writeFieldEnd();
15221
      } else if (this.isSetCex()) {
15222
        oprot.writeFieldBegin(CEX_FIELD_DESC);
15223
        this.cex.write(oprot);
15224
        oprot.writeFieldEnd();
15225
      }
15226
      oprot.writeFieldStop();
15227
      oprot.writeStructEnd();
15228
    }
15229
 
15230
    @Override
15231
    public String toString() {
15232
      StringBuilder sb = new StringBuilder("reserveItemInWarehouse_result(");
15233
      boolean first = true;
15234
 
15235
      sb.append("success:");
15236
      sb.append(this.success);
15237
      first = false;
15238
      if (!first) sb.append(", ");
15239
      sb.append("cex:");
15240
      if (this.cex == null) {
15241
        sb.append("null");
15242
      } else {
15243
        sb.append(this.cex);
15244
      }
15245
      first = false;
15246
      sb.append(")");
15247
      return sb.toString();
15248
    }
15249
 
15250
    public void validate() throws org.apache.thrift.TException {
15251
      // check for required fields
15252
    }
15253
 
15254
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15255
      try {
15256
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15257
      } catch (org.apache.thrift.TException te) {
15258
        throw new java.io.IOException(te);
15259
      }
15260
    }
15261
 
15262
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15263
      try {
7322 vikram.rag 15264
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15265
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 15266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15267
      } catch (org.apache.thrift.TException te) {
15268
        throw new java.io.IOException(te);
15269
      }
15270
    }
15271
 
15272
  }
15273
 
15274
  public static class reduceReservationCount_args implements org.apache.thrift.TBase<reduceReservationCount_args, reduceReservationCount_args._Fields>, java.io.Serializable, Cloneable   {
15275
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_args");
15276
 
15277
    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);
15278
    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 15279
    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);
15280
    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);
15281
    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 15282
 
15283
    private long itemId; // required
15284
    private long warehouseId; // required
5967 rajveer 15285
    private long sourceId; // required
15286
    private long orderId; // required
5945 mandeep.dh 15287
    private double quantity; // required
15288
 
15289
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15290
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15291
      ITEM_ID((short)1, "itemId"),
15292
      WAREHOUSE_ID((short)2, "warehouseId"),
5967 rajveer 15293
      SOURCE_ID((short)3, "sourceId"),
15294
      ORDER_ID((short)4, "orderId"),
15295
      QUANTITY((short)5, "quantity");
5945 mandeep.dh 15296
 
15297
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15298
 
15299
      static {
15300
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15301
          byName.put(field.getFieldName(), field);
15302
        }
15303
      }
15304
 
15305
      /**
15306
       * Find the _Fields constant that matches fieldId, or null if its not found.
15307
       */
15308
      public static _Fields findByThriftId(int fieldId) {
15309
        switch(fieldId) {
15310
          case 1: // ITEM_ID
15311
            return ITEM_ID;
15312
          case 2: // WAREHOUSE_ID
15313
            return WAREHOUSE_ID;
5967 rajveer 15314
          case 3: // SOURCE_ID
15315
            return SOURCE_ID;
15316
          case 4: // ORDER_ID
15317
            return ORDER_ID;
15318
          case 5: // QUANTITY
5945 mandeep.dh 15319
            return QUANTITY;
15320
          default:
15321
            return null;
15322
        }
15323
      }
15324
 
15325
      /**
15326
       * Find the _Fields constant that matches fieldId, throwing an exception
15327
       * if it is not found.
15328
       */
15329
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15330
        _Fields fields = findByThriftId(fieldId);
15331
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15332
        return fields;
15333
      }
15334
 
15335
      /**
15336
       * Find the _Fields constant that matches name, or null if its not found.
15337
       */
15338
      public static _Fields findByName(String name) {
15339
        return byName.get(name);
15340
      }
15341
 
15342
      private final short _thriftId;
15343
      private final String _fieldName;
15344
 
15345
      _Fields(short thriftId, String fieldName) {
15346
        _thriftId = thriftId;
15347
        _fieldName = fieldName;
15348
      }
15349
 
15350
      public short getThriftFieldId() {
15351
        return _thriftId;
15352
      }
15353
 
15354
      public String getFieldName() {
15355
        return _fieldName;
15356
      }
15357
    }
15358
 
15359
    // isset id assignments
15360
    private static final int __ITEMID_ISSET_ID = 0;
15361
    private static final int __WAREHOUSEID_ISSET_ID = 1;
5967 rajveer 15362
    private static final int __SOURCEID_ISSET_ID = 2;
15363
    private static final int __ORDERID_ISSET_ID = 3;
15364
    private static final int __QUANTITY_ISSET_ID = 4;
15365
    private BitSet __isset_bit_vector = new BitSet(5);
5945 mandeep.dh 15366
 
15367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15368
    static {
15369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15370
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15371
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15372
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5967 rajveer 15374
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15375
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15376
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5945 mandeep.dh 15378
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
15380
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15381
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_args.class, metaDataMap);
15382
    }
15383
 
15384
    public reduceReservationCount_args() {
15385
    }
15386
 
15387
    public reduceReservationCount_args(
15388
      long itemId,
15389
      long warehouseId,
5967 rajveer 15390
      long sourceId,
15391
      long orderId,
5945 mandeep.dh 15392
      double quantity)
15393
    {
15394
      this();
15395
      this.itemId = itemId;
15396
      setItemIdIsSet(true);
15397
      this.warehouseId = warehouseId;
15398
      setWarehouseIdIsSet(true);
5967 rajveer 15399
      this.sourceId = sourceId;
15400
      setSourceIdIsSet(true);
15401
      this.orderId = orderId;
15402
      setOrderIdIsSet(true);
5945 mandeep.dh 15403
      this.quantity = quantity;
15404
      setQuantityIsSet(true);
15405
    }
15406
 
15407
    /**
15408
     * Performs a deep copy on <i>other</i>.
15409
     */
15410
    public reduceReservationCount_args(reduceReservationCount_args other) {
15411
      __isset_bit_vector.clear();
15412
      __isset_bit_vector.or(other.__isset_bit_vector);
15413
      this.itemId = other.itemId;
15414
      this.warehouseId = other.warehouseId;
5967 rajveer 15415
      this.sourceId = other.sourceId;
15416
      this.orderId = other.orderId;
5945 mandeep.dh 15417
      this.quantity = other.quantity;
15418
    }
15419
 
15420
    public reduceReservationCount_args deepCopy() {
15421
      return new reduceReservationCount_args(this);
15422
    }
15423
 
15424
    @Override
15425
    public void clear() {
15426
      setItemIdIsSet(false);
15427
      this.itemId = 0;
15428
      setWarehouseIdIsSet(false);
15429
      this.warehouseId = 0;
5967 rajveer 15430
      setSourceIdIsSet(false);
15431
      this.sourceId = 0;
15432
      setOrderIdIsSet(false);
15433
      this.orderId = 0;
5945 mandeep.dh 15434
      setQuantityIsSet(false);
15435
      this.quantity = 0.0;
15436
    }
15437
 
15438
    public long getItemId() {
15439
      return this.itemId;
15440
    }
15441
 
15442
    public void setItemId(long itemId) {
15443
      this.itemId = itemId;
15444
      setItemIdIsSet(true);
15445
    }
15446
 
15447
    public void unsetItemId() {
15448
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
15449
    }
15450
 
15451
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
15452
    public boolean isSetItemId() {
15453
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
15454
    }
15455
 
15456
    public void setItemIdIsSet(boolean value) {
15457
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
15458
    }
15459
 
15460
    public long getWarehouseId() {
15461
      return this.warehouseId;
15462
    }
15463
 
15464
    public void setWarehouseId(long warehouseId) {
15465
      this.warehouseId = warehouseId;
15466
      setWarehouseIdIsSet(true);
15467
    }
15468
 
15469
    public void unsetWarehouseId() {
15470
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
15471
    }
15472
 
15473
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
15474
    public boolean isSetWarehouseId() {
15475
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
15476
    }
15477
 
15478
    public void setWarehouseIdIsSet(boolean value) {
15479
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
15480
    }
15481
 
5967 rajveer 15482
    public long getSourceId() {
15483
      return this.sourceId;
15484
    }
15485
 
15486
    public void setSourceId(long sourceId) {
15487
      this.sourceId = sourceId;
15488
      setSourceIdIsSet(true);
15489
    }
15490
 
15491
    public void unsetSourceId() {
15492
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
15493
    }
15494
 
15495
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
15496
    public boolean isSetSourceId() {
15497
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
15498
    }
15499
 
15500
    public void setSourceIdIsSet(boolean value) {
15501
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
15502
    }
15503
 
15504
    public long getOrderId() {
15505
      return this.orderId;
15506
    }
15507
 
15508
    public void setOrderId(long orderId) {
15509
      this.orderId = orderId;
15510
      setOrderIdIsSet(true);
15511
    }
15512
 
15513
    public void unsetOrderId() {
15514
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
15515
    }
15516
 
15517
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
15518
    public boolean isSetOrderId() {
15519
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
15520
    }
15521
 
15522
    public void setOrderIdIsSet(boolean value) {
15523
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
15524
    }
15525
 
5945 mandeep.dh 15526
    public double getQuantity() {
15527
      return this.quantity;
15528
    }
15529
 
15530
    public void setQuantity(double quantity) {
15531
      this.quantity = quantity;
15532
      setQuantityIsSet(true);
15533
    }
15534
 
15535
    public void unsetQuantity() {
15536
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
15537
    }
15538
 
15539
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
15540
    public boolean isSetQuantity() {
15541
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
15542
    }
15543
 
15544
    public void setQuantityIsSet(boolean value) {
15545
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
15546
    }
15547
 
15548
    public void setFieldValue(_Fields field, Object value) {
15549
      switch (field) {
15550
      case ITEM_ID:
15551
        if (value == null) {
15552
          unsetItemId();
15553
        } else {
15554
          setItemId((Long)value);
15555
        }
15556
        break;
15557
 
15558
      case WAREHOUSE_ID:
15559
        if (value == null) {
15560
          unsetWarehouseId();
15561
        } else {
15562
          setWarehouseId((Long)value);
15563
        }
15564
        break;
15565
 
5967 rajveer 15566
      case SOURCE_ID:
15567
        if (value == null) {
15568
          unsetSourceId();
15569
        } else {
15570
          setSourceId((Long)value);
15571
        }
15572
        break;
15573
 
15574
      case ORDER_ID:
15575
        if (value == null) {
15576
          unsetOrderId();
15577
        } else {
15578
          setOrderId((Long)value);
15579
        }
15580
        break;
15581
 
5945 mandeep.dh 15582
      case QUANTITY:
15583
        if (value == null) {
15584
          unsetQuantity();
15585
        } else {
15586
          setQuantity((Double)value);
15587
        }
15588
        break;
15589
 
15590
      }
15591
    }
15592
 
15593
    public Object getFieldValue(_Fields field) {
15594
      switch (field) {
15595
      case ITEM_ID:
15596
        return Long.valueOf(getItemId());
15597
 
15598
      case WAREHOUSE_ID:
15599
        return Long.valueOf(getWarehouseId());
15600
 
5967 rajveer 15601
      case SOURCE_ID:
15602
        return Long.valueOf(getSourceId());
15603
 
15604
      case ORDER_ID:
15605
        return Long.valueOf(getOrderId());
15606
 
5945 mandeep.dh 15607
      case QUANTITY:
15608
        return Double.valueOf(getQuantity());
15609
 
15610
      }
15611
      throw new IllegalStateException();
15612
    }
15613
 
15614
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15615
    public boolean isSet(_Fields field) {
15616
      if (field == null) {
15617
        throw new IllegalArgumentException();
15618
      }
15619
 
15620
      switch (field) {
15621
      case ITEM_ID:
15622
        return isSetItemId();
15623
      case WAREHOUSE_ID:
15624
        return isSetWarehouseId();
5967 rajveer 15625
      case SOURCE_ID:
15626
        return isSetSourceId();
15627
      case ORDER_ID:
15628
        return isSetOrderId();
5945 mandeep.dh 15629
      case QUANTITY:
15630
        return isSetQuantity();
15631
      }
15632
      throw new IllegalStateException();
15633
    }
15634
 
15635
    @Override
15636
    public boolean equals(Object that) {
15637
      if (that == null)
15638
        return false;
15639
      if (that instanceof reduceReservationCount_args)
15640
        return this.equals((reduceReservationCount_args)that);
15641
      return false;
15642
    }
15643
 
15644
    public boolean equals(reduceReservationCount_args that) {
15645
      if (that == null)
15646
        return false;
15647
 
15648
      boolean this_present_itemId = true;
15649
      boolean that_present_itemId = true;
15650
      if (this_present_itemId || that_present_itemId) {
15651
        if (!(this_present_itemId && that_present_itemId))
15652
          return false;
15653
        if (this.itemId != that.itemId)
15654
          return false;
15655
      }
15656
 
15657
      boolean this_present_warehouseId = true;
15658
      boolean that_present_warehouseId = true;
15659
      if (this_present_warehouseId || that_present_warehouseId) {
15660
        if (!(this_present_warehouseId && that_present_warehouseId))
15661
          return false;
15662
        if (this.warehouseId != that.warehouseId)
15663
          return false;
15664
      }
15665
 
5967 rajveer 15666
      boolean this_present_sourceId = true;
15667
      boolean that_present_sourceId = true;
15668
      if (this_present_sourceId || that_present_sourceId) {
15669
        if (!(this_present_sourceId && that_present_sourceId))
15670
          return false;
15671
        if (this.sourceId != that.sourceId)
15672
          return false;
15673
      }
15674
 
15675
      boolean this_present_orderId = true;
15676
      boolean that_present_orderId = true;
15677
      if (this_present_orderId || that_present_orderId) {
15678
        if (!(this_present_orderId && that_present_orderId))
15679
          return false;
15680
        if (this.orderId != that.orderId)
15681
          return false;
15682
      }
15683
 
5945 mandeep.dh 15684
      boolean this_present_quantity = true;
15685
      boolean that_present_quantity = true;
15686
      if (this_present_quantity || that_present_quantity) {
15687
        if (!(this_present_quantity && that_present_quantity))
15688
          return false;
15689
        if (this.quantity != that.quantity)
15690
          return false;
15691
      }
15692
 
15693
      return true;
15694
    }
15695
 
15696
    @Override
15697
    public int hashCode() {
15698
      return 0;
15699
    }
15700
 
15701
    public int compareTo(reduceReservationCount_args other) {
15702
      if (!getClass().equals(other.getClass())) {
15703
        return getClass().getName().compareTo(other.getClass().getName());
15704
      }
15705
 
15706
      int lastComparison = 0;
15707
      reduceReservationCount_args typedOther = (reduceReservationCount_args)other;
15708
 
15709
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15710
      if (lastComparison != 0) {
15711
        return lastComparison;
15712
      }
15713
      if (isSetItemId()) {
15714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15715
        if (lastComparison != 0) {
15716
          return lastComparison;
15717
        }
15718
      }
15719
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
15720
      if (lastComparison != 0) {
15721
        return lastComparison;
15722
      }
15723
      if (isSetWarehouseId()) {
15724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
15725
        if (lastComparison != 0) {
15726
          return lastComparison;
15727
        }
15728
      }
5967 rajveer 15729
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
15730
      if (lastComparison != 0) {
15731
        return lastComparison;
15732
      }
15733
      if (isSetSourceId()) {
15734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
15735
        if (lastComparison != 0) {
15736
          return lastComparison;
15737
        }
15738
      }
15739
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
15740
      if (lastComparison != 0) {
15741
        return lastComparison;
15742
      }
15743
      if (isSetOrderId()) {
15744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
15745
        if (lastComparison != 0) {
15746
          return lastComparison;
15747
        }
15748
      }
5945 mandeep.dh 15749
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
15750
      if (lastComparison != 0) {
15751
        return lastComparison;
15752
      }
15753
      if (isSetQuantity()) {
15754
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
15755
        if (lastComparison != 0) {
15756
          return lastComparison;
15757
        }
15758
      }
15759
      return 0;
15760
    }
15761
 
15762
    public _Fields fieldForId(int fieldId) {
15763
      return _Fields.findByThriftId(fieldId);
15764
    }
15765
 
15766
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15767
      org.apache.thrift.protocol.TField field;
15768
      iprot.readStructBegin();
15769
      while (true)
15770
      {
15771
        field = iprot.readFieldBegin();
15772
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15773
          break;
15774
        }
15775
        switch (field.id) {
15776
          case 1: // ITEM_ID
15777
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15778
              this.itemId = iprot.readI64();
15779
              setItemIdIsSet(true);
15780
            } else { 
15781
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15782
            }
15783
            break;
15784
          case 2: // WAREHOUSE_ID
15785
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15786
              this.warehouseId = iprot.readI64();
15787
              setWarehouseIdIsSet(true);
15788
            } else { 
15789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15790
            }
15791
            break;
5967 rajveer 15792
          case 3: // SOURCE_ID
15793
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15794
              this.sourceId = iprot.readI64();
15795
              setSourceIdIsSet(true);
15796
            } else { 
15797
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15798
            }
15799
            break;
15800
          case 4: // ORDER_ID
15801
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15802
              this.orderId = iprot.readI64();
15803
              setOrderIdIsSet(true);
15804
            } else { 
15805
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15806
            }
15807
            break;
15808
          case 5: // QUANTITY
5945 mandeep.dh 15809
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
15810
              this.quantity = iprot.readDouble();
15811
              setQuantityIsSet(true);
15812
            } else { 
15813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15814
            }
15815
            break;
15816
          default:
15817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15818
        }
15819
        iprot.readFieldEnd();
15820
      }
15821
      iprot.readStructEnd();
15822
      validate();
15823
    }
15824
 
15825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15826
      validate();
15827
 
15828
      oprot.writeStructBegin(STRUCT_DESC);
15829
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15830
      oprot.writeI64(this.itemId);
15831
      oprot.writeFieldEnd();
15832
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
15833
      oprot.writeI64(this.warehouseId);
15834
      oprot.writeFieldEnd();
5967 rajveer 15835
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
15836
      oprot.writeI64(this.sourceId);
15837
      oprot.writeFieldEnd();
15838
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
15839
      oprot.writeI64(this.orderId);
15840
      oprot.writeFieldEnd();
5945 mandeep.dh 15841
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
15842
      oprot.writeDouble(this.quantity);
15843
      oprot.writeFieldEnd();
15844
      oprot.writeFieldStop();
15845
      oprot.writeStructEnd();
15846
    }
15847
 
15848
    @Override
15849
    public String toString() {
15850
      StringBuilder sb = new StringBuilder("reduceReservationCount_args(");
15851
      boolean first = true;
15852
 
15853
      sb.append("itemId:");
15854
      sb.append(this.itemId);
15855
      first = false;
15856
      if (!first) sb.append(", ");
15857
      sb.append("warehouseId:");
15858
      sb.append(this.warehouseId);
15859
      first = false;
15860
      if (!first) sb.append(", ");
5967 rajveer 15861
      sb.append("sourceId:");
15862
      sb.append(this.sourceId);
15863
      first = false;
15864
      if (!first) sb.append(", ");
15865
      sb.append("orderId:");
15866
      sb.append(this.orderId);
15867
      first = false;
15868
      if (!first) sb.append(", ");
5945 mandeep.dh 15869
      sb.append("quantity:");
15870
      sb.append(this.quantity);
15871
      first = false;
15872
      sb.append(")");
15873
      return sb.toString();
15874
    }
15875
 
15876
    public void validate() throws org.apache.thrift.TException {
15877
      // check for required fields
15878
    }
15879
 
15880
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15881
      try {
15882
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15883
      } catch (org.apache.thrift.TException te) {
15884
        throw new java.io.IOException(te);
15885
      }
15886
    }
15887
 
15888
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15889
      try {
15890
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15891
      } catch (org.apache.thrift.TException te) {
15892
        throw new java.io.IOException(te);
15893
      }
15894
    }
15895
 
15896
  }
15897
 
15898
  public static class reduceReservationCount_result implements org.apache.thrift.TBase<reduceReservationCount_result, reduceReservationCount_result._Fields>, java.io.Serializable, Cloneable   {
15899
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reduceReservationCount_result");
15900
 
15901
    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);
15902
    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);
15903
 
15904
    private boolean success; // required
15905
    private InventoryServiceException cex; // required
15906
 
15907
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15908
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15909
      SUCCESS((short)0, "success"),
15910
      CEX((short)1, "cex");
15911
 
15912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15913
 
15914
      static {
15915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15916
          byName.put(field.getFieldName(), field);
15917
        }
15918
      }
15919
 
15920
      /**
15921
       * Find the _Fields constant that matches fieldId, or null if its not found.
15922
       */
15923
      public static _Fields findByThriftId(int fieldId) {
15924
        switch(fieldId) {
15925
          case 0: // SUCCESS
15926
            return SUCCESS;
15927
          case 1: // CEX
15928
            return CEX;
15929
          default:
15930
            return null;
15931
        }
15932
      }
15933
 
15934
      /**
15935
       * Find the _Fields constant that matches fieldId, throwing an exception
15936
       * if it is not found.
15937
       */
15938
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15939
        _Fields fields = findByThriftId(fieldId);
15940
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15941
        return fields;
15942
      }
15943
 
15944
      /**
15945
       * Find the _Fields constant that matches name, or null if its not found.
15946
       */
15947
      public static _Fields findByName(String name) {
15948
        return byName.get(name);
15949
      }
15950
 
15951
      private final short _thriftId;
15952
      private final String _fieldName;
15953
 
15954
      _Fields(short thriftId, String fieldName) {
15955
        _thriftId = thriftId;
15956
        _fieldName = fieldName;
15957
      }
15958
 
15959
      public short getThriftFieldId() {
15960
        return _thriftId;
15961
      }
15962
 
15963
      public String getFieldName() {
15964
        return _fieldName;
15965
      }
15966
    }
15967
 
15968
    // isset id assignments
15969
    private static final int __SUCCESS_ISSET_ID = 0;
15970
    private BitSet __isset_bit_vector = new BitSet(1);
15971
 
15972
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15973
    static {
15974
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15975
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15976
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15977
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reduceReservationCount_result.class, metaDataMap);
15981
    }
15982
 
15983
    public reduceReservationCount_result() {
15984
    }
15985
 
15986
    public reduceReservationCount_result(
15987
      boolean success,
15988
      InventoryServiceException cex)
15989
    {
15990
      this();
15991
      this.success = success;
15992
      setSuccessIsSet(true);
15993
      this.cex = cex;
15994
    }
15995
 
15996
    /**
15997
     * Performs a deep copy on <i>other</i>.
15998
     */
15999
    public reduceReservationCount_result(reduceReservationCount_result other) {
16000
      __isset_bit_vector.clear();
16001
      __isset_bit_vector.or(other.__isset_bit_vector);
16002
      this.success = other.success;
16003
      if (other.isSetCex()) {
16004
        this.cex = new InventoryServiceException(other.cex);
16005
      }
16006
    }
16007
 
16008
    public reduceReservationCount_result deepCopy() {
16009
      return new reduceReservationCount_result(this);
16010
    }
16011
 
16012
    @Override
16013
    public void clear() {
16014
      setSuccessIsSet(false);
16015
      this.success = false;
16016
      this.cex = null;
16017
    }
16018
 
16019
    public boolean isSuccess() {
16020
      return this.success;
16021
    }
16022
 
16023
    public void setSuccess(boolean success) {
16024
      this.success = success;
16025
      setSuccessIsSet(true);
16026
    }
16027
 
16028
    public void unsetSuccess() {
16029
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16030
    }
16031
 
16032
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16033
    public boolean isSetSuccess() {
16034
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16035
    }
16036
 
16037
    public void setSuccessIsSet(boolean value) {
16038
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16039
    }
16040
 
16041
    public InventoryServiceException getCex() {
16042
      return this.cex;
16043
    }
16044
 
16045
    public void setCex(InventoryServiceException cex) {
16046
      this.cex = cex;
16047
    }
16048
 
16049
    public void unsetCex() {
16050
      this.cex = null;
16051
    }
16052
 
16053
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16054
    public boolean isSetCex() {
16055
      return this.cex != null;
16056
    }
16057
 
16058
    public void setCexIsSet(boolean value) {
16059
      if (!value) {
16060
        this.cex = null;
16061
      }
16062
    }
16063
 
16064
    public void setFieldValue(_Fields field, Object value) {
16065
      switch (field) {
16066
      case SUCCESS:
16067
        if (value == null) {
16068
          unsetSuccess();
16069
        } else {
16070
          setSuccess((Boolean)value);
16071
        }
16072
        break;
16073
 
16074
      case CEX:
16075
        if (value == null) {
16076
          unsetCex();
16077
        } else {
16078
          setCex((InventoryServiceException)value);
16079
        }
16080
        break;
16081
 
16082
      }
16083
    }
16084
 
16085
    public Object getFieldValue(_Fields field) {
16086
      switch (field) {
16087
      case SUCCESS:
16088
        return Boolean.valueOf(isSuccess());
16089
 
16090
      case CEX:
16091
        return getCex();
16092
 
16093
      }
16094
      throw new IllegalStateException();
16095
    }
16096
 
16097
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16098
    public boolean isSet(_Fields field) {
16099
      if (field == null) {
16100
        throw new IllegalArgumentException();
16101
      }
16102
 
16103
      switch (field) {
16104
      case SUCCESS:
16105
        return isSetSuccess();
16106
      case CEX:
16107
        return isSetCex();
16108
      }
16109
      throw new IllegalStateException();
16110
    }
16111
 
16112
    @Override
16113
    public boolean equals(Object that) {
16114
      if (that == null)
16115
        return false;
16116
      if (that instanceof reduceReservationCount_result)
16117
        return this.equals((reduceReservationCount_result)that);
16118
      return false;
16119
    }
16120
 
16121
    public boolean equals(reduceReservationCount_result that) {
16122
      if (that == null)
16123
        return false;
16124
 
16125
      boolean this_present_success = true;
16126
      boolean that_present_success = true;
16127
      if (this_present_success || that_present_success) {
16128
        if (!(this_present_success && that_present_success))
16129
          return false;
16130
        if (this.success != that.success)
16131
          return false;
16132
      }
16133
 
16134
      boolean this_present_cex = true && this.isSetCex();
16135
      boolean that_present_cex = true && that.isSetCex();
16136
      if (this_present_cex || that_present_cex) {
16137
        if (!(this_present_cex && that_present_cex))
16138
          return false;
16139
        if (!this.cex.equals(that.cex))
16140
          return false;
16141
      }
16142
 
16143
      return true;
16144
    }
16145
 
16146
    @Override
16147
    public int hashCode() {
16148
      return 0;
16149
    }
16150
 
16151
    public int compareTo(reduceReservationCount_result other) {
16152
      if (!getClass().equals(other.getClass())) {
16153
        return getClass().getName().compareTo(other.getClass().getName());
16154
      }
16155
 
16156
      int lastComparison = 0;
16157
      reduceReservationCount_result typedOther = (reduceReservationCount_result)other;
16158
 
16159
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16160
      if (lastComparison != 0) {
16161
        return lastComparison;
16162
      }
16163
      if (isSetSuccess()) {
16164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16165
        if (lastComparison != 0) {
16166
          return lastComparison;
16167
        }
16168
      }
16169
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16170
      if (lastComparison != 0) {
16171
        return lastComparison;
16172
      }
16173
      if (isSetCex()) {
16174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16175
        if (lastComparison != 0) {
16176
          return lastComparison;
16177
        }
16178
      }
16179
      return 0;
16180
    }
16181
 
16182
    public _Fields fieldForId(int fieldId) {
16183
      return _Fields.findByThriftId(fieldId);
16184
    }
16185
 
16186
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16187
      org.apache.thrift.protocol.TField field;
16188
      iprot.readStructBegin();
16189
      while (true)
16190
      {
16191
        field = iprot.readFieldBegin();
16192
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16193
          break;
16194
        }
16195
        switch (field.id) {
16196
          case 0: // SUCCESS
16197
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16198
              this.success = iprot.readBool();
16199
              setSuccessIsSet(true);
16200
            } else { 
16201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16202
            }
16203
            break;
16204
          case 1: // CEX
16205
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16206
              this.cex = new InventoryServiceException();
16207
              this.cex.read(iprot);
16208
            } else { 
16209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16210
            }
16211
            break;
16212
          default:
16213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16214
        }
16215
        iprot.readFieldEnd();
16216
      }
16217
      iprot.readStructEnd();
16218
      validate();
16219
    }
16220
 
16221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16222
      oprot.writeStructBegin(STRUCT_DESC);
16223
 
16224
      if (this.isSetSuccess()) {
16225
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16226
        oprot.writeBool(this.success);
16227
        oprot.writeFieldEnd();
16228
      } else if (this.isSetCex()) {
16229
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16230
        this.cex.write(oprot);
16231
        oprot.writeFieldEnd();
16232
      }
16233
      oprot.writeFieldStop();
16234
      oprot.writeStructEnd();
16235
    }
16236
 
16237
    @Override
16238
    public String toString() {
16239
      StringBuilder sb = new StringBuilder("reduceReservationCount_result(");
16240
      boolean first = true;
16241
 
16242
      sb.append("success:");
16243
      sb.append(this.success);
16244
      first = false;
16245
      if (!first) sb.append(", ");
16246
      sb.append("cex:");
16247
      if (this.cex == null) {
16248
        sb.append("null");
16249
      } else {
16250
        sb.append(this.cex);
16251
      }
16252
      first = false;
16253
      sb.append(")");
16254
      return sb.toString();
16255
    }
16256
 
16257
    public void validate() throws org.apache.thrift.TException {
16258
      // check for required fields
16259
    }
16260
 
16261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16262
      try {
16263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16264
      } catch (org.apache.thrift.TException te) {
16265
        throw new java.io.IOException(te);
16266
      }
16267
    }
16268
 
16269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16270
      try {
7322 vikram.rag 16271
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16272
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 16273
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16274
      } catch (org.apache.thrift.TException te) {
16275
        throw new java.io.IOException(te);
16276
      }
16277
    }
16278
 
16279
  }
16280
 
16281
  public static class getItemPricing_args implements org.apache.thrift.TBase<getItemPricing_args, getItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
16282
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_args");
16283
 
16284
    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);
16285
    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);
16286
 
16287
    private long itemId; // required
16288
    private long vendorId; // required
16289
 
16290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16292
      ITEM_ID((short)1, "itemId"),
16293
      VENDOR_ID((short)2, "vendorId");
16294
 
16295
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16296
 
16297
      static {
16298
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16299
          byName.put(field.getFieldName(), field);
16300
        }
16301
      }
16302
 
16303
      /**
16304
       * Find the _Fields constant that matches fieldId, or null if its not found.
16305
       */
16306
      public static _Fields findByThriftId(int fieldId) {
16307
        switch(fieldId) {
16308
          case 1: // ITEM_ID
16309
            return ITEM_ID;
16310
          case 2: // VENDOR_ID
16311
            return VENDOR_ID;
16312
          default:
16313
            return null;
16314
        }
16315
      }
16316
 
16317
      /**
16318
       * Find the _Fields constant that matches fieldId, throwing an exception
16319
       * if it is not found.
16320
       */
16321
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16322
        _Fields fields = findByThriftId(fieldId);
16323
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16324
        return fields;
16325
      }
16326
 
16327
      /**
16328
       * Find the _Fields constant that matches name, or null if its not found.
16329
       */
16330
      public static _Fields findByName(String name) {
16331
        return byName.get(name);
16332
      }
16333
 
16334
      private final short _thriftId;
16335
      private final String _fieldName;
16336
 
16337
      _Fields(short thriftId, String fieldName) {
16338
        _thriftId = thriftId;
16339
        _fieldName = fieldName;
16340
      }
16341
 
16342
      public short getThriftFieldId() {
16343
        return _thriftId;
16344
      }
16345
 
16346
      public String getFieldName() {
16347
        return _fieldName;
16348
      }
16349
    }
16350
 
16351
    // isset id assignments
16352
    private static final int __ITEMID_ISSET_ID = 0;
16353
    private static final int __VENDORID_ISSET_ID = 1;
16354
    private BitSet __isset_bit_vector = new BitSet(2);
16355
 
16356
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16357
    static {
16358
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16359
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16361
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_args.class, metaDataMap);
16365
    }
16366
 
16367
    public getItemPricing_args() {
16368
    }
16369
 
16370
    public getItemPricing_args(
16371
      long itemId,
16372
      long vendorId)
16373
    {
16374
      this();
16375
      this.itemId = itemId;
16376
      setItemIdIsSet(true);
16377
      this.vendorId = vendorId;
16378
      setVendorIdIsSet(true);
16379
    }
16380
 
16381
    /**
16382
     * Performs a deep copy on <i>other</i>.
16383
     */
16384
    public getItemPricing_args(getItemPricing_args other) {
16385
      __isset_bit_vector.clear();
16386
      __isset_bit_vector.or(other.__isset_bit_vector);
16387
      this.itemId = other.itemId;
16388
      this.vendorId = other.vendorId;
16389
    }
16390
 
16391
    public getItemPricing_args deepCopy() {
16392
      return new getItemPricing_args(this);
16393
    }
16394
 
16395
    @Override
16396
    public void clear() {
16397
      setItemIdIsSet(false);
16398
      this.itemId = 0;
16399
      setVendorIdIsSet(false);
16400
      this.vendorId = 0;
16401
    }
16402
 
16403
    public long getItemId() {
16404
      return this.itemId;
16405
    }
16406
 
16407
    public void setItemId(long itemId) {
16408
      this.itemId = itemId;
16409
      setItemIdIsSet(true);
16410
    }
16411
 
16412
    public void unsetItemId() {
16413
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
16414
    }
16415
 
16416
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
16417
    public boolean isSetItemId() {
16418
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
16419
    }
16420
 
16421
    public void setItemIdIsSet(boolean value) {
16422
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
16423
    }
16424
 
16425
    public long getVendorId() {
16426
      return this.vendorId;
16427
    }
16428
 
16429
    public void setVendorId(long vendorId) {
16430
      this.vendorId = vendorId;
16431
      setVendorIdIsSet(true);
16432
    }
16433
 
16434
    public void unsetVendorId() {
16435
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
16436
    }
16437
 
16438
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
16439
    public boolean isSetVendorId() {
16440
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
16441
    }
16442
 
16443
    public void setVendorIdIsSet(boolean value) {
16444
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
16445
    }
16446
 
16447
    public void setFieldValue(_Fields field, Object value) {
16448
      switch (field) {
16449
      case ITEM_ID:
16450
        if (value == null) {
16451
          unsetItemId();
16452
        } else {
16453
          setItemId((Long)value);
16454
        }
16455
        break;
16456
 
16457
      case VENDOR_ID:
16458
        if (value == null) {
16459
          unsetVendorId();
16460
        } else {
16461
          setVendorId((Long)value);
16462
        }
16463
        break;
16464
 
16465
      }
16466
    }
16467
 
16468
    public Object getFieldValue(_Fields field) {
16469
      switch (field) {
16470
      case ITEM_ID:
16471
        return Long.valueOf(getItemId());
16472
 
16473
      case VENDOR_ID:
16474
        return Long.valueOf(getVendorId());
16475
 
16476
      }
16477
      throw new IllegalStateException();
16478
    }
16479
 
16480
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16481
    public boolean isSet(_Fields field) {
16482
      if (field == null) {
16483
        throw new IllegalArgumentException();
16484
      }
16485
 
16486
      switch (field) {
16487
      case ITEM_ID:
16488
        return isSetItemId();
16489
      case VENDOR_ID:
16490
        return isSetVendorId();
16491
      }
16492
      throw new IllegalStateException();
16493
    }
16494
 
16495
    @Override
16496
    public boolean equals(Object that) {
16497
      if (that == null)
16498
        return false;
16499
      if (that instanceof getItemPricing_args)
16500
        return this.equals((getItemPricing_args)that);
16501
      return false;
16502
    }
16503
 
16504
    public boolean equals(getItemPricing_args that) {
16505
      if (that == null)
16506
        return false;
16507
 
16508
      boolean this_present_itemId = true;
16509
      boolean that_present_itemId = true;
16510
      if (this_present_itemId || that_present_itemId) {
16511
        if (!(this_present_itemId && that_present_itemId))
16512
          return false;
16513
        if (this.itemId != that.itemId)
16514
          return false;
16515
      }
16516
 
16517
      boolean this_present_vendorId = true;
16518
      boolean that_present_vendorId = true;
16519
      if (this_present_vendorId || that_present_vendorId) {
16520
        if (!(this_present_vendorId && that_present_vendorId))
16521
          return false;
16522
        if (this.vendorId != that.vendorId)
16523
          return false;
16524
      }
16525
 
16526
      return true;
16527
    }
16528
 
16529
    @Override
16530
    public int hashCode() {
16531
      return 0;
16532
    }
16533
 
16534
    public int compareTo(getItemPricing_args other) {
16535
      if (!getClass().equals(other.getClass())) {
16536
        return getClass().getName().compareTo(other.getClass().getName());
16537
      }
16538
 
16539
      int lastComparison = 0;
16540
      getItemPricing_args typedOther = (getItemPricing_args)other;
16541
 
16542
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
16543
      if (lastComparison != 0) {
16544
        return lastComparison;
16545
      }
16546
      if (isSetItemId()) {
16547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
16548
        if (lastComparison != 0) {
16549
          return lastComparison;
16550
        }
16551
      }
16552
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
16553
      if (lastComparison != 0) {
16554
        return lastComparison;
16555
      }
16556
      if (isSetVendorId()) {
16557
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
16558
        if (lastComparison != 0) {
16559
          return lastComparison;
16560
        }
16561
      }
16562
      return 0;
16563
    }
16564
 
16565
    public _Fields fieldForId(int fieldId) {
16566
      return _Fields.findByThriftId(fieldId);
16567
    }
16568
 
16569
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16570
      org.apache.thrift.protocol.TField field;
16571
      iprot.readStructBegin();
16572
      while (true)
16573
      {
16574
        field = iprot.readFieldBegin();
16575
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16576
          break;
16577
        }
16578
        switch (field.id) {
16579
          case 1: // ITEM_ID
16580
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16581
              this.itemId = iprot.readI64();
16582
              setItemIdIsSet(true);
16583
            } else { 
16584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16585
            }
16586
            break;
16587
          case 2: // VENDOR_ID
16588
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16589
              this.vendorId = iprot.readI64();
16590
              setVendorIdIsSet(true);
16591
            } else { 
16592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16593
            }
16594
            break;
16595
          default:
16596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16597
        }
16598
        iprot.readFieldEnd();
16599
      }
16600
      iprot.readStructEnd();
16601
      validate();
16602
    }
16603
 
16604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16605
      validate();
16606
 
16607
      oprot.writeStructBegin(STRUCT_DESC);
16608
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
16609
      oprot.writeI64(this.itemId);
16610
      oprot.writeFieldEnd();
16611
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
16612
      oprot.writeI64(this.vendorId);
16613
      oprot.writeFieldEnd();
16614
      oprot.writeFieldStop();
16615
      oprot.writeStructEnd();
16616
    }
16617
 
16618
    @Override
16619
    public String toString() {
16620
      StringBuilder sb = new StringBuilder("getItemPricing_args(");
16621
      boolean first = true;
16622
 
16623
      sb.append("itemId:");
16624
      sb.append(this.itemId);
16625
      first = false;
16626
      if (!first) sb.append(", ");
16627
      sb.append("vendorId:");
16628
      sb.append(this.vendorId);
16629
      first = false;
16630
      sb.append(")");
16631
      return sb.toString();
16632
    }
16633
 
16634
    public void validate() throws org.apache.thrift.TException {
16635
      // check for required fields
16636
    }
16637
 
16638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16639
      try {
16640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16641
      } catch (org.apache.thrift.TException te) {
16642
        throw new java.io.IOException(te);
16643
      }
16644
    }
16645
 
16646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16647
      try {
16648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16649
      } catch (org.apache.thrift.TException te) {
16650
        throw new java.io.IOException(te);
16651
      }
16652
    }
16653
 
16654
  }
16655
 
16656
  public static class getItemPricing_result implements org.apache.thrift.TBase<getItemPricing_result, getItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
16657
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPricing_result");
16658
 
16659
    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);
16660
    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);
16661
 
16662
    private VendorItemPricing success; // required
16663
    private InventoryServiceException cex; // required
16664
 
16665
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16666
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16667
      SUCCESS((short)0, "success"),
16668
      CEX((short)1, "cex");
16669
 
16670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16671
 
16672
      static {
16673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16674
          byName.put(field.getFieldName(), field);
16675
        }
16676
      }
16677
 
16678
      /**
16679
       * Find the _Fields constant that matches fieldId, or null if its not found.
16680
       */
16681
      public static _Fields findByThriftId(int fieldId) {
16682
        switch(fieldId) {
16683
          case 0: // SUCCESS
16684
            return SUCCESS;
16685
          case 1: // CEX
16686
            return CEX;
16687
          default:
16688
            return null;
16689
        }
16690
      }
16691
 
16692
      /**
16693
       * Find the _Fields constant that matches fieldId, throwing an exception
16694
       * if it is not found.
16695
       */
16696
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16697
        _Fields fields = findByThriftId(fieldId);
16698
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16699
        return fields;
16700
      }
16701
 
16702
      /**
16703
       * Find the _Fields constant that matches name, or null if its not found.
16704
       */
16705
      public static _Fields findByName(String name) {
16706
        return byName.get(name);
16707
      }
16708
 
16709
      private final short _thriftId;
16710
      private final String _fieldName;
16711
 
16712
      _Fields(short thriftId, String fieldName) {
16713
        _thriftId = thriftId;
16714
        _fieldName = fieldName;
16715
      }
16716
 
16717
      public short getThriftFieldId() {
16718
        return _thriftId;
16719
      }
16720
 
16721
      public String getFieldName() {
16722
        return _fieldName;
16723
      }
16724
    }
16725
 
16726
    // isset id assignments
16727
 
16728
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16729
    static {
16730
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16731
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16732
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
16733
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16734
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16735
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16736
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPricing_result.class, metaDataMap);
16737
    }
16738
 
16739
    public getItemPricing_result() {
16740
    }
16741
 
16742
    public getItemPricing_result(
16743
      VendorItemPricing success,
16744
      InventoryServiceException cex)
16745
    {
16746
      this();
16747
      this.success = success;
16748
      this.cex = cex;
16749
    }
16750
 
16751
    /**
16752
     * Performs a deep copy on <i>other</i>.
16753
     */
16754
    public getItemPricing_result(getItemPricing_result other) {
16755
      if (other.isSetSuccess()) {
16756
        this.success = new VendorItemPricing(other.success);
16757
      }
16758
      if (other.isSetCex()) {
16759
        this.cex = new InventoryServiceException(other.cex);
16760
      }
16761
    }
16762
 
16763
    public getItemPricing_result deepCopy() {
16764
      return new getItemPricing_result(this);
16765
    }
16766
 
16767
    @Override
16768
    public void clear() {
16769
      this.success = null;
16770
      this.cex = null;
16771
    }
16772
 
16773
    public VendorItemPricing getSuccess() {
16774
      return this.success;
16775
    }
16776
 
16777
    public void setSuccess(VendorItemPricing success) {
16778
      this.success = success;
16779
    }
16780
 
16781
    public void unsetSuccess() {
16782
      this.success = null;
16783
    }
16784
 
16785
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16786
    public boolean isSetSuccess() {
16787
      return this.success != null;
16788
    }
16789
 
16790
    public void setSuccessIsSet(boolean value) {
16791
      if (!value) {
16792
        this.success = null;
16793
      }
16794
    }
16795
 
16796
    public InventoryServiceException getCex() {
16797
      return this.cex;
16798
    }
16799
 
16800
    public void setCex(InventoryServiceException cex) {
16801
      this.cex = cex;
16802
    }
16803
 
16804
    public void unsetCex() {
16805
      this.cex = null;
16806
    }
16807
 
16808
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
16809
    public boolean isSetCex() {
16810
      return this.cex != null;
16811
    }
16812
 
16813
    public void setCexIsSet(boolean value) {
16814
      if (!value) {
16815
        this.cex = null;
16816
      }
16817
    }
16818
 
16819
    public void setFieldValue(_Fields field, Object value) {
16820
      switch (field) {
16821
      case SUCCESS:
16822
        if (value == null) {
16823
          unsetSuccess();
16824
        } else {
16825
          setSuccess((VendorItemPricing)value);
16826
        }
16827
        break;
16828
 
16829
      case CEX:
16830
        if (value == null) {
16831
          unsetCex();
16832
        } else {
16833
          setCex((InventoryServiceException)value);
16834
        }
16835
        break;
16836
 
16837
      }
16838
    }
16839
 
16840
    public Object getFieldValue(_Fields field) {
16841
      switch (field) {
16842
      case SUCCESS:
16843
        return getSuccess();
16844
 
16845
      case CEX:
16846
        return getCex();
16847
 
16848
      }
16849
      throw new IllegalStateException();
16850
    }
16851
 
16852
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16853
    public boolean isSet(_Fields field) {
16854
      if (field == null) {
16855
        throw new IllegalArgumentException();
16856
      }
16857
 
16858
      switch (field) {
16859
      case SUCCESS:
16860
        return isSetSuccess();
16861
      case CEX:
16862
        return isSetCex();
16863
      }
16864
      throw new IllegalStateException();
16865
    }
16866
 
16867
    @Override
16868
    public boolean equals(Object that) {
16869
      if (that == null)
16870
        return false;
16871
      if (that instanceof getItemPricing_result)
16872
        return this.equals((getItemPricing_result)that);
16873
      return false;
16874
    }
16875
 
16876
    public boolean equals(getItemPricing_result that) {
16877
      if (that == null)
16878
        return false;
16879
 
16880
      boolean this_present_success = true && this.isSetSuccess();
16881
      boolean that_present_success = true && that.isSetSuccess();
16882
      if (this_present_success || that_present_success) {
16883
        if (!(this_present_success && that_present_success))
16884
          return false;
16885
        if (!this.success.equals(that.success))
16886
          return false;
16887
      }
16888
 
16889
      boolean this_present_cex = true && this.isSetCex();
16890
      boolean that_present_cex = true && that.isSetCex();
16891
      if (this_present_cex || that_present_cex) {
16892
        if (!(this_present_cex && that_present_cex))
16893
          return false;
16894
        if (!this.cex.equals(that.cex))
16895
          return false;
16896
      }
16897
 
16898
      return true;
16899
    }
16900
 
16901
    @Override
16902
    public int hashCode() {
16903
      return 0;
16904
    }
16905
 
16906
    public int compareTo(getItemPricing_result other) {
16907
      if (!getClass().equals(other.getClass())) {
16908
        return getClass().getName().compareTo(other.getClass().getName());
16909
      }
16910
 
16911
      int lastComparison = 0;
16912
      getItemPricing_result typedOther = (getItemPricing_result)other;
16913
 
16914
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16915
      if (lastComparison != 0) {
16916
        return lastComparison;
16917
      }
16918
      if (isSetSuccess()) {
16919
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16920
        if (lastComparison != 0) {
16921
          return lastComparison;
16922
        }
16923
      }
16924
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
16925
      if (lastComparison != 0) {
16926
        return lastComparison;
16927
      }
16928
      if (isSetCex()) {
16929
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
16930
        if (lastComparison != 0) {
16931
          return lastComparison;
16932
        }
16933
      }
16934
      return 0;
16935
    }
16936
 
16937
    public _Fields fieldForId(int fieldId) {
16938
      return _Fields.findByThriftId(fieldId);
16939
    }
16940
 
16941
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16942
      org.apache.thrift.protocol.TField field;
16943
      iprot.readStructBegin();
16944
      while (true)
16945
      {
16946
        field = iprot.readFieldBegin();
16947
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16948
          break;
16949
        }
16950
        switch (field.id) {
16951
          case 0: // SUCCESS
16952
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16953
              this.success = new VendorItemPricing();
16954
              this.success.read(iprot);
16955
            } else { 
16956
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16957
            }
16958
            break;
16959
          case 1: // CEX
16960
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16961
              this.cex = new InventoryServiceException();
16962
              this.cex.read(iprot);
16963
            } else { 
16964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16965
            }
16966
            break;
16967
          default:
16968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16969
        }
16970
        iprot.readFieldEnd();
16971
      }
16972
      iprot.readStructEnd();
16973
      validate();
16974
    }
16975
 
16976
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16977
      oprot.writeStructBegin(STRUCT_DESC);
16978
 
16979
      if (this.isSetSuccess()) {
16980
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16981
        this.success.write(oprot);
16982
        oprot.writeFieldEnd();
16983
      } else if (this.isSetCex()) {
16984
        oprot.writeFieldBegin(CEX_FIELD_DESC);
16985
        this.cex.write(oprot);
16986
        oprot.writeFieldEnd();
16987
      }
16988
      oprot.writeFieldStop();
16989
      oprot.writeStructEnd();
16990
    }
16991
 
16992
    @Override
16993
    public String toString() {
16994
      StringBuilder sb = new StringBuilder("getItemPricing_result(");
16995
      boolean first = true;
16996
 
16997
      sb.append("success:");
16998
      if (this.success == null) {
16999
        sb.append("null");
17000
      } else {
17001
        sb.append(this.success);
17002
      }
17003
      first = false;
17004
      if (!first) sb.append(", ");
17005
      sb.append("cex:");
17006
      if (this.cex == null) {
17007
        sb.append("null");
17008
      } else {
17009
        sb.append(this.cex);
17010
      }
17011
      first = false;
17012
      sb.append(")");
17013
      return sb.toString();
17014
    }
17015
 
17016
    public void validate() throws org.apache.thrift.TException {
17017
      // check for required fields
17018
    }
17019
 
17020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17021
      try {
17022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17023
      } catch (org.apache.thrift.TException te) {
17024
        throw new java.io.IOException(te);
17025
      }
17026
    }
17027
 
17028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17029
      try {
17030
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17031
      } catch (org.apache.thrift.TException te) {
17032
        throw new java.io.IOException(te);
17033
      }
17034
    }
17035
 
17036
  }
17037
 
17038
  public static class getAllItemPricing_args implements org.apache.thrift.TBase<getAllItemPricing_args, getAllItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
17039
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_args");
17040
 
17041
    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);
17042
 
17043
    private long itemId; // required
17044
 
17045
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17046
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17047
      ITEM_ID((short)1, "itemId");
17048
 
17049
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17050
 
17051
      static {
17052
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17053
          byName.put(field.getFieldName(), field);
17054
        }
17055
      }
17056
 
17057
      /**
17058
       * Find the _Fields constant that matches fieldId, or null if its not found.
17059
       */
17060
      public static _Fields findByThriftId(int fieldId) {
17061
        switch(fieldId) {
17062
          case 1: // ITEM_ID
17063
            return ITEM_ID;
17064
          default:
17065
            return null;
17066
        }
17067
      }
17068
 
17069
      /**
17070
       * Find the _Fields constant that matches fieldId, throwing an exception
17071
       * if it is not found.
17072
       */
17073
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17074
        _Fields fields = findByThriftId(fieldId);
17075
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17076
        return fields;
17077
      }
17078
 
17079
      /**
17080
       * Find the _Fields constant that matches name, or null if its not found.
17081
       */
17082
      public static _Fields findByName(String name) {
17083
        return byName.get(name);
17084
      }
17085
 
17086
      private final short _thriftId;
17087
      private final String _fieldName;
17088
 
17089
      _Fields(short thriftId, String fieldName) {
17090
        _thriftId = thriftId;
17091
        _fieldName = fieldName;
17092
      }
17093
 
17094
      public short getThriftFieldId() {
17095
        return _thriftId;
17096
      }
17097
 
17098
      public String getFieldName() {
17099
        return _fieldName;
17100
      }
17101
    }
17102
 
17103
    // isset id assignments
17104
    private static final int __ITEMID_ISSET_ID = 0;
17105
    private BitSet __isset_bit_vector = new BitSet(1);
17106
 
17107
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17108
    static {
17109
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17110
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17111
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17112
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17113
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_args.class, metaDataMap);
17114
    }
17115
 
17116
    public getAllItemPricing_args() {
17117
    }
17118
 
17119
    public getAllItemPricing_args(
17120
      long itemId)
17121
    {
17122
      this();
17123
      this.itemId = itemId;
17124
      setItemIdIsSet(true);
17125
    }
17126
 
17127
    /**
17128
     * Performs a deep copy on <i>other</i>.
17129
     */
17130
    public getAllItemPricing_args(getAllItemPricing_args other) {
17131
      __isset_bit_vector.clear();
17132
      __isset_bit_vector.or(other.__isset_bit_vector);
17133
      this.itemId = other.itemId;
17134
    }
17135
 
17136
    public getAllItemPricing_args deepCopy() {
17137
      return new getAllItemPricing_args(this);
17138
    }
17139
 
17140
    @Override
17141
    public void clear() {
17142
      setItemIdIsSet(false);
17143
      this.itemId = 0;
17144
    }
17145
 
17146
    public long getItemId() {
17147
      return this.itemId;
17148
    }
17149
 
17150
    public void setItemId(long itemId) {
17151
      this.itemId = itemId;
17152
      setItemIdIsSet(true);
17153
    }
17154
 
17155
    public void unsetItemId() {
17156
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
17157
    }
17158
 
17159
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
17160
    public boolean isSetItemId() {
17161
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
17162
    }
17163
 
17164
    public void setItemIdIsSet(boolean value) {
17165
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
17166
    }
17167
 
17168
    public void setFieldValue(_Fields field, Object value) {
17169
      switch (field) {
17170
      case ITEM_ID:
17171
        if (value == null) {
17172
          unsetItemId();
17173
        } else {
17174
          setItemId((Long)value);
17175
        }
17176
        break;
17177
 
17178
      }
17179
    }
17180
 
17181
    public Object getFieldValue(_Fields field) {
17182
      switch (field) {
17183
      case ITEM_ID:
17184
        return Long.valueOf(getItemId());
17185
 
17186
      }
17187
      throw new IllegalStateException();
17188
    }
17189
 
17190
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17191
    public boolean isSet(_Fields field) {
17192
      if (field == null) {
17193
        throw new IllegalArgumentException();
17194
      }
17195
 
17196
      switch (field) {
17197
      case ITEM_ID:
17198
        return isSetItemId();
17199
      }
17200
      throw new IllegalStateException();
17201
    }
17202
 
17203
    @Override
17204
    public boolean equals(Object that) {
17205
      if (that == null)
17206
        return false;
17207
      if (that instanceof getAllItemPricing_args)
17208
        return this.equals((getAllItemPricing_args)that);
17209
      return false;
17210
    }
17211
 
17212
    public boolean equals(getAllItemPricing_args that) {
17213
      if (that == null)
17214
        return false;
17215
 
17216
      boolean this_present_itemId = true;
17217
      boolean that_present_itemId = true;
17218
      if (this_present_itemId || that_present_itemId) {
17219
        if (!(this_present_itemId && that_present_itemId))
17220
          return false;
17221
        if (this.itemId != that.itemId)
17222
          return false;
17223
      }
17224
 
17225
      return true;
17226
    }
17227
 
17228
    @Override
17229
    public int hashCode() {
17230
      return 0;
17231
    }
17232
 
17233
    public int compareTo(getAllItemPricing_args other) {
17234
      if (!getClass().equals(other.getClass())) {
17235
        return getClass().getName().compareTo(other.getClass().getName());
17236
      }
17237
 
17238
      int lastComparison = 0;
17239
      getAllItemPricing_args typedOther = (getAllItemPricing_args)other;
17240
 
17241
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
17242
      if (lastComparison != 0) {
17243
        return lastComparison;
17244
      }
17245
      if (isSetItemId()) {
17246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
17247
        if (lastComparison != 0) {
17248
          return lastComparison;
17249
        }
17250
      }
17251
      return 0;
17252
    }
17253
 
17254
    public _Fields fieldForId(int fieldId) {
17255
      return _Fields.findByThriftId(fieldId);
17256
    }
17257
 
17258
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17259
      org.apache.thrift.protocol.TField field;
17260
      iprot.readStructBegin();
17261
      while (true)
17262
      {
17263
        field = iprot.readFieldBegin();
17264
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17265
          break;
17266
        }
17267
        switch (field.id) {
17268
          case 1: // ITEM_ID
17269
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17270
              this.itemId = iprot.readI64();
17271
              setItemIdIsSet(true);
17272
            } else { 
17273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17274
            }
17275
            break;
17276
          default:
17277
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17278
        }
17279
        iprot.readFieldEnd();
17280
      }
17281
      iprot.readStructEnd();
17282
      validate();
17283
    }
17284
 
17285
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17286
      validate();
17287
 
17288
      oprot.writeStructBegin(STRUCT_DESC);
17289
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
17290
      oprot.writeI64(this.itemId);
17291
      oprot.writeFieldEnd();
17292
      oprot.writeFieldStop();
17293
      oprot.writeStructEnd();
17294
    }
17295
 
17296
    @Override
17297
    public String toString() {
17298
      StringBuilder sb = new StringBuilder("getAllItemPricing_args(");
17299
      boolean first = true;
17300
 
17301
      sb.append("itemId:");
17302
      sb.append(this.itemId);
17303
      first = false;
17304
      sb.append(")");
17305
      return sb.toString();
17306
    }
17307
 
17308
    public void validate() throws org.apache.thrift.TException {
17309
      // check for required fields
17310
    }
17311
 
17312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17313
      try {
17314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17315
      } catch (org.apache.thrift.TException te) {
17316
        throw new java.io.IOException(te);
17317
      }
17318
    }
17319
 
17320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17321
      try {
17322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17323
      } catch (org.apache.thrift.TException te) {
17324
        throw new java.io.IOException(te);
17325
      }
17326
    }
17327
 
17328
  }
17329
 
17330
  public static class getAllItemPricing_result implements org.apache.thrift.TBase<getAllItemPricing_result, getAllItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
17331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllItemPricing_result");
17332
 
17333
    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);
17334
    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);
17335
 
17336
    private List<VendorItemPricing> success; // required
17337
    private InventoryServiceException cex; // required
17338
 
17339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17341
      SUCCESS((short)0, "success"),
17342
      CEX((short)1, "cex");
17343
 
17344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17345
 
17346
      static {
17347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17348
          byName.put(field.getFieldName(), field);
17349
        }
17350
      }
17351
 
17352
      /**
17353
       * Find the _Fields constant that matches fieldId, or null if its not found.
17354
       */
17355
      public static _Fields findByThriftId(int fieldId) {
17356
        switch(fieldId) {
17357
          case 0: // SUCCESS
17358
            return SUCCESS;
17359
          case 1: // CEX
17360
            return CEX;
17361
          default:
17362
            return null;
17363
        }
17364
      }
17365
 
17366
      /**
17367
       * Find the _Fields constant that matches fieldId, throwing an exception
17368
       * if it is not found.
17369
       */
17370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17371
        _Fields fields = findByThriftId(fieldId);
17372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17373
        return fields;
17374
      }
17375
 
17376
      /**
17377
       * Find the _Fields constant that matches name, or null if its not found.
17378
       */
17379
      public static _Fields findByName(String name) {
17380
        return byName.get(name);
17381
      }
17382
 
17383
      private final short _thriftId;
17384
      private final String _fieldName;
17385
 
17386
      _Fields(short thriftId, String fieldName) {
17387
        _thriftId = thriftId;
17388
        _fieldName = fieldName;
17389
      }
17390
 
17391
      public short getThriftFieldId() {
17392
        return _thriftId;
17393
      }
17394
 
17395
      public String getFieldName() {
17396
        return _fieldName;
17397
      }
17398
    }
17399
 
17400
    // isset id assignments
17401
 
17402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17403
    static {
17404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17405
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17406
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17407
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class))));
17408
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17409
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17410
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17411
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllItemPricing_result.class, metaDataMap);
17412
    }
17413
 
17414
    public getAllItemPricing_result() {
17415
    }
17416
 
17417
    public getAllItemPricing_result(
17418
      List<VendorItemPricing> success,
17419
      InventoryServiceException cex)
17420
    {
17421
      this();
17422
      this.success = success;
17423
      this.cex = cex;
17424
    }
17425
 
17426
    /**
17427
     * Performs a deep copy on <i>other</i>.
17428
     */
17429
    public getAllItemPricing_result(getAllItemPricing_result other) {
17430
      if (other.isSetSuccess()) {
17431
        List<VendorItemPricing> __this__success = new ArrayList<VendorItemPricing>();
17432
        for (VendorItemPricing other_element : other.success) {
17433
          __this__success.add(new VendorItemPricing(other_element));
17434
        }
17435
        this.success = __this__success;
17436
      }
17437
      if (other.isSetCex()) {
17438
        this.cex = new InventoryServiceException(other.cex);
17439
      }
17440
    }
17441
 
17442
    public getAllItemPricing_result deepCopy() {
17443
      return new getAllItemPricing_result(this);
17444
    }
17445
 
17446
    @Override
17447
    public void clear() {
17448
      this.success = null;
17449
      this.cex = null;
17450
    }
17451
 
17452
    public int getSuccessSize() {
17453
      return (this.success == null) ? 0 : this.success.size();
17454
    }
17455
 
17456
    public java.util.Iterator<VendorItemPricing> getSuccessIterator() {
17457
      return (this.success == null) ? null : this.success.iterator();
17458
    }
17459
 
17460
    public void addToSuccess(VendorItemPricing elem) {
17461
      if (this.success == null) {
17462
        this.success = new ArrayList<VendorItemPricing>();
17463
      }
17464
      this.success.add(elem);
17465
    }
17466
 
17467
    public List<VendorItemPricing> getSuccess() {
17468
      return this.success;
17469
    }
17470
 
17471
    public void setSuccess(List<VendorItemPricing> success) {
17472
      this.success = success;
17473
    }
17474
 
17475
    public void unsetSuccess() {
17476
      this.success = null;
17477
    }
17478
 
17479
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17480
    public boolean isSetSuccess() {
17481
      return this.success != null;
17482
    }
17483
 
17484
    public void setSuccessIsSet(boolean value) {
17485
      if (!value) {
17486
        this.success = null;
17487
      }
17488
    }
17489
 
17490
    public InventoryServiceException getCex() {
17491
      return this.cex;
17492
    }
17493
 
17494
    public void setCex(InventoryServiceException cex) {
17495
      this.cex = cex;
17496
    }
17497
 
17498
    public void unsetCex() {
17499
      this.cex = null;
17500
    }
17501
 
17502
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
17503
    public boolean isSetCex() {
17504
      return this.cex != null;
17505
    }
17506
 
17507
    public void setCexIsSet(boolean value) {
17508
      if (!value) {
17509
        this.cex = null;
17510
      }
17511
    }
17512
 
17513
    public void setFieldValue(_Fields field, Object value) {
17514
      switch (field) {
17515
      case SUCCESS:
17516
        if (value == null) {
17517
          unsetSuccess();
17518
        } else {
17519
          setSuccess((List<VendorItemPricing>)value);
17520
        }
17521
        break;
17522
 
17523
      case CEX:
17524
        if (value == null) {
17525
          unsetCex();
17526
        } else {
17527
          setCex((InventoryServiceException)value);
17528
        }
17529
        break;
17530
 
17531
      }
17532
    }
17533
 
17534
    public Object getFieldValue(_Fields field) {
17535
      switch (field) {
17536
      case SUCCESS:
17537
        return getSuccess();
17538
 
17539
      case CEX:
17540
        return getCex();
17541
 
17542
      }
17543
      throw new IllegalStateException();
17544
    }
17545
 
17546
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17547
    public boolean isSet(_Fields field) {
17548
      if (field == null) {
17549
        throw new IllegalArgumentException();
17550
      }
17551
 
17552
      switch (field) {
17553
      case SUCCESS:
17554
        return isSetSuccess();
17555
      case CEX:
17556
        return isSetCex();
17557
      }
17558
      throw new IllegalStateException();
17559
    }
17560
 
17561
    @Override
17562
    public boolean equals(Object that) {
17563
      if (that == null)
17564
        return false;
17565
      if (that instanceof getAllItemPricing_result)
17566
        return this.equals((getAllItemPricing_result)that);
17567
      return false;
17568
    }
17569
 
17570
    public boolean equals(getAllItemPricing_result that) {
17571
      if (that == null)
17572
        return false;
17573
 
17574
      boolean this_present_success = true && this.isSetSuccess();
17575
      boolean that_present_success = true && that.isSetSuccess();
17576
      if (this_present_success || that_present_success) {
17577
        if (!(this_present_success && that_present_success))
17578
          return false;
17579
        if (!this.success.equals(that.success))
17580
          return false;
17581
      }
17582
 
17583
      boolean this_present_cex = true && this.isSetCex();
17584
      boolean that_present_cex = true && that.isSetCex();
17585
      if (this_present_cex || that_present_cex) {
17586
        if (!(this_present_cex && that_present_cex))
17587
          return false;
17588
        if (!this.cex.equals(that.cex))
17589
          return false;
17590
      }
17591
 
17592
      return true;
17593
    }
17594
 
17595
    @Override
17596
    public int hashCode() {
17597
      return 0;
17598
    }
17599
 
17600
    public int compareTo(getAllItemPricing_result other) {
17601
      if (!getClass().equals(other.getClass())) {
17602
        return getClass().getName().compareTo(other.getClass().getName());
17603
      }
17604
 
17605
      int lastComparison = 0;
17606
      getAllItemPricing_result typedOther = (getAllItemPricing_result)other;
17607
 
17608
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17609
      if (lastComparison != 0) {
17610
        return lastComparison;
17611
      }
17612
      if (isSetSuccess()) {
17613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17614
        if (lastComparison != 0) {
17615
          return lastComparison;
17616
        }
17617
      }
17618
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
17619
      if (lastComparison != 0) {
17620
        return lastComparison;
17621
      }
17622
      if (isSetCex()) {
17623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
17624
        if (lastComparison != 0) {
17625
          return lastComparison;
17626
        }
17627
      }
17628
      return 0;
17629
    }
17630
 
17631
    public _Fields fieldForId(int fieldId) {
17632
      return _Fields.findByThriftId(fieldId);
17633
    }
17634
 
17635
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17636
      org.apache.thrift.protocol.TField field;
17637
      iprot.readStructBegin();
17638
      while (true)
17639
      {
17640
        field = iprot.readFieldBegin();
17641
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17642
          break;
17643
        }
17644
        switch (field.id) {
17645
          case 0: // SUCCESS
17646
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17647
              {
17648
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
17649
                this.success = new ArrayList<VendorItemPricing>(_list32.size);
17650
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
17651
                {
17652
                  VendorItemPricing _elem34; // required
17653
                  _elem34 = new VendorItemPricing();
17654
                  _elem34.read(iprot);
17655
                  this.success.add(_elem34);
17656
                }
17657
                iprot.readListEnd();
17658
              }
17659
            } else { 
17660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17661
            }
17662
            break;
17663
          case 1: // CEX
17664
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17665
              this.cex = new InventoryServiceException();
17666
              this.cex.read(iprot);
17667
            } else { 
17668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17669
            }
17670
            break;
17671
          default:
17672
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17673
        }
17674
        iprot.readFieldEnd();
17675
      }
17676
      iprot.readStructEnd();
17677
      validate();
17678
    }
17679
 
17680
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17681
      oprot.writeStructBegin(STRUCT_DESC);
17682
 
17683
      if (this.isSetSuccess()) {
17684
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17685
        {
17686
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
17687
          for (VendorItemPricing _iter35 : this.success)
17688
          {
17689
            _iter35.write(oprot);
17690
          }
17691
          oprot.writeListEnd();
17692
        }
17693
        oprot.writeFieldEnd();
17694
      } else if (this.isSetCex()) {
17695
        oprot.writeFieldBegin(CEX_FIELD_DESC);
17696
        this.cex.write(oprot);
17697
        oprot.writeFieldEnd();
17698
      }
17699
      oprot.writeFieldStop();
17700
      oprot.writeStructEnd();
17701
    }
17702
 
17703
    @Override
17704
    public String toString() {
17705
      StringBuilder sb = new StringBuilder("getAllItemPricing_result(");
17706
      boolean first = true;
17707
 
17708
      sb.append("success:");
17709
      if (this.success == null) {
17710
        sb.append("null");
17711
      } else {
17712
        sb.append(this.success);
17713
      }
17714
      first = false;
17715
      if (!first) sb.append(", ");
17716
      sb.append("cex:");
17717
      if (this.cex == null) {
17718
        sb.append("null");
17719
      } else {
17720
        sb.append(this.cex);
17721
      }
17722
      first = false;
17723
      sb.append(")");
17724
      return sb.toString();
17725
    }
17726
 
17727
    public void validate() throws org.apache.thrift.TException {
17728
      // check for required fields
17729
    }
17730
 
17731
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17732
      try {
17733
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17734
      } catch (org.apache.thrift.TException te) {
17735
        throw new java.io.IOException(te);
17736
      }
17737
    }
17738
 
17739
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17740
      try {
17741
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17742
      } catch (org.apache.thrift.TException te) {
17743
        throw new java.io.IOException(te);
17744
      }
17745
    }
17746
 
17747
  }
17748
 
17749
  public static class addVendorItemPricing_args implements org.apache.thrift.TBase<addVendorItemPricing_args, addVendorItemPricing_args._Fields>, java.io.Serializable, Cloneable   {
17750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_args");
17751
 
17752
    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);
17753
 
17754
    private VendorItemPricing vendorItemPricing; // required
17755
 
17756
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17757
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17758
      VENDOR_ITEM_PRICING((short)1, "vendorItemPricing");
17759
 
17760
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17761
 
17762
      static {
17763
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17764
          byName.put(field.getFieldName(), field);
17765
        }
17766
      }
17767
 
17768
      /**
17769
       * Find the _Fields constant that matches fieldId, or null if its not found.
17770
       */
17771
      public static _Fields findByThriftId(int fieldId) {
17772
        switch(fieldId) {
17773
          case 1: // VENDOR_ITEM_PRICING
17774
            return VENDOR_ITEM_PRICING;
17775
          default:
17776
            return null;
17777
        }
17778
      }
17779
 
17780
      /**
17781
       * Find the _Fields constant that matches fieldId, throwing an exception
17782
       * if it is not found.
17783
       */
17784
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17785
        _Fields fields = findByThriftId(fieldId);
17786
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17787
        return fields;
17788
      }
17789
 
17790
      /**
17791
       * Find the _Fields constant that matches name, or null if its not found.
17792
       */
17793
      public static _Fields findByName(String name) {
17794
        return byName.get(name);
17795
      }
17796
 
17797
      private final short _thriftId;
17798
      private final String _fieldName;
17799
 
17800
      _Fields(short thriftId, String fieldName) {
17801
        _thriftId = thriftId;
17802
        _fieldName = fieldName;
17803
      }
17804
 
17805
      public short getThriftFieldId() {
17806
        return _thriftId;
17807
      }
17808
 
17809
      public String getFieldName() {
17810
        return _fieldName;
17811
      }
17812
    }
17813
 
17814
    // isset id assignments
17815
 
17816
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17817
    static {
17818
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17819
      tmpMap.put(_Fields.VENDOR_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17820
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemPricing.class)));
17821
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17822
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_args.class, metaDataMap);
17823
    }
17824
 
17825
    public addVendorItemPricing_args() {
17826
    }
17827
 
17828
    public addVendorItemPricing_args(
17829
      VendorItemPricing vendorItemPricing)
17830
    {
17831
      this();
17832
      this.vendorItemPricing = vendorItemPricing;
17833
    }
17834
 
17835
    /**
17836
     * Performs a deep copy on <i>other</i>.
17837
     */
17838
    public addVendorItemPricing_args(addVendorItemPricing_args other) {
17839
      if (other.isSetVendorItemPricing()) {
17840
        this.vendorItemPricing = new VendorItemPricing(other.vendorItemPricing);
17841
      }
17842
    }
17843
 
17844
    public addVendorItemPricing_args deepCopy() {
17845
      return new addVendorItemPricing_args(this);
17846
    }
17847
 
17848
    @Override
17849
    public void clear() {
17850
      this.vendorItemPricing = null;
17851
    }
17852
 
17853
    public VendorItemPricing getVendorItemPricing() {
17854
      return this.vendorItemPricing;
17855
    }
17856
 
17857
    public void setVendorItemPricing(VendorItemPricing vendorItemPricing) {
17858
      this.vendorItemPricing = vendorItemPricing;
17859
    }
17860
 
17861
    public void unsetVendorItemPricing() {
17862
      this.vendorItemPricing = null;
17863
    }
17864
 
17865
    /** Returns true if field vendorItemPricing is set (has been assigned a value) and false otherwise */
17866
    public boolean isSetVendorItemPricing() {
17867
      return this.vendorItemPricing != null;
17868
    }
17869
 
17870
    public void setVendorItemPricingIsSet(boolean value) {
17871
      if (!value) {
17872
        this.vendorItemPricing = null;
17873
      }
17874
    }
17875
 
17876
    public void setFieldValue(_Fields field, Object value) {
17877
      switch (field) {
17878
      case VENDOR_ITEM_PRICING:
17879
        if (value == null) {
17880
          unsetVendorItemPricing();
17881
        } else {
17882
          setVendorItemPricing((VendorItemPricing)value);
17883
        }
17884
        break;
17885
 
17886
      }
17887
    }
17888
 
17889
    public Object getFieldValue(_Fields field) {
17890
      switch (field) {
17891
      case VENDOR_ITEM_PRICING:
17892
        return getVendorItemPricing();
17893
 
17894
      }
17895
      throw new IllegalStateException();
17896
    }
17897
 
17898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17899
    public boolean isSet(_Fields field) {
17900
      if (field == null) {
17901
        throw new IllegalArgumentException();
17902
      }
17903
 
17904
      switch (field) {
17905
      case VENDOR_ITEM_PRICING:
17906
        return isSetVendorItemPricing();
17907
      }
17908
      throw new IllegalStateException();
17909
    }
17910
 
17911
    @Override
17912
    public boolean equals(Object that) {
17913
      if (that == null)
17914
        return false;
17915
      if (that instanceof addVendorItemPricing_args)
17916
        return this.equals((addVendorItemPricing_args)that);
17917
      return false;
17918
    }
17919
 
17920
    public boolean equals(addVendorItemPricing_args that) {
17921
      if (that == null)
17922
        return false;
17923
 
17924
      boolean this_present_vendorItemPricing = true && this.isSetVendorItemPricing();
17925
      boolean that_present_vendorItemPricing = true && that.isSetVendorItemPricing();
17926
      if (this_present_vendorItemPricing || that_present_vendorItemPricing) {
17927
        if (!(this_present_vendorItemPricing && that_present_vendorItemPricing))
17928
          return false;
17929
        if (!this.vendorItemPricing.equals(that.vendorItemPricing))
17930
          return false;
17931
      }
17932
 
17933
      return true;
17934
    }
17935
 
17936
    @Override
17937
    public int hashCode() {
17938
      return 0;
17939
    }
17940
 
17941
    public int compareTo(addVendorItemPricing_args other) {
17942
      if (!getClass().equals(other.getClass())) {
17943
        return getClass().getName().compareTo(other.getClass().getName());
17944
      }
17945
 
17946
      int lastComparison = 0;
17947
      addVendorItemPricing_args typedOther = (addVendorItemPricing_args)other;
17948
 
17949
      lastComparison = Boolean.valueOf(isSetVendorItemPricing()).compareTo(typedOther.isSetVendorItemPricing());
17950
      if (lastComparison != 0) {
17951
        return lastComparison;
17952
      }
17953
      if (isSetVendorItemPricing()) {
17954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemPricing, typedOther.vendorItemPricing);
17955
        if (lastComparison != 0) {
17956
          return lastComparison;
17957
        }
17958
      }
17959
      return 0;
17960
    }
17961
 
17962
    public _Fields fieldForId(int fieldId) {
17963
      return _Fields.findByThriftId(fieldId);
17964
    }
17965
 
17966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17967
      org.apache.thrift.protocol.TField field;
17968
      iprot.readStructBegin();
17969
      while (true)
17970
      {
17971
        field = iprot.readFieldBegin();
17972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17973
          break;
17974
        }
17975
        switch (field.id) {
17976
          case 1: // VENDOR_ITEM_PRICING
17977
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17978
              this.vendorItemPricing = new VendorItemPricing();
17979
              this.vendorItemPricing.read(iprot);
17980
            } else { 
17981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17982
            }
17983
            break;
17984
          default:
17985
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17986
        }
17987
        iprot.readFieldEnd();
17988
      }
17989
      iprot.readStructEnd();
17990
      validate();
17991
    }
17992
 
17993
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17994
      validate();
17995
 
17996
      oprot.writeStructBegin(STRUCT_DESC);
17997
      if (this.vendorItemPricing != null) {
17998
        oprot.writeFieldBegin(VENDOR_ITEM_PRICING_FIELD_DESC);
17999
        this.vendorItemPricing.write(oprot);
18000
        oprot.writeFieldEnd();
18001
      }
18002
      oprot.writeFieldStop();
18003
      oprot.writeStructEnd();
18004
    }
18005
 
18006
    @Override
18007
    public String toString() {
18008
      StringBuilder sb = new StringBuilder("addVendorItemPricing_args(");
18009
      boolean first = true;
18010
 
18011
      sb.append("vendorItemPricing:");
18012
      if (this.vendorItemPricing == null) {
18013
        sb.append("null");
18014
      } else {
18015
        sb.append(this.vendorItemPricing);
18016
      }
18017
      first = false;
18018
      sb.append(")");
18019
      return sb.toString();
18020
    }
18021
 
18022
    public void validate() throws org.apache.thrift.TException {
18023
      // check for required fields
18024
    }
18025
 
18026
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18027
      try {
18028
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18029
      } catch (org.apache.thrift.TException te) {
18030
        throw new java.io.IOException(te);
18031
      }
18032
    }
18033
 
18034
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18035
      try {
18036
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18037
      } catch (org.apache.thrift.TException te) {
18038
        throw new java.io.IOException(te);
18039
      }
18040
    }
18041
 
18042
  }
18043
 
18044
  public static class addVendorItemPricing_result implements org.apache.thrift.TBase<addVendorItemPricing_result, addVendorItemPricing_result._Fields>, java.io.Serializable, Cloneable   {
18045
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemPricing_result");
18046
 
18047
    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);
18048
 
18049
    private InventoryServiceException cex; // required
18050
 
18051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18053
      CEX((short)1, "cex");
18054
 
18055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18056
 
18057
      static {
18058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18059
          byName.put(field.getFieldName(), field);
18060
        }
18061
      }
18062
 
18063
      /**
18064
       * Find the _Fields constant that matches fieldId, or null if its not found.
18065
       */
18066
      public static _Fields findByThriftId(int fieldId) {
18067
        switch(fieldId) {
18068
          case 1: // CEX
18069
            return CEX;
18070
          default:
18071
            return null;
18072
        }
18073
      }
18074
 
18075
      /**
18076
       * Find the _Fields constant that matches fieldId, throwing an exception
18077
       * if it is not found.
18078
       */
18079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18080
        _Fields fields = findByThriftId(fieldId);
18081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18082
        return fields;
18083
      }
18084
 
18085
      /**
18086
       * Find the _Fields constant that matches name, or null if its not found.
18087
       */
18088
      public static _Fields findByName(String name) {
18089
        return byName.get(name);
18090
      }
18091
 
18092
      private final short _thriftId;
18093
      private final String _fieldName;
18094
 
18095
      _Fields(short thriftId, String fieldName) {
18096
        _thriftId = thriftId;
18097
        _fieldName = fieldName;
18098
      }
18099
 
18100
      public short getThriftFieldId() {
18101
        return _thriftId;
18102
      }
18103
 
18104
      public String getFieldName() {
18105
        return _fieldName;
18106
      }
18107
    }
18108
 
18109
    // isset id assignments
18110
 
18111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18112
    static {
18113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18114
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemPricing_result.class, metaDataMap);
18118
    }
18119
 
18120
    public addVendorItemPricing_result() {
18121
    }
18122
 
18123
    public addVendorItemPricing_result(
18124
      InventoryServiceException cex)
18125
    {
18126
      this();
18127
      this.cex = cex;
18128
    }
18129
 
18130
    /**
18131
     * Performs a deep copy on <i>other</i>.
18132
     */
18133
    public addVendorItemPricing_result(addVendorItemPricing_result other) {
18134
      if (other.isSetCex()) {
18135
        this.cex = new InventoryServiceException(other.cex);
18136
      }
18137
    }
18138
 
18139
    public addVendorItemPricing_result deepCopy() {
18140
      return new addVendorItemPricing_result(this);
18141
    }
18142
 
18143
    @Override
18144
    public void clear() {
18145
      this.cex = null;
18146
    }
18147
 
18148
    public InventoryServiceException getCex() {
18149
      return this.cex;
18150
    }
18151
 
18152
    public void setCex(InventoryServiceException cex) {
18153
      this.cex = cex;
18154
    }
18155
 
18156
    public void unsetCex() {
18157
      this.cex = null;
18158
    }
18159
 
18160
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
18161
    public boolean isSetCex() {
18162
      return this.cex != null;
18163
    }
18164
 
18165
    public void setCexIsSet(boolean value) {
18166
      if (!value) {
18167
        this.cex = null;
18168
      }
18169
    }
18170
 
18171
    public void setFieldValue(_Fields field, Object value) {
18172
      switch (field) {
18173
      case CEX:
18174
        if (value == null) {
18175
          unsetCex();
18176
        } else {
18177
          setCex((InventoryServiceException)value);
18178
        }
18179
        break;
18180
 
18181
      }
18182
    }
18183
 
18184
    public Object getFieldValue(_Fields field) {
18185
      switch (field) {
18186
      case CEX:
18187
        return getCex();
18188
 
18189
      }
18190
      throw new IllegalStateException();
18191
    }
18192
 
18193
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18194
    public boolean isSet(_Fields field) {
18195
      if (field == null) {
18196
        throw new IllegalArgumentException();
18197
      }
18198
 
18199
      switch (field) {
18200
      case CEX:
18201
        return isSetCex();
18202
      }
18203
      throw new IllegalStateException();
18204
    }
18205
 
18206
    @Override
18207
    public boolean equals(Object that) {
18208
      if (that == null)
18209
        return false;
18210
      if (that instanceof addVendorItemPricing_result)
18211
        return this.equals((addVendorItemPricing_result)that);
18212
      return false;
18213
    }
18214
 
18215
    public boolean equals(addVendorItemPricing_result that) {
18216
      if (that == null)
18217
        return false;
18218
 
18219
      boolean this_present_cex = true && this.isSetCex();
18220
      boolean that_present_cex = true && that.isSetCex();
18221
      if (this_present_cex || that_present_cex) {
18222
        if (!(this_present_cex && that_present_cex))
18223
          return false;
18224
        if (!this.cex.equals(that.cex))
18225
          return false;
18226
      }
18227
 
18228
      return true;
18229
    }
18230
 
18231
    @Override
18232
    public int hashCode() {
18233
      return 0;
18234
    }
18235
 
18236
    public int compareTo(addVendorItemPricing_result other) {
18237
      if (!getClass().equals(other.getClass())) {
18238
        return getClass().getName().compareTo(other.getClass().getName());
18239
      }
18240
 
18241
      int lastComparison = 0;
18242
      addVendorItemPricing_result typedOther = (addVendorItemPricing_result)other;
18243
 
18244
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
18245
      if (lastComparison != 0) {
18246
        return lastComparison;
18247
      }
18248
      if (isSetCex()) {
18249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
18250
        if (lastComparison != 0) {
18251
          return lastComparison;
18252
        }
18253
      }
18254
      return 0;
18255
    }
18256
 
18257
    public _Fields fieldForId(int fieldId) {
18258
      return _Fields.findByThriftId(fieldId);
18259
    }
18260
 
18261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18262
      org.apache.thrift.protocol.TField field;
18263
      iprot.readStructBegin();
18264
      while (true)
18265
      {
18266
        field = iprot.readFieldBegin();
18267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18268
          break;
18269
        }
18270
        switch (field.id) {
18271
          case 1: // CEX
18272
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18273
              this.cex = new InventoryServiceException();
18274
              this.cex.read(iprot);
18275
            } else { 
18276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18277
            }
18278
            break;
18279
          default:
18280
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18281
        }
18282
        iprot.readFieldEnd();
18283
      }
18284
      iprot.readStructEnd();
18285
      validate();
18286
    }
18287
 
18288
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18289
      oprot.writeStructBegin(STRUCT_DESC);
18290
 
18291
      if (this.isSetCex()) {
18292
        oprot.writeFieldBegin(CEX_FIELD_DESC);
18293
        this.cex.write(oprot);
18294
        oprot.writeFieldEnd();
18295
      }
18296
      oprot.writeFieldStop();
18297
      oprot.writeStructEnd();
18298
    }
18299
 
18300
    @Override
18301
    public String toString() {
18302
      StringBuilder sb = new StringBuilder("addVendorItemPricing_result(");
18303
      boolean first = true;
18304
 
18305
      sb.append("cex:");
18306
      if (this.cex == null) {
18307
        sb.append("null");
18308
      } else {
18309
        sb.append(this.cex);
18310
      }
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
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18331
      } catch (org.apache.thrift.TException te) {
18332
        throw new java.io.IOException(te);
18333
      }
18334
    }
18335
 
18336
  }
18337
 
18338
  public static class getVendor_args implements org.apache.thrift.TBase<getVendor_args, getVendor_args._Fields>, java.io.Serializable, Cloneable   {
18339
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_args");
18340
 
18341
    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);
18342
 
18343
    private long vendorId; // required
18344
 
18345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18347
      VENDOR_ID((short)1, "vendorId");
18348
 
18349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18350
 
18351
      static {
18352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18353
          byName.put(field.getFieldName(), field);
18354
        }
18355
      }
18356
 
18357
      /**
18358
       * Find the _Fields constant that matches fieldId, or null if its not found.
18359
       */
18360
      public static _Fields findByThriftId(int fieldId) {
18361
        switch(fieldId) {
18362
          case 1: // VENDOR_ID
18363
            return VENDOR_ID;
18364
          default:
18365
            return null;
18366
        }
18367
      }
18368
 
18369
      /**
18370
       * Find the _Fields constant that matches fieldId, throwing an exception
18371
       * if it is not found.
18372
       */
18373
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18374
        _Fields fields = findByThriftId(fieldId);
18375
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18376
        return fields;
18377
      }
18378
 
18379
      /**
18380
       * Find the _Fields constant that matches name, or null if its not found.
18381
       */
18382
      public static _Fields findByName(String name) {
18383
        return byName.get(name);
18384
      }
18385
 
18386
      private final short _thriftId;
18387
      private final String _fieldName;
18388
 
18389
      _Fields(short thriftId, String fieldName) {
18390
        _thriftId = thriftId;
18391
        _fieldName = fieldName;
18392
      }
18393
 
18394
      public short getThriftFieldId() {
18395
        return _thriftId;
18396
      }
18397
 
18398
      public String getFieldName() {
18399
        return _fieldName;
18400
      }
18401
    }
18402
 
18403
    // isset id assignments
18404
    private static final int __VENDORID_ISSET_ID = 0;
18405
    private BitSet __isset_bit_vector = new BitSet(1);
18406
 
18407
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18408
    static {
18409
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18410
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18411
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18412
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18413
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_args.class, metaDataMap);
18414
    }
18415
 
18416
    public getVendor_args() {
18417
    }
18418
 
18419
    public getVendor_args(
18420
      long vendorId)
18421
    {
18422
      this();
18423
      this.vendorId = vendorId;
18424
      setVendorIdIsSet(true);
18425
    }
18426
 
18427
    /**
18428
     * Performs a deep copy on <i>other</i>.
18429
     */
18430
    public getVendor_args(getVendor_args other) {
18431
      __isset_bit_vector.clear();
18432
      __isset_bit_vector.or(other.__isset_bit_vector);
18433
      this.vendorId = other.vendorId;
18434
    }
18435
 
18436
    public getVendor_args deepCopy() {
18437
      return new getVendor_args(this);
18438
    }
18439
 
18440
    @Override
18441
    public void clear() {
18442
      setVendorIdIsSet(false);
18443
      this.vendorId = 0;
18444
    }
18445
 
18446
    public long getVendorId() {
18447
      return this.vendorId;
18448
    }
18449
 
18450
    public void setVendorId(long vendorId) {
18451
      this.vendorId = vendorId;
18452
      setVendorIdIsSet(true);
18453
    }
18454
 
18455
    public void unsetVendorId() {
18456
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
18457
    }
18458
 
18459
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
18460
    public boolean isSetVendorId() {
18461
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
18462
    }
18463
 
18464
    public void setVendorIdIsSet(boolean value) {
18465
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
18466
    }
18467
 
18468
    public void setFieldValue(_Fields field, Object value) {
18469
      switch (field) {
18470
      case VENDOR_ID:
18471
        if (value == null) {
18472
          unsetVendorId();
18473
        } else {
18474
          setVendorId((Long)value);
18475
        }
18476
        break;
18477
 
18478
      }
18479
    }
18480
 
18481
    public Object getFieldValue(_Fields field) {
18482
      switch (field) {
18483
      case VENDOR_ID:
18484
        return Long.valueOf(getVendorId());
18485
 
18486
      }
18487
      throw new IllegalStateException();
18488
    }
18489
 
18490
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18491
    public boolean isSet(_Fields field) {
18492
      if (field == null) {
18493
        throw new IllegalArgumentException();
18494
      }
18495
 
18496
      switch (field) {
18497
      case VENDOR_ID:
18498
        return isSetVendorId();
18499
      }
18500
      throw new IllegalStateException();
18501
    }
18502
 
18503
    @Override
18504
    public boolean equals(Object that) {
18505
      if (that == null)
18506
        return false;
18507
      if (that instanceof getVendor_args)
18508
        return this.equals((getVendor_args)that);
18509
      return false;
18510
    }
18511
 
18512
    public boolean equals(getVendor_args that) {
18513
      if (that == null)
18514
        return false;
18515
 
18516
      boolean this_present_vendorId = true;
18517
      boolean that_present_vendorId = true;
18518
      if (this_present_vendorId || that_present_vendorId) {
18519
        if (!(this_present_vendorId && that_present_vendorId))
18520
          return false;
18521
        if (this.vendorId != that.vendorId)
18522
          return false;
18523
      }
18524
 
18525
      return true;
18526
    }
18527
 
18528
    @Override
18529
    public int hashCode() {
18530
      return 0;
18531
    }
18532
 
18533
    public int compareTo(getVendor_args other) {
18534
      if (!getClass().equals(other.getClass())) {
18535
        return getClass().getName().compareTo(other.getClass().getName());
18536
      }
18537
 
18538
      int lastComparison = 0;
18539
      getVendor_args typedOther = (getVendor_args)other;
18540
 
18541
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
18542
      if (lastComparison != 0) {
18543
        return lastComparison;
18544
      }
18545
      if (isSetVendorId()) {
18546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
18547
        if (lastComparison != 0) {
18548
          return lastComparison;
18549
        }
18550
      }
18551
      return 0;
18552
    }
18553
 
18554
    public _Fields fieldForId(int fieldId) {
18555
      return _Fields.findByThriftId(fieldId);
18556
    }
18557
 
18558
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18559
      org.apache.thrift.protocol.TField field;
18560
      iprot.readStructBegin();
18561
      while (true)
18562
      {
18563
        field = iprot.readFieldBegin();
18564
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18565
          break;
18566
        }
18567
        switch (field.id) {
18568
          case 1: // VENDOR_ID
18569
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18570
              this.vendorId = iprot.readI64();
18571
              setVendorIdIsSet(true);
18572
            } else { 
18573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18574
            }
18575
            break;
18576
          default:
18577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18578
        }
18579
        iprot.readFieldEnd();
18580
      }
18581
      iprot.readStructEnd();
18582
      validate();
18583
    }
18584
 
18585
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18586
      validate();
18587
 
18588
      oprot.writeStructBegin(STRUCT_DESC);
18589
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
18590
      oprot.writeI64(this.vendorId);
18591
      oprot.writeFieldEnd();
18592
      oprot.writeFieldStop();
18593
      oprot.writeStructEnd();
18594
    }
18595
 
18596
    @Override
18597
    public String toString() {
18598
      StringBuilder sb = new StringBuilder("getVendor_args(");
18599
      boolean first = true;
18600
 
18601
      sb.append("vendorId:");
18602
      sb.append(this.vendorId);
18603
      first = false;
18604
      sb.append(")");
18605
      return sb.toString();
18606
    }
18607
 
18608
    public void validate() throws org.apache.thrift.TException {
18609
      // check for required fields
18610
    }
18611
 
18612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18613
      try {
18614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18615
      } catch (org.apache.thrift.TException te) {
18616
        throw new java.io.IOException(te);
18617
      }
18618
    }
18619
 
18620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18621
      try {
18622
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18623
        __isset_bit_vector = new BitSet(1);
18624
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18625
      } catch (org.apache.thrift.TException te) {
18626
        throw new java.io.IOException(te);
18627
      }
18628
    }
18629
 
18630
  }
18631
 
18632
  public static class getVendor_result implements org.apache.thrift.TBase<getVendor_result, getVendor_result._Fields>, java.io.Serializable, Cloneable   {
18633
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendor_result");
18634
 
18635
    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);
18636
 
18637
    private Vendor success; // required
18638
 
18639
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18640
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18641
      SUCCESS((short)0, "success");
18642
 
18643
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18644
 
18645
      static {
18646
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18647
          byName.put(field.getFieldName(), field);
18648
        }
18649
      }
18650
 
18651
      /**
18652
       * Find the _Fields constant that matches fieldId, or null if its not found.
18653
       */
18654
      public static _Fields findByThriftId(int fieldId) {
18655
        switch(fieldId) {
18656
          case 0: // SUCCESS
18657
            return SUCCESS;
18658
          default:
18659
            return null;
18660
        }
18661
      }
18662
 
18663
      /**
18664
       * Find the _Fields constant that matches fieldId, throwing an exception
18665
       * if it is not found.
18666
       */
18667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18668
        _Fields fields = findByThriftId(fieldId);
18669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18670
        return fields;
18671
      }
18672
 
18673
      /**
18674
       * Find the _Fields constant that matches name, or null if its not found.
18675
       */
18676
      public static _Fields findByName(String name) {
18677
        return byName.get(name);
18678
      }
18679
 
18680
      private final short _thriftId;
18681
      private final String _fieldName;
18682
 
18683
      _Fields(short thriftId, String fieldName) {
18684
        _thriftId = thriftId;
18685
        _fieldName = fieldName;
18686
      }
18687
 
18688
      public short getThriftFieldId() {
18689
        return _thriftId;
18690
      }
18691
 
18692
      public String getFieldName() {
18693
        return _fieldName;
18694
      }
18695
    }
18696
 
18697
    // isset id assignments
18698
 
18699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18700
    static {
18701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18702
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18703
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class)));
18704
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18705
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendor_result.class, metaDataMap);
18706
    }
18707
 
18708
    public getVendor_result() {
18709
    }
18710
 
18711
    public getVendor_result(
18712
      Vendor success)
18713
    {
18714
      this();
18715
      this.success = success;
18716
    }
18717
 
18718
    /**
18719
     * Performs a deep copy on <i>other</i>.
18720
     */
18721
    public getVendor_result(getVendor_result other) {
18722
      if (other.isSetSuccess()) {
18723
        this.success = new Vendor(other.success);
18724
      }
18725
    }
18726
 
18727
    public getVendor_result deepCopy() {
18728
      return new getVendor_result(this);
18729
    }
18730
 
18731
    @Override
18732
    public void clear() {
18733
      this.success = null;
18734
    }
18735
 
18736
    public Vendor getSuccess() {
18737
      return this.success;
18738
    }
18739
 
18740
    public void setSuccess(Vendor success) {
18741
      this.success = success;
18742
    }
18743
 
18744
    public void unsetSuccess() {
18745
      this.success = null;
18746
    }
18747
 
18748
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18749
    public boolean isSetSuccess() {
18750
      return this.success != null;
18751
    }
18752
 
18753
    public void setSuccessIsSet(boolean value) {
18754
      if (!value) {
18755
        this.success = null;
18756
      }
18757
    }
18758
 
18759
    public void setFieldValue(_Fields field, Object value) {
18760
      switch (field) {
18761
      case SUCCESS:
18762
        if (value == null) {
18763
          unsetSuccess();
18764
        } else {
18765
          setSuccess((Vendor)value);
18766
        }
18767
        break;
18768
 
18769
      }
18770
    }
18771
 
18772
    public Object getFieldValue(_Fields field) {
18773
      switch (field) {
18774
      case SUCCESS:
18775
        return getSuccess();
18776
 
18777
      }
18778
      throw new IllegalStateException();
18779
    }
18780
 
18781
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18782
    public boolean isSet(_Fields field) {
18783
      if (field == null) {
18784
        throw new IllegalArgumentException();
18785
      }
18786
 
18787
      switch (field) {
18788
      case SUCCESS:
18789
        return isSetSuccess();
18790
      }
18791
      throw new IllegalStateException();
18792
    }
18793
 
18794
    @Override
18795
    public boolean equals(Object that) {
18796
      if (that == null)
18797
        return false;
18798
      if (that instanceof getVendor_result)
18799
        return this.equals((getVendor_result)that);
18800
      return false;
18801
    }
18802
 
18803
    public boolean equals(getVendor_result that) {
18804
      if (that == null)
18805
        return false;
18806
 
18807
      boolean this_present_success = true && this.isSetSuccess();
18808
      boolean that_present_success = true && that.isSetSuccess();
18809
      if (this_present_success || that_present_success) {
18810
        if (!(this_present_success && that_present_success))
18811
          return false;
18812
        if (!this.success.equals(that.success))
18813
          return false;
18814
      }
18815
 
18816
      return true;
18817
    }
18818
 
18819
    @Override
18820
    public int hashCode() {
18821
      return 0;
18822
    }
18823
 
18824
    public int compareTo(getVendor_result other) {
18825
      if (!getClass().equals(other.getClass())) {
18826
        return getClass().getName().compareTo(other.getClass().getName());
18827
      }
18828
 
18829
      int lastComparison = 0;
18830
      getVendor_result typedOther = (getVendor_result)other;
18831
 
18832
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18833
      if (lastComparison != 0) {
18834
        return lastComparison;
18835
      }
18836
      if (isSetSuccess()) {
18837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18838
        if (lastComparison != 0) {
18839
          return lastComparison;
18840
        }
18841
      }
18842
      return 0;
18843
    }
18844
 
18845
    public _Fields fieldForId(int fieldId) {
18846
      return _Fields.findByThriftId(fieldId);
18847
    }
18848
 
18849
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18850
      org.apache.thrift.protocol.TField field;
18851
      iprot.readStructBegin();
18852
      while (true)
18853
      {
18854
        field = iprot.readFieldBegin();
18855
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18856
          break;
18857
        }
18858
        switch (field.id) {
18859
          case 0: // SUCCESS
18860
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18861
              this.success = new Vendor();
18862
              this.success.read(iprot);
18863
            } else { 
18864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18865
            }
18866
            break;
18867
          default:
18868
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18869
        }
18870
        iprot.readFieldEnd();
18871
      }
18872
      iprot.readStructEnd();
18873
      validate();
18874
    }
18875
 
18876
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18877
      oprot.writeStructBegin(STRUCT_DESC);
18878
 
18879
      if (this.isSetSuccess()) {
18880
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18881
        this.success.write(oprot);
18882
        oprot.writeFieldEnd();
18883
      }
18884
      oprot.writeFieldStop();
18885
      oprot.writeStructEnd();
18886
    }
18887
 
18888
    @Override
18889
    public String toString() {
18890
      StringBuilder sb = new StringBuilder("getVendor_result(");
18891
      boolean first = true;
18892
 
18893
      sb.append("success:");
18894
      if (this.success == null) {
18895
        sb.append("null");
18896
      } else {
18897
        sb.append(this.success);
18898
      }
18899
      first = false;
18900
      sb.append(")");
18901
      return sb.toString();
18902
    }
18903
 
18904
    public void validate() throws org.apache.thrift.TException {
18905
      // check for required fields
18906
    }
18907
 
18908
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18909
      try {
18910
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18911
      } catch (org.apache.thrift.TException te) {
18912
        throw new java.io.IOException(te);
18913
      }
18914
    }
18915
 
18916
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18917
      try {
18918
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18919
      } catch (org.apache.thrift.TException te) {
18920
        throw new java.io.IOException(te);
18921
      }
18922
    }
18923
 
18924
  }
18925
 
18926
  public static class getAllVendors_args implements org.apache.thrift.TBase<getAllVendors_args, getAllVendors_args._Fields>, java.io.Serializable, Cloneable   {
18927
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_args");
18928
 
18929
 
18930
 
18931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18933
;
18934
 
18935
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18936
 
18937
      static {
18938
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18939
          byName.put(field.getFieldName(), field);
18940
        }
18941
      }
18942
 
18943
      /**
18944
       * Find the _Fields constant that matches fieldId, or null if its not found.
18945
       */
18946
      public static _Fields findByThriftId(int fieldId) {
18947
        switch(fieldId) {
18948
          default:
18949
            return null;
18950
        }
18951
      }
18952
 
18953
      /**
18954
       * Find the _Fields constant that matches fieldId, throwing an exception
18955
       * if it is not found.
18956
       */
18957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18958
        _Fields fields = findByThriftId(fieldId);
18959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18960
        return fields;
18961
      }
18962
 
18963
      /**
18964
       * Find the _Fields constant that matches name, or null if its not found.
18965
       */
18966
      public static _Fields findByName(String name) {
18967
        return byName.get(name);
18968
      }
18969
 
18970
      private final short _thriftId;
18971
      private final String _fieldName;
18972
 
18973
      _Fields(short thriftId, String fieldName) {
18974
        _thriftId = thriftId;
18975
        _fieldName = fieldName;
18976
      }
18977
 
18978
      public short getThriftFieldId() {
18979
        return _thriftId;
18980
      }
18981
 
18982
      public String getFieldName() {
18983
        return _fieldName;
18984
      }
18985
    }
18986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18987
    static {
18988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_args.class, metaDataMap);
18991
    }
18992
 
18993
    public getAllVendors_args() {
18994
    }
18995
 
18996
    /**
18997
     * Performs a deep copy on <i>other</i>.
18998
     */
18999
    public getAllVendors_args(getAllVendors_args other) {
19000
    }
19001
 
19002
    public getAllVendors_args deepCopy() {
19003
      return new getAllVendors_args(this);
19004
    }
19005
 
19006
    @Override
19007
    public void clear() {
19008
    }
19009
 
19010
    public void setFieldValue(_Fields field, Object value) {
19011
      switch (field) {
19012
      }
19013
    }
19014
 
19015
    public Object getFieldValue(_Fields field) {
19016
      switch (field) {
19017
      }
19018
      throw new IllegalStateException();
19019
    }
19020
 
19021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19022
    public boolean isSet(_Fields field) {
19023
      if (field == null) {
19024
        throw new IllegalArgumentException();
19025
      }
19026
 
19027
      switch (field) {
19028
      }
19029
      throw new IllegalStateException();
19030
    }
19031
 
19032
    @Override
19033
    public boolean equals(Object that) {
19034
      if (that == null)
19035
        return false;
19036
      if (that instanceof getAllVendors_args)
19037
        return this.equals((getAllVendors_args)that);
19038
      return false;
19039
    }
19040
 
19041
    public boolean equals(getAllVendors_args that) {
19042
      if (that == null)
19043
        return false;
19044
 
19045
      return true;
19046
    }
19047
 
19048
    @Override
19049
    public int hashCode() {
19050
      return 0;
19051
    }
19052
 
19053
    public int compareTo(getAllVendors_args other) {
19054
      if (!getClass().equals(other.getClass())) {
19055
        return getClass().getName().compareTo(other.getClass().getName());
19056
      }
19057
 
19058
      int lastComparison = 0;
19059
      getAllVendors_args typedOther = (getAllVendors_args)other;
19060
 
19061
      return 0;
19062
    }
19063
 
19064
    public _Fields fieldForId(int fieldId) {
19065
      return _Fields.findByThriftId(fieldId);
19066
    }
19067
 
19068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19069
      org.apache.thrift.protocol.TField field;
19070
      iprot.readStructBegin();
19071
      while (true)
19072
      {
19073
        field = iprot.readFieldBegin();
19074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19075
          break;
19076
        }
19077
        switch (field.id) {
19078
          default:
19079
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19080
        }
19081
        iprot.readFieldEnd();
19082
      }
19083
      iprot.readStructEnd();
19084
      validate();
19085
    }
19086
 
19087
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19088
      validate();
19089
 
19090
      oprot.writeStructBegin(STRUCT_DESC);
19091
      oprot.writeFieldStop();
19092
      oprot.writeStructEnd();
19093
    }
19094
 
19095
    @Override
19096
    public String toString() {
19097
      StringBuilder sb = new StringBuilder("getAllVendors_args(");
19098
      boolean first = true;
19099
 
19100
      sb.append(")");
19101
      return sb.toString();
19102
    }
19103
 
19104
    public void validate() throws org.apache.thrift.TException {
19105
      // check for required fields
19106
    }
19107
 
19108
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19109
      try {
19110
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19111
      } catch (org.apache.thrift.TException te) {
19112
        throw new java.io.IOException(te);
19113
      }
19114
    }
19115
 
19116
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19117
      try {
19118
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19119
      } catch (org.apache.thrift.TException te) {
19120
        throw new java.io.IOException(te);
19121
      }
19122
    }
19123
 
19124
  }
19125
 
19126
  public static class getAllVendors_result implements org.apache.thrift.TBase<getAllVendors_result, getAllVendors_result._Fields>, java.io.Serializable, Cloneable   {
19127
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendors_result");
19128
 
19129
    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);
19130
 
19131
    private List<Vendor> success; // required
19132
 
19133
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19134
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19135
      SUCCESS((short)0, "success");
19136
 
19137
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19138
 
19139
      static {
19140
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19141
          byName.put(field.getFieldName(), field);
19142
        }
19143
      }
19144
 
19145
      /**
19146
       * Find the _Fields constant that matches fieldId, or null if its not found.
19147
       */
19148
      public static _Fields findByThriftId(int fieldId) {
19149
        switch(fieldId) {
19150
          case 0: // SUCCESS
19151
            return SUCCESS;
19152
          default:
19153
            return null;
19154
        }
19155
      }
19156
 
19157
      /**
19158
       * Find the _Fields constant that matches fieldId, throwing an exception
19159
       * if it is not found.
19160
       */
19161
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19162
        _Fields fields = findByThriftId(fieldId);
19163
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19164
        return fields;
19165
      }
19166
 
19167
      /**
19168
       * Find the _Fields constant that matches name, or null if its not found.
19169
       */
19170
      public static _Fields findByName(String name) {
19171
        return byName.get(name);
19172
      }
19173
 
19174
      private final short _thriftId;
19175
      private final String _fieldName;
19176
 
19177
      _Fields(short thriftId, String fieldName) {
19178
        _thriftId = thriftId;
19179
        _fieldName = fieldName;
19180
      }
19181
 
19182
      public short getThriftFieldId() {
19183
        return _thriftId;
19184
      }
19185
 
19186
      public String getFieldName() {
19187
        return _fieldName;
19188
      }
19189
    }
19190
 
19191
    // isset id assignments
19192
 
19193
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19194
    static {
19195
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19196
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19197
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19198
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Vendor.class))));
19199
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19200
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendors_result.class, metaDataMap);
19201
    }
19202
 
19203
    public getAllVendors_result() {
19204
    }
19205
 
19206
    public getAllVendors_result(
19207
      List<Vendor> success)
19208
    {
19209
      this();
19210
      this.success = success;
19211
    }
19212
 
19213
    /**
19214
     * Performs a deep copy on <i>other</i>.
19215
     */
19216
    public getAllVendors_result(getAllVendors_result other) {
19217
      if (other.isSetSuccess()) {
19218
        List<Vendor> __this__success = new ArrayList<Vendor>();
19219
        for (Vendor other_element : other.success) {
19220
          __this__success.add(new Vendor(other_element));
19221
        }
19222
        this.success = __this__success;
19223
      }
19224
    }
19225
 
19226
    public getAllVendors_result deepCopy() {
19227
      return new getAllVendors_result(this);
19228
    }
19229
 
19230
    @Override
19231
    public void clear() {
19232
      this.success = null;
19233
    }
19234
 
19235
    public int getSuccessSize() {
19236
      return (this.success == null) ? 0 : this.success.size();
19237
    }
19238
 
19239
    public java.util.Iterator<Vendor> getSuccessIterator() {
19240
      return (this.success == null) ? null : this.success.iterator();
19241
    }
19242
 
19243
    public void addToSuccess(Vendor elem) {
19244
      if (this.success == null) {
19245
        this.success = new ArrayList<Vendor>();
19246
      }
19247
      this.success.add(elem);
19248
    }
19249
 
19250
    public List<Vendor> getSuccess() {
19251
      return this.success;
19252
    }
19253
 
19254
    public void setSuccess(List<Vendor> success) {
19255
      this.success = success;
19256
    }
19257
 
19258
    public void unsetSuccess() {
19259
      this.success = null;
19260
    }
19261
 
19262
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19263
    public boolean isSetSuccess() {
19264
      return this.success != null;
19265
    }
19266
 
19267
    public void setSuccessIsSet(boolean value) {
19268
      if (!value) {
19269
        this.success = null;
19270
      }
19271
    }
19272
 
19273
    public void setFieldValue(_Fields field, Object value) {
19274
      switch (field) {
19275
      case SUCCESS:
19276
        if (value == null) {
19277
          unsetSuccess();
19278
        } else {
19279
          setSuccess((List<Vendor>)value);
19280
        }
19281
        break;
19282
 
19283
      }
19284
    }
19285
 
19286
    public Object getFieldValue(_Fields field) {
19287
      switch (field) {
19288
      case SUCCESS:
19289
        return getSuccess();
19290
 
19291
      }
19292
      throw new IllegalStateException();
19293
    }
19294
 
19295
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19296
    public boolean isSet(_Fields field) {
19297
      if (field == null) {
19298
        throw new IllegalArgumentException();
19299
      }
19300
 
19301
      switch (field) {
19302
      case SUCCESS:
19303
        return isSetSuccess();
19304
      }
19305
      throw new IllegalStateException();
19306
    }
19307
 
19308
    @Override
19309
    public boolean equals(Object that) {
19310
      if (that == null)
19311
        return false;
19312
      if (that instanceof getAllVendors_result)
19313
        return this.equals((getAllVendors_result)that);
19314
      return false;
19315
    }
19316
 
19317
    public boolean equals(getAllVendors_result that) {
19318
      if (that == null)
19319
        return false;
19320
 
19321
      boolean this_present_success = true && this.isSetSuccess();
19322
      boolean that_present_success = true && that.isSetSuccess();
19323
      if (this_present_success || that_present_success) {
19324
        if (!(this_present_success && that_present_success))
19325
          return false;
19326
        if (!this.success.equals(that.success))
19327
          return false;
19328
      }
19329
 
19330
      return true;
19331
    }
19332
 
19333
    @Override
19334
    public int hashCode() {
19335
      return 0;
19336
    }
19337
 
19338
    public int compareTo(getAllVendors_result other) {
19339
      if (!getClass().equals(other.getClass())) {
19340
        return getClass().getName().compareTo(other.getClass().getName());
19341
      }
19342
 
19343
      int lastComparison = 0;
19344
      getAllVendors_result typedOther = (getAllVendors_result)other;
19345
 
19346
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19347
      if (lastComparison != 0) {
19348
        return lastComparison;
19349
      }
19350
      if (isSetSuccess()) {
19351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19352
        if (lastComparison != 0) {
19353
          return lastComparison;
19354
        }
19355
      }
19356
      return 0;
19357
    }
19358
 
19359
    public _Fields fieldForId(int fieldId) {
19360
      return _Fields.findByThriftId(fieldId);
19361
    }
19362
 
19363
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19364
      org.apache.thrift.protocol.TField field;
19365
      iprot.readStructBegin();
19366
      while (true)
19367
      {
19368
        field = iprot.readFieldBegin();
19369
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19370
          break;
19371
        }
19372
        switch (field.id) {
19373
          case 0: // SUCCESS
19374
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19375
              {
19376
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
19377
                this.success = new ArrayList<Vendor>(_list36.size);
19378
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
19379
                {
19380
                  Vendor _elem38; // required
19381
                  _elem38 = new Vendor();
19382
                  _elem38.read(iprot);
19383
                  this.success.add(_elem38);
19384
                }
19385
                iprot.readListEnd();
19386
              }
19387
            } else { 
19388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19389
            }
19390
            break;
19391
          default:
19392
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19393
        }
19394
        iprot.readFieldEnd();
19395
      }
19396
      iprot.readStructEnd();
19397
      validate();
19398
    }
19399
 
19400
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19401
      oprot.writeStructBegin(STRUCT_DESC);
19402
 
19403
      if (this.isSetSuccess()) {
19404
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19405
        {
19406
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
19407
          for (Vendor _iter39 : this.success)
19408
          {
19409
            _iter39.write(oprot);
19410
          }
19411
          oprot.writeListEnd();
19412
        }
19413
        oprot.writeFieldEnd();
19414
      }
19415
      oprot.writeFieldStop();
19416
      oprot.writeStructEnd();
19417
    }
19418
 
19419
    @Override
19420
    public String toString() {
19421
      StringBuilder sb = new StringBuilder("getAllVendors_result(");
19422
      boolean first = true;
19423
 
19424
      sb.append("success:");
19425
      if (this.success == null) {
19426
        sb.append("null");
19427
      } else {
19428
        sb.append(this.success);
19429
      }
19430
      first = false;
19431
      sb.append(")");
19432
      return sb.toString();
19433
    }
19434
 
19435
    public void validate() throws org.apache.thrift.TException {
19436
      // check for required fields
19437
    }
19438
 
19439
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19440
      try {
19441
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19442
      } catch (org.apache.thrift.TException te) {
19443
        throw new java.io.IOException(te);
19444
      }
19445
    }
19446
 
19447
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19448
      try {
19449
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19450
      } catch (org.apache.thrift.TException te) {
19451
        throw new java.io.IOException(te);
19452
      }
19453
    }
19454
 
19455
  }
19456
 
19457
  public static class addVendorItemMapping_args implements org.apache.thrift.TBase<addVendorItemMapping_args, addVendorItemMapping_args._Fields>, java.io.Serializable, Cloneable   {
19458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_args");
19459
 
19460
    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);
19461
    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);
19462
 
19463
    private String key; // required
19464
    private VendorItemMapping vendorItemMapping; // required
19465
 
19466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19467
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19468
      KEY((short)1, "key"),
19469
      VENDOR_ITEM_MAPPING((short)2, "vendorItemMapping");
19470
 
19471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19472
 
19473
      static {
19474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19475
          byName.put(field.getFieldName(), field);
19476
        }
19477
      }
19478
 
19479
      /**
19480
       * Find the _Fields constant that matches fieldId, or null if its not found.
19481
       */
19482
      public static _Fields findByThriftId(int fieldId) {
19483
        switch(fieldId) {
19484
          case 1: // KEY
19485
            return KEY;
19486
          case 2: // VENDOR_ITEM_MAPPING
19487
            return VENDOR_ITEM_MAPPING;
19488
          default:
19489
            return null;
19490
        }
19491
      }
19492
 
19493
      /**
19494
       * Find the _Fields constant that matches fieldId, throwing an exception
19495
       * if it is not found.
19496
       */
19497
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19498
        _Fields fields = findByThriftId(fieldId);
19499
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19500
        return fields;
19501
      }
19502
 
19503
      /**
19504
       * Find the _Fields constant that matches name, or null if its not found.
19505
       */
19506
      public static _Fields findByName(String name) {
19507
        return byName.get(name);
19508
      }
19509
 
19510
      private final short _thriftId;
19511
      private final String _fieldName;
19512
 
19513
      _Fields(short thriftId, String fieldName) {
19514
        _thriftId = thriftId;
19515
        _fieldName = fieldName;
19516
      }
19517
 
19518
      public short getThriftFieldId() {
19519
        return _thriftId;
19520
      }
19521
 
19522
      public String getFieldName() {
19523
        return _fieldName;
19524
      }
19525
    }
19526
 
19527
    // isset id assignments
19528
 
19529
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19530
    static {
19531
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19532
      tmpMap.put(_Fields.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19534
      tmpMap.put(_Fields.VENDOR_ITEM_MAPPING, new org.apache.thrift.meta_data.FieldMetaData("vendorItemMapping", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19535
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class)));
19536
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19537
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_args.class, metaDataMap);
19538
    }
19539
 
19540
    public addVendorItemMapping_args() {
19541
    }
19542
 
19543
    public addVendorItemMapping_args(
19544
      String key,
19545
      VendorItemMapping vendorItemMapping)
19546
    {
19547
      this();
19548
      this.key = key;
19549
      this.vendorItemMapping = vendorItemMapping;
19550
    }
19551
 
19552
    /**
19553
     * Performs a deep copy on <i>other</i>.
19554
     */
19555
    public addVendorItemMapping_args(addVendorItemMapping_args other) {
19556
      if (other.isSetKey()) {
19557
        this.key = other.key;
19558
      }
19559
      if (other.isSetVendorItemMapping()) {
19560
        this.vendorItemMapping = new VendorItemMapping(other.vendorItemMapping);
19561
      }
19562
    }
19563
 
19564
    public addVendorItemMapping_args deepCopy() {
19565
      return new addVendorItemMapping_args(this);
19566
    }
19567
 
19568
    @Override
19569
    public void clear() {
19570
      this.key = null;
19571
      this.vendorItemMapping = null;
19572
    }
19573
 
19574
    public String getKey() {
19575
      return this.key;
19576
    }
19577
 
19578
    public void setKey(String key) {
19579
      this.key = key;
19580
    }
19581
 
19582
    public void unsetKey() {
19583
      this.key = null;
19584
    }
19585
 
19586
    /** Returns true if field key is set (has been assigned a value) and false otherwise */
19587
    public boolean isSetKey() {
19588
      return this.key != null;
19589
    }
19590
 
19591
    public void setKeyIsSet(boolean value) {
19592
      if (!value) {
19593
        this.key = null;
19594
      }
19595
    }
19596
 
19597
    public VendorItemMapping getVendorItemMapping() {
19598
      return this.vendorItemMapping;
19599
    }
19600
 
19601
    public void setVendorItemMapping(VendorItemMapping vendorItemMapping) {
19602
      this.vendorItemMapping = vendorItemMapping;
19603
    }
19604
 
19605
    public void unsetVendorItemMapping() {
19606
      this.vendorItemMapping = null;
19607
    }
19608
 
19609
    /** Returns true if field vendorItemMapping is set (has been assigned a value) and false otherwise */
19610
    public boolean isSetVendorItemMapping() {
19611
      return this.vendorItemMapping != null;
19612
    }
19613
 
19614
    public void setVendorItemMappingIsSet(boolean value) {
19615
      if (!value) {
19616
        this.vendorItemMapping = null;
19617
      }
19618
    }
19619
 
19620
    public void setFieldValue(_Fields field, Object value) {
19621
      switch (field) {
19622
      case KEY:
19623
        if (value == null) {
19624
          unsetKey();
19625
        } else {
19626
          setKey((String)value);
19627
        }
19628
        break;
19629
 
19630
      case VENDOR_ITEM_MAPPING:
19631
        if (value == null) {
19632
          unsetVendorItemMapping();
19633
        } else {
19634
          setVendorItemMapping((VendorItemMapping)value);
19635
        }
19636
        break;
19637
 
19638
      }
19639
    }
19640
 
19641
    public Object getFieldValue(_Fields field) {
19642
      switch (field) {
19643
      case KEY:
19644
        return getKey();
19645
 
19646
      case VENDOR_ITEM_MAPPING:
19647
        return getVendorItemMapping();
19648
 
19649
      }
19650
      throw new IllegalStateException();
19651
    }
19652
 
19653
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19654
    public boolean isSet(_Fields field) {
19655
      if (field == null) {
19656
        throw new IllegalArgumentException();
19657
      }
19658
 
19659
      switch (field) {
19660
      case KEY:
19661
        return isSetKey();
19662
      case VENDOR_ITEM_MAPPING:
19663
        return isSetVendorItemMapping();
19664
      }
19665
      throw new IllegalStateException();
19666
    }
19667
 
19668
    @Override
19669
    public boolean equals(Object that) {
19670
      if (that == null)
19671
        return false;
19672
      if (that instanceof addVendorItemMapping_args)
19673
        return this.equals((addVendorItemMapping_args)that);
19674
      return false;
19675
    }
19676
 
19677
    public boolean equals(addVendorItemMapping_args that) {
19678
      if (that == null)
19679
        return false;
19680
 
19681
      boolean this_present_key = true && this.isSetKey();
19682
      boolean that_present_key = true && that.isSetKey();
19683
      if (this_present_key || that_present_key) {
19684
        if (!(this_present_key && that_present_key))
19685
          return false;
19686
        if (!this.key.equals(that.key))
19687
          return false;
19688
      }
19689
 
19690
      boolean this_present_vendorItemMapping = true && this.isSetVendorItemMapping();
19691
      boolean that_present_vendorItemMapping = true && that.isSetVendorItemMapping();
19692
      if (this_present_vendorItemMapping || that_present_vendorItemMapping) {
19693
        if (!(this_present_vendorItemMapping && that_present_vendorItemMapping))
19694
          return false;
19695
        if (!this.vendorItemMapping.equals(that.vendorItemMapping))
19696
          return false;
19697
      }
19698
 
19699
      return true;
19700
    }
19701
 
19702
    @Override
19703
    public int hashCode() {
19704
      return 0;
19705
    }
19706
 
19707
    public int compareTo(addVendorItemMapping_args other) {
19708
      if (!getClass().equals(other.getClass())) {
19709
        return getClass().getName().compareTo(other.getClass().getName());
19710
      }
19711
 
19712
      int lastComparison = 0;
19713
      addVendorItemMapping_args typedOther = (addVendorItemMapping_args)other;
19714
 
19715
      lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey());
19716
      if (lastComparison != 0) {
19717
        return lastComparison;
19718
      }
19719
      if (isSetKey()) {
19720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key);
19721
        if (lastComparison != 0) {
19722
          return lastComparison;
19723
        }
19724
      }
19725
      lastComparison = Boolean.valueOf(isSetVendorItemMapping()).compareTo(typedOther.isSetVendorItemMapping());
19726
      if (lastComparison != 0) {
19727
        return lastComparison;
19728
      }
19729
      if (isSetVendorItemMapping()) {
19730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorItemMapping, typedOther.vendorItemMapping);
19731
        if (lastComparison != 0) {
19732
          return lastComparison;
19733
        }
19734
      }
19735
      return 0;
19736
    }
19737
 
19738
    public _Fields fieldForId(int fieldId) {
19739
      return _Fields.findByThriftId(fieldId);
19740
    }
19741
 
19742
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19743
      org.apache.thrift.protocol.TField field;
19744
      iprot.readStructBegin();
19745
      while (true)
19746
      {
19747
        field = iprot.readFieldBegin();
19748
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19749
          break;
19750
        }
19751
        switch (field.id) {
19752
          case 1: // KEY
19753
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19754
              this.key = iprot.readString();
19755
            } else { 
19756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19757
            }
19758
            break;
19759
          case 2: // VENDOR_ITEM_MAPPING
19760
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19761
              this.vendorItemMapping = new VendorItemMapping();
19762
              this.vendorItemMapping.read(iprot);
19763
            } else { 
19764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19765
            }
19766
            break;
19767
          default:
19768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19769
        }
19770
        iprot.readFieldEnd();
19771
      }
19772
      iprot.readStructEnd();
19773
      validate();
19774
    }
19775
 
19776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19777
      validate();
19778
 
19779
      oprot.writeStructBegin(STRUCT_DESC);
19780
      if (this.key != null) {
19781
        oprot.writeFieldBegin(KEY_FIELD_DESC);
19782
        oprot.writeString(this.key);
19783
        oprot.writeFieldEnd();
19784
      }
19785
      if (this.vendorItemMapping != null) {
19786
        oprot.writeFieldBegin(VENDOR_ITEM_MAPPING_FIELD_DESC);
19787
        this.vendorItemMapping.write(oprot);
19788
        oprot.writeFieldEnd();
19789
      }
19790
      oprot.writeFieldStop();
19791
      oprot.writeStructEnd();
19792
    }
19793
 
19794
    @Override
19795
    public String toString() {
19796
      StringBuilder sb = new StringBuilder("addVendorItemMapping_args(");
19797
      boolean first = true;
19798
 
19799
      sb.append("key:");
19800
      if (this.key == null) {
19801
        sb.append("null");
19802
      } else {
19803
        sb.append(this.key);
19804
      }
19805
      first = false;
19806
      if (!first) sb.append(", ");
19807
      sb.append("vendorItemMapping:");
19808
      if (this.vendorItemMapping == null) {
19809
        sb.append("null");
19810
      } else {
19811
        sb.append(this.vendorItemMapping);
19812
      }
19813
      first = false;
19814
      sb.append(")");
19815
      return sb.toString();
19816
    }
19817
 
19818
    public void validate() throws org.apache.thrift.TException {
19819
      // check for required fields
19820
    }
19821
 
19822
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19823
      try {
19824
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19825
      } catch (org.apache.thrift.TException te) {
19826
        throw new java.io.IOException(te);
19827
      }
19828
    }
19829
 
19830
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19831
      try {
19832
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19833
      } catch (org.apache.thrift.TException te) {
19834
        throw new java.io.IOException(te);
19835
      }
19836
    }
19837
 
19838
  }
19839
 
19840
  public static class addVendorItemMapping_result implements org.apache.thrift.TBase<addVendorItemMapping_result, addVendorItemMapping_result._Fields>, java.io.Serializable, Cloneable   {
19841
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVendorItemMapping_result");
19842
 
19843
    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);
19844
 
19845
    private InventoryServiceException cex; // required
19846
 
19847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19849
      CEX((short)1, "cex");
19850
 
19851
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19852
 
19853
      static {
19854
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19855
          byName.put(field.getFieldName(), field);
19856
        }
19857
      }
19858
 
19859
      /**
19860
       * Find the _Fields constant that matches fieldId, or null if its not found.
19861
       */
19862
      public static _Fields findByThriftId(int fieldId) {
19863
        switch(fieldId) {
19864
          case 1: // CEX
19865
            return CEX;
19866
          default:
19867
            return null;
19868
        }
19869
      }
19870
 
19871
      /**
19872
       * Find the _Fields constant that matches fieldId, throwing an exception
19873
       * if it is not found.
19874
       */
19875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19876
        _Fields fields = findByThriftId(fieldId);
19877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19878
        return fields;
19879
      }
19880
 
19881
      /**
19882
       * Find the _Fields constant that matches name, or null if its not found.
19883
       */
19884
      public static _Fields findByName(String name) {
19885
        return byName.get(name);
19886
      }
19887
 
19888
      private final short _thriftId;
19889
      private final String _fieldName;
19890
 
19891
      _Fields(short thriftId, String fieldName) {
19892
        _thriftId = thriftId;
19893
        _fieldName = fieldName;
19894
      }
19895
 
19896
      public short getThriftFieldId() {
19897
        return _thriftId;
19898
      }
19899
 
19900
      public String getFieldName() {
19901
        return _fieldName;
19902
      }
19903
    }
19904
 
19905
    // isset id assignments
19906
 
19907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19908
    static {
19909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19910
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19911
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19912
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19913
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVendorItemMapping_result.class, metaDataMap);
19914
    }
19915
 
19916
    public addVendorItemMapping_result() {
19917
    }
19918
 
19919
    public addVendorItemMapping_result(
19920
      InventoryServiceException cex)
19921
    {
19922
      this();
19923
      this.cex = cex;
19924
    }
19925
 
19926
    /**
19927
     * Performs a deep copy on <i>other</i>.
19928
     */
19929
    public addVendorItemMapping_result(addVendorItemMapping_result other) {
19930
      if (other.isSetCex()) {
19931
        this.cex = new InventoryServiceException(other.cex);
19932
      }
19933
    }
19934
 
19935
    public addVendorItemMapping_result deepCopy() {
19936
      return new addVendorItemMapping_result(this);
19937
    }
19938
 
19939
    @Override
19940
    public void clear() {
19941
      this.cex = null;
19942
    }
19943
 
19944
    public InventoryServiceException getCex() {
19945
      return this.cex;
19946
    }
19947
 
19948
    public void setCex(InventoryServiceException cex) {
19949
      this.cex = cex;
19950
    }
19951
 
19952
    public void unsetCex() {
19953
      this.cex = null;
19954
    }
19955
 
19956
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
19957
    public boolean isSetCex() {
19958
      return this.cex != null;
19959
    }
19960
 
19961
    public void setCexIsSet(boolean value) {
19962
      if (!value) {
19963
        this.cex = null;
19964
      }
19965
    }
19966
 
19967
    public void setFieldValue(_Fields field, Object value) {
19968
      switch (field) {
19969
      case CEX:
19970
        if (value == null) {
19971
          unsetCex();
19972
        } else {
19973
          setCex((InventoryServiceException)value);
19974
        }
19975
        break;
19976
 
19977
      }
19978
    }
19979
 
19980
    public Object getFieldValue(_Fields field) {
19981
      switch (field) {
19982
      case CEX:
19983
        return getCex();
19984
 
19985
      }
19986
      throw new IllegalStateException();
19987
    }
19988
 
19989
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19990
    public boolean isSet(_Fields field) {
19991
      if (field == null) {
19992
        throw new IllegalArgumentException();
19993
      }
19994
 
19995
      switch (field) {
19996
      case CEX:
19997
        return isSetCex();
19998
      }
19999
      throw new IllegalStateException();
20000
    }
20001
 
20002
    @Override
20003
    public boolean equals(Object that) {
20004
      if (that == null)
20005
        return false;
20006
      if (that instanceof addVendorItemMapping_result)
20007
        return this.equals((addVendorItemMapping_result)that);
20008
      return false;
20009
    }
20010
 
20011
    public boolean equals(addVendorItemMapping_result that) {
20012
      if (that == null)
20013
        return false;
20014
 
20015
      boolean this_present_cex = true && this.isSetCex();
20016
      boolean that_present_cex = true && that.isSetCex();
20017
      if (this_present_cex || that_present_cex) {
20018
        if (!(this_present_cex && that_present_cex))
20019
          return false;
20020
        if (!this.cex.equals(that.cex))
20021
          return false;
20022
      }
20023
 
20024
      return true;
20025
    }
20026
 
20027
    @Override
20028
    public int hashCode() {
20029
      return 0;
20030
    }
20031
 
20032
    public int compareTo(addVendorItemMapping_result other) {
20033
      if (!getClass().equals(other.getClass())) {
20034
        return getClass().getName().compareTo(other.getClass().getName());
20035
      }
20036
 
20037
      int lastComparison = 0;
20038
      addVendorItemMapping_result typedOther = (addVendorItemMapping_result)other;
20039
 
20040
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
20041
      if (lastComparison != 0) {
20042
        return lastComparison;
20043
      }
20044
      if (isSetCex()) {
20045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
20046
        if (lastComparison != 0) {
20047
          return lastComparison;
20048
        }
20049
      }
20050
      return 0;
20051
    }
20052
 
20053
    public _Fields fieldForId(int fieldId) {
20054
      return _Fields.findByThriftId(fieldId);
20055
    }
20056
 
20057
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20058
      org.apache.thrift.protocol.TField field;
20059
      iprot.readStructBegin();
20060
      while (true)
20061
      {
20062
        field = iprot.readFieldBegin();
20063
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20064
          break;
20065
        }
20066
        switch (field.id) {
20067
          case 1: // CEX
20068
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20069
              this.cex = new InventoryServiceException();
20070
              this.cex.read(iprot);
20071
            } else { 
20072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20073
            }
20074
            break;
20075
          default:
20076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20077
        }
20078
        iprot.readFieldEnd();
20079
      }
20080
      iprot.readStructEnd();
20081
      validate();
20082
    }
20083
 
20084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20085
      oprot.writeStructBegin(STRUCT_DESC);
20086
 
20087
      if (this.isSetCex()) {
20088
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20089
        this.cex.write(oprot);
20090
        oprot.writeFieldEnd();
20091
      }
20092
      oprot.writeFieldStop();
20093
      oprot.writeStructEnd();
20094
    }
20095
 
20096
    @Override
20097
    public String toString() {
20098
      StringBuilder sb = new StringBuilder("addVendorItemMapping_result(");
20099
      boolean first = true;
20100
 
20101
      sb.append("cex:");
20102
      if (this.cex == null) {
20103
        sb.append("null");
20104
      } else {
20105
        sb.append(this.cex);
20106
      }
20107
      first = false;
20108
      sb.append(")");
20109
      return sb.toString();
20110
    }
20111
 
20112
    public void validate() throws org.apache.thrift.TException {
20113
      // check for required fields
20114
    }
20115
 
20116
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20117
      try {
20118
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20119
      } catch (org.apache.thrift.TException te) {
20120
        throw new java.io.IOException(te);
20121
      }
20122
    }
20123
 
20124
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20125
      try {
20126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20127
      } catch (org.apache.thrift.TException te) {
20128
        throw new java.io.IOException(te);
20129
      }
20130
    }
20131
 
20132
  }
20133
 
20134
  public static class getVendorItemMappings_args implements org.apache.thrift.TBase<getVendorItemMappings_args, getVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
20135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_args");
20136
 
20137
    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);
20138
 
20139
    private long itemId; // required
20140
 
20141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20143
      ITEM_ID((short)1, "itemId");
20144
 
20145
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20146
 
20147
      static {
20148
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20149
          byName.put(field.getFieldName(), field);
20150
        }
20151
      }
20152
 
20153
      /**
20154
       * Find the _Fields constant that matches fieldId, or null if its not found.
20155
       */
20156
      public static _Fields findByThriftId(int fieldId) {
20157
        switch(fieldId) {
20158
          case 1: // ITEM_ID
20159
            return ITEM_ID;
20160
          default:
20161
            return null;
20162
        }
20163
      }
20164
 
20165
      /**
20166
       * Find the _Fields constant that matches fieldId, throwing an exception
20167
       * if it is not found.
20168
       */
20169
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20170
        _Fields fields = findByThriftId(fieldId);
20171
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20172
        return fields;
20173
      }
20174
 
20175
      /**
20176
       * Find the _Fields constant that matches name, or null if its not found.
20177
       */
20178
      public static _Fields findByName(String name) {
20179
        return byName.get(name);
20180
      }
20181
 
20182
      private final short _thriftId;
20183
      private final String _fieldName;
20184
 
20185
      _Fields(short thriftId, String fieldName) {
20186
        _thriftId = thriftId;
20187
        _fieldName = fieldName;
20188
      }
20189
 
20190
      public short getThriftFieldId() {
20191
        return _thriftId;
20192
      }
20193
 
20194
      public String getFieldName() {
20195
        return _fieldName;
20196
      }
20197
    }
20198
 
20199
    // isset id assignments
20200
    private static final int __ITEMID_ISSET_ID = 0;
20201
    private BitSet __isset_bit_vector = new BitSet(1);
20202
 
20203
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20204
    static {
20205
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20206
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20207
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_args.class, metaDataMap);
20210
    }
20211
 
20212
    public getVendorItemMappings_args() {
20213
    }
20214
 
20215
    public getVendorItemMappings_args(
20216
      long itemId)
20217
    {
20218
      this();
20219
      this.itemId = itemId;
20220
      setItemIdIsSet(true);
20221
    }
20222
 
20223
    /**
20224
     * Performs a deep copy on <i>other</i>.
20225
     */
20226
    public getVendorItemMappings_args(getVendorItemMappings_args other) {
20227
      __isset_bit_vector.clear();
20228
      __isset_bit_vector.or(other.__isset_bit_vector);
20229
      this.itemId = other.itemId;
20230
    }
20231
 
20232
    public getVendorItemMappings_args deepCopy() {
20233
      return new getVendorItemMappings_args(this);
20234
    }
20235
 
20236
    @Override
20237
    public void clear() {
20238
      setItemIdIsSet(false);
20239
      this.itemId = 0;
20240
    }
20241
 
20242
    public long getItemId() {
20243
      return this.itemId;
20244
    }
20245
 
20246
    public void setItemId(long itemId) {
20247
      this.itemId = itemId;
20248
      setItemIdIsSet(true);
20249
    }
20250
 
20251
    public void unsetItemId() {
20252
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
20253
    }
20254
 
20255
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
20256
    public boolean isSetItemId() {
20257
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
20258
    }
20259
 
20260
    public void setItemIdIsSet(boolean value) {
20261
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
20262
    }
20263
 
20264
    public void setFieldValue(_Fields field, Object value) {
20265
      switch (field) {
20266
      case ITEM_ID:
20267
        if (value == null) {
20268
          unsetItemId();
20269
        } else {
20270
          setItemId((Long)value);
20271
        }
20272
        break;
20273
 
20274
      }
20275
    }
20276
 
20277
    public Object getFieldValue(_Fields field) {
20278
      switch (field) {
20279
      case ITEM_ID:
20280
        return Long.valueOf(getItemId());
20281
 
20282
      }
20283
      throw new IllegalStateException();
20284
    }
20285
 
20286
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20287
    public boolean isSet(_Fields field) {
20288
      if (field == null) {
20289
        throw new IllegalArgumentException();
20290
      }
20291
 
20292
      switch (field) {
20293
      case ITEM_ID:
20294
        return isSetItemId();
20295
      }
20296
      throw new IllegalStateException();
20297
    }
20298
 
20299
    @Override
20300
    public boolean equals(Object that) {
20301
      if (that == null)
20302
        return false;
20303
      if (that instanceof getVendorItemMappings_args)
20304
        return this.equals((getVendorItemMappings_args)that);
20305
      return false;
20306
    }
20307
 
20308
    public boolean equals(getVendorItemMappings_args that) {
20309
      if (that == null)
20310
        return false;
20311
 
20312
      boolean this_present_itemId = true;
20313
      boolean that_present_itemId = true;
20314
      if (this_present_itemId || that_present_itemId) {
20315
        if (!(this_present_itemId && that_present_itemId))
20316
          return false;
20317
        if (this.itemId != that.itemId)
20318
          return false;
20319
      }
20320
 
20321
      return true;
20322
    }
20323
 
20324
    @Override
20325
    public int hashCode() {
20326
      return 0;
20327
    }
20328
 
20329
    public int compareTo(getVendorItemMappings_args other) {
20330
      if (!getClass().equals(other.getClass())) {
20331
        return getClass().getName().compareTo(other.getClass().getName());
20332
      }
20333
 
20334
      int lastComparison = 0;
20335
      getVendorItemMappings_args typedOther = (getVendorItemMappings_args)other;
20336
 
20337
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
20338
      if (lastComparison != 0) {
20339
        return lastComparison;
20340
      }
20341
      if (isSetItemId()) {
20342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
20343
        if (lastComparison != 0) {
20344
          return lastComparison;
20345
        }
20346
      }
20347
      return 0;
20348
    }
20349
 
20350
    public _Fields fieldForId(int fieldId) {
20351
      return _Fields.findByThriftId(fieldId);
20352
    }
20353
 
20354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20355
      org.apache.thrift.protocol.TField field;
20356
      iprot.readStructBegin();
20357
      while (true)
20358
      {
20359
        field = iprot.readFieldBegin();
20360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20361
          break;
20362
        }
20363
        switch (field.id) {
20364
          case 1: // ITEM_ID
20365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20366
              this.itemId = iprot.readI64();
20367
              setItemIdIsSet(true);
20368
            } else { 
20369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20370
            }
20371
            break;
20372
          default:
20373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20374
        }
20375
        iprot.readFieldEnd();
20376
      }
20377
      iprot.readStructEnd();
20378
      validate();
20379
    }
20380
 
20381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20382
      validate();
20383
 
20384
      oprot.writeStructBegin(STRUCT_DESC);
20385
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
20386
      oprot.writeI64(this.itemId);
20387
      oprot.writeFieldEnd();
20388
      oprot.writeFieldStop();
20389
      oprot.writeStructEnd();
20390
    }
20391
 
20392
    @Override
20393
    public String toString() {
20394
      StringBuilder sb = new StringBuilder("getVendorItemMappings_args(");
20395
      boolean first = true;
20396
 
20397
      sb.append("itemId:");
20398
      sb.append(this.itemId);
20399
      first = false;
20400
      sb.append(")");
20401
      return sb.toString();
20402
    }
20403
 
20404
    public void validate() throws org.apache.thrift.TException {
20405
      // check for required fields
20406
    }
20407
 
20408
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20409
      try {
20410
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20411
      } catch (org.apache.thrift.TException te) {
20412
        throw new java.io.IOException(te);
20413
      }
20414
    }
20415
 
20416
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20417
      try {
20418
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20419
      } catch (org.apache.thrift.TException te) {
20420
        throw new java.io.IOException(te);
20421
      }
20422
    }
20423
 
20424
  }
20425
 
20426
  public static class getVendorItemMappings_result implements org.apache.thrift.TBase<getVendorItemMappings_result, getVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
20427
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getVendorItemMappings_result");
20428
 
20429
    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);
20430
    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);
20431
 
20432
    private List<VendorItemMapping> success; // required
20433
    private InventoryServiceException cex; // required
20434
 
20435
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20436
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20437
      SUCCESS((short)0, "success"),
20438
      CEX((short)1, "cex");
20439
 
20440
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20441
 
20442
      static {
20443
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20444
          byName.put(field.getFieldName(), field);
20445
        }
20446
      }
20447
 
20448
      /**
20449
       * Find the _Fields constant that matches fieldId, or null if its not found.
20450
       */
20451
      public static _Fields findByThriftId(int fieldId) {
20452
        switch(fieldId) {
20453
          case 0: // SUCCESS
20454
            return SUCCESS;
20455
          case 1: // CEX
20456
            return CEX;
20457
          default:
20458
            return null;
20459
        }
20460
      }
20461
 
20462
      /**
20463
       * Find the _Fields constant that matches fieldId, throwing an exception
20464
       * if it is not found.
20465
       */
20466
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20467
        _Fields fields = findByThriftId(fieldId);
20468
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20469
        return fields;
20470
      }
20471
 
20472
      /**
20473
       * Find the _Fields constant that matches name, or null if its not found.
20474
       */
20475
      public static _Fields findByName(String name) {
20476
        return byName.get(name);
20477
      }
20478
 
20479
      private final short _thriftId;
20480
      private final String _fieldName;
20481
 
20482
      _Fields(short thriftId, String fieldName) {
20483
        _thriftId = thriftId;
20484
        _fieldName = fieldName;
20485
      }
20486
 
20487
      public short getThriftFieldId() {
20488
        return _thriftId;
20489
      }
20490
 
20491
      public String getFieldName() {
20492
        return _fieldName;
20493
      }
20494
    }
20495
 
20496
    // isset id assignments
20497
 
20498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20499
    static {
20500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20501
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20502
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20503
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
20504
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20505
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20506
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20507
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getVendorItemMappings_result.class, metaDataMap);
20508
    }
20509
 
20510
    public getVendorItemMappings_result() {
20511
    }
20512
 
20513
    public getVendorItemMappings_result(
20514
      List<VendorItemMapping> success,
20515
      InventoryServiceException cex)
20516
    {
20517
      this();
20518
      this.success = success;
20519
      this.cex = cex;
20520
    }
20521
 
20522
    /**
20523
     * Performs a deep copy on <i>other</i>.
20524
     */
20525
    public getVendorItemMappings_result(getVendorItemMappings_result other) {
20526
      if (other.isSetSuccess()) {
20527
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
20528
        for (VendorItemMapping other_element : other.success) {
20529
          __this__success.add(new VendorItemMapping(other_element));
20530
        }
20531
        this.success = __this__success;
20532
      }
20533
      if (other.isSetCex()) {
20534
        this.cex = new InventoryServiceException(other.cex);
20535
      }
20536
    }
20537
 
20538
    public getVendorItemMappings_result deepCopy() {
20539
      return new getVendorItemMappings_result(this);
20540
    }
20541
 
20542
    @Override
20543
    public void clear() {
20544
      this.success = null;
20545
      this.cex = null;
20546
    }
20547
 
20548
    public int getSuccessSize() {
20549
      return (this.success == null) ? 0 : this.success.size();
20550
    }
20551
 
20552
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
20553
      return (this.success == null) ? null : this.success.iterator();
20554
    }
20555
 
20556
    public void addToSuccess(VendorItemMapping elem) {
20557
      if (this.success == null) {
20558
        this.success = new ArrayList<VendorItemMapping>();
20559
      }
20560
      this.success.add(elem);
20561
    }
20562
 
20563
    public List<VendorItemMapping> getSuccess() {
20564
      return this.success;
20565
    }
20566
 
20567
    public void setSuccess(List<VendorItemMapping> success) {
20568
      this.success = success;
20569
    }
20570
 
20571
    public void unsetSuccess() {
20572
      this.success = null;
20573
    }
20574
 
20575
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20576
    public boolean isSetSuccess() {
20577
      return this.success != null;
20578
    }
20579
 
20580
    public void setSuccessIsSet(boolean value) {
20581
      if (!value) {
20582
        this.success = null;
20583
      }
20584
    }
20585
 
20586
    public InventoryServiceException getCex() {
20587
      return this.cex;
20588
    }
20589
 
20590
    public void setCex(InventoryServiceException cex) {
20591
      this.cex = cex;
20592
    }
20593
 
20594
    public void unsetCex() {
20595
      this.cex = null;
20596
    }
20597
 
20598
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
20599
    public boolean isSetCex() {
20600
      return this.cex != null;
20601
    }
20602
 
20603
    public void setCexIsSet(boolean value) {
20604
      if (!value) {
20605
        this.cex = null;
20606
      }
20607
    }
20608
 
20609
    public void setFieldValue(_Fields field, Object value) {
20610
      switch (field) {
20611
      case SUCCESS:
20612
        if (value == null) {
20613
          unsetSuccess();
20614
        } else {
20615
          setSuccess((List<VendorItemMapping>)value);
20616
        }
20617
        break;
20618
 
20619
      case CEX:
20620
        if (value == null) {
20621
          unsetCex();
20622
        } else {
20623
          setCex((InventoryServiceException)value);
20624
        }
20625
        break;
20626
 
20627
      }
20628
    }
20629
 
20630
    public Object getFieldValue(_Fields field) {
20631
      switch (field) {
20632
      case SUCCESS:
20633
        return getSuccess();
20634
 
20635
      case CEX:
20636
        return getCex();
20637
 
20638
      }
20639
      throw new IllegalStateException();
20640
    }
20641
 
20642
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20643
    public boolean isSet(_Fields field) {
20644
      if (field == null) {
20645
        throw new IllegalArgumentException();
20646
      }
20647
 
20648
      switch (field) {
20649
      case SUCCESS:
20650
        return isSetSuccess();
20651
      case CEX:
20652
        return isSetCex();
20653
      }
20654
      throw new IllegalStateException();
20655
    }
20656
 
20657
    @Override
20658
    public boolean equals(Object that) {
20659
      if (that == null)
20660
        return false;
20661
      if (that instanceof getVendorItemMappings_result)
20662
        return this.equals((getVendorItemMappings_result)that);
20663
      return false;
20664
    }
20665
 
20666
    public boolean equals(getVendorItemMappings_result that) {
20667
      if (that == null)
20668
        return false;
20669
 
20670
      boolean this_present_success = true && this.isSetSuccess();
20671
      boolean that_present_success = true && that.isSetSuccess();
20672
      if (this_present_success || that_present_success) {
20673
        if (!(this_present_success && that_present_success))
20674
          return false;
20675
        if (!this.success.equals(that.success))
20676
          return false;
20677
      }
20678
 
20679
      boolean this_present_cex = true && this.isSetCex();
20680
      boolean that_present_cex = true && that.isSetCex();
20681
      if (this_present_cex || that_present_cex) {
20682
        if (!(this_present_cex && that_present_cex))
20683
          return false;
20684
        if (!this.cex.equals(that.cex))
20685
          return false;
20686
      }
20687
 
20688
      return true;
20689
    }
20690
 
20691
    @Override
20692
    public int hashCode() {
20693
      return 0;
20694
    }
20695
 
20696
    public int compareTo(getVendorItemMappings_result other) {
20697
      if (!getClass().equals(other.getClass())) {
20698
        return getClass().getName().compareTo(other.getClass().getName());
20699
      }
20700
 
20701
      int lastComparison = 0;
20702
      getVendorItemMappings_result typedOther = (getVendorItemMappings_result)other;
20703
 
20704
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20705
      if (lastComparison != 0) {
20706
        return lastComparison;
20707
      }
20708
      if (isSetSuccess()) {
20709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20710
        if (lastComparison != 0) {
20711
          return lastComparison;
20712
        }
20713
      }
20714
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
20715
      if (lastComparison != 0) {
20716
        return lastComparison;
20717
      }
20718
      if (isSetCex()) {
20719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
20720
        if (lastComparison != 0) {
20721
          return lastComparison;
20722
        }
20723
      }
20724
      return 0;
20725
    }
20726
 
20727
    public _Fields fieldForId(int fieldId) {
20728
      return _Fields.findByThriftId(fieldId);
20729
    }
20730
 
20731
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20732
      org.apache.thrift.protocol.TField field;
20733
      iprot.readStructBegin();
20734
      while (true)
20735
      {
20736
        field = iprot.readFieldBegin();
20737
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20738
          break;
20739
        }
20740
        switch (field.id) {
20741
          case 0: // SUCCESS
20742
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20743
              {
20744
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
20745
                this.success = new ArrayList<VendorItemMapping>(_list40.size);
20746
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
20747
                {
20748
                  VendorItemMapping _elem42; // required
20749
                  _elem42 = new VendorItemMapping();
20750
                  _elem42.read(iprot);
20751
                  this.success.add(_elem42);
20752
                }
20753
                iprot.readListEnd();
20754
              }
20755
            } else { 
20756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20757
            }
20758
            break;
20759
          case 1: // CEX
20760
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20761
              this.cex = new InventoryServiceException();
20762
              this.cex.read(iprot);
20763
            } else { 
20764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20765
            }
20766
            break;
20767
          default:
20768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20769
        }
20770
        iprot.readFieldEnd();
20771
      }
20772
      iprot.readStructEnd();
20773
      validate();
20774
    }
20775
 
20776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20777
      oprot.writeStructBegin(STRUCT_DESC);
20778
 
20779
      if (this.isSetSuccess()) {
20780
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20781
        {
20782
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20783
          for (VendorItemMapping _iter43 : this.success)
20784
          {
20785
            _iter43.write(oprot);
20786
          }
20787
          oprot.writeListEnd();
20788
        }
20789
        oprot.writeFieldEnd();
20790
      } else if (this.isSetCex()) {
20791
        oprot.writeFieldBegin(CEX_FIELD_DESC);
20792
        this.cex.write(oprot);
20793
        oprot.writeFieldEnd();
20794
      }
20795
      oprot.writeFieldStop();
20796
      oprot.writeStructEnd();
20797
    }
20798
 
20799
    @Override
20800
    public String toString() {
20801
      StringBuilder sb = new StringBuilder("getVendorItemMappings_result(");
20802
      boolean first = true;
20803
 
20804
      sb.append("success:");
20805
      if (this.success == null) {
20806
        sb.append("null");
20807
      } else {
20808
        sb.append(this.success);
20809
      }
20810
      first = false;
20811
      if (!first) sb.append(", ");
20812
      sb.append("cex:");
20813
      if (this.cex == null) {
20814
        sb.append("null");
20815
      } else {
20816
        sb.append(this.cex);
20817
      }
20818
      first = false;
20819
      sb.append(")");
20820
      return sb.toString();
20821
    }
20822
 
20823
    public void validate() throws org.apache.thrift.TException {
20824
      // check for required fields
20825
    }
20826
 
20827
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20828
      try {
20829
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20830
      } catch (org.apache.thrift.TException te) {
20831
        throw new java.io.IOException(te);
20832
      }
20833
    }
20834
 
20835
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20836
      try {
20837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20838
      } catch (org.apache.thrift.TException te) {
20839
        throw new java.io.IOException(te);
20840
      }
20841
    }
20842
 
20843
  }
20844
 
20845
  public static class getPendingOrdersInventory_args implements org.apache.thrift.TBase<getPendingOrdersInventory_args, getPendingOrdersInventory_args._Fields>, java.io.Serializable, Cloneable   {
20846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_args");
20847
 
20848
    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);
20849
 
20850
    private long vendorid; // required
20851
 
20852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20854
      VENDORID((short)1, "vendorid");
20855
 
20856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20857
 
20858
      static {
20859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20860
          byName.put(field.getFieldName(), field);
20861
        }
20862
      }
20863
 
20864
      /**
20865
       * Find the _Fields constant that matches fieldId, or null if its not found.
20866
       */
20867
      public static _Fields findByThriftId(int fieldId) {
20868
        switch(fieldId) {
20869
          case 1: // VENDORID
20870
            return VENDORID;
20871
          default:
20872
            return null;
20873
        }
20874
      }
20875
 
20876
      /**
20877
       * Find the _Fields constant that matches fieldId, throwing an exception
20878
       * if it is not found.
20879
       */
20880
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20881
        _Fields fields = findByThriftId(fieldId);
20882
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20883
        return fields;
20884
      }
20885
 
20886
      /**
20887
       * Find the _Fields constant that matches name, or null if its not found.
20888
       */
20889
      public static _Fields findByName(String name) {
20890
        return byName.get(name);
20891
      }
20892
 
20893
      private final short _thriftId;
20894
      private final String _fieldName;
20895
 
20896
      _Fields(short thriftId, String fieldName) {
20897
        _thriftId = thriftId;
20898
        _fieldName = fieldName;
20899
      }
20900
 
20901
      public short getThriftFieldId() {
20902
        return _thriftId;
20903
      }
20904
 
20905
      public String getFieldName() {
20906
        return _fieldName;
20907
      }
20908
    }
20909
 
20910
    // isset id assignments
20911
    private static final int __VENDORID_ISSET_ID = 0;
20912
    private BitSet __isset_bit_vector = new BitSet(1);
20913
 
20914
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20915
    static {
20916
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20917
      tmpMap.put(_Fields.VENDORID, new org.apache.thrift.meta_data.FieldMetaData("vendorid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20919
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20920
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_args.class, metaDataMap);
20921
    }
20922
 
20923
    public getPendingOrdersInventory_args() {
20924
    }
20925
 
20926
    public getPendingOrdersInventory_args(
20927
      long vendorid)
20928
    {
20929
      this();
20930
      this.vendorid = vendorid;
20931
      setVendoridIsSet(true);
20932
    }
20933
 
20934
    /**
20935
     * Performs a deep copy on <i>other</i>.
20936
     */
20937
    public getPendingOrdersInventory_args(getPendingOrdersInventory_args other) {
20938
      __isset_bit_vector.clear();
20939
      __isset_bit_vector.or(other.__isset_bit_vector);
20940
      this.vendorid = other.vendorid;
20941
    }
20942
 
20943
    public getPendingOrdersInventory_args deepCopy() {
20944
      return new getPendingOrdersInventory_args(this);
20945
    }
20946
 
20947
    @Override
20948
    public void clear() {
20949
      setVendoridIsSet(false);
20950
      this.vendorid = 0;
20951
    }
20952
 
20953
    public long getVendorid() {
20954
      return this.vendorid;
20955
    }
20956
 
20957
    public void setVendorid(long vendorid) {
20958
      this.vendorid = vendorid;
20959
      setVendoridIsSet(true);
20960
    }
20961
 
20962
    public void unsetVendorid() {
20963
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
20964
    }
20965
 
20966
    /** Returns true if field vendorid is set (has been assigned a value) and false otherwise */
20967
    public boolean isSetVendorid() {
20968
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
20969
    }
20970
 
20971
    public void setVendoridIsSet(boolean value) {
20972
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
20973
    }
20974
 
20975
    public void setFieldValue(_Fields field, Object value) {
20976
      switch (field) {
20977
      case VENDORID:
20978
        if (value == null) {
20979
          unsetVendorid();
20980
        } else {
20981
          setVendorid((Long)value);
20982
        }
20983
        break;
20984
 
20985
      }
20986
    }
20987
 
20988
    public Object getFieldValue(_Fields field) {
20989
      switch (field) {
20990
      case VENDORID:
20991
        return Long.valueOf(getVendorid());
20992
 
20993
      }
20994
      throw new IllegalStateException();
20995
    }
20996
 
20997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20998
    public boolean isSet(_Fields field) {
20999
      if (field == null) {
21000
        throw new IllegalArgumentException();
21001
      }
21002
 
21003
      switch (field) {
21004
      case VENDORID:
21005
        return isSetVendorid();
21006
      }
21007
      throw new IllegalStateException();
21008
    }
21009
 
21010
    @Override
21011
    public boolean equals(Object that) {
21012
      if (that == null)
21013
        return false;
21014
      if (that instanceof getPendingOrdersInventory_args)
21015
        return this.equals((getPendingOrdersInventory_args)that);
21016
      return false;
21017
    }
21018
 
21019
    public boolean equals(getPendingOrdersInventory_args that) {
21020
      if (that == null)
21021
        return false;
21022
 
21023
      boolean this_present_vendorid = true;
21024
      boolean that_present_vendorid = true;
21025
      if (this_present_vendorid || that_present_vendorid) {
21026
        if (!(this_present_vendorid && that_present_vendorid))
21027
          return false;
21028
        if (this.vendorid != that.vendorid)
21029
          return false;
21030
      }
21031
 
21032
      return true;
21033
    }
21034
 
21035
    @Override
21036
    public int hashCode() {
21037
      return 0;
21038
    }
21039
 
21040
    public int compareTo(getPendingOrdersInventory_args other) {
21041
      if (!getClass().equals(other.getClass())) {
21042
        return getClass().getName().compareTo(other.getClass().getName());
21043
      }
21044
 
21045
      int lastComparison = 0;
21046
      getPendingOrdersInventory_args typedOther = (getPendingOrdersInventory_args)other;
21047
 
21048
      lastComparison = Boolean.valueOf(isSetVendorid()).compareTo(typedOther.isSetVendorid());
21049
      if (lastComparison != 0) {
21050
        return lastComparison;
21051
      }
21052
      if (isSetVendorid()) {
21053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorid, typedOther.vendorid);
21054
        if (lastComparison != 0) {
21055
          return lastComparison;
21056
        }
21057
      }
21058
      return 0;
21059
    }
21060
 
21061
    public _Fields fieldForId(int fieldId) {
21062
      return _Fields.findByThriftId(fieldId);
21063
    }
21064
 
21065
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21066
      org.apache.thrift.protocol.TField field;
21067
      iprot.readStructBegin();
21068
      while (true)
21069
      {
21070
        field = iprot.readFieldBegin();
21071
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21072
          break;
21073
        }
21074
        switch (field.id) {
21075
          case 1: // VENDORID
21076
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21077
              this.vendorid = iprot.readI64();
21078
              setVendoridIsSet(true);
21079
            } else { 
21080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21081
            }
21082
            break;
21083
          default:
21084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21085
        }
21086
        iprot.readFieldEnd();
21087
      }
21088
      iprot.readStructEnd();
21089
      validate();
21090
    }
21091
 
21092
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21093
      validate();
21094
 
21095
      oprot.writeStructBegin(STRUCT_DESC);
21096
      oprot.writeFieldBegin(VENDORID_FIELD_DESC);
21097
      oprot.writeI64(this.vendorid);
21098
      oprot.writeFieldEnd();
21099
      oprot.writeFieldStop();
21100
      oprot.writeStructEnd();
21101
    }
21102
 
21103
    @Override
21104
    public String toString() {
21105
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_args(");
21106
      boolean first = true;
21107
 
21108
      sb.append("vendorid:");
21109
      sb.append(this.vendorid);
21110
      first = false;
21111
      sb.append(")");
21112
      return sb.toString();
21113
    }
21114
 
21115
    public void validate() throws org.apache.thrift.TException {
21116
      // check for required fields
21117
    }
21118
 
21119
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21120
      try {
21121
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21122
      } catch (org.apache.thrift.TException te) {
21123
        throw new java.io.IOException(te);
21124
      }
21125
    }
21126
 
21127
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21128
      try {
21129
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21130
        __isset_bit_vector = new BitSet(1);
21131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21132
      } catch (org.apache.thrift.TException te) {
21133
        throw new java.io.IOException(te);
21134
      }
21135
    }
21136
 
21137
  }
21138
 
21139
  public static class getPendingOrdersInventory_result implements org.apache.thrift.TBase<getPendingOrdersInventory_result, getPendingOrdersInventory_result._Fields>, java.io.Serializable, Cloneable   {
21140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPendingOrdersInventory_result");
21141
 
21142
    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);
21143
 
21144
    private List<AvailableAndReservedStock> success; // required
21145
 
21146
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21147
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21148
      SUCCESS((short)0, "success");
21149
 
21150
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21151
 
21152
      static {
21153
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21154
          byName.put(field.getFieldName(), field);
21155
        }
21156
      }
21157
 
21158
      /**
21159
       * Find the _Fields constant that matches fieldId, or null if its not found.
21160
       */
21161
      public static _Fields findByThriftId(int fieldId) {
21162
        switch(fieldId) {
21163
          case 0: // SUCCESS
21164
            return SUCCESS;
21165
          default:
21166
            return null;
21167
        }
21168
      }
21169
 
21170
      /**
21171
       * Find the _Fields constant that matches fieldId, throwing an exception
21172
       * if it is not found.
21173
       */
21174
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21175
        _Fields fields = findByThriftId(fieldId);
21176
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21177
        return fields;
21178
      }
21179
 
21180
      /**
21181
       * Find the _Fields constant that matches name, or null if its not found.
21182
       */
21183
      public static _Fields findByName(String name) {
21184
        return byName.get(name);
21185
      }
21186
 
21187
      private final short _thriftId;
21188
      private final String _fieldName;
21189
 
21190
      _Fields(short thriftId, String fieldName) {
21191
        _thriftId = thriftId;
21192
        _fieldName = fieldName;
21193
      }
21194
 
21195
      public short getThriftFieldId() {
21196
        return _thriftId;
21197
      }
21198
 
21199
      public String getFieldName() {
21200
        return _fieldName;
21201
      }
21202
    }
21203
 
21204
    // isset id assignments
21205
 
21206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21207
    static {
21208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21209
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21210
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21211
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
21212
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21213
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPendingOrdersInventory_result.class, metaDataMap);
21214
    }
21215
 
21216
    public getPendingOrdersInventory_result() {
21217
    }
21218
 
21219
    public getPendingOrdersInventory_result(
21220
      List<AvailableAndReservedStock> success)
21221
    {
21222
      this();
21223
      this.success = success;
21224
    }
21225
 
21226
    /**
21227
     * Performs a deep copy on <i>other</i>.
21228
     */
21229
    public getPendingOrdersInventory_result(getPendingOrdersInventory_result other) {
21230
      if (other.isSetSuccess()) {
21231
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
21232
        for (AvailableAndReservedStock other_element : other.success) {
21233
          __this__success.add(new AvailableAndReservedStock(other_element));
21234
        }
21235
        this.success = __this__success;
21236
      }
21237
    }
21238
 
21239
    public getPendingOrdersInventory_result deepCopy() {
21240
      return new getPendingOrdersInventory_result(this);
21241
    }
21242
 
21243
    @Override
21244
    public void clear() {
21245
      this.success = null;
21246
    }
21247
 
21248
    public int getSuccessSize() {
21249
      return (this.success == null) ? 0 : this.success.size();
21250
    }
21251
 
21252
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
21253
      return (this.success == null) ? null : this.success.iterator();
21254
    }
21255
 
21256
    public void addToSuccess(AvailableAndReservedStock elem) {
21257
      if (this.success == null) {
21258
        this.success = new ArrayList<AvailableAndReservedStock>();
21259
      }
21260
      this.success.add(elem);
21261
    }
21262
 
21263
    public List<AvailableAndReservedStock> getSuccess() {
21264
      return this.success;
21265
    }
21266
 
21267
    public void setSuccess(List<AvailableAndReservedStock> success) {
21268
      this.success = success;
21269
    }
21270
 
21271
    public void unsetSuccess() {
21272
      this.success = null;
21273
    }
21274
 
21275
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21276
    public boolean isSetSuccess() {
21277
      return this.success != null;
21278
    }
21279
 
21280
    public void setSuccessIsSet(boolean value) {
21281
      if (!value) {
21282
        this.success = null;
21283
      }
21284
    }
21285
 
21286
    public void setFieldValue(_Fields field, Object value) {
21287
      switch (field) {
21288
      case SUCCESS:
21289
        if (value == null) {
21290
          unsetSuccess();
21291
        } else {
21292
          setSuccess((List<AvailableAndReservedStock>)value);
21293
        }
21294
        break;
21295
 
21296
      }
21297
    }
21298
 
21299
    public Object getFieldValue(_Fields field) {
21300
      switch (field) {
21301
      case SUCCESS:
21302
        return getSuccess();
21303
 
21304
      }
21305
      throw new IllegalStateException();
21306
    }
21307
 
21308
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21309
    public boolean isSet(_Fields field) {
21310
      if (field == null) {
21311
        throw new IllegalArgumentException();
21312
      }
21313
 
21314
      switch (field) {
21315
      case SUCCESS:
21316
        return isSetSuccess();
21317
      }
21318
      throw new IllegalStateException();
21319
    }
21320
 
21321
    @Override
21322
    public boolean equals(Object that) {
21323
      if (that == null)
21324
        return false;
21325
      if (that instanceof getPendingOrdersInventory_result)
21326
        return this.equals((getPendingOrdersInventory_result)that);
21327
      return false;
21328
    }
21329
 
21330
    public boolean equals(getPendingOrdersInventory_result that) {
21331
      if (that == null)
21332
        return false;
21333
 
21334
      boolean this_present_success = true && this.isSetSuccess();
21335
      boolean that_present_success = true && that.isSetSuccess();
21336
      if (this_present_success || that_present_success) {
21337
        if (!(this_present_success && that_present_success))
21338
          return false;
21339
        if (!this.success.equals(that.success))
21340
          return false;
21341
      }
21342
 
21343
      return true;
21344
    }
21345
 
21346
    @Override
21347
    public int hashCode() {
21348
      return 0;
21349
    }
21350
 
21351
    public int compareTo(getPendingOrdersInventory_result other) {
21352
      if (!getClass().equals(other.getClass())) {
21353
        return getClass().getName().compareTo(other.getClass().getName());
21354
      }
21355
 
21356
      int lastComparison = 0;
21357
      getPendingOrdersInventory_result typedOther = (getPendingOrdersInventory_result)other;
21358
 
21359
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21360
      if (lastComparison != 0) {
21361
        return lastComparison;
21362
      }
21363
      if (isSetSuccess()) {
21364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21365
        if (lastComparison != 0) {
21366
          return lastComparison;
21367
        }
21368
      }
21369
      return 0;
21370
    }
21371
 
21372
    public _Fields fieldForId(int fieldId) {
21373
      return _Fields.findByThriftId(fieldId);
21374
    }
21375
 
21376
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21377
      org.apache.thrift.protocol.TField field;
21378
      iprot.readStructBegin();
21379
      while (true)
21380
      {
21381
        field = iprot.readFieldBegin();
21382
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21383
          break;
21384
        }
21385
        switch (field.id) {
21386
          case 0: // SUCCESS
21387
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21388
              {
21389
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
21390
                this.success = new ArrayList<AvailableAndReservedStock>(_list44.size);
21391
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
21392
                {
21393
                  AvailableAndReservedStock _elem46; // required
21394
                  _elem46 = new AvailableAndReservedStock();
21395
                  _elem46.read(iprot);
21396
                  this.success.add(_elem46);
21397
                }
21398
                iprot.readListEnd();
21399
              }
21400
            } else { 
21401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21402
            }
21403
            break;
21404
          default:
21405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21406
        }
21407
        iprot.readFieldEnd();
21408
      }
21409
      iprot.readStructEnd();
21410
      validate();
21411
    }
21412
 
21413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21414
      oprot.writeStructBegin(STRUCT_DESC);
21415
 
21416
      if (this.isSetSuccess()) {
21417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21418
        {
21419
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
21420
          for (AvailableAndReservedStock _iter47 : this.success)
21421
          {
21422
            _iter47.write(oprot);
21423
          }
21424
          oprot.writeListEnd();
21425
        }
21426
        oprot.writeFieldEnd();
21427
      }
21428
      oprot.writeFieldStop();
21429
      oprot.writeStructEnd();
21430
    }
21431
 
21432
    @Override
21433
    public String toString() {
21434
      StringBuilder sb = new StringBuilder("getPendingOrdersInventory_result(");
21435
      boolean first = true;
21436
 
21437
      sb.append("success:");
21438
      if (this.success == null) {
21439
        sb.append("null");
21440
      } else {
21441
        sb.append(this.success);
21442
      }
21443
      first = false;
21444
      sb.append(")");
21445
      return sb.toString();
21446
    }
21447
 
21448
    public void validate() throws org.apache.thrift.TException {
21449
      // check for required fields
21450
    }
21451
 
21452
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21453
      try {
21454
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21455
      } catch (org.apache.thrift.TException te) {
21456
        throw new java.io.IOException(te);
21457
      }
21458
    }
21459
 
21460
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21461
      try {
21462
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21463
      } catch (org.apache.thrift.TException te) {
21464
        throw new java.io.IOException(te);
21465
      }
21466
    }
21467
 
21468
  }
21469
 
21470
  public static class getWarehouses_args implements org.apache.thrift.TBase<getWarehouses_args, getWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
21471
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_args");
21472
 
21473
    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);
21474
    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);
21475
    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);
21476
    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);
21477
    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);
21478
 
21479
    private WarehouseType warehouseType; // required
21480
    private InventoryType inventoryType; // required
21481
    private long vendorId; // required
21482
    private long billingWarehouseId; // required
21483
    private long shippingWarehouseId; // required
21484
 
21485
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21486
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21487
      /**
21488
       * 
21489
       * @see WarehouseType
21490
       */
21491
      WAREHOUSE_TYPE((short)1, "warehouseType"),
21492
      /**
21493
       * 
21494
       * @see InventoryType
21495
       */
21496
      INVENTORY_TYPE((short)2, "inventoryType"),
21497
      VENDOR_ID((short)3, "vendorId"),
21498
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
21499
      SHIPPING_WAREHOUSE_ID((short)5, "shippingWarehouseId");
21500
 
21501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21502
 
21503
      static {
21504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21505
          byName.put(field.getFieldName(), field);
21506
        }
21507
      }
21508
 
21509
      /**
21510
       * Find the _Fields constant that matches fieldId, or null if its not found.
21511
       */
21512
      public static _Fields findByThriftId(int fieldId) {
21513
        switch(fieldId) {
21514
          case 1: // WAREHOUSE_TYPE
21515
            return WAREHOUSE_TYPE;
21516
          case 2: // INVENTORY_TYPE
21517
            return INVENTORY_TYPE;
21518
          case 3: // VENDOR_ID
21519
            return VENDOR_ID;
21520
          case 4: // BILLING_WAREHOUSE_ID
21521
            return BILLING_WAREHOUSE_ID;
21522
          case 5: // SHIPPING_WAREHOUSE_ID
21523
            return SHIPPING_WAREHOUSE_ID;
21524
          default:
21525
            return null;
21526
        }
21527
      }
21528
 
21529
      /**
21530
       * Find the _Fields constant that matches fieldId, throwing an exception
21531
       * if it is not found.
21532
       */
21533
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21534
        _Fields fields = findByThriftId(fieldId);
21535
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21536
        return fields;
21537
      }
21538
 
21539
      /**
21540
       * Find the _Fields constant that matches name, or null if its not found.
21541
       */
21542
      public static _Fields findByName(String name) {
21543
        return byName.get(name);
21544
      }
21545
 
21546
      private final short _thriftId;
21547
      private final String _fieldName;
21548
 
21549
      _Fields(short thriftId, String fieldName) {
21550
        _thriftId = thriftId;
21551
        _fieldName = fieldName;
21552
      }
21553
 
21554
      public short getThriftFieldId() {
21555
        return _thriftId;
21556
      }
21557
 
21558
      public String getFieldName() {
21559
        return _fieldName;
21560
      }
21561
    }
21562
 
21563
    // isset id assignments
21564
    private static final int __VENDORID_ISSET_ID = 0;
21565
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
21566
    private static final int __SHIPPINGWAREHOUSEID_ISSET_ID = 2;
21567
    private BitSet __isset_bit_vector = new BitSet(3);
21568
 
21569
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21570
    static {
21571
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21572
      tmpMap.put(_Fields.WAREHOUSE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("warehouseType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21573
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseType.class)));
21574
      tmpMap.put(_Fields.INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("inventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21575
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, InventoryType.class)));
21576
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21577
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21578
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21579
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21580
      tmpMap.put(_Fields.SHIPPING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("shippingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21581
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21582
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21583
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_args.class, metaDataMap);
21584
    }
21585
 
21586
    public getWarehouses_args() {
21587
    }
21588
 
21589
    public getWarehouses_args(
21590
      WarehouseType warehouseType,
21591
      InventoryType inventoryType,
21592
      long vendorId,
21593
      long billingWarehouseId,
21594
      long shippingWarehouseId)
21595
    {
21596
      this();
21597
      this.warehouseType = warehouseType;
21598
      this.inventoryType = inventoryType;
21599
      this.vendorId = vendorId;
21600
      setVendorIdIsSet(true);
21601
      this.billingWarehouseId = billingWarehouseId;
21602
      setBillingWarehouseIdIsSet(true);
21603
      this.shippingWarehouseId = shippingWarehouseId;
21604
      setShippingWarehouseIdIsSet(true);
21605
    }
21606
 
21607
    /**
21608
     * Performs a deep copy on <i>other</i>.
21609
     */
21610
    public getWarehouses_args(getWarehouses_args other) {
21611
      __isset_bit_vector.clear();
21612
      __isset_bit_vector.or(other.__isset_bit_vector);
21613
      if (other.isSetWarehouseType()) {
21614
        this.warehouseType = other.warehouseType;
21615
      }
21616
      if (other.isSetInventoryType()) {
21617
        this.inventoryType = other.inventoryType;
21618
      }
21619
      this.vendorId = other.vendorId;
21620
      this.billingWarehouseId = other.billingWarehouseId;
21621
      this.shippingWarehouseId = other.shippingWarehouseId;
21622
    }
21623
 
21624
    public getWarehouses_args deepCopy() {
21625
      return new getWarehouses_args(this);
21626
    }
21627
 
21628
    @Override
21629
    public void clear() {
21630
      this.warehouseType = null;
21631
      this.inventoryType = null;
21632
      setVendorIdIsSet(false);
21633
      this.vendorId = 0;
21634
      setBillingWarehouseIdIsSet(false);
21635
      this.billingWarehouseId = 0;
21636
      setShippingWarehouseIdIsSet(false);
21637
      this.shippingWarehouseId = 0;
21638
    }
21639
 
21640
    /**
21641
     * 
21642
     * @see WarehouseType
21643
     */
21644
    public WarehouseType getWarehouseType() {
21645
      return this.warehouseType;
21646
    }
21647
 
21648
    /**
21649
     * 
21650
     * @see WarehouseType
21651
     */
21652
    public void setWarehouseType(WarehouseType warehouseType) {
21653
      this.warehouseType = warehouseType;
21654
    }
21655
 
21656
    public void unsetWarehouseType() {
21657
      this.warehouseType = null;
21658
    }
21659
 
21660
    /** Returns true if field warehouseType is set (has been assigned a value) and false otherwise */
21661
    public boolean isSetWarehouseType() {
21662
      return this.warehouseType != null;
21663
    }
21664
 
21665
    public void setWarehouseTypeIsSet(boolean value) {
21666
      if (!value) {
21667
        this.warehouseType = null;
21668
      }
21669
    }
21670
 
21671
    /**
21672
     * 
21673
     * @see InventoryType
21674
     */
21675
    public InventoryType getInventoryType() {
21676
      return this.inventoryType;
21677
    }
21678
 
21679
    /**
21680
     * 
21681
     * @see InventoryType
21682
     */
21683
    public void setInventoryType(InventoryType inventoryType) {
21684
      this.inventoryType = inventoryType;
21685
    }
21686
 
21687
    public void unsetInventoryType() {
21688
      this.inventoryType = null;
21689
    }
21690
 
21691
    /** Returns true if field inventoryType is set (has been assigned a value) and false otherwise */
21692
    public boolean isSetInventoryType() {
21693
      return this.inventoryType != null;
21694
    }
21695
 
21696
    public void setInventoryTypeIsSet(boolean value) {
21697
      if (!value) {
21698
        this.inventoryType = null;
21699
      }
21700
    }
21701
 
21702
    public long getVendorId() {
21703
      return this.vendorId;
21704
    }
21705
 
21706
    public void setVendorId(long vendorId) {
21707
      this.vendorId = vendorId;
21708
      setVendorIdIsSet(true);
21709
    }
21710
 
21711
    public void unsetVendorId() {
21712
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
21713
    }
21714
 
21715
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
21716
    public boolean isSetVendorId() {
21717
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
21718
    }
21719
 
21720
    public void setVendorIdIsSet(boolean value) {
21721
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
21722
    }
21723
 
21724
    public long getBillingWarehouseId() {
21725
      return this.billingWarehouseId;
21726
    }
21727
 
21728
    public void setBillingWarehouseId(long billingWarehouseId) {
21729
      this.billingWarehouseId = billingWarehouseId;
21730
      setBillingWarehouseIdIsSet(true);
21731
    }
21732
 
21733
    public void unsetBillingWarehouseId() {
21734
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21735
    }
21736
 
21737
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21738
    public boolean isSetBillingWarehouseId() {
21739
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21740
    }
21741
 
21742
    public void setBillingWarehouseIdIsSet(boolean value) {
21743
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21744
    }
21745
 
21746
    public long getShippingWarehouseId() {
21747
      return this.shippingWarehouseId;
21748
    }
21749
 
21750
    public void setShippingWarehouseId(long shippingWarehouseId) {
21751
      this.shippingWarehouseId = shippingWarehouseId;
21752
      setShippingWarehouseIdIsSet(true);
21753
    }
21754
 
21755
    public void unsetShippingWarehouseId() {
21756
      __isset_bit_vector.clear(__SHIPPINGWAREHOUSEID_ISSET_ID);
21757
    }
21758
 
21759
    /** Returns true if field shippingWarehouseId is set (has been assigned a value) and false otherwise */
21760
    public boolean isSetShippingWarehouseId() {
21761
      return __isset_bit_vector.get(__SHIPPINGWAREHOUSEID_ISSET_ID);
21762
    }
21763
 
21764
    public void setShippingWarehouseIdIsSet(boolean value) {
21765
      __isset_bit_vector.set(__SHIPPINGWAREHOUSEID_ISSET_ID, value);
21766
    }
21767
 
21768
    public void setFieldValue(_Fields field, Object value) {
21769
      switch (field) {
21770
      case WAREHOUSE_TYPE:
21771
        if (value == null) {
21772
          unsetWarehouseType();
21773
        } else {
21774
          setWarehouseType((WarehouseType)value);
21775
        }
21776
        break;
21777
 
21778
      case INVENTORY_TYPE:
21779
        if (value == null) {
21780
          unsetInventoryType();
21781
        } else {
21782
          setInventoryType((InventoryType)value);
21783
        }
21784
        break;
21785
 
21786
      case VENDOR_ID:
21787
        if (value == null) {
21788
          unsetVendorId();
21789
        } else {
21790
          setVendorId((Long)value);
21791
        }
21792
        break;
21793
 
21794
      case BILLING_WAREHOUSE_ID:
21795
        if (value == null) {
21796
          unsetBillingWarehouseId();
21797
        } else {
21798
          setBillingWarehouseId((Long)value);
21799
        }
21800
        break;
21801
 
21802
      case SHIPPING_WAREHOUSE_ID:
21803
        if (value == null) {
21804
          unsetShippingWarehouseId();
21805
        } else {
21806
          setShippingWarehouseId((Long)value);
21807
        }
21808
        break;
21809
 
21810
      }
21811
    }
21812
 
21813
    public Object getFieldValue(_Fields field) {
21814
      switch (field) {
21815
      case WAREHOUSE_TYPE:
21816
        return getWarehouseType();
21817
 
21818
      case INVENTORY_TYPE:
21819
        return getInventoryType();
21820
 
21821
      case VENDOR_ID:
21822
        return Long.valueOf(getVendorId());
21823
 
21824
      case BILLING_WAREHOUSE_ID:
21825
        return Long.valueOf(getBillingWarehouseId());
21826
 
21827
      case SHIPPING_WAREHOUSE_ID:
21828
        return Long.valueOf(getShippingWarehouseId());
21829
 
21830
      }
21831
      throw new IllegalStateException();
21832
    }
21833
 
21834
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21835
    public boolean isSet(_Fields field) {
21836
      if (field == null) {
21837
        throw new IllegalArgumentException();
21838
      }
21839
 
21840
      switch (field) {
21841
      case WAREHOUSE_TYPE:
21842
        return isSetWarehouseType();
21843
      case INVENTORY_TYPE:
21844
        return isSetInventoryType();
21845
      case VENDOR_ID:
21846
        return isSetVendorId();
21847
      case BILLING_WAREHOUSE_ID:
21848
        return isSetBillingWarehouseId();
21849
      case SHIPPING_WAREHOUSE_ID:
21850
        return isSetShippingWarehouseId();
21851
      }
21852
      throw new IllegalStateException();
21853
    }
21854
 
21855
    @Override
21856
    public boolean equals(Object that) {
21857
      if (that == null)
21858
        return false;
21859
      if (that instanceof getWarehouses_args)
21860
        return this.equals((getWarehouses_args)that);
21861
      return false;
21862
    }
21863
 
21864
    public boolean equals(getWarehouses_args that) {
21865
      if (that == null)
21866
        return false;
21867
 
21868
      boolean this_present_warehouseType = true && this.isSetWarehouseType();
21869
      boolean that_present_warehouseType = true && that.isSetWarehouseType();
21870
      if (this_present_warehouseType || that_present_warehouseType) {
21871
        if (!(this_present_warehouseType && that_present_warehouseType))
21872
          return false;
21873
        if (!this.warehouseType.equals(that.warehouseType))
21874
          return false;
21875
      }
21876
 
21877
      boolean this_present_inventoryType = true && this.isSetInventoryType();
21878
      boolean that_present_inventoryType = true && that.isSetInventoryType();
21879
      if (this_present_inventoryType || that_present_inventoryType) {
21880
        if (!(this_present_inventoryType && that_present_inventoryType))
21881
          return false;
21882
        if (!this.inventoryType.equals(that.inventoryType))
21883
          return false;
21884
      }
21885
 
21886
      boolean this_present_vendorId = true;
21887
      boolean that_present_vendorId = true;
21888
      if (this_present_vendorId || that_present_vendorId) {
21889
        if (!(this_present_vendorId && that_present_vendorId))
21890
          return false;
21891
        if (this.vendorId != that.vendorId)
21892
          return false;
21893
      }
21894
 
21895
      boolean this_present_billingWarehouseId = true;
21896
      boolean that_present_billingWarehouseId = true;
21897
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21898
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21899
          return false;
21900
        if (this.billingWarehouseId != that.billingWarehouseId)
21901
          return false;
21902
      }
21903
 
21904
      boolean this_present_shippingWarehouseId = true;
21905
      boolean that_present_shippingWarehouseId = true;
21906
      if (this_present_shippingWarehouseId || that_present_shippingWarehouseId) {
21907
        if (!(this_present_shippingWarehouseId && that_present_shippingWarehouseId))
21908
          return false;
21909
        if (this.shippingWarehouseId != that.shippingWarehouseId)
21910
          return false;
21911
      }
21912
 
21913
      return true;
21914
    }
21915
 
21916
    @Override
21917
    public int hashCode() {
21918
      return 0;
21919
    }
21920
 
21921
    public int compareTo(getWarehouses_args other) {
21922
      if (!getClass().equals(other.getClass())) {
21923
        return getClass().getName().compareTo(other.getClass().getName());
21924
      }
21925
 
21926
      int lastComparison = 0;
21927
      getWarehouses_args typedOther = (getWarehouses_args)other;
21928
 
21929
      lastComparison = Boolean.valueOf(isSetWarehouseType()).compareTo(typedOther.isSetWarehouseType());
21930
      if (lastComparison != 0) {
21931
        return lastComparison;
21932
      }
21933
      if (isSetWarehouseType()) {
21934
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseType, typedOther.warehouseType);
21935
        if (lastComparison != 0) {
21936
          return lastComparison;
21937
        }
21938
      }
21939
      lastComparison = Boolean.valueOf(isSetInventoryType()).compareTo(typedOther.isSetInventoryType());
21940
      if (lastComparison != 0) {
21941
        return lastComparison;
21942
      }
21943
      if (isSetInventoryType()) {
21944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryType, typedOther.inventoryType);
21945
        if (lastComparison != 0) {
21946
          return lastComparison;
21947
        }
21948
      }
21949
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
21950
      if (lastComparison != 0) {
21951
        return lastComparison;
21952
      }
21953
      if (isSetVendorId()) {
21954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
21955
        if (lastComparison != 0) {
21956
          return lastComparison;
21957
        }
21958
      }
21959
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21960
      if (lastComparison != 0) {
21961
        return lastComparison;
21962
      }
21963
      if (isSetBillingWarehouseId()) {
21964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21965
        if (lastComparison != 0) {
21966
          return lastComparison;
21967
        }
21968
      }
21969
      lastComparison = Boolean.valueOf(isSetShippingWarehouseId()).compareTo(typedOther.isSetShippingWarehouseId());
21970
      if (lastComparison != 0) {
21971
        return lastComparison;
21972
      }
21973
      if (isSetShippingWarehouseId()) {
21974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingWarehouseId, typedOther.shippingWarehouseId);
21975
        if (lastComparison != 0) {
21976
          return lastComparison;
21977
        }
21978
      }
21979
      return 0;
21980
    }
21981
 
21982
    public _Fields fieldForId(int fieldId) {
21983
      return _Fields.findByThriftId(fieldId);
21984
    }
21985
 
21986
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21987
      org.apache.thrift.protocol.TField field;
21988
      iprot.readStructBegin();
21989
      while (true)
21990
      {
21991
        field = iprot.readFieldBegin();
21992
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21993
          break;
21994
        }
21995
        switch (field.id) {
21996
          case 1: // WAREHOUSE_TYPE
21997
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21998
              this.warehouseType = WarehouseType.findByValue(iprot.readI32());
21999
            } else { 
22000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22001
            }
22002
            break;
22003
          case 2: // INVENTORY_TYPE
22004
            if (field.type == org.apache.thrift.protocol.TType.I32) {
22005
              this.inventoryType = InventoryType.findByValue(iprot.readI32());
22006
            } else { 
22007
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22008
            }
22009
            break;
22010
          case 3: // VENDOR_ID
22011
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22012
              this.vendorId = iprot.readI64();
22013
              setVendorIdIsSet(true);
22014
            } else { 
22015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22016
            }
22017
            break;
22018
          case 4: // BILLING_WAREHOUSE_ID
22019
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22020
              this.billingWarehouseId = iprot.readI64();
22021
              setBillingWarehouseIdIsSet(true);
22022
            } else { 
22023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22024
            }
22025
            break;
22026
          case 5: // SHIPPING_WAREHOUSE_ID
22027
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22028
              this.shippingWarehouseId = iprot.readI64();
22029
              setShippingWarehouseIdIsSet(true);
22030
            } else { 
22031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22032
            }
22033
            break;
22034
          default:
22035
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22036
        }
22037
        iprot.readFieldEnd();
22038
      }
22039
      iprot.readStructEnd();
22040
      validate();
22041
    }
22042
 
22043
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22044
      validate();
22045
 
22046
      oprot.writeStructBegin(STRUCT_DESC);
22047
      if (this.warehouseType != null) {
22048
        oprot.writeFieldBegin(WAREHOUSE_TYPE_FIELD_DESC);
22049
        oprot.writeI32(this.warehouseType.getValue());
22050
        oprot.writeFieldEnd();
22051
      }
22052
      if (this.inventoryType != null) {
22053
        oprot.writeFieldBegin(INVENTORY_TYPE_FIELD_DESC);
22054
        oprot.writeI32(this.inventoryType.getValue());
22055
        oprot.writeFieldEnd();
22056
      }
22057
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
22058
      oprot.writeI64(this.vendorId);
22059
      oprot.writeFieldEnd();
22060
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
22061
      oprot.writeI64(this.billingWarehouseId);
22062
      oprot.writeFieldEnd();
22063
      oprot.writeFieldBegin(SHIPPING_WAREHOUSE_ID_FIELD_DESC);
22064
      oprot.writeI64(this.shippingWarehouseId);
22065
      oprot.writeFieldEnd();
22066
      oprot.writeFieldStop();
22067
      oprot.writeStructEnd();
22068
    }
22069
 
22070
    @Override
22071
    public String toString() {
22072
      StringBuilder sb = new StringBuilder("getWarehouses_args(");
22073
      boolean first = true;
22074
 
22075
      sb.append("warehouseType:");
22076
      if (this.warehouseType == null) {
22077
        sb.append("null");
22078
      } else {
22079
        sb.append(this.warehouseType);
22080
      }
22081
      first = false;
22082
      if (!first) sb.append(", ");
22083
      sb.append("inventoryType:");
22084
      if (this.inventoryType == null) {
22085
        sb.append("null");
22086
      } else {
22087
        sb.append(this.inventoryType);
22088
      }
22089
      first = false;
22090
      if (!first) sb.append(", ");
22091
      sb.append("vendorId:");
22092
      sb.append(this.vendorId);
22093
      first = false;
22094
      if (!first) sb.append(", ");
22095
      sb.append("billingWarehouseId:");
22096
      sb.append(this.billingWarehouseId);
22097
      first = false;
22098
      if (!first) sb.append(", ");
22099
      sb.append("shippingWarehouseId:");
22100
      sb.append(this.shippingWarehouseId);
22101
      first = false;
22102
      sb.append(")");
22103
      return sb.toString();
22104
    }
22105
 
22106
    public void validate() throws org.apache.thrift.TException {
22107
      // check for required fields
22108
    }
22109
 
22110
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22111
      try {
22112
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22113
      } catch (org.apache.thrift.TException te) {
22114
        throw new java.io.IOException(te);
22115
      }
22116
    }
22117
 
22118
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22119
      try {
22120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22121
      } catch (org.apache.thrift.TException te) {
22122
        throw new java.io.IOException(te);
22123
      }
22124
    }
22125
 
22126
  }
22127
 
22128
  public static class getWarehouses_result implements org.apache.thrift.TBase<getWarehouses_result, getWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
22129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouses_result");
22130
 
22131
    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);
22132
 
22133
    private List<Warehouse> success; // required
22134
 
22135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22137
      SUCCESS((short)0, "success");
22138
 
22139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22140
 
22141
      static {
22142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22143
          byName.put(field.getFieldName(), field);
22144
        }
22145
      }
22146
 
22147
      /**
22148
       * Find the _Fields constant that matches fieldId, or null if its not found.
22149
       */
22150
      public static _Fields findByThriftId(int fieldId) {
22151
        switch(fieldId) {
22152
          case 0: // SUCCESS
22153
            return SUCCESS;
22154
          default:
22155
            return null;
22156
        }
22157
      }
22158
 
22159
      /**
22160
       * Find the _Fields constant that matches fieldId, throwing an exception
22161
       * if it is not found.
22162
       */
22163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22164
        _Fields fields = findByThriftId(fieldId);
22165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22166
        return fields;
22167
      }
22168
 
22169
      /**
22170
       * Find the _Fields constant that matches name, or null if its not found.
22171
       */
22172
      public static _Fields findByName(String name) {
22173
        return byName.get(name);
22174
      }
22175
 
22176
      private final short _thriftId;
22177
      private final String _fieldName;
22178
 
22179
      _Fields(short thriftId, String fieldName) {
22180
        _thriftId = thriftId;
22181
        _fieldName = fieldName;
22182
      }
22183
 
22184
      public short getThriftFieldId() {
22185
        return _thriftId;
22186
      }
22187
 
22188
      public String getFieldName() {
22189
        return _fieldName;
22190
      }
22191
    }
22192
 
22193
    // isset id assignments
22194
 
22195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22196
    static {
22197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22198
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22199
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22200
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
22201
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22202
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouses_result.class, metaDataMap);
22203
    }
22204
 
22205
    public getWarehouses_result() {
22206
    }
22207
 
22208
    public getWarehouses_result(
22209
      List<Warehouse> success)
22210
    {
22211
      this();
22212
      this.success = success;
22213
    }
22214
 
22215
    /**
22216
     * Performs a deep copy on <i>other</i>.
22217
     */
22218
    public getWarehouses_result(getWarehouses_result other) {
22219
      if (other.isSetSuccess()) {
22220
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
22221
        for (Warehouse other_element : other.success) {
22222
          __this__success.add(new Warehouse(other_element));
22223
        }
22224
        this.success = __this__success;
22225
      }
22226
    }
22227
 
22228
    public getWarehouses_result deepCopy() {
22229
      return new getWarehouses_result(this);
22230
    }
22231
 
22232
    @Override
22233
    public void clear() {
22234
      this.success = null;
22235
    }
22236
 
22237
    public int getSuccessSize() {
22238
      return (this.success == null) ? 0 : this.success.size();
22239
    }
22240
 
22241
    public java.util.Iterator<Warehouse> getSuccessIterator() {
22242
      return (this.success == null) ? null : this.success.iterator();
22243
    }
22244
 
22245
    public void addToSuccess(Warehouse elem) {
22246
      if (this.success == null) {
22247
        this.success = new ArrayList<Warehouse>();
22248
      }
22249
      this.success.add(elem);
22250
    }
22251
 
22252
    public List<Warehouse> getSuccess() {
22253
      return this.success;
22254
    }
22255
 
22256
    public void setSuccess(List<Warehouse> success) {
22257
      this.success = success;
22258
    }
22259
 
22260
    public void unsetSuccess() {
22261
      this.success = null;
22262
    }
22263
 
22264
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22265
    public boolean isSetSuccess() {
22266
      return this.success != null;
22267
    }
22268
 
22269
    public void setSuccessIsSet(boolean value) {
22270
      if (!value) {
22271
        this.success = null;
22272
      }
22273
    }
22274
 
22275
    public void setFieldValue(_Fields field, Object value) {
22276
      switch (field) {
22277
      case SUCCESS:
22278
        if (value == null) {
22279
          unsetSuccess();
22280
        } else {
22281
          setSuccess((List<Warehouse>)value);
22282
        }
22283
        break;
22284
 
22285
      }
22286
    }
22287
 
22288
    public Object getFieldValue(_Fields field) {
22289
      switch (field) {
22290
      case SUCCESS:
22291
        return getSuccess();
22292
 
22293
      }
22294
      throw new IllegalStateException();
22295
    }
22296
 
22297
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22298
    public boolean isSet(_Fields field) {
22299
      if (field == null) {
22300
        throw new IllegalArgumentException();
22301
      }
22302
 
22303
      switch (field) {
22304
      case SUCCESS:
22305
        return isSetSuccess();
22306
      }
22307
      throw new IllegalStateException();
22308
    }
22309
 
22310
    @Override
22311
    public boolean equals(Object that) {
22312
      if (that == null)
22313
        return false;
22314
      if (that instanceof getWarehouses_result)
22315
        return this.equals((getWarehouses_result)that);
22316
      return false;
22317
    }
22318
 
22319
    public boolean equals(getWarehouses_result that) {
22320
      if (that == null)
22321
        return false;
22322
 
22323
      boolean this_present_success = true && this.isSetSuccess();
22324
      boolean that_present_success = true && that.isSetSuccess();
22325
      if (this_present_success || that_present_success) {
22326
        if (!(this_present_success && that_present_success))
22327
          return false;
22328
        if (!this.success.equals(that.success))
22329
          return false;
22330
      }
22331
 
22332
      return true;
22333
    }
22334
 
22335
    @Override
22336
    public int hashCode() {
22337
      return 0;
22338
    }
22339
 
22340
    public int compareTo(getWarehouses_result other) {
22341
      if (!getClass().equals(other.getClass())) {
22342
        return getClass().getName().compareTo(other.getClass().getName());
22343
      }
22344
 
22345
      int lastComparison = 0;
22346
      getWarehouses_result typedOther = (getWarehouses_result)other;
22347
 
22348
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22349
      if (lastComparison != 0) {
22350
        return lastComparison;
22351
      }
22352
      if (isSetSuccess()) {
22353
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22354
        if (lastComparison != 0) {
22355
          return lastComparison;
22356
        }
22357
      }
22358
      return 0;
22359
    }
22360
 
22361
    public _Fields fieldForId(int fieldId) {
22362
      return _Fields.findByThriftId(fieldId);
22363
    }
22364
 
22365
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22366
      org.apache.thrift.protocol.TField field;
22367
      iprot.readStructBegin();
22368
      while (true)
22369
      {
22370
        field = iprot.readFieldBegin();
22371
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22372
          break;
22373
        }
22374
        switch (field.id) {
22375
          case 0: // SUCCESS
22376
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22377
              {
22378
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
22379
                this.success = new ArrayList<Warehouse>(_list48.size);
22380
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
22381
                {
22382
                  Warehouse _elem50; // required
22383
                  _elem50 = new Warehouse();
22384
                  _elem50.read(iprot);
22385
                  this.success.add(_elem50);
22386
                }
22387
                iprot.readListEnd();
22388
              }
22389
            } else { 
22390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22391
            }
22392
            break;
22393
          default:
22394
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22395
        }
22396
        iprot.readFieldEnd();
22397
      }
22398
      iprot.readStructEnd();
22399
      validate();
22400
    }
22401
 
22402
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22403
      oprot.writeStructBegin(STRUCT_DESC);
22404
 
22405
      if (this.isSetSuccess()) {
22406
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22407
        {
22408
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
22409
          for (Warehouse _iter51 : this.success)
22410
          {
22411
            _iter51.write(oprot);
22412
          }
22413
          oprot.writeListEnd();
22414
        }
22415
        oprot.writeFieldEnd();
22416
      }
22417
      oprot.writeFieldStop();
22418
      oprot.writeStructEnd();
22419
    }
22420
 
22421
    @Override
22422
    public String toString() {
22423
      StringBuilder sb = new StringBuilder("getWarehouses_result(");
22424
      boolean first = true;
22425
 
22426
      sb.append("success:");
22427
      if (this.success == null) {
22428
        sb.append("null");
22429
      } else {
22430
        sb.append(this.success);
22431
      }
22432
      first = false;
22433
      sb.append(")");
22434
      return sb.toString();
22435
    }
22436
 
22437
    public void validate() throws org.apache.thrift.TException {
22438
      // check for required fields
22439
    }
22440
 
22441
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22442
      try {
22443
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22444
      } catch (org.apache.thrift.TException te) {
22445
        throw new java.io.IOException(te);
22446
      }
22447
    }
22448
 
22449
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22450
      try {
22451
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22452
      } catch (org.apache.thrift.TException te) {
22453
        throw new java.io.IOException(te);
22454
      }
22455
    }
22456
 
22457
  }
22458
 
22459
  public static class resetAvailability_args implements org.apache.thrift.TBase<resetAvailability_args, resetAvailability_args._Fields>, java.io.Serializable, Cloneable   {
22460
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_args");
22461
 
22462
    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);
22463
    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);
22464
    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);
22465
    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);
22466
 
22467
    private String itemKey; // required
22468
    private long vendorId; // required
22469
    private long quantity; // required
22470
    private long warehouseId; // required
22471
 
22472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22473
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22474
      ITEM_KEY((short)1, "itemKey"),
22475
      VENDOR_ID((short)2, "vendorId"),
22476
      QUANTITY((short)3, "quantity"),
22477
      WAREHOUSE_ID((short)4, "warehouseId");
22478
 
22479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22480
 
22481
      static {
22482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22483
          byName.put(field.getFieldName(), field);
22484
        }
22485
      }
22486
 
22487
      /**
22488
       * Find the _Fields constant that matches fieldId, or null if its not found.
22489
       */
22490
      public static _Fields findByThriftId(int fieldId) {
22491
        switch(fieldId) {
22492
          case 1: // ITEM_KEY
22493
            return ITEM_KEY;
22494
          case 2: // VENDOR_ID
22495
            return VENDOR_ID;
22496
          case 3: // QUANTITY
22497
            return QUANTITY;
22498
          case 4: // WAREHOUSE_ID
22499
            return WAREHOUSE_ID;
22500
          default:
22501
            return null;
22502
        }
22503
      }
22504
 
22505
      /**
22506
       * Find the _Fields constant that matches fieldId, throwing an exception
22507
       * if it is not found.
22508
       */
22509
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22510
        _Fields fields = findByThriftId(fieldId);
22511
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22512
        return fields;
22513
      }
22514
 
22515
      /**
22516
       * Find the _Fields constant that matches name, or null if its not found.
22517
       */
22518
      public static _Fields findByName(String name) {
22519
        return byName.get(name);
22520
      }
22521
 
22522
      private final short _thriftId;
22523
      private final String _fieldName;
22524
 
22525
      _Fields(short thriftId, String fieldName) {
22526
        _thriftId = thriftId;
22527
        _fieldName = fieldName;
22528
      }
22529
 
22530
      public short getThriftFieldId() {
22531
        return _thriftId;
22532
      }
22533
 
22534
      public String getFieldName() {
22535
        return _fieldName;
22536
      }
22537
    }
22538
 
22539
    // isset id assignments
22540
    private static final int __VENDORID_ISSET_ID = 0;
22541
    private static final int __QUANTITY_ISSET_ID = 1;
22542
    private static final int __WAREHOUSEID_ISSET_ID = 2;
22543
    private BitSet __isset_bit_vector = new BitSet(3);
22544
 
22545
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22546
    static {
22547
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22548
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22550
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22551
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22552
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22553
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22554
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_args.class, metaDataMap);
22558
    }
22559
 
22560
    public resetAvailability_args() {
22561
    }
22562
 
22563
    public resetAvailability_args(
22564
      String itemKey,
22565
      long vendorId,
22566
      long quantity,
22567
      long warehouseId)
22568
    {
22569
      this();
22570
      this.itemKey = itemKey;
22571
      this.vendorId = vendorId;
22572
      setVendorIdIsSet(true);
22573
      this.quantity = quantity;
22574
      setQuantityIsSet(true);
22575
      this.warehouseId = warehouseId;
22576
      setWarehouseIdIsSet(true);
22577
    }
22578
 
22579
    /**
22580
     * Performs a deep copy on <i>other</i>.
22581
     */
22582
    public resetAvailability_args(resetAvailability_args other) {
22583
      __isset_bit_vector.clear();
22584
      __isset_bit_vector.or(other.__isset_bit_vector);
22585
      if (other.isSetItemKey()) {
22586
        this.itemKey = other.itemKey;
22587
      }
22588
      this.vendorId = other.vendorId;
22589
      this.quantity = other.quantity;
22590
      this.warehouseId = other.warehouseId;
22591
    }
22592
 
22593
    public resetAvailability_args deepCopy() {
22594
      return new resetAvailability_args(this);
22595
    }
22596
 
22597
    @Override
22598
    public void clear() {
22599
      this.itemKey = null;
22600
      setVendorIdIsSet(false);
22601
      this.vendorId = 0;
22602
      setQuantityIsSet(false);
22603
      this.quantity = 0;
22604
      setWarehouseIdIsSet(false);
22605
      this.warehouseId = 0;
22606
    }
22607
 
22608
    public String getItemKey() {
22609
      return this.itemKey;
22610
    }
22611
 
22612
    public void setItemKey(String itemKey) {
22613
      this.itemKey = itemKey;
22614
    }
22615
 
22616
    public void unsetItemKey() {
22617
      this.itemKey = null;
22618
    }
22619
 
22620
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
22621
    public boolean isSetItemKey() {
22622
      return this.itemKey != null;
22623
    }
22624
 
22625
    public void setItemKeyIsSet(boolean value) {
22626
      if (!value) {
22627
        this.itemKey = null;
22628
      }
22629
    }
22630
 
22631
    public long getVendorId() {
22632
      return this.vendorId;
22633
    }
22634
 
22635
    public void setVendorId(long vendorId) {
22636
      this.vendorId = vendorId;
22637
      setVendorIdIsSet(true);
22638
    }
22639
 
22640
    public void unsetVendorId() {
22641
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
22642
    }
22643
 
22644
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
22645
    public boolean isSetVendorId() {
22646
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
22647
    }
22648
 
22649
    public void setVendorIdIsSet(boolean value) {
22650
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
22651
    }
22652
 
22653
    public long getQuantity() {
22654
      return this.quantity;
22655
    }
22656
 
22657
    public void setQuantity(long quantity) {
22658
      this.quantity = quantity;
22659
      setQuantityIsSet(true);
22660
    }
22661
 
22662
    public void unsetQuantity() {
22663
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
22664
    }
22665
 
22666
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
22667
    public boolean isSetQuantity() {
22668
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
22669
    }
22670
 
22671
    public void setQuantityIsSet(boolean value) {
22672
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
22673
    }
22674
 
22675
    public long getWarehouseId() {
22676
      return this.warehouseId;
22677
    }
22678
 
22679
    public void setWarehouseId(long warehouseId) {
22680
      this.warehouseId = warehouseId;
22681
      setWarehouseIdIsSet(true);
22682
    }
22683
 
22684
    public void unsetWarehouseId() {
22685
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
22686
    }
22687
 
22688
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
22689
    public boolean isSetWarehouseId() {
22690
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
22691
    }
22692
 
22693
    public void setWarehouseIdIsSet(boolean value) {
22694
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
22695
    }
22696
 
22697
    public void setFieldValue(_Fields field, Object value) {
22698
      switch (field) {
22699
      case ITEM_KEY:
22700
        if (value == null) {
22701
          unsetItemKey();
22702
        } else {
22703
          setItemKey((String)value);
22704
        }
22705
        break;
22706
 
22707
      case VENDOR_ID:
22708
        if (value == null) {
22709
          unsetVendorId();
22710
        } else {
22711
          setVendorId((Long)value);
22712
        }
22713
        break;
22714
 
22715
      case QUANTITY:
22716
        if (value == null) {
22717
          unsetQuantity();
22718
        } else {
22719
          setQuantity((Long)value);
22720
        }
22721
        break;
22722
 
22723
      case WAREHOUSE_ID:
22724
        if (value == null) {
22725
          unsetWarehouseId();
22726
        } else {
22727
          setWarehouseId((Long)value);
22728
        }
22729
        break;
22730
 
22731
      }
22732
    }
22733
 
22734
    public Object getFieldValue(_Fields field) {
22735
      switch (field) {
22736
      case ITEM_KEY:
22737
        return getItemKey();
22738
 
22739
      case VENDOR_ID:
22740
        return Long.valueOf(getVendorId());
22741
 
22742
      case QUANTITY:
22743
        return Long.valueOf(getQuantity());
22744
 
22745
      case WAREHOUSE_ID:
22746
        return Long.valueOf(getWarehouseId());
22747
 
22748
      }
22749
      throw new IllegalStateException();
22750
    }
22751
 
22752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22753
    public boolean isSet(_Fields field) {
22754
      if (field == null) {
22755
        throw new IllegalArgumentException();
22756
      }
22757
 
22758
      switch (field) {
22759
      case ITEM_KEY:
22760
        return isSetItemKey();
22761
      case VENDOR_ID:
22762
        return isSetVendorId();
22763
      case QUANTITY:
22764
        return isSetQuantity();
22765
      case WAREHOUSE_ID:
22766
        return isSetWarehouseId();
22767
      }
22768
      throw new IllegalStateException();
22769
    }
22770
 
22771
    @Override
22772
    public boolean equals(Object that) {
22773
      if (that == null)
22774
        return false;
22775
      if (that instanceof resetAvailability_args)
22776
        return this.equals((resetAvailability_args)that);
22777
      return false;
22778
    }
22779
 
22780
    public boolean equals(resetAvailability_args that) {
22781
      if (that == null)
22782
        return false;
22783
 
22784
      boolean this_present_itemKey = true && this.isSetItemKey();
22785
      boolean that_present_itemKey = true && that.isSetItemKey();
22786
      if (this_present_itemKey || that_present_itemKey) {
22787
        if (!(this_present_itemKey && that_present_itemKey))
22788
          return false;
22789
        if (!this.itemKey.equals(that.itemKey))
22790
          return false;
22791
      }
22792
 
22793
      boolean this_present_vendorId = true;
22794
      boolean that_present_vendorId = true;
22795
      if (this_present_vendorId || that_present_vendorId) {
22796
        if (!(this_present_vendorId && that_present_vendorId))
22797
          return false;
22798
        if (this.vendorId != that.vendorId)
22799
          return false;
22800
      }
22801
 
22802
      boolean this_present_quantity = true;
22803
      boolean that_present_quantity = true;
22804
      if (this_present_quantity || that_present_quantity) {
22805
        if (!(this_present_quantity && that_present_quantity))
22806
          return false;
22807
        if (this.quantity != that.quantity)
22808
          return false;
22809
      }
22810
 
22811
      boolean this_present_warehouseId = true;
22812
      boolean that_present_warehouseId = true;
22813
      if (this_present_warehouseId || that_present_warehouseId) {
22814
        if (!(this_present_warehouseId && that_present_warehouseId))
22815
          return false;
22816
        if (this.warehouseId != that.warehouseId)
22817
          return false;
22818
      }
22819
 
22820
      return true;
22821
    }
22822
 
22823
    @Override
22824
    public int hashCode() {
22825
      return 0;
22826
    }
22827
 
22828
    public int compareTo(resetAvailability_args other) {
22829
      if (!getClass().equals(other.getClass())) {
22830
        return getClass().getName().compareTo(other.getClass().getName());
22831
      }
22832
 
22833
      int lastComparison = 0;
22834
      resetAvailability_args typedOther = (resetAvailability_args)other;
22835
 
22836
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
22837
      if (lastComparison != 0) {
22838
        return lastComparison;
22839
      }
22840
      if (isSetItemKey()) {
22841
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
22842
        if (lastComparison != 0) {
22843
          return lastComparison;
22844
        }
22845
      }
22846
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
22847
      if (lastComparison != 0) {
22848
        return lastComparison;
22849
      }
22850
      if (isSetVendorId()) {
22851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
22852
        if (lastComparison != 0) {
22853
          return lastComparison;
22854
        }
22855
      }
22856
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
22857
      if (lastComparison != 0) {
22858
        return lastComparison;
22859
      }
22860
      if (isSetQuantity()) {
22861
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
22862
        if (lastComparison != 0) {
22863
          return lastComparison;
22864
        }
22865
      }
22866
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
22867
      if (lastComparison != 0) {
22868
        return lastComparison;
22869
      }
22870
      if (isSetWarehouseId()) {
22871
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
22872
        if (lastComparison != 0) {
22873
          return lastComparison;
22874
        }
22875
      }
22876
      return 0;
22877
    }
22878
 
22879
    public _Fields fieldForId(int fieldId) {
22880
      return _Fields.findByThriftId(fieldId);
22881
    }
22882
 
22883
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22884
      org.apache.thrift.protocol.TField field;
22885
      iprot.readStructBegin();
22886
      while (true)
22887
      {
22888
        field = iprot.readFieldBegin();
22889
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22890
          break;
22891
        }
22892
        switch (field.id) {
22893
          case 1: // ITEM_KEY
22894
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22895
              this.itemKey = iprot.readString();
22896
            } else { 
22897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22898
            }
22899
            break;
22900
          case 2: // VENDOR_ID
22901
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22902
              this.vendorId = iprot.readI64();
22903
              setVendorIdIsSet(true);
22904
            } else { 
22905
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22906
            }
22907
            break;
22908
          case 3: // QUANTITY
22909
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22910
              this.quantity = iprot.readI64();
22911
              setQuantityIsSet(true);
22912
            } else { 
22913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22914
            }
22915
            break;
22916
          case 4: // WAREHOUSE_ID
22917
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22918
              this.warehouseId = iprot.readI64();
22919
              setWarehouseIdIsSet(true);
22920
            } else { 
22921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22922
            }
22923
            break;
22924
          default:
22925
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22926
        }
22927
        iprot.readFieldEnd();
22928
      }
22929
      iprot.readStructEnd();
22930
      validate();
22931
    }
22932
 
22933
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22934
      validate();
22935
 
22936
      oprot.writeStructBegin(STRUCT_DESC);
22937
      if (this.itemKey != null) {
22938
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
22939
        oprot.writeString(this.itemKey);
22940
        oprot.writeFieldEnd();
22941
      }
22942
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
22943
      oprot.writeI64(this.vendorId);
22944
      oprot.writeFieldEnd();
22945
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
22946
      oprot.writeI64(this.quantity);
22947
      oprot.writeFieldEnd();
22948
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
22949
      oprot.writeI64(this.warehouseId);
22950
      oprot.writeFieldEnd();
22951
      oprot.writeFieldStop();
22952
      oprot.writeStructEnd();
22953
    }
22954
 
22955
    @Override
22956
    public String toString() {
22957
      StringBuilder sb = new StringBuilder("resetAvailability_args(");
22958
      boolean first = true;
22959
 
22960
      sb.append("itemKey:");
22961
      if (this.itemKey == null) {
22962
        sb.append("null");
22963
      } else {
22964
        sb.append(this.itemKey);
22965
      }
22966
      first = false;
22967
      if (!first) sb.append(", ");
22968
      sb.append("vendorId:");
22969
      sb.append(this.vendorId);
22970
      first = false;
22971
      if (!first) sb.append(", ");
22972
      sb.append("quantity:");
22973
      sb.append(this.quantity);
22974
      first = false;
22975
      if (!first) sb.append(", ");
22976
      sb.append("warehouseId:");
22977
      sb.append(this.warehouseId);
22978
      first = false;
22979
      sb.append(")");
22980
      return sb.toString();
22981
    }
22982
 
22983
    public void validate() throws org.apache.thrift.TException {
22984
      // check for required fields
22985
    }
22986
 
22987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22988
      try {
22989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22990
      } catch (org.apache.thrift.TException te) {
22991
        throw new java.io.IOException(te);
22992
      }
22993
    }
22994
 
22995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22996
      try {
22997
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22998
        __isset_bit_vector = new BitSet(1);
22999
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23000
      } catch (org.apache.thrift.TException te) {
23001
        throw new java.io.IOException(te);
23002
      }
23003
    }
23004
 
23005
  }
23006
 
23007
  public static class resetAvailability_result implements org.apache.thrift.TBase<resetAvailability_result, resetAvailability_result._Fields>, java.io.Serializable, Cloneable   {
23008
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailability_result");
23009
 
23010
    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);
23011
 
23012
    private InventoryServiceException cex; // required
23013
 
23014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23016
      CEX((short)1, "cex");
23017
 
23018
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23019
 
23020
      static {
23021
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23022
          byName.put(field.getFieldName(), field);
23023
        }
23024
      }
23025
 
23026
      /**
23027
       * Find the _Fields constant that matches fieldId, or null if its not found.
23028
       */
23029
      public static _Fields findByThriftId(int fieldId) {
23030
        switch(fieldId) {
23031
          case 1: // CEX
23032
            return CEX;
23033
          default:
23034
            return null;
23035
        }
23036
      }
23037
 
23038
      /**
23039
       * Find the _Fields constant that matches fieldId, throwing an exception
23040
       * if it is not found.
23041
       */
23042
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23043
        _Fields fields = findByThriftId(fieldId);
23044
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23045
        return fields;
23046
      }
23047
 
23048
      /**
23049
       * Find the _Fields constant that matches name, or null if its not found.
23050
       */
23051
      public static _Fields findByName(String name) {
23052
        return byName.get(name);
23053
      }
23054
 
23055
      private final short _thriftId;
23056
      private final String _fieldName;
23057
 
23058
      _Fields(short thriftId, String fieldName) {
23059
        _thriftId = thriftId;
23060
        _fieldName = fieldName;
23061
      }
23062
 
23063
      public short getThriftFieldId() {
23064
        return _thriftId;
23065
      }
23066
 
23067
      public String getFieldName() {
23068
        return _fieldName;
23069
      }
23070
    }
23071
 
23072
    // isset id assignments
23073
 
23074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23075
    static {
23076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23077
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23079
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23080
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailability_result.class, metaDataMap);
23081
    }
23082
 
23083
    public resetAvailability_result() {
23084
    }
23085
 
23086
    public resetAvailability_result(
23087
      InventoryServiceException cex)
23088
    {
23089
      this();
23090
      this.cex = cex;
23091
    }
23092
 
23093
    /**
23094
     * Performs a deep copy on <i>other</i>.
23095
     */
23096
    public resetAvailability_result(resetAvailability_result other) {
23097
      if (other.isSetCex()) {
23098
        this.cex = new InventoryServiceException(other.cex);
23099
      }
23100
    }
23101
 
23102
    public resetAvailability_result deepCopy() {
23103
      return new resetAvailability_result(this);
23104
    }
23105
 
23106
    @Override
23107
    public void clear() {
23108
      this.cex = null;
23109
    }
23110
 
23111
    public InventoryServiceException getCex() {
23112
      return this.cex;
23113
    }
23114
 
23115
    public void setCex(InventoryServiceException cex) {
23116
      this.cex = cex;
23117
    }
23118
 
23119
    public void unsetCex() {
23120
      this.cex = null;
23121
    }
23122
 
23123
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
23124
    public boolean isSetCex() {
23125
      return this.cex != null;
23126
    }
23127
 
23128
    public void setCexIsSet(boolean value) {
23129
      if (!value) {
23130
        this.cex = null;
23131
      }
23132
    }
23133
 
23134
    public void setFieldValue(_Fields field, Object value) {
23135
      switch (field) {
23136
      case CEX:
23137
        if (value == null) {
23138
          unsetCex();
23139
        } else {
23140
          setCex((InventoryServiceException)value);
23141
        }
23142
        break;
23143
 
23144
      }
23145
    }
23146
 
23147
    public Object getFieldValue(_Fields field) {
23148
      switch (field) {
23149
      case CEX:
23150
        return getCex();
23151
 
23152
      }
23153
      throw new IllegalStateException();
23154
    }
23155
 
23156
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23157
    public boolean isSet(_Fields field) {
23158
      if (field == null) {
23159
        throw new IllegalArgumentException();
23160
      }
23161
 
23162
      switch (field) {
23163
      case CEX:
23164
        return isSetCex();
23165
      }
23166
      throw new IllegalStateException();
23167
    }
23168
 
23169
    @Override
23170
    public boolean equals(Object that) {
23171
      if (that == null)
23172
        return false;
23173
      if (that instanceof resetAvailability_result)
23174
        return this.equals((resetAvailability_result)that);
23175
      return false;
23176
    }
23177
 
23178
    public boolean equals(resetAvailability_result that) {
23179
      if (that == null)
23180
        return false;
23181
 
23182
      boolean this_present_cex = true && this.isSetCex();
23183
      boolean that_present_cex = true && that.isSetCex();
23184
      if (this_present_cex || that_present_cex) {
23185
        if (!(this_present_cex && that_present_cex))
23186
          return false;
23187
        if (!this.cex.equals(that.cex))
23188
          return false;
23189
      }
23190
 
23191
      return true;
23192
    }
23193
 
23194
    @Override
23195
    public int hashCode() {
23196
      return 0;
23197
    }
23198
 
23199
    public int compareTo(resetAvailability_result other) {
23200
      if (!getClass().equals(other.getClass())) {
23201
        return getClass().getName().compareTo(other.getClass().getName());
23202
      }
23203
 
23204
      int lastComparison = 0;
23205
      resetAvailability_result typedOther = (resetAvailability_result)other;
23206
 
23207
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23208
      if (lastComparison != 0) {
23209
        return lastComparison;
23210
      }
23211
      if (isSetCex()) {
23212
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23213
        if (lastComparison != 0) {
23214
          return lastComparison;
23215
        }
23216
      }
23217
      return 0;
23218
    }
23219
 
23220
    public _Fields fieldForId(int fieldId) {
23221
      return _Fields.findByThriftId(fieldId);
23222
    }
23223
 
23224
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23225
      org.apache.thrift.protocol.TField field;
23226
      iprot.readStructBegin();
23227
      while (true)
23228
      {
23229
        field = iprot.readFieldBegin();
23230
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23231
          break;
23232
        }
23233
        switch (field.id) {
23234
          case 1: // CEX
23235
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23236
              this.cex = new InventoryServiceException();
23237
              this.cex.read(iprot);
23238
            } else { 
23239
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23240
            }
23241
            break;
23242
          default:
23243
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23244
        }
23245
        iprot.readFieldEnd();
23246
      }
23247
      iprot.readStructEnd();
23248
      validate();
23249
    }
23250
 
23251
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23252
      oprot.writeStructBegin(STRUCT_DESC);
23253
 
23254
      if (this.isSetCex()) {
23255
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23256
        this.cex.write(oprot);
23257
        oprot.writeFieldEnd();
23258
      }
23259
      oprot.writeFieldStop();
23260
      oprot.writeStructEnd();
23261
    }
23262
 
23263
    @Override
23264
    public String toString() {
23265
      StringBuilder sb = new StringBuilder("resetAvailability_result(");
23266
      boolean first = true;
23267
 
23268
      sb.append("cex:");
23269
      if (this.cex == null) {
23270
        sb.append("null");
23271
      } else {
23272
        sb.append(this.cex);
23273
      }
23274
      first = false;
23275
      sb.append(")");
23276
      return sb.toString();
23277
    }
23278
 
23279
    public void validate() throws org.apache.thrift.TException {
23280
      // check for required fields
23281
    }
23282
 
23283
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23284
      try {
23285
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23286
      } catch (org.apache.thrift.TException te) {
23287
        throw new java.io.IOException(te);
23288
      }
23289
    }
23290
 
23291
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23292
      try {
23293
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23294
      } catch (org.apache.thrift.TException te) {
23295
        throw new java.io.IOException(te);
23296
      }
23297
    }
23298
 
23299
  }
23300
 
23301
  public static class resetAvailabilityForWarehouse_args implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_args, resetAvailabilityForWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
23302
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_args");
23303
 
23304
    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);
23305
 
23306
    private long warehouseId; // required
23307
 
23308
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23309
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23310
      WAREHOUSE_ID((short)1, "warehouseId");
23311
 
23312
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23313
 
23314
      static {
23315
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23316
          byName.put(field.getFieldName(), field);
23317
        }
23318
      }
23319
 
23320
      /**
23321
       * Find the _Fields constant that matches fieldId, or null if its not found.
23322
       */
23323
      public static _Fields findByThriftId(int fieldId) {
23324
        switch(fieldId) {
23325
          case 1: // WAREHOUSE_ID
23326
            return WAREHOUSE_ID;
23327
          default:
23328
            return null;
23329
        }
23330
      }
23331
 
23332
      /**
23333
       * Find the _Fields constant that matches fieldId, throwing an exception
23334
       * if it is not found.
23335
       */
23336
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23337
        _Fields fields = findByThriftId(fieldId);
23338
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23339
        return fields;
23340
      }
23341
 
23342
      /**
23343
       * Find the _Fields constant that matches name, or null if its not found.
23344
       */
23345
      public static _Fields findByName(String name) {
23346
        return byName.get(name);
23347
      }
23348
 
23349
      private final short _thriftId;
23350
      private final String _fieldName;
23351
 
23352
      _Fields(short thriftId, String fieldName) {
23353
        _thriftId = thriftId;
23354
        _fieldName = fieldName;
23355
      }
23356
 
23357
      public short getThriftFieldId() {
23358
        return _thriftId;
23359
      }
23360
 
23361
      public String getFieldName() {
23362
        return _fieldName;
23363
      }
23364
    }
23365
 
23366
    // isset id assignments
23367
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23368
    private BitSet __isset_bit_vector = new BitSet(1);
23369
 
23370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23371
    static {
23372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23373
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23375
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23376
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_args.class, metaDataMap);
23377
    }
23378
 
23379
    public resetAvailabilityForWarehouse_args() {
23380
    }
23381
 
23382
    public resetAvailabilityForWarehouse_args(
23383
      long warehouseId)
23384
    {
23385
      this();
23386
      this.warehouseId = warehouseId;
23387
      setWarehouseIdIsSet(true);
23388
    }
23389
 
23390
    /**
23391
     * Performs a deep copy on <i>other</i>.
23392
     */
23393
    public resetAvailabilityForWarehouse_args(resetAvailabilityForWarehouse_args other) {
23394
      __isset_bit_vector.clear();
23395
      __isset_bit_vector.or(other.__isset_bit_vector);
23396
      this.warehouseId = other.warehouseId;
23397
    }
23398
 
23399
    public resetAvailabilityForWarehouse_args deepCopy() {
23400
      return new resetAvailabilityForWarehouse_args(this);
23401
    }
23402
 
23403
    @Override
23404
    public void clear() {
23405
      setWarehouseIdIsSet(false);
23406
      this.warehouseId = 0;
23407
    }
23408
 
23409
    public long getWarehouseId() {
23410
      return this.warehouseId;
23411
    }
23412
 
23413
    public void setWarehouseId(long warehouseId) {
23414
      this.warehouseId = warehouseId;
23415
      setWarehouseIdIsSet(true);
23416
    }
23417
 
23418
    public void unsetWarehouseId() {
23419
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
23420
    }
23421
 
23422
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
23423
    public boolean isSetWarehouseId() {
23424
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
23425
    }
23426
 
23427
    public void setWarehouseIdIsSet(boolean value) {
23428
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
23429
    }
23430
 
23431
    public void setFieldValue(_Fields field, Object value) {
23432
      switch (field) {
23433
      case WAREHOUSE_ID:
23434
        if (value == null) {
23435
          unsetWarehouseId();
23436
        } else {
23437
          setWarehouseId((Long)value);
23438
        }
23439
        break;
23440
 
23441
      }
23442
    }
23443
 
23444
    public Object getFieldValue(_Fields field) {
23445
      switch (field) {
23446
      case WAREHOUSE_ID:
23447
        return Long.valueOf(getWarehouseId());
23448
 
23449
      }
23450
      throw new IllegalStateException();
23451
    }
23452
 
23453
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23454
    public boolean isSet(_Fields field) {
23455
      if (field == null) {
23456
        throw new IllegalArgumentException();
23457
      }
23458
 
23459
      switch (field) {
23460
      case WAREHOUSE_ID:
23461
        return isSetWarehouseId();
23462
      }
23463
      throw new IllegalStateException();
23464
    }
23465
 
23466
    @Override
23467
    public boolean equals(Object that) {
23468
      if (that == null)
23469
        return false;
23470
      if (that instanceof resetAvailabilityForWarehouse_args)
23471
        return this.equals((resetAvailabilityForWarehouse_args)that);
23472
      return false;
23473
    }
23474
 
23475
    public boolean equals(resetAvailabilityForWarehouse_args that) {
23476
      if (that == null)
23477
        return false;
23478
 
23479
      boolean this_present_warehouseId = true;
23480
      boolean that_present_warehouseId = true;
23481
      if (this_present_warehouseId || that_present_warehouseId) {
23482
        if (!(this_present_warehouseId && that_present_warehouseId))
23483
          return false;
23484
        if (this.warehouseId != that.warehouseId)
23485
          return false;
23486
      }
23487
 
23488
      return true;
23489
    }
23490
 
23491
    @Override
23492
    public int hashCode() {
23493
      return 0;
23494
    }
23495
 
23496
    public int compareTo(resetAvailabilityForWarehouse_args other) {
23497
      if (!getClass().equals(other.getClass())) {
23498
        return getClass().getName().compareTo(other.getClass().getName());
23499
      }
23500
 
23501
      int lastComparison = 0;
23502
      resetAvailabilityForWarehouse_args typedOther = (resetAvailabilityForWarehouse_args)other;
23503
 
23504
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
23505
      if (lastComparison != 0) {
23506
        return lastComparison;
23507
      }
23508
      if (isSetWarehouseId()) {
23509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
23510
        if (lastComparison != 0) {
23511
          return lastComparison;
23512
        }
23513
      }
23514
      return 0;
23515
    }
23516
 
23517
    public _Fields fieldForId(int fieldId) {
23518
      return _Fields.findByThriftId(fieldId);
23519
    }
23520
 
23521
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23522
      org.apache.thrift.protocol.TField field;
23523
      iprot.readStructBegin();
23524
      while (true)
23525
      {
23526
        field = iprot.readFieldBegin();
23527
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23528
          break;
23529
        }
23530
        switch (field.id) {
23531
          case 1: // WAREHOUSE_ID
23532
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23533
              this.warehouseId = iprot.readI64();
23534
              setWarehouseIdIsSet(true);
23535
            } else { 
23536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23537
            }
23538
            break;
23539
          default:
23540
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23541
        }
23542
        iprot.readFieldEnd();
23543
      }
23544
      iprot.readStructEnd();
23545
      validate();
23546
    }
23547
 
23548
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23549
      validate();
23550
 
23551
      oprot.writeStructBegin(STRUCT_DESC);
23552
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
23553
      oprot.writeI64(this.warehouseId);
23554
      oprot.writeFieldEnd();
23555
      oprot.writeFieldStop();
23556
      oprot.writeStructEnd();
23557
    }
23558
 
23559
    @Override
23560
    public String toString() {
23561
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_args(");
23562
      boolean first = true;
23563
 
23564
      sb.append("warehouseId:");
23565
      sb.append(this.warehouseId);
23566
      first = false;
23567
      sb.append(")");
23568
      return sb.toString();
23569
    }
23570
 
23571
    public void validate() throws org.apache.thrift.TException {
23572
      // check for required fields
23573
    }
23574
 
23575
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23576
      try {
23577
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23578
      } catch (org.apache.thrift.TException te) {
23579
        throw new java.io.IOException(te);
23580
      }
23581
    }
23582
 
23583
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23584
      try {
23585
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23586
        __isset_bit_vector = new BitSet(1);
23587
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23588
      } catch (org.apache.thrift.TException te) {
23589
        throw new java.io.IOException(te);
23590
      }
23591
    }
23592
 
23593
  }
23594
 
23595
  public static class resetAvailabilityForWarehouse_result implements org.apache.thrift.TBase<resetAvailabilityForWarehouse_result, resetAvailabilityForWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
23596
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("resetAvailabilityForWarehouse_result");
23597
 
23598
    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);
23599
 
23600
    private InventoryServiceException cex; // required
23601
 
23602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23604
      CEX((short)1, "cex");
23605
 
23606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23607
 
23608
      static {
23609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23610
          byName.put(field.getFieldName(), field);
23611
        }
23612
      }
23613
 
23614
      /**
23615
       * Find the _Fields constant that matches fieldId, or null if its not found.
23616
       */
23617
      public static _Fields findByThriftId(int fieldId) {
23618
        switch(fieldId) {
23619
          case 1: // CEX
23620
            return CEX;
23621
          default:
23622
            return null;
23623
        }
23624
      }
23625
 
23626
      /**
23627
       * Find the _Fields constant that matches fieldId, throwing an exception
23628
       * if it is not found.
23629
       */
23630
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23631
        _Fields fields = findByThriftId(fieldId);
23632
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23633
        return fields;
23634
      }
23635
 
23636
      /**
23637
       * Find the _Fields constant that matches name, or null if its not found.
23638
       */
23639
      public static _Fields findByName(String name) {
23640
        return byName.get(name);
23641
      }
23642
 
23643
      private final short _thriftId;
23644
      private final String _fieldName;
23645
 
23646
      _Fields(short thriftId, String fieldName) {
23647
        _thriftId = thriftId;
23648
        _fieldName = fieldName;
23649
      }
23650
 
23651
      public short getThriftFieldId() {
23652
        return _thriftId;
23653
      }
23654
 
23655
      public String getFieldName() {
23656
        return _fieldName;
23657
      }
23658
    }
23659
 
23660
    // isset id assignments
23661
 
23662
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23663
    static {
23664
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23665
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23666
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23667
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23668
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(resetAvailabilityForWarehouse_result.class, metaDataMap);
23669
    }
23670
 
23671
    public resetAvailabilityForWarehouse_result() {
23672
    }
23673
 
23674
    public resetAvailabilityForWarehouse_result(
23675
      InventoryServiceException cex)
23676
    {
23677
      this();
23678
      this.cex = cex;
23679
    }
23680
 
23681
    /**
23682
     * Performs a deep copy on <i>other</i>.
23683
     */
23684
    public resetAvailabilityForWarehouse_result(resetAvailabilityForWarehouse_result other) {
23685
      if (other.isSetCex()) {
23686
        this.cex = new InventoryServiceException(other.cex);
23687
      }
23688
    }
23689
 
23690
    public resetAvailabilityForWarehouse_result deepCopy() {
23691
      return new resetAvailabilityForWarehouse_result(this);
23692
    }
23693
 
23694
    @Override
23695
    public void clear() {
23696
      this.cex = null;
23697
    }
23698
 
23699
    public InventoryServiceException getCex() {
23700
      return this.cex;
23701
    }
23702
 
23703
    public void setCex(InventoryServiceException cex) {
23704
      this.cex = cex;
23705
    }
23706
 
23707
    public void unsetCex() {
23708
      this.cex = null;
23709
    }
23710
 
23711
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
23712
    public boolean isSetCex() {
23713
      return this.cex != null;
23714
    }
23715
 
23716
    public void setCexIsSet(boolean value) {
23717
      if (!value) {
23718
        this.cex = null;
23719
      }
23720
    }
23721
 
23722
    public void setFieldValue(_Fields field, Object value) {
23723
      switch (field) {
23724
      case CEX:
23725
        if (value == null) {
23726
          unsetCex();
23727
        } else {
23728
          setCex((InventoryServiceException)value);
23729
        }
23730
        break;
23731
 
23732
      }
23733
    }
23734
 
23735
    public Object getFieldValue(_Fields field) {
23736
      switch (field) {
23737
      case CEX:
23738
        return getCex();
23739
 
23740
      }
23741
      throw new IllegalStateException();
23742
    }
23743
 
23744
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23745
    public boolean isSet(_Fields field) {
23746
      if (field == null) {
23747
        throw new IllegalArgumentException();
23748
      }
23749
 
23750
      switch (field) {
23751
      case CEX:
23752
        return isSetCex();
23753
      }
23754
      throw new IllegalStateException();
23755
    }
23756
 
23757
    @Override
23758
    public boolean equals(Object that) {
23759
      if (that == null)
23760
        return false;
23761
      if (that instanceof resetAvailabilityForWarehouse_result)
23762
        return this.equals((resetAvailabilityForWarehouse_result)that);
23763
      return false;
23764
    }
23765
 
23766
    public boolean equals(resetAvailabilityForWarehouse_result that) {
23767
      if (that == null)
23768
        return false;
23769
 
23770
      boolean this_present_cex = true && this.isSetCex();
23771
      boolean that_present_cex = true && that.isSetCex();
23772
      if (this_present_cex || that_present_cex) {
23773
        if (!(this_present_cex && that_present_cex))
23774
          return false;
23775
        if (!this.cex.equals(that.cex))
23776
          return false;
23777
      }
23778
 
23779
      return true;
23780
    }
23781
 
23782
    @Override
23783
    public int hashCode() {
23784
      return 0;
23785
    }
23786
 
23787
    public int compareTo(resetAvailabilityForWarehouse_result other) {
23788
      if (!getClass().equals(other.getClass())) {
23789
        return getClass().getName().compareTo(other.getClass().getName());
23790
      }
23791
 
23792
      int lastComparison = 0;
23793
      resetAvailabilityForWarehouse_result typedOther = (resetAvailabilityForWarehouse_result)other;
23794
 
23795
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
23796
      if (lastComparison != 0) {
23797
        return lastComparison;
23798
      }
23799
      if (isSetCex()) {
23800
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
23801
        if (lastComparison != 0) {
23802
          return lastComparison;
23803
        }
23804
      }
23805
      return 0;
23806
    }
23807
 
23808
    public _Fields fieldForId(int fieldId) {
23809
      return _Fields.findByThriftId(fieldId);
23810
    }
23811
 
23812
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23813
      org.apache.thrift.protocol.TField field;
23814
      iprot.readStructBegin();
23815
      while (true)
23816
      {
23817
        field = iprot.readFieldBegin();
23818
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23819
          break;
23820
        }
23821
        switch (field.id) {
23822
          case 1: // CEX
23823
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23824
              this.cex = new InventoryServiceException();
23825
              this.cex.read(iprot);
23826
            } else { 
23827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23828
            }
23829
            break;
23830
          default:
23831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23832
        }
23833
        iprot.readFieldEnd();
23834
      }
23835
      iprot.readStructEnd();
23836
      validate();
23837
    }
23838
 
23839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23840
      oprot.writeStructBegin(STRUCT_DESC);
23841
 
23842
      if (this.isSetCex()) {
23843
        oprot.writeFieldBegin(CEX_FIELD_DESC);
23844
        this.cex.write(oprot);
23845
        oprot.writeFieldEnd();
23846
      }
23847
      oprot.writeFieldStop();
23848
      oprot.writeStructEnd();
23849
    }
23850
 
23851
    @Override
23852
    public String toString() {
23853
      StringBuilder sb = new StringBuilder("resetAvailabilityForWarehouse_result(");
23854
      boolean first = true;
23855
 
23856
      sb.append("cex:");
23857
      if (this.cex == null) {
23858
        sb.append("null");
23859
      } else {
23860
        sb.append(this.cex);
23861
      }
23862
      first = false;
23863
      sb.append(")");
23864
      return sb.toString();
23865
    }
23866
 
23867
    public void validate() throws org.apache.thrift.TException {
23868
      // check for required fields
23869
    }
23870
 
23871
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23872
      try {
23873
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23874
      } catch (org.apache.thrift.TException te) {
23875
        throw new java.io.IOException(te);
23876
      }
23877
    }
23878
 
23879
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23880
      try {
23881
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23882
      } catch (org.apache.thrift.TException te) {
23883
        throw new java.io.IOException(te);
23884
      }
23885
    }
23886
 
23887
  }
23888
 
23889
  public static class getItemKeysToBeProcessed_args implements org.apache.thrift.TBase<getItemKeysToBeProcessed_args, getItemKeysToBeProcessed_args._Fields>, java.io.Serializable, Cloneable   {
23890
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_args");
23891
 
23892
    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);
23893
 
23894
    private long warehouseId; // required
23895
 
23896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23898
      WAREHOUSE_ID((short)1, "warehouseId");
23899
 
23900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23901
 
23902
      static {
23903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23904
          byName.put(field.getFieldName(), field);
23905
        }
23906
      }
23907
 
23908
      /**
23909
       * Find the _Fields constant that matches fieldId, or null if its not found.
23910
       */
23911
      public static _Fields findByThriftId(int fieldId) {
23912
        switch(fieldId) {
23913
          case 1: // WAREHOUSE_ID
23914
            return WAREHOUSE_ID;
23915
          default:
23916
            return null;
23917
        }
23918
      }
23919
 
23920
      /**
23921
       * Find the _Fields constant that matches fieldId, throwing an exception
23922
       * if it is not found.
23923
       */
23924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23925
        _Fields fields = findByThriftId(fieldId);
23926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23927
        return fields;
23928
      }
23929
 
23930
      /**
23931
       * Find the _Fields constant that matches name, or null if its not found.
23932
       */
23933
      public static _Fields findByName(String name) {
23934
        return byName.get(name);
23935
      }
23936
 
23937
      private final short _thriftId;
23938
      private final String _fieldName;
23939
 
23940
      _Fields(short thriftId, String fieldName) {
23941
        _thriftId = thriftId;
23942
        _fieldName = fieldName;
23943
      }
23944
 
23945
      public short getThriftFieldId() {
23946
        return _thriftId;
23947
      }
23948
 
23949
      public String getFieldName() {
23950
        return _fieldName;
23951
      }
23952
    }
23953
 
23954
    // isset id assignments
23955
    private static final int __WAREHOUSEID_ISSET_ID = 0;
23956
    private BitSet __isset_bit_vector = new BitSet(1);
23957
 
23958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23959
    static {
23960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23961
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_args.class, metaDataMap);
23965
    }
23966
 
23967
    public getItemKeysToBeProcessed_args() {
23968
    }
23969
 
23970
    public getItemKeysToBeProcessed_args(
23971
      long warehouseId)
23972
    {
23973
      this();
23974
      this.warehouseId = warehouseId;
23975
      setWarehouseIdIsSet(true);
23976
    }
23977
 
23978
    /**
23979
     * Performs a deep copy on <i>other</i>.
23980
     */
23981
    public getItemKeysToBeProcessed_args(getItemKeysToBeProcessed_args other) {
23982
      __isset_bit_vector.clear();
23983
      __isset_bit_vector.or(other.__isset_bit_vector);
23984
      this.warehouseId = other.warehouseId;
23985
    }
23986
 
23987
    public getItemKeysToBeProcessed_args deepCopy() {
23988
      return new getItemKeysToBeProcessed_args(this);
23989
    }
23990
 
23991
    @Override
23992
    public void clear() {
23993
      setWarehouseIdIsSet(false);
23994
      this.warehouseId = 0;
23995
    }
23996
 
23997
    public long getWarehouseId() {
23998
      return this.warehouseId;
23999
    }
24000
 
24001
    public void setWarehouseId(long warehouseId) {
24002
      this.warehouseId = warehouseId;
24003
      setWarehouseIdIsSet(true);
24004
    }
24005
 
24006
    public void unsetWarehouseId() {
24007
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
24008
    }
24009
 
24010
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
24011
    public boolean isSetWarehouseId() {
24012
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
24013
    }
24014
 
24015
    public void setWarehouseIdIsSet(boolean value) {
24016
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
24017
    }
24018
 
24019
    public void setFieldValue(_Fields field, Object value) {
24020
      switch (field) {
24021
      case WAREHOUSE_ID:
24022
        if (value == null) {
24023
          unsetWarehouseId();
24024
        } else {
24025
          setWarehouseId((Long)value);
24026
        }
24027
        break;
24028
 
24029
      }
24030
    }
24031
 
24032
    public Object getFieldValue(_Fields field) {
24033
      switch (field) {
24034
      case WAREHOUSE_ID:
24035
        return Long.valueOf(getWarehouseId());
24036
 
24037
      }
24038
      throw new IllegalStateException();
24039
    }
24040
 
24041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24042
    public boolean isSet(_Fields field) {
24043
      if (field == null) {
24044
        throw new IllegalArgumentException();
24045
      }
24046
 
24047
      switch (field) {
24048
      case WAREHOUSE_ID:
24049
        return isSetWarehouseId();
24050
      }
24051
      throw new IllegalStateException();
24052
    }
24053
 
24054
    @Override
24055
    public boolean equals(Object that) {
24056
      if (that == null)
24057
        return false;
24058
      if (that instanceof getItemKeysToBeProcessed_args)
24059
        return this.equals((getItemKeysToBeProcessed_args)that);
24060
      return false;
24061
    }
24062
 
24063
    public boolean equals(getItemKeysToBeProcessed_args that) {
24064
      if (that == null)
24065
        return false;
24066
 
24067
      boolean this_present_warehouseId = true;
24068
      boolean that_present_warehouseId = true;
24069
      if (this_present_warehouseId || that_present_warehouseId) {
24070
        if (!(this_present_warehouseId && that_present_warehouseId))
24071
          return false;
24072
        if (this.warehouseId != that.warehouseId)
24073
          return false;
24074
      }
24075
 
24076
      return true;
24077
    }
24078
 
24079
    @Override
24080
    public int hashCode() {
24081
      return 0;
24082
    }
24083
 
24084
    public int compareTo(getItemKeysToBeProcessed_args other) {
24085
      if (!getClass().equals(other.getClass())) {
24086
        return getClass().getName().compareTo(other.getClass().getName());
24087
      }
24088
 
24089
      int lastComparison = 0;
24090
      getItemKeysToBeProcessed_args typedOther = (getItemKeysToBeProcessed_args)other;
24091
 
24092
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24093
      if (lastComparison != 0) {
24094
        return lastComparison;
24095
      }
24096
      if (isSetWarehouseId()) {
24097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24098
        if (lastComparison != 0) {
24099
          return lastComparison;
24100
        }
24101
      }
24102
      return 0;
24103
    }
24104
 
24105
    public _Fields fieldForId(int fieldId) {
24106
      return _Fields.findByThriftId(fieldId);
24107
    }
24108
 
24109
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24110
      org.apache.thrift.protocol.TField field;
24111
      iprot.readStructBegin();
24112
      while (true)
24113
      {
24114
        field = iprot.readFieldBegin();
24115
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24116
          break;
24117
        }
24118
        switch (field.id) {
24119
          case 1: // WAREHOUSE_ID
24120
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24121
              this.warehouseId = iprot.readI64();
24122
              setWarehouseIdIsSet(true);
24123
            } else { 
24124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24125
            }
24126
            break;
24127
          default:
24128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24129
        }
24130
        iprot.readFieldEnd();
24131
      }
24132
      iprot.readStructEnd();
24133
      validate();
24134
    }
24135
 
24136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24137
      validate();
24138
 
24139
      oprot.writeStructBegin(STRUCT_DESC);
24140
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24141
      oprot.writeI64(this.warehouseId);
24142
      oprot.writeFieldEnd();
24143
      oprot.writeFieldStop();
24144
      oprot.writeStructEnd();
24145
    }
24146
 
24147
    @Override
24148
    public String toString() {
24149
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_args(");
24150
      boolean first = true;
24151
 
24152
      sb.append("warehouseId:");
24153
      sb.append(this.warehouseId);
24154
      first = false;
24155
      sb.append(")");
24156
      return sb.toString();
24157
    }
24158
 
24159
    public void validate() throws org.apache.thrift.TException {
24160
      // check for required fields
24161
    }
24162
 
24163
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24164
      try {
24165
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24166
      } catch (org.apache.thrift.TException te) {
24167
        throw new java.io.IOException(te);
24168
      }
24169
    }
24170
 
24171
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24172
      try {
24173
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24174
      } catch (org.apache.thrift.TException te) {
24175
        throw new java.io.IOException(te);
24176
      }
24177
    }
24178
 
24179
  }
24180
 
24181
  public static class getItemKeysToBeProcessed_result implements org.apache.thrift.TBase<getItemKeysToBeProcessed_result, getItemKeysToBeProcessed_result._Fields>, java.io.Serializable, Cloneable   {
24182
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemKeysToBeProcessed_result");
24183
 
24184
    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);
24185
 
24186
    private List<String> success; // required
24187
 
24188
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24189
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24190
      SUCCESS((short)0, "success");
24191
 
24192
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24193
 
24194
      static {
24195
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24196
          byName.put(field.getFieldName(), field);
24197
        }
24198
      }
24199
 
24200
      /**
24201
       * Find the _Fields constant that matches fieldId, or null if its not found.
24202
       */
24203
      public static _Fields findByThriftId(int fieldId) {
24204
        switch(fieldId) {
24205
          case 0: // SUCCESS
24206
            return SUCCESS;
24207
          default:
24208
            return null;
24209
        }
24210
      }
24211
 
24212
      /**
24213
       * Find the _Fields constant that matches fieldId, throwing an exception
24214
       * if it is not found.
24215
       */
24216
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24217
        _Fields fields = findByThriftId(fieldId);
24218
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24219
        return fields;
24220
      }
24221
 
24222
      /**
24223
       * Find the _Fields constant that matches name, or null if its not found.
24224
       */
24225
      public static _Fields findByName(String name) {
24226
        return byName.get(name);
24227
      }
24228
 
24229
      private final short _thriftId;
24230
      private final String _fieldName;
24231
 
24232
      _Fields(short thriftId, String fieldName) {
24233
        _thriftId = thriftId;
24234
        _fieldName = fieldName;
24235
      }
24236
 
24237
      public short getThriftFieldId() {
24238
        return _thriftId;
24239
      }
24240
 
24241
      public String getFieldName() {
24242
        return _fieldName;
24243
      }
24244
    }
24245
 
24246
    // isset id assignments
24247
 
24248
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24249
    static {
24250
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24251
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24252
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24253
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
24254
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24255
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemKeysToBeProcessed_result.class, metaDataMap);
24256
    }
24257
 
24258
    public getItemKeysToBeProcessed_result() {
24259
    }
24260
 
24261
    public getItemKeysToBeProcessed_result(
24262
      List<String> success)
24263
    {
24264
      this();
24265
      this.success = success;
24266
    }
24267
 
24268
    /**
24269
     * Performs a deep copy on <i>other</i>.
24270
     */
24271
    public getItemKeysToBeProcessed_result(getItemKeysToBeProcessed_result other) {
24272
      if (other.isSetSuccess()) {
24273
        List<String> __this__success = new ArrayList<String>();
24274
        for (String other_element : other.success) {
24275
          __this__success.add(other_element);
24276
        }
24277
        this.success = __this__success;
24278
      }
24279
    }
24280
 
24281
    public getItemKeysToBeProcessed_result deepCopy() {
24282
      return new getItemKeysToBeProcessed_result(this);
24283
    }
24284
 
24285
    @Override
24286
    public void clear() {
24287
      this.success = null;
24288
    }
24289
 
24290
    public int getSuccessSize() {
24291
      return (this.success == null) ? 0 : this.success.size();
24292
    }
24293
 
24294
    public java.util.Iterator<String> getSuccessIterator() {
24295
      return (this.success == null) ? null : this.success.iterator();
24296
    }
24297
 
24298
    public void addToSuccess(String elem) {
24299
      if (this.success == null) {
24300
        this.success = new ArrayList<String>();
24301
      }
24302
      this.success.add(elem);
24303
    }
24304
 
24305
    public List<String> getSuccess() {
24306
      return this.success;
24307
    }
24308
 
24309
    public void setSuccess(List<String> success) {
24310
      this.success = success;
24311
    }
24312
 
24313
    public void unsetSuccess() {
24314
      this.success = null;
24315
    }
24316
 
24317
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24318
    public boolean isSetSuccess() {
24319
      return this.success != null;
24320
    }
24321
 
24322
    public void setSuccessIsSet(boolean value) {
24323
      if (!value) {
24324
        this.success = null;
24325
      }
24326
    }
24327
 
24328
    public void setFieldValue(_Fields field, Object value) {
24329
      switch (field) {
24330
      case SUCCESS:
24331
        if (value == null) {
24332
          unsetSuccess();
24333
        } else {
24334
          setSuccess((List<String>)value);
24335
        }
24336
        break;
24337
 
24338
      }
24339
    }
24340
 
24341
    public Object getFieldValue(_Fields field) {
24342
      switch (field) {
24343
      case SUCCESS:
24344
        return getSuccess();
24345
 
24346
      }
24347
      throw new IllegalStateException();
24348
    }
24349
 
24350
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24351
    public boolean isSet(_Fields field) {
24352
      if (field == null) {
24353
        throw new IllegalArgumentException();
24354
      }
24355
 
24356
      switch (field) {
24357
      case SUCCESS:
24358
        return isSetSuccess();
24359
      }
24360
      throw new IllegalStateException();
24361
    }
24362
 
24363
    @Override
24364
    public boolean equals(Object that) {
24365
      if (that == null)
24366
        return false;
24367
      if (that instanceof getItemKeysToBeProcessed_result)
24368
        return this.equals((getItemKeysToBeProcessed_result)that);
24369
      return false;
24370
    }
24371
 
24372
    public boolean equals(getItemKeysToBeProcessed_result that) {
24373
      if (that == null)
24374
        return false;
24375
 
24376
      boolean this_present_success = true && this.isSetSuccess();
24377
      boolean that_present_success = true && that.isSetSuccess();
24378
      if (this_present_success || that_present_success) {
24379
        if (!(this_present_success && that_present_success))
24380
          return false;
24381
        if (!this.success.equals(that.success))
24382
          return false;
24383
      }
24384
 
24385
      return true;
24386
    }
24387
 
24388
    @Override
24389
    public int hashCode() {
24390
      return 0;
24391
    }
24392
 
24393
    public int compareTo(getItemKeysToBeProcessed_result other) {
24394
      if (!getClass().equals(other.getClass())) {
24395
        return getClass().getName().compareTo(other.getClass().getName());
24396
      }
24397
 
24398
      int lastComparison = 0;
24399
      getItemKeysToBeProcessed_result typedOther = (getItemKeysToBeProcessed_result)other;
24400
 
24401
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24402
      if (lastComparison != 0) {
24403
        return lastComparison;
24404
      }
24405
      if (isSetSuccess()) {
24406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24407
        if (lastComparison != 0) {
24408
          return lastComparison;
24409
        }
24410
      }
24411
      return 0;
24412
    }
24413
 
24414
    public _Fields fieldForId(int fieldId) {
24415
      return _Fields.findByThriftId(fieldId);
24416
    }
24417
 
24418
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24419
      org.apache.thrift.protocol.TField field;
24420
      iprot.readStructBegin();
24421
      while (true)
24422
      {
24423
        field = iprot.readFieldBegin();
24424
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24425
          break;
24426
        }
24427
        switch (field.id) {
24428
          case 0: // SUCCESS
24429
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24430
              {
24431
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
24432
                this.success = new ArrayList<String>(_list52.size);
24433
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
24434
                {
24435
                  String _elem54; // required
24436
                  _elem54 = iprot.readString();
24437
                  this.success.add(_elem54);
24438
                }
24439
                iprot.readListEnd();
24440
              }
24441
            } else { 
24442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24443
            }
24444
            break;
24445
          default:
24446
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24447
        }
24448
        iprot.readFieldEnd();
24449
      }
24450
      iprot.readStructEnd();
24451
      validate();
24452
    }
24453
 
24454
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24455
      oprot.writeStructBegin(STRUCT_DESC);
24456
 
24457
      if (this.isSetSuccess()) {
24458
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24459
        {
24460
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
24461
          for (String _iter55 : this.success)
24462
          {
24463
            oprot.writeString(_iter55);
24464
          }
24465
          oprot.writeListEnd();
24466
        }
24467
        oprot.writeFieldEnd();
24468
      }
24469
      oprot.writeFieldStop();
24470
      oprot.writeStructEnd();
24471
    }
24472
 
24473
    @Override
24474
    public String toString() {
24475
      StringBuilder sb = new StringBuilder("getItemKeysToBeProcessed_result(");
24476
      boolean first = true;
24477
 
24478
      sb.append("success:");
24479
      if (this.success == null) {
24480
        sb.append("null");
24481
      } else {
24482
        sb.append(this.success);
24483
      }
24484
      first = false;
24485
      sb.append(")");
24486
      return sb.toString();
24487
    }
24488
 
24489
    public void validate() throws org.apache.thrift.TException {
24490
      // check for required fields
24491
    }
24492
 
24493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24494
      try {
24495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24496
      } catch (org.apache.thrift.TException te) {
24497
        throw new java.io.IOException(te);
24498
      }
24499
    }
24500
 
24501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24502
      try {
24503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24504
      } catch (org.apache.thrift.TException te) {
24505
        throw new java.io.IOException(te);
24506
      }
24507
    }
24508
 
24509
  }
24510
 
24511
  public static class markMissedInventoryUpdatesAsProcessed_args implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_args, markMissedInventoryUpdatesAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
24512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_args");
24513
 
24514
    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);
24515
    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);
24516
 
24517
    private String itemKey; // required
24518
    private long warehouseId; // required
24519
 
24520
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24521
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24522
      ITEM_KEY((short)1, "itemKey"),
24523
      WAREHOUSE_ID((short)2, "warehouseId");
24524
 
24525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24526
 
24527
      static {
24528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24529
          byName.put(field.getFieldName(), field);
24530
        }
24531
      }
24532
 
24533
      /**
24534
       * Find the _Fields constant that matches fieldId, or null if its not found.
24535
       */
24536
      public static _Fields findByThriftId(int fieldId) {
24537
        switch(fieldId) {
24538
          case 1: // ITEM_KEY
24539
            return ITEM_KEY;
24540
          case 2: // WAREHOUSE_ID
24541
            return WAREHOUSE_ID;
24542
          default:
24543
            return null;
24544
        }
24545
      }
24546
 
24547
      /**
24548
       * Find the _Fields constant that matches fieldId, throwing an exception
24549
       * if it is not found.
24550
       */
24551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24552
        _Fields fields = findByThriftId(fieldId);
24553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24554
        return fields;
24555
      }
24556
 
24557
      /**
24558
       * Find the _Fields constant that matches name, or null if its not found.
24559
       */
24560
      public static _Fields findByName(String name) {
24561
        return byName.get(name);
24562
      }
24563
 
24564
      private final short _thriftId;
24565
      private final String _fieldName;
24566
 
24567
      _Fields(short thriftId, String fieldName) {
24568
        _thriftId = thriftId;
24569
        _fieldName = fieldName;
24570
      }
24571
 
24572
      public short getThriftFieldId() {
24573
        return _thriftId;
24574
      }
24575
 
24576
      public String getFieldName() {
24577
        return _fieldName;
24578
      }
24579
    }
24580
 
24581
    // isset id assignments
24582
    private static final int __WAREHOUSEID_ISSET_ID = 0;
24583
    private BitSet __isset_bit_vector = new BitSet(1);
24584
 
24585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24586
    static {
24587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24588
      tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24590
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24591
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24592
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24593
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_args.class, metaDataMap);
24594
    }
24595
 
24596
    public markMissedInventoryUpdatesAsProcessed_args() {
24597
    }
24598
 
24599
    public markMissedInventoryUpdatesAsProcessed_args(
24600
      String itemKey,
24601
      long warehouseId)
24602
    {
24603
      this();
24604
      this.itemKey = itemKey;
24605
      this.warehouseId = warehouseId;
24606
      setWarehouseIdIsSet(true);
24607
    }
24608
 
24609
    /**
24610
     * Performs a deep copy on <i>other</i>.
24611
     */
24612
    public markMissedInventoryUpdatesAsProcessed_args(markMissedInventoryUpdatesAsProcessed_args other) {
24613
      __isset_bit_vector.clear();
24614
      __isset_bit_vector.or(other.__isset_bit_vector);
24615
      if (other.isSetItemKey()) {
24616
        this.itemKey = other.itemKey;
24617
      }
24618
      this.warehouseId = other.warehouseId;
24619
    }
24620
 
24621
    public markMissedInventoryUpdatesAsProcessed_args deepCopy() {
24622
      return new markMissedInventoryUpdatesAsProcessed_args(this);
24623
    }
24624
 
24625
    @Override
24626
    public void clear() {
24627
      this.itemKey = null;
24628
      setWarehouseIdIsSet(false);
24629
      this.warehouseId = 0;
24630
    }
24631
 
24632
    public String getItemKey() {
24633
      return this.itemKey;
24634
    }
24635
 
24636
    public void setItemKey(String itemKey) {
24637
      this.itemKey = itemKey;
24638
    }
24639
 
24640
    public void unsetItemKey() {
24641
      this.itemKey = null;
24642
    }
24643
 
24644
    /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
24645
    public boolean isSetItemKey() {
24646
      return this.itemKey != null;
24647
    }
24648
 
24649
    public void setItemKeyIsSet(boolean value) {
24650
      if (!value) {
24651
        this.itemKey = null;
24652
      }
24653
    }
24654
 
24655
    public long getWarehouseId() {
24656
      return this.warehouseId;
24657
    }
24658
 
24659
    public void setWarehouseId(long warehouseId) {
24660
      this.warehouseId = warehouseId;
24661
      setWarehouseIdIsSet(true);
24662
    }
24663
 
24664
    public void unsetWarehouseId() {
24665
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
24666
    }
24667
 
24668
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
24669
    public boolean isSetWarehouseId() {
24670
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
24671
    }
24672
 
24673
    public void setWarehouseIdIsSet(boolean value) {
24674
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
24675
    }
24676
 
24677
    public void setFieldValue(_Fields field, Object value) {
24678
      switch (field) {
24679
      case ITEM_KEY:
24680
        if (value == null) {
24681
          unsetItemKey();
24682
        } else {
24683
          setItemKey((String)value);
24684
        }
24685
        break;
24686
 
24687
      case WAREHOUSE_ID:
24688
        if (value == null) {
24689
          unsetWarehouseId();
24690
        } else {
24691
          setWarehouseId((Long)value);
24692
        }
24693
        break;
24694
 
24695
      }
24696
    }
24697
 
24698
    public Object getFieldValue(_Fields field) {
24699
      switch (field) {
24700
      case ITEM_KEY:
24701
        return getItemKey();
24702
 
24703
      case WAREHOUSE_ID:
24704
        return Long.valueOf(getWarehouseId());
24705
 
24706
      }
24707
      throw new IllegalStateException();
24708
    }
24709
 
24710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24711
    public boolean isSet(_Fields field) {
24712
      if (field == null) {
24713
        throw new IllegalArgumentException();
24714
      }
24715
 
24716
      switch (field) {
24717
      case ITEM_KEY:
24718
        return isSetItemKey();
24719
      case WAREHOUSE_ID:
24720
        return isSetWarehouseId();
24721
      }
24722
      throw new IllegalStateException();
24723
    }
24724
 
24725
    @Override
24726
    public boolean equals(Object that) {
24727
      if (that == null)
24728
        return false;
24729
      if (that instanceof markMissedInventoryUpdatesAsProcessed_args)
24730
        return this.equals((markMissedInventoryUpdatesAsProcessed_args)that);
24731
      return false;
24732
    }
24733
 
24734
    public boolean equals(markMissedInventoryUpdatesAsProcessed_args that) {
24735
      if (that == null)
24736
        return false;
24737
 
24738
      boolean this_present_itemKey = true && this.isSetItemKey();
24739
      boolean that_present_itemKey = true && that.isSetItemKey();
24740
      if (this_present_itemKey || that_present_itemKey) {
24741
        if (!(this_present_itemKey && that_present_itemKey))
24742
          return false;
24743
        if (!this.itemKey.equals(that.itemKey))
24744
          return false;
24745
      }
24746
 
24747
      boolean this_present_warehouseId = true;
24748
      boolean that_present_warehouseId = true;
24749
      if (this_present_warehouseId || that_present_warehouseId) {
24750
        if (!(this_present_warehouseId && that_present_warehouseId))
24751
          return false;
24752
        if (this.warehouseId != that.warehouseId)
24753
          return false;
24754
      }
24755
 
24756
      return true;
24757
    }
24758
 
24759
    @Override
24760
    public int hashCode() {
24761
      return 0;
24762
    }
24763
 
24764
    public int compareTo(markMissedInventoryUpdatesAsProcessed_args other) {
24765
      if (!getClass().equals(other.getClass())) {
24766
        return getClass().getName().compareTo(other.getClass().getName());
24767
      }
24768
 
24769
      int lastComparison = 0;
24770
      markMissedInventoryUpdatesAsProcessed_args typedOther = (markMissedInventoryUpdatesAsProcessed_args)other;
24771
 
24772
      lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
24773
      if (lastComparison != 0) {
24774
        return lastComparison;
24775
      }
24776
      if (isSetItemKey()) {
24777
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
24778
        if (lastComparison != 0) {
24779
          return lastComparison;
24780
        }
24781
      }
24782
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
24783
      if (lastComparison != 0) {
24784
        return lastComparison;
24785
      }
24786
      if (isSetWarehouseId()) {
24787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
24788
        if (lastComparison != 0) {
24789
          return lastComparison;
24790
        }
24791
      }
24792
      return 0;
24793
    }
24794
 
24795
    public _Fields fieldForId(int fieldId) {
24796
      return _Fields.findByThriftId(fieldId);
24797
    }
24798
 
24799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24800
      org.apache.thrift.protocol.TField field;
24801
      iprot.readStructBegin();
24802
      while (true)
24803
      {
24804
        field = iprot.readFieldBegin();
24805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24806
          break;
24807
        }
24808
        switch (field.id) {
24809
          case 1: // ITEM_KEY
24810
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24811
              this.itemKey = iprot.readString();
24812
            } else { 
24813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24814
            }
24815
            break;
24816
          case 2: // WAREHOUSE_ID
24817
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24818
              this.warehouseId = iprot.readI64();
24819
              setWarehouseIdIsSet(true);
24820
            } else { 
24821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24822
            }
24823
            break;
24824
          default:
24825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24826
        }
24827
        iprot.readFieldEnd();
24828
      }
24829
      iprot.readStructEnd();
24830
      validate();
24831
    }
24832
 
24833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24834
      validate();
24835
 
24836
      oprot.writeStructBegin(STRUCT_DESC);
24837
      if (this.itemKey != null) {
24838
        oprot.writeFieldBegin(ITEM_KEY_FIELD_DESC);
24839
        oprot.writeString(this.itemKey);
24840
        oprot.writeFieldEnd();
24841
      }
24842
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
24843
      oprot.writeI64(this.warehouseId);
24844
      oprot.writeFieldEnd();
24845
      oprot.writeFieldStop();
24846
      oprot.writeStructEnd();
24847
    }
24848
 
24849
    @Override
24850
    public String toString() {
24851
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_args(");
24852
      boolean first = true;
24853
 
24854
      sb.append("itemKey:");
24855
      if (this.itemKey == null) {
24856
        sb.append("null");
24857
      } else {
24858
        sb.append(this.itemKey);
24859
      }
24860
      first = false;
24861
      if (!first) sb.append(", ");
24862
      sb.append("warehouseId:");
24863
      sb.append(this.warehouseId);
24864
      first = false;
24865
      sb.append(")");
24866
      return sb.toString();
24867
    }
24868
 
24869
    public void validate() throws org.apache.thrift.TException {
24870
      // check for required fields
24871
    }
24872
 
24873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24874
      try {
24875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24876
      } catch (org.apache.thrift.TException te) {
24877
        throw new java.io.IOException(te);
24878
      }
24879
    }
24880
 
24881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24882
      try {
24883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24884
      } catch (org.apache.thrift.TException te) {
24885
        throw new java.io.IOException(te);
24886
      }
24887
    }
24888
 
24889
  }
24890
 
24891
  public static class markMissedInventoryUpdatesAsProcessed_result implements org.apache.thrift.TBase<markMissedInventoryUpdatesAsProcessed_result, markMissedInventoryUpdatesAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
24892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMissedInventoryUpdatesAsProcessed_result");
24893
 
24894
 
24895
 
24896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24898
;
24899
 
24900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24901
 
24902
      static {
24903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24904
          byName.put(field.getFieldName(), field);
24905
        }
24906
      }
24907
 
24908
      /**
24909
       * Find the _Fields constant that matches fieldId, or null if its not found.
24910
       */
24911
      public static _Fields findByThriftId(int fieldId) {
24912
        switch(fieldId) {
24913
          default:
24914
            return null;
24915
        }
24916
      }
24917
 
24918
      /**
24919
       * Find the _Fields constant that matches fieldId, throwing an exception
24920
       * if it is not found.
24921
       */
24922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24923
        _Fields fields = findByThriftId(fieldId);
24924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24925
        return fields;
24926
      }
24927
 
24928
      /**
24929
       * Find the _Fields constant that matches name, or null if its not found.
24930
       */
24931
      public static _Fields findByName(String name) {
24932
        return byName.get(name);
24933
      }
24934
 
24935
      private final short _thriftId;
24936
      private final String _fieldName;
24937
 
24938
      _Fields(short thriftId, String fieldName) {
24939
        _thriftId = thriftId;
24940
        _fieldName = fieldName;
24941
      }
24942
 
24943
      public short getThriftFieldId() {
24944
        return _thriftId;
24945
      }
24946
 
24947
      public String getFieldName() {
24948
        return _fieldName;
24949
      }
24950
    }
24951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24952
    static {
24953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMissedInventoryUpdatesAsProcessed_result.class, metaDataMap);
24956
    }
24957
 
24958
    public markMissedInventoryUpdatesAsProcessed_result() {
24959
    }
24960
 
24961
    /**
24962
     * Performs a deep copy on <i>other</i>.
24963
     */
24964
    public markMissedInventoryUpdatesAsProcessed_result(markMissedInventoryUpdatesAsProcessed_result other) {
24965
    }
24966
 
24967
    public markMissedInventoryUpdatesAsProcessed_result deepCopy() {
24968
      return new markMissedInventoryUpdatesAsProcessed_result(this);
24969
    }
24970
 
24971
    @Override
24972
    public void clear() {
24973
    }
24974
 
24975
    public void setFieldValue(_Fields field, Object value) {
24976
      switch (field) {
24977
      }
24978
    }
24979
 
24980
    public Object getFieldValue(_Fields field) {
24981
      switch (field) {
24982
      }
24983
      throw new IllegalStateException();
24984
    }
24985
 
24986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24987
    public boolean isSet(_Fields field) {
24988
      if (field == null) {
24989
        throw new IllegalArgumentException();
24990
      }
24991
 
24992
      switch (field) {
24993
      }
24994
      throw new IllegalStateException();
24995
    }
24996
 
24997
    @Override
24998
    public boolean equals(Object that) {
24999
      if (that == null)
25000
        return false;
25001
      if (that instanceof markMissedInventoryUpdatesAsProcessed_result)
25002
        return this.equals((markMissedInventoryUpdatesAsProcessed_result)that);
25003
      return false;
25004
    }
25005
 
25006
    public boolean equals(markMissedInventoryUpdatesAsProcessed_result that) {
25007
      if (that == null)
25008
        return false;
25009
 
25010
      return true;
25011
    }
25012
 
25013
    @Override
25014
    public int hashCode() {
25015
      return 0;
25016
    }
25017
 
25018
    public int compareTo(markMissedInventoryUpdatesAsProcessed_result other) {
25019
      if (!getClass().equals(other.getClass())) {
25020
        return getClass().getName().compareTo(other.getClass().getName());
25021
      }
25022
 
25023
      int lastComparison = 0;
25024
      markMissedInventoryUpdatesAsProcessed_result typedOther = (markMissedInventoryUpdatesAsProcessed_result)other;
25025
 
25026
      return 0;
25027
    }
25028
 
25029
    public _Fields fieldForId(int fieldId) {
25030
      return _Fields.findByThriftId(fieldId);
25031
    }
25032
 
25033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25034
      org.apache.thrift.protocol.TField field;
25035
      iprot.readStructBegin();
25036
      while (true)
25037
      {
25038
        field = iprot.readFieldBegin();
25039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25040
          break;
25041
        }
25042
        switch (field.id) {
25043
          default:
25044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25045
        }
25046
        iprot.readFieldEnd();
25047
      }
25048
      iprot.readStructEnd();
25049
      validate();
25050
    }
25051
 
25052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25053
      oprot.writeStructBegin(STRUCT_DESC);
25054
 
25055
      oprot.writeFieldStop();
25056
      oprot.writeStructEnd();
25057
    }
25058
 
25059
    @Override
25060
    public String toString() {
25061
      StringBuilder sb = new StringBuilder("markMissedInventoryUpdatesAsProcessed_result(");
25062
      boolean first = true;
25063
 
25064
      sb.append(")");
25065
      return sb.toString();
25066
    }
25067
 
25068
    public void validate() throws org.apache.thrift.TException {
25069
      // check for required fields
25070
    }
25071
 
25072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25073
      try {
25074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25075
      } catch (org.apache.thrift.TException te) {
25076
        throw new java.io.IOException(te);
25077
      }
25078
    }
25079
 
25080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25081
      try {
25082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25083
      } catch (org.apache.thrift.TException te) {
25084
        throw new java.io.IOException(te);
25085
      }
25086
    }
25087
 
25088
  }
25089
 
25090
  public static class getIgnoredItemKeys_args implements org.apache.thrift.TBase<getIgnoredItemKeys_args, getIgnoredItemKeys_args._Fields>, java.io.Serializable, Cloneable   {
25091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_args");
25092
 
25093
 
25094
 
25095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25097
;
25098
 
25099
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25100
 
25101
      static {
25102
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25103
          byName.put(field.getFieldName(), field);
25104
        }
25105
      }
25106
 
25107
      /**
25108
       * Find the _Fields constant that matches fieldId, or null if its not found.
25109
       */
25110
      public static _Fields findByThriftId(int fieldId) {
25111
        switch(fieldId) {
25112
          default:
25113
            return null;
25114
        }
25115
      }
25116
 
25117
      /**
25118
       * Find the _Fields constant that matches fieldId, throwing an exception
25119
       * if it is not found.
25120
       */
25121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25122
        _Fields fields = findByThriftId(fieldId);
25123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25124
        return fields;
25125
      }
25126
 
25127
      /**
25128
       * Find the _Fields constant that matches name, or null if its not found.
25129
       */
25130
      public static _Fields findByName(String name) {
25131
        return byName.get(name);
25132
      }
25133
 
25134
      private final short _thriftId;
25135
      private final String _fieldName;
25136
 
25137
      _Fields(short thriftId, String fieldName) {
25138
        _thriftId = thriftId;
25139
        _fieldName = fieldName;
25140
      }
25141
 
25142
      public short getThriftFieldId() {
25143
        return _thriftId;
25144
      }
25145
 
25146
      public String getFieldName() {
25147
        return _fieldName;
25148
      }
25149
    }
25150
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25151
    static {
25152
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25153
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25154
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_args.class, metaDataMap);
25155
    }
25156
 
25157
    public getIgnoredItemKeys_args() {
25158
    }
25159
 
25160
    /**
25161
     * Performs a deep copy on <i>other</i>.
25162
     */
25163
    public getIgnoredItemKeys_args(getIgnoredItemKeys_args other) {
25164
    }
25165
 
25166
    public getIgnoredItemKeys_args deepCopy() {
25167
      return new getIgnoredItemKeys_args(this);
25168
    }
25169
 
25170
    @Override
25171
    public void clear() {
25172
    }
25173
 
25174
    public void setFieldValue(_Fields field, Object value) {
25175
      switch (field) {
25176
      }
25177
    }
25178
 
25179
    public Object getFieldValue(_Fields field) {
25180
      switch (field) {
25181
      }
25182
      throw new IllegalStateException();
25183
    }
25184
 
25185
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25186
    public boolean isSet(_Fields field) {
25187
      if (field == null) {
25188
        throw new IllegalArgumentException();
25189
      }
25190
 
25191
      switch (field) {
25192
      }
25193
      throw new IllegalStateException();
25194
    }
25195
 
25196
    @Override
25197
    public boolean equals(Object that) {
25198
      if (that == null)
25199
        return false;
25200
      if (that instanceof getIgnoredItemKeys_args)
25201
        return this.equals((getIgnoredItemKeys_args)that);
25202
      return false;
25203
    }
25204
 
25205
    public boolean equals(getIgnoredItemKeys_args that) {
25206
      if (that == null)
25207
        return false;
25208
 
25209
      return true;
25210
    }
25211
 
25212
    @Override
25213
    public int hashCode() {
25214
      return 0;
25215
    }
25216
 
25217
    public int compareTo(getIgnoredItemKeys_args other) {
25218
      if (!getClass().equals(other.getClass())) {
25219
        return getClass().getName().compareTo(other.getClass().getName());
25220
      }
25221
 
25222
      int lastComparison = 0;
25223
      getIgnoredItemKeys_args typedOther = (getIgnoredItemKeys_args)other;
25224
 
25225
      return 0;
25226
    }
25227
 
25228
    public _Fields fieldForId(int fieldId) {
25229
      return _Fields.findByThriftId(fieldId);
25230
    }
25231
 
25232
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25233
      org.apache.thrift.protocol.TField field;
25234
      iprot.readStructBegin();
25235
      while (true)
25236
      {
25237
        field = iprot.readFieldBegin();
25238
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25239
          break;
25240
        }
25241
        switch (field.id) {
25242
          default:
25243
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25244
        }
25245
        iprot.readFieldEnd();
25246
      }
25247
      iprot.readStructEnd();
25248
      validate();
25249
    }
25250
 
25251
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25252
      validate();
25253
 
25254
      oprot.writeStructBegin(STRUCT_DESC);
25255
      oprot.writeFieldStop();
25256
      oprot.writeStructEnd();
25257
    }
25258
 
25259
    @Override
25260
    public String toString() {
25261
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_args(");
25262
      boolean first = true;
25263
 
25264
      sb.append(")");
25265
      return sb.toString();
25266
    }
25267
 
25268
    public void validate() throws org.apache.thrift.TException {
25269
      // check for required fields
25270
    }
25271
 
25272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25273
      try {
25274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25275
      } catch (org.apache.thrift.TException te) {
25276
        throw new java.io.IOException(te);
25277
      }
25278
    }
25279
 
25280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25281
      try {
25282
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25283
      } catch (org.apache.thrift.TException te) {
25284
        throw new java.io.IOException(te);
25285
      }
25286
    }
25287
 
25288
  }
25289
 
25290
  public static class getIgnoredItemKeys_result implements org.apache.thrift.TBase<getIgnoredItemKeys_result, getIgnoredItemKeys_result._Fields>, java.io.Serializable, Cloneable   {
25291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredItemKeys_result");
25292
 
25293
    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);
25294
 
25295
    private Map<String,Map<Long,Long>> success; // required
25296
 
25297
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25298
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25299
      SUCCESS((short)0, "success");
25300
 
25301
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25302
 
25303
      static {
25304
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25305
          byName.put(field.getFieldName(), field);
25306
        }
25307
      }
25308
 
25309
      /**
25310
       * Find the _Fields constant that matches fieldId, or null if its not found.
25311
       */
25312
      public static _Fields findByThriftId(int fieldId) {
25313
        switch(fieldId) {
25314
          case 0: // SUCCESS
25315
            return SUCCESS;
25316
          default:
25317
            return null;
25318
        }
25319
      }
25320
 
25321
      /**
25322
       * Find the _Fields constant that matches fieldId, throwing an exception
25323
       * if it is not found.
25324
       */
25325
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25326
        _Fields fields = findByThriftId(fieldId);
25327
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25328
        return fields;
25329
      }
25330
 
25331
      /**
25332
       * Find the _Fields constant that matches name, or null if its not found.
25333
       */
25334
      public static _Fields findByName(String name) {
25335
        return byName.get(name);
25336
      }
25337
 
25338
      private final short _thriftId;
25339
      private final String _fieldName;
25340
 
25341
      _Fields(short thriftId, String fieldName) {
25342
        _thriftId = thriftId;
25343
        _fieldName = fieldName;
25344
      }
25345
 
25346
      public short getThriftFieldId() {
25347
        return _thriftId;
25348
      }
25349
 
25350
      public String getFieldName() {
25351
        return _fieldName;
25352
      }
25353
    }
25354
 
25355
    // isset id assignments
25356
 
25357
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25358
    static {
25359
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25360
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25361
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
25362
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
25363
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
25364
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
25365
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
25366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredItemKeys_result.class, metaDataMap);
25368
    }
25369
 
25370
    public getIgnoredItemKeys_result() {
25371
    }
25372
 
25373
    public getIgnoredItemKeys_result(
25374
      Map<String,Map<Long,Long>> success)
25375
    {
25376
      this();
25377
      this.success = success;
25378
    }
25379
 
25380
    /**
25381
     * Performs a deep copy on <i>other</i>.
25382
     */
25383
    public getIgnoredItemKeys_result(getIgnoredItemKeys_result other) {
25384
      if (other.isSetSuccess()) {
25385
        Map<String,Map<Long,Long>> __this__success = new HashMap<String,Map<Long,Long>>();
25386
        for (Map.Entry<String, Map<Long,Long>> other_element : other.success.entrySet()) {
25387
 
25388
          String other_element_key = other_element.getKey();
25389
          Map<Long,Long> other_element_value = other_element.getValue();
25390
 
25391
          String __this__success_copy_key = other_element_key;
25392
 
25393
          Map<Long,Long> __this__success_copy_value = new HashMap<Long,Long>();
25394
          for (Map.Entry<Long, Long> other_element_value_element : other_element_value.entrySet()) {
25395
 
25396
            Long other_element_value_element_key = other_element_value_element.getKey();
25397
            Long other_element_value_element_value = other_element_value_element.getValue();
25398
 
25399
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
25400
 
25401
            Long __this__success_copy_value_copy_value = other_element_value_element_value;
25402
 
25403
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
25404
          }
25405
 
25406
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
25407
        }
25408
        this.success = __this__success;
25409
      }
25410
    }
25411
 
25412
    public getIgnoredItemKeys_result deepCopy() {
25413
      return new getIgnoredItemKeys_result(this);
25414
    }
25415
 
25416
    @Override
25417
    public void clear() {
25418
      this.success = null;
25419
    }
25420
 
25421
    public int getSuccessSize() {
25422
      return (this.success == null) ? 0 : this.success.size();
25423
    }
25424
 
25425
    public void putToSuccess(String key, Map<Long,Long> val) {
25426
      if (this.success == null) {
25427
        this.success = new HashMap<String,Map<Long,Long>>();
25428
      }
25429
      this.success.put(key, val);
25430
    }
25431
 
25432
    public Map<String,Map<Long,Long>> getSuccess() {
25433
      return this.success;
25434
    }
25435
 
25436
    public void setSuccess(Map<String,Map<Long,Long>> success) {
25437
      this.success = success;
25438
    }
25439
 
25440
    public void unsetSuccess() {
25441
      this.success = null;
25442
    }
25443
 
25444
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25445
    public boolean isSetSuccess() {
25446
      return this.success != null;
25447
    }
25448
 
25449
    public void setSuccessIsSet(boolean value) {
25450
      if (!value) {
25451
        this.success = null;
25452
      }
25453
    }
25454
 
25455
    public void setFieldValue(_Fields field, Object value) {
25456
      switch (field) {
25457
      case SUCCESS:
25458
        if (value == null) {
25459
          unsetSuccess();
25460
        } else {
25461
          setSuccess((Map<String,Map<Long,Long>>)value);
25462
        }
25463
        break;
25464
 
25465
      }
25466
    }
25467
 
25468
    public Object getFieldValue(_Fields field) {
25469
      switch (field) {
25470
      case SUCCESS:
25471
        return getSuccess();
25472
 
25473
      }
25474
      throw new IllegalStateException();
25475
    }
25476
 
25477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25478
    public boolean isSet(_Fields field) {
25479
      if (field == null) {
25480
        throw new IllegalArgumentException();
25481
      }
25482
 
25483
      switch (field) {
25484
      case SUCCESS:
25485
        return isSetSuccess();
25486
      }
25487
      throw new IllegalStateException();
25488
    }
25489
 
25490
    @Override
25491
    public boolean equals(Object that) {
25492
      if (that == null)
25493
        return false;
25494
      if (that instanceof getIgnoredItemKeys_result)
25495
        return this.equals((getIgnoredItemKeys_result)that);
25496
      return false;
25497
    }
25498
 
25499
    public boolean equals(getIgnoredItemKeys_result that) {
25500
      if (that == null)
25501
        return false;
25502
 
25503
      boolean this_present_success = true && this.isSetSuccess();
25504
      boolean that_present_success = true && that.isSetSuccess();
25505
      if (this_present_success || that_present_success) {
25506
        if (!(this_present_success && that_present_success))
25507
          return false;
25508
        if (!this.success.equals(that.success))
25509
          return false;
25510
      }
25511
 
25512
      return true;
25513
    }
25514
 
25515
    @Override
25516
    public int hashCode() {
25517
      return 0;
25518
    }
25519
 
25520
    public int compareTo(getIgnoredItemKeys_result other) {
25521
      if (!getClass().equals(other.getClass())) {
25522
        return getClass().getName().compareTo(other.getClass().getName());
25523
      }
25524
 
25525
      int lastComparison = 0;
25526
      getIgnoredItemKeys_result typedOther = (getIgnoredItemKeys_result)other;
25527
 
25528
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25529
      if (lastComparison != 0) {
25530
        return lastComparison;
25531
      }
25532
      if (isSetSuccess()) {
25533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25534
        if (lastComparison != 0) {
25535
          return lastComparison;
25536
        }
25537
      }
25538
      return 0;
25539
    }
25540
 
25541
    public _Fields fieldForId(int fieldId) {
25542
      return _Fields.findByThriftId(fieldId);
25543
    }
25544
 
25545
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25546
      org.apache.thrift.protocol.TField field;
25547
      iprot.readStructBegin();
25548
      while (true)
25549
      {
25550
        field = iprot.readFieldBegin();
25551
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25552
          break;
25553
        }
25554
        switch (field.id) {
25555
          case 0: // SUCCESS
25556
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
25557
              {
25558
                org.apache.thrift.protocol.TMap _map56 = iprot.readMapBegin();
25559
                this.success = new HashMap<String,Map<Long,Long>>(2*_map56.size);
25560
                for (int _i57 = 0; _i57 < _map56.size; ++_i57)
25561
                {
25562
                  String _key58; // required
25563
                  Map<Long,Long> _val59; // required
25564
                  _key58 = iprot.readString();
25565
                  {
25566
                    org.apache.thrift.protocol.TMap _map60 = iprot.readMapBegin();
25567
                    _val59 = new HashMap<Long,Long>(2*_map60.size);
25568
                    for (int _i61 = 0; _i61 < _map60.size; ++_i61)
25569
                    {
25570
                      long _key62; // required
25571
                      long _val63; // required
25572
                      _key62 = iprot.readI64();
25573
                      _val63 = iprot.readI64();
25574
                      _val59.put(_key62, _val63);
25575
                    }
25576
                    iprot.readMapEnd();
25577
                  }
25578
                  this.success.put(_key58, _val59);
25579
                }
25580
                iprot.readMapEnd();
25581
              }
25582
            } else { 
25583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25584
            }
25585
            break;
25586
          default:
25587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25588
        }
25589
        iprot.readFieldEnd();
25590
      }
25591
      iprot.readStructEnd();
25592
      validate();
25593
    }
25594
 
25595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25596
      oprot.writeStructBegin(STRUCT_DESC);
25597
 
25598
      if (this.isSetSuccess()) {
25599
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25600
        {
25601
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, this.success.size()));
25602
          for (Map.Entry<String, Map<Long,Long>> _iter64 : this.success.entrySet())
25603
          {
25604
            oprot.writeString(_iter64.getKey());
25605
            {
25606
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, _iter64.getValue().size()));
25607
              for (Map.Entry<Long, Long> _iter65 : _iter64.getValue().entrySet())
25608
              {
25609
                oprot.writeI64(_iter65.getKey());
25610
                oprot.writeI64(_iter65.getValue());
25611
              }
25612
              oprot.writeMapEnd();
25613
            }
25614
          }
25615
          oprot.writeMapEnd();
25616
        }
25617
        oprot.writeFieldEnd();
25618
      }
25619
      oprot.writeFieldStop();
25620
      oprot.writeStructEnd();
25621
    }
25622
 
25623
    @Override
25624
    public String toString() {
25625
      StringBuilder sb = new StringBuilder("getIgnoredItemKeys_result(");
25626
      boolean first = true;
25627
 
25628
      sb.append("success:");
25629
      if (this.success == null) {
25630
        sb.append("null");
25631
      } else {
25632
        sb.append(this.success);
25633
      }
25634
      first = false;
25635
      sb.append(")");
25636
      return sb.toString();
25637
    }
25638
 
25639
    public void validate() throws org.apache.thrift.TException {
25640
      // check for required fields
25641
    }
25642
 
25643
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25644
      try {
25645
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25646
      } catch (org.apache.thrift.TException te) {
25647
        throw new java.io.IOException(te);
25648
      }
25649
    }
25650
 
25651
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25652
      try {
25653
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25654
      } catch (org.apache.thrift.TException te) {
25655
        throw new java.io.IOException(te);
25656
      }
25657
    }
25658
 
25659
  }
25660
 
25661
  public static class addBadInventory_args implements org.apache.thrift.TBase<addBadInventory_args, addBadInventory_args._Fields>, java.io.Serializable, Cloneable   {
25662
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_args");
25663
 
25664
    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);
25665
    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);
25666
    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);
25667
 
25668
    private long itemId; // required
25669
    private long warehouseId; // required
25670
    private long quantity; // required
25671
 
25672
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25673
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25674
      ITEM_ID((short)1, "itemId"),
25675
      WAREHOUSE_ID((short)2, "warehouseId"),
25676
      QUANTITY((short)3, "quantity");
25677
 
25678
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25679
 
25680
      static {
25681
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25682
          byName.put(field.getFieldName(), field);
25683
        }
25684
      }
25685
 
25686
      /**
25687
       * Find the _Fields constant that matches fieldId, or null if its not found.
25688
       */
25689
      public static _Fields findByThriftId(int fieldId) {
25690
        switch(fieldId) {
25691
          case 1: // ITEM_ID
25692
            return ITEM_ID;
25693
          case 2: // WAREHOUSE_ID
25694
            return WAREHOUSE_ID;
25695
          case 3: // QUANTITY
25696
            return QUANTITY;
25697
          default:
25698
            return null;
25699
        }
25700
      }
25701
 
25702
      /**
25703
       * Find the _Fields constant that matches fieldId, throwing an exception
25704
       * if it is not found.
25705
       */
25706
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25707
        _Fields fields = findByThriftId(fieldId);
25708
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25709
        return fields;
25710
      }
25711
 
25712
      /**
25713
       * Find the _Fields constant that matches name, or null if its not found.
25714
       */
25715
      public static _Fields findByName(String name) {
25716
        return byName.get(name);
25717
      }
25718
 
25719
      private final short _thriftId;
25720
      private final String _fieldName;
25721
 
25722
      _Fields(short thriftId, String fieldName) {
25723
        _thriftId = thriftId;
25724
        _fieldName = fieldName;
25725
      }
25726
 
25727
      public short getThriftFieldId() {
25728
        return _thriftId;
25729
      }
25730
 
25731
      public String getFieldName() {
25732
        return _fieldName;
25733
      }
25734
    }
25735
 
25736
    // isset id assignments
25737
    private static final int __ITEMID_ISSET_ID = 0;
25738
    private static final int __WAREHOUSEID_ISSET_ID = 1;
25739
    private static final int __QUANTITY_ISSET_ID = 2;
25740
    private BitSet __isset_bit_vector = new BitSet(3);
25741
 
25742
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25743
    static {
25744
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25745
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25747
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25749
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25751
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25752
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_args.class, metaDataMap);
25753
    }
25754
 
25755
    public addBadInventory_args() {
25756
    }
25757
 
25758
    public addBadInventory_args(
25759
      long itemId,
25760
      long warehouseId,
25761
      long quantity)
25762
    {
25763
      this();
25764
      this.itemId = itemId;
25765
      setItemIdIsSet(true);
25766
      this.warehouseId = warehouseId;
25767
      setWarehouseIdIsSet(true);
25768
      this.quantity = quantity;
25769
      setQuantityIsSet(true);
25770
    }
25771
 
25772
    /**
25773
     * Performs a deep copy on <i>other</i>.
25774
     */
25775
    public addBadInventory_args(addBadInventory_args other) {
25776
      __isset_bit_vector.clear();
25777
      __isset_bit_vector.or(other.__isset_bit_vector);
25778
      this.itemId = other.itemId;
25779
      this.warehouseId = other.warehouseId;
25780
      this.quantity = other.quantity;
25781
    }
25782
 
25783
    public addBadInventory_args deepCopy() {
25784
      return new addBadInventory_args(this);
25785
    }
25786
 
25787
    @Override
25788
    public void clear() {
25789
      setItemIdIsSet(false);
25790
      this.itemId = 0;
25791
      setWarehouseIdIsSet(false);
25792
      this.warehouseId = 0;
25793
      setQuantityIsSet(false);
25794
      this.quantity = 0;
25795
    }
25796
 
25797
    public long getItemId() {
25798
      return this.itemId;
25799
    }
25800
 
25801
    public void setItemId(long itemId) {
25802
      this.itemId = itemId;
25803
      setItemIdIsSet(true);
25804
    }
25805
 
25806
    public void unsetItemId() {
25807
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
25808
    }
25809
 
25810
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
25811
    public boolean isSetItemId() {
25812
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
25813
    }
25814
 
25815
    public void setItemIdIsSet(boolean value) {
25816
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
25817
    }
25818
 
25819
    public long getWarehouseId() {
25820
      return this.warehouseId;
25821
    }
25822
 
25823
    public void setWarehouseId(long warehouseId) {
25824
      this.warehouseId = warehouseId;
25825
      setWarehouseIdIsSet(true);
25826
    }
25827
 
25828
    public void unsetWarehouseId() {
25829
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
25830
    }
25831
 
25832
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
25833
    public boolean isSetWarehouseId() {
25834
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
25835
    }
25836
 
25837
    public void setWarehouseIdIsSet(boolean value) {
25838
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
25839
    }
25840
 
25841
    public long getQuantity() {
25842
      return this.quantity;
25843
    }
25844
 
25845
    public void setQuantity(long quantity) {
25846
      this.quantity = quantity;
25847
      setQuantityIsSet(true);
25848
    }
25849
 
25850
    public void unsetQuantity() {
25851
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
25852
    }
25853
 
25854
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
25855
    public boolean isSetQuantity() {
25856
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
25857
    }
25858
 
25859
    public void setQuantityIsSet(boolean value) {
25860
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
25861
    }
25862
 
25863
    public void setFieldValue(_Fields field, Object value) {
25864
      switch (field) {
25865
      case ITEM_ID:
25866
        if (value == null) {
25867
          unsetItemId();
25868
        } else {
25869
          setItemId((Long)value);
25870
        }
25871
        break;
25872
 
25873
      case WAREHOUSE_ID:
25874
        if (value == null) {
25875
          unsetWarehouseId();
25876
        } else {
25877
          setWarehouseId((Long)value);
25878
        }
25879
        break;
25880
 
25881
      case QUANTITY:
25882
        if (value == null) {
25883
          unsetQuantity();
25884
        } else {
25885
          setQuantity((Long)value);
25886
        }
25887
        break;
25888
 
25889
      }
25890
    }
25891
 
25892
    public Object getFieldValue(_Fields field) {
25893
      switch (field) {
25894
      case ITEM_ID:
25895
        return Long.valueOf(getItemId());
25896
 
25897
      case WAREHOUSE_ID:
25898
        return Long.valueOf(getWarehouseId());
25899
 
25900
      case QUANTITY:
25901
        return Long.valueOf(getQuantity());
25902
 
25903
      }
25904
      throw new IllegalStateException();
25905
    }
25906
 
25907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25908
    public boolean isSet(_Fields field) {
25909
      if (field == null) {
25910
        throw new IllegalArgumentException();
25911
      }
25912
 
25913
      switch (field) {
25914
      case ITEM_ID:
25915
        return isSetItemId();
25916
      case WAREHOUSE_ID:
25917
        return isSetWarehouseId();
25918
      case QUANTITY:
25919
        return isSetQuantity();
25920
      }
25921
      throw new IllegalStateException();
25922
    }
25923
 
25924
    @Override
25925
    public boolean equals(Object that) {
25926
      if (that == null)
25927
        return false;
25928
      if (that instanceof addBadInventory_args)
25929
        return this.equals((addBadInventory_args)that);
25930
      return false;
25931
    }
25932
 
25933
    public boolean equals(addBadInventory_args that) {
25934
      if (that == null)
25935
        return false;
25936
 
25937
      boolean this_present_itemId = true;
25938
      boolean that_present_itemId = true;
25939
      if (this_present_itemId || that_present_itemId) {
25940
        if (!(this_present_itemId && that_present_itemId))
25941
          return false;
25942
        if (this.itemId != that.itemId)
25943
          return false;
25944
      }
25945
 
25946
      boolean this_present_warehouseId = true;
25947
      boolean that_present_warehouseId = true;
25948
      if (this_present_warehouseId || that_present_warehouseId) {
25949
        if (!(this_present_warehouseId && that_present_warehouseId))
25950
          return false;
25951
        if (this.warehouseId != that.warehouseId)
25952
          return false;
25953
      }
25954
 
25955
      boolean this_present_quantity = true;
25956
      boolean that_present_quantity = true;
25957
      if (this_present_quantity || that_present_quantity) {
25958
        if (!(this_present_quantity && that_present_quantity))
25959
          return false;
25960
        if (this.quantity != that.quantity)
25961
          return false;
25962
      }
25963
 
25964
      return true;
25965
    }
25966
 
25967
    @Override
25968
    public int hashCode() {
25969
      return 0;
25970
    }
25971
 
25972
    public int compareTo(addBadInventory_args other) {
25973
      if (!getClass().equals(other.getClass())) {
25974
        return getClass().getName().compareTo(other.getClass().getName());
25975
      }
25976
 
25977
      int lastComparison = 0;
25978
      addBadInventory_args typedOther = (addBadInventory_args)other;
25979
 
25980
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
25981
      if (lastComparison != 0) {
25982
        return lastComparison;
25983
      }
25984
      if (isSetItemId()) {
25985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
25986
        if (lastComparison != 0) {
25987
          return lastComparison;
25988
        }
25989
      }
25990
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
25991
      if (lastComparison != 0) {
25992
        return lastComparison;
25993
      }
25994
      if (isSetWarehouseId()) {
25995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
25996
        if (lastComparison != 0) {
25997
          return lastComparison;
25998
        }
25999
      }
26000
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
26001
      if (lastComparison != 0) {
26002
        return lastComparison;
26003
      }
26004
      if (isSetQuantity()) {
26005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
26006
        if (lastComparison != 0) {
26007
          return lastComparison;
26008
        }
26009
      }
26010
      return 0;
26011
    }
26012
 
26013
    public _Fields fieldForId(int fieldId) {
26014
      return _Fields.findByThriftId(fieldId);
26015
    }
26016
 
26017
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26018
      org.apache.thrift.protocol.TField field;
26019
      iprot.readStructBegin();
26020
      while (true)
26021
      {
26022
        field = iprot.readFieldBegin();
26023
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26024
          break;
26025
        }
26026
        switch (field.id) {
26027
          case 1: // ITEM_ID
26028
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26029
              this.itemId = iprot.readI64();
26030
              setItemIdIsSet(true);
26031
            } else { 
26032
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26033
            }
26034
            break;
26035
          case 2: // WAREHOUSE_ID
26036
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26037
              this.warehouseId = iprot.readI64();
26038
              setWarehouseIdIsSet(true);
26039
            } else { 
26040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26041
            }
26042
            break;
26043
          case 3: // QUANTITY
26044
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26045
              this.quantity = iprot.readI64();
26046
              setQuantityIsSet(true);
26047
            } else { 
26048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26049
            }
26050
            break;
26051
          default:
26052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26053
        }
26054
        iprot.readFieldEnd();
26055
      }
26056
      iprot.readStructEnd();
26057
      validate();
26058
    }
26059
 
26060
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26061
      validate();
26062
 
26063
      oprot.writeStructBegin(STRUCT_DESC);
26064
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
26065
      oprot.writeI64(this.itemId);
26066
      oprot.writeFieldEnd();
26067
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26068
      oprot.writeI64(this.warehouseId);
26069
      oprot.writeFieldEnd();
26070
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
26071
      oprot.writeI64(this.quantity);
26072
      oprot.writeFieldEnd();
26073
      oprot.writeFieldStop();
26074
      oprot.writeStructEnd();
26075
    }
26076
 
26077
    @Override
26078
    public String toString() {
26079
      StringBuilder sb = new StringBuilder("addBadInventory_args(");
26080
      boolean first = true;
26081
 
26082
      sb.append("itemId:");
26083
      sb.append(this.itemId);
26084
      first = false;
26085
      if (!first) sb.append(", ");
26086
      sb.append("warehouseId:");
26087
      sb.append(this.warehouseId);
26088
      first = false;
26089
      if (!first) sb.append(", ");
26090
      sb.append("quantity:");
26091
      sb.append(this.quantity);
26092
      first = false;
26093
      sb.append(")");
26094
      return sb.toString();
26095
    }
26096
 
26097
    public void validate() throws org.apache.thrift.TException {
26098
      // check for required fields
26099
    }
26100
 
26101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26102
      try {
26103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26104
      } catch (org.apache.thrift.TException te) {
26105
        throw new java.io.IOException(te);
26106
      }
26107
    }
26108
 
26109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26110
      try {
7322 vikram.rag 26111
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26112
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 26113
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26114
      } catch (org.apache.thrift.TException te) {
26115
        throw new java.io.IOException(te);
26116
      }
26117
    }
26118
 
26119
  }
26120
 
26121
  public static class addBadInventory_result implements org.apache.thrift.TBase<addBadInventory_result, addBadInventory_result._Fields>, java.io.Serializable, Cloneable   {
26122
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBadInventory_result");
26123
 
26124
    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);
26125
 
26126
    private InventoryServiceException cex; // required
26127
 
26128
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26129
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26130
      CEX((short)1, "cex");
26131
 
26132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26133
 
26134
      static {
26135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26136
          byName.put(field.getFieldName(), field);
26137
        }
26138
      }
26139
 
26140
      /**
26141
       * Find the _Fields constant that matches fieldId, or null if its not found.
26142
       */
26143
      public static _Fields findByThriftId(int fieldId) {
26144
        switch(fieldId) {
26145
          case 1: // CEX
26146
            return CEX;
26147
          default:
26148
            return null;
26149
        }
26150
      }
26151
 
26152
      /**
26153
       * Find the _Fields constant that matches fieldId, throwing an exception
26154
       * if it is not found.
26155
       */
26156
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26157
        _Fields fields = findByThriftId(fieldId);
26158
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26159
        return fields;
26160
      }
26161
 
26162
      /**
26163
       * Find the _Fields constant that matches name, or null if its not found.
26164
       */
26165
      public static _Fields findByName(String name) {
26166
        return byName.get(name);
26167
      }
26168
 
26169
      private final short _thriftId;
26170
      private final String _fieldName;
26171
 
26172
      _Fields(short thriftId, String fieldName) {
26173
        _thriftId = thriftId;
26174
        _fieldName = fieldName;
26175
      }
26176
 
26177
      public short getThriftFieldId() {
26178
        return _thriftId;
26179
      }
26180
 
26181
      public String getFieldName() {
26182
        return _fieldName;
26183
      }
26184
    }
26185
 
26186
    // isset id assignments
26187
 
26188
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26189
    static {
26190
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26191
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26192
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26193
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26194
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBadInventory_result.class, metaDataMap);
26195
    }
26196
 
26197
    public addBadInventory_result() {
26198
    }
26199
 
26200
    public addBadInventory_result(
26201
      InventoryServiceException cex)
26202
    {
26203
      this();
26204
      this.cex = cex;
26205
    }
26206
 
26207
    /**
26208
     * Performs a deep copy on <i>other</i>.
26209
     */
26210
    public addBadInventory_result(addBadInventory_result other) {
26211
      if (other.isSetCex()) {
26212
        this.cex = new InventoryServiceException(other.cex);
26213
      }
26214
    }
26215
 
26216
    public addBadInventory_result deepCopy() {
26217
      return new addBadInventory_result(this);
26218
    }
26219
 
26220
    @Override
26221
    public void clear() {
26222
      this.cex = null;
26223
    }
26224
 
26225
    public InventoryServiceException getCex() {
26226
      return this.cex;
26227
    }
26228
 
26229
    public void setCex(InventoryServiceException cex) {
26230
      this.cex = cex;
26231
    }
26232
 
26233
    public void unsetCex() {
26234
      this.cex = null;
26235
    }
26236
 
26237
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
26238
    public boolean isSetCex() {
26239
      return this.cex != null;
26240
    }
26241
 
26242
    public void setCexIsSet(boolean value) {
26243
      if (!value) {
26244
        this.cex = null;
26245
      }
26246
    }
26247
 
26248
    public void setFieldValue(_Fields field, Object value) {
26249
      switch (field) {
26250
      case CEX:
26251
        if (value == null) {
26252
          unsetCex();
26253
        } else {
26254
          setCex((InventoryServiceException)value);
26255
        }
26256
        break;
26257
 
26258
      }
26259
    }
26260
 
26261
    public Object getFieldValue(_Fields field) {
26262
      switch (field) {
26263
      case CEX:
26264
        return getCex();
26265
 
26266
      }
26267
      throw new IllegalStateException();
26268
    }
26269
 
26270
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26271
    public boolean isSet(_Fields field) {
26272
      if (field == null) {
26273
        throw new IllegalArgumentException();
26274
      }
26275
 
26276
      switch (field) {
26277
      case CEX:
26278
        return isSetCex();
26279
      }
26280
      throw new IllegalStateException();
26281
    }
26282
 
26283
    @Override
26284
    public boolean equals(Object that) {
26285
      if (that == null)
26286
        return false;
26287
      if (that instanceof addBadInventory_result)
26288
        return this.equals((addBadInventory_result)that);
26289
      return false;
26290
    }
26291
 
26292
    public boolean equals(addBadInventory_result that) {
26293
      if (that == null)
26294
        return false;
26295
 
26296
      boolean this_present_cex = true && this.isSetCex();
26297
      boolean that_present_cex = true && that.isSetCex();
26298
      if (this_present_cex || that_present_cex) {
26299
        if (!(this_present_cex && that_present_cex))
26300
          return false;
26301
        if (!this.cex.equals(that.cex))
26302
          return false;
26303
      }
26304
 
26305
      return true;
26306
    }
26307
 
26308
    @Override
26309
    public int hashCode() {
26310
      return 0;
26311
    }
26312
 
26313
    public int compareTo(addBadInventory_result other) {
26314
      if (!getClass().equals(other.getClass())) {
26315
        return getClass().getName().compareTo(other.getClass().getName());
26316
      }
26317
 
26318
      int lastComparison = 0;
26319
      addBadInventory_result typedOther = (addBadInventory_result)other;
26320
 
26321
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
26322
      if (lastComparison != 0) {
26323
        return lastComparison;
26324
      }
26325
      if (isSetCex()) {
26326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
26327
        if (lastComparison != 0) {
26328
          return lastComparison;
26329
        }
26330
      }
26331
      return 0;
26332
    }
26333
 
26334
    public _Fields fieldForId(int fieldId) {
26335
      return _Fields.findByThriftId(fieldId);
26336
    }
26337
 
26338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26339
      org.apache.thrift.protocol.TField field;
26340
      iprot.readStructBegin();
26341
      while (true)
26342
      {
26343
        field = iprot.readFieldBegin();
26344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26345
          break;
26346
        }
26347
        switch (field.id) {
26348
          case 1: // CEX
26349
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26350
              this.cex = new InventoryServiceException();
26351
              this.cex.read(iprot);
26352
            } else { 
26353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26354
            }
26355
            break;
26356
          default:
26357
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26358
        }
26359
        iprot.readFieldEnd();
26360
      }
26361
      iprot.readStructEnd();
26362
      validate();
26363
    }
26364
 
26365
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26366
      oprot.writeStructBegin(STRUCT_DESC);
26367
 
26368
      if (this.isSetCex()) {
26369
        oprot.writeFieldBegin(CEX_FIELD_DESC);
26370
        this.cex.write(oprot);
26371
        oprot.writeFieldEnd();
26372
      }
26373
      oprot.writeFieldStop();
26374
      oprot.writeStructEnd();
26375
    }
26376
 
26377
    @Override
26378
    public String toString() {
26379
      StringBuilder sb = new StringBuilder("addBadInventory_result(");
26380
      boolean first = true;
26381
 
26382
      sb.append("cex:");
26383
      if (this.cex == null) {
26384
        sb.append("null");
26385
      } else {
26386
        sb.append(this.cex);
26387
      }
26388
      first = false;
26389
      sb.append(")");
26390
      return sb.toString();
26391
    }
26392
 
26393
    public void validate() throws org.apache.thrift.TException {
26394
      // check for required fields
26395
    }
26396
 
26397
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26398
      try {
26399
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26400
      } catch (org.apache.thrift.TException te) {
26401
        throw new java.io.IOException(te);
26402
      }
26403
    }
26404
 
26405
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26406
      try {
26407
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26408
      } catch (org.apache.thrift.TException te) {
26409
        throw new java.io.IOException(te);
26410
      }
26411
    }
26412
 
26413
  }
26414
 
26415
  public static class getShippingLocations_args implements org.apache.thrift.TBase<getShippingLocations_args, getShippingLocations_args._Fields>, java.io.Serializable, Cloneable   {
26416
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_args");
26417
 
26418
 
26419
 
26420
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26421
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26422
;
26423
 
26424
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26425
 
26426
      static {
26427
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26428
          byName.put(field.getFieldName(), field);
26429
        }
26430
      }
26431
 
26432
      /**
26433
       * Find the _Fields constant that matches fieldId, or null if its not found.
26434
       */
26435
      public static _Fields findByThriftId(int fieldId) {
26436
        switch(fieldId) {
26437
          default:
26438
            return null;
26439
        }
26440
      }
26441
 
26442
      /**
26443
       * Find the _Fields constant that matches fieldId, throwing an exception
26444
       * if it is not found.
26445
       */
26446
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26447
        _Fields fields = findByThriftId(fieldId);
26448
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26449
        return fields;
26450
      }
26451
 
26452
      /**
26453
       * Find the _Fields constant that matches name, or null if its not found.
26454
       */
26455
      public static _Fields findByName(String name) {
26456
        return byName.get(name);
26457
      }
26458
 
26459
      private final short _thriftId;
26460
      private final String _fieldName;
26461
 
26462
      _Fields(short thriftId, String fieldName) {
26463
        _thriftId = thriftId;
26464
        _fieldName = fieldName;
26465
      }
26466
 
26467
      public short getThriftFieldId() {
26468
        return _thriftId;
26469
      }
26470
 
26471
      public String getFieldName() {
26472
        return _fieldName;
26473
      }
26474
    }
26475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26476
    static {
26477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26478
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26479
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_args.class, metaDataMap);
26480
    }
26481
 
26482
    public getShippingLocations_args() {
26483
    }
26484
 
26485
    /**
26486
     * Performs a deep copy on <i>other</i>.
26487
     */
26488
    public getShippingLocations_args(getShippingLocations_args other) {
26489
    }
26490
 
26491
    public getShippingLocations_args deepCopy() {
26492
      return new getShippingLocations_args(this);
26493
    }
26494
 
26495
    @Override
26496
    public void clear() {
26497
    }
26498
 
26499
    public void setFieldValue(_Fields field, Object value) {
26500
      switch (field) {
26501
      }
26502
    }
26503
 
26504
    public Object getFieldValue(_Fields field) {
26505
      switch (field) {
26506
      }
26507
      throw new IllegalStateException();
26508
    }
26509
 
26510
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26511
    public boolean isSet(_Fields field) {
26512
      if (field == null) {
26513
        throw new IllegalArgumentException();
26514
      }
26515
 
26516
      switch (field) {
26517
      }
26518
      throw new IllegalStateException();
26519
    }
26520
 
26521
    @Override
26522
    public boolean equals(Object that) {
26523
      if (that == null)
26524
        return false;
26525
      if (that instanceof getShippingLocations_args)
26526
        return this.equals((getShippingLocations_args)that);
26527
      return false;
26528
    }
26529
 
26530
    public boolean equals(getShippingLocations_args that) {
26531
      if (that == null)
26532
        return false;
26533
 
26534
      return true;
26535
    }
26536
 
26537
    @Override
26538
    public int hashCode() {
26539
      return 0;
26540
    }
26541
 
26542
    public int compareTo(getShippingLocations_args other) {
26543
      if (!getClass().equals(other.getClass())) {
26544
        return getClass().getName().compareTo(other.getClass().getName());
26545
      }
26546
 
26547
      int lastComparison = 0;
26548
      getShippingLocations_args typedOther = (getShippingLocations_args)other;
26549
 
26550
      return 0;
26551
    }
26552
 
26553
    public _Fields fieldForId(int fieldId) {
26554
      return _Fields.findByThriftId(fieldId);
26555
    }
26556
 
26557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26558
      org.apache.thrift.protocol.TField field;
26559
      iprot.readStructBegin();
26560
      while (true)
26561
      {
26562
        field = iprot.readFieldBegin();
26563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26564
          break;
26565
        }
26566
        switch (field.id) {
26567
          default:
26568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26569
        }
26570
        iprot.readFieldEnd();
26571
      }
26572
      iprot.readStructEnd();
26573
      validate();
26574
    }
26575
 
26576
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26577
      validate();
26578
 
26579
      oprot.writeStructBegin(STRUCT_DESC);
26580
      oprot.writeFieldStop();
26581
      oprot.writeStructEnd();
26582
    }
26583
 
26584
    @Override
26585
    public String toString() {
26586
      StringBuilder sb = new StringBuilder("getShippingLocations_args(");
26587
      boolean first = true;
26588
 
26589
      sb.append(")");
26590
      return sb.toString();
26591
    }
26592
 
26593
    public void validate() throws org.apache.thrift.TException {
26594
      // check for required fields
26595
    }
26596
 
26597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26598
      try {
26599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26600
      } catch (org.apache.thrift.TException te) {
26601
        throw new java.io.IOException(te);
26602
      }
26603
    }
26604
 
26605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26606
      try {
26607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26608
      } catch (org.apache.thrift.TException te) {
26609
        throw new java.io.IOException(te);
26610
      }
26611
    }
26612
 
26613
  }
26614
 
26615
  public static class getShippingLocations_result implements org.apache.thrift.TBase<getShippingLocations_result, getShippingLocations_result._Fields>, java.io.Serializable, Cloneable   {
26616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShippingLocations_result");
26617
 
26618
    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);
26619
 
26620
    private List<Warehouse> success; // required
26621
 
26622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26624
      SUCCESS((short)0, "success");
26625
 
26626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26627
 
26628
      static {
26629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26630
          byName.put(field.getFieldName(), field);
26631
        }
26632
      }
26633
 
26634
      /**
26635
       * Find the _Fields constant that matches fieldId, or null if its not found.
26636
       */
26637
      public static _Fields findByThriftId(int fieldId) {
26638
        switch(fieldId) {
26639
          case 0: // SUCCESS
26640
            return SUCCESS;
26641
          default:
26642
            return null;
26643
        }
26644
      }
26645
 
26646
      /**
26647
       * Find the _Fields constant that matches fieldId, throwing an exception
26648
       * if it is not found.
26649
       */
26650
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26651
        _Fields fields = findByThriftId(fieldId);
26652
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26653
        return fields;
26654
      }
26655
 
26656
      /**
26657
       * Find the _Fields constant that matches name, or null if its not found.
26658
       */
26659
      public static _Fields findByName(String name) {
26660
        return byName.get(name);
26661
      }
26662
 
26663
      private final short _thriftId;
26664
      private final String _fieldName;
26665
 
26666
      _Fields(short thriftId, String fieldName) {
26667
        _thriftId = thriftId;
26668
        _fieldName = fieldName;
26669
      }
26670
 
26671
      public short getThriftFieldId() {
26672
        return _thriftId;
26673
      }
26674
 
26675
      public String getFieldName() {
26676
        return _fieldName;
26677
      }
26678
    }
26679
 
26680
    // isset id assignments
26681
 
26682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26683
    static {
26684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26685
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26686
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26687
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Warehouse.class))));
26688
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26689
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShippingLocations_result.class, metaDataMap);
26690
    }
26691
 
26692
    public getShippingLocations_result() {
26693
    }
26694
 
26695
    public getShippingLocations_result(
26696
      List<Warehouse> success)
26697
    {
26698
      this();
26699
      this.success = success;
26700
    }
26701
 
26702
    /**
26703
     * Performs a deep copy on <i>other</i>.
26704
     */
26705
    public getShippingLocations_result(getShippingLocations_result other) {
26706
      if (other.isSetSuccess()) {
26707
        List<Warehouse> __this__success = new ArrayList<Warehouse>();
26708
        for (Warehouse other_element : other.success) {
26709
          __this__success.add(new Warehouse(other_element));
26710
        }
26711
        this.success = __this__success;
26712
      }
26713
    }
26714
 
26715
    public getShippingLocations_result deepCopy() {
26716
      return new getShippingLocations_result(this);
26717
    }
26718
 
26719
    @Override
26720
    public void clear() {
26721
      this.success = null;
26722
    }
26723
 
26724
    public int getSuccessSize() {
26725
      return (this.success == null) ? 0 : this.success.size();
26726
    }
26727
 
26728
    public java.util.Iterator<Warehouse> getSuccessIterator() {
26729
      return (this.success == null) ? null : this.success.iterator();
26730
    }
26731
 
26732
    public void addToSuccess(Warehouse elem) {
26733
      if (this.success == null) {
26734
        this.success = new ArrayList<Warehouse>();
26735
      }
26736
      this.success.add(elem);
26737
    }
26738
 
26739
    public List<Warehouse> getSuccess() {
26740
      return this.success;
26741
    }
26742
 
26743
    public void setSuccess(List<Warehouse> success) {
26744
      this.success = success;
26745
    }
26746
 
26747
    public void unsetSuccess() {
26748
      this.success = null;
26749
    }
26750
 
26751
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26752
    public boolean isSetSuccess() {
26753
      return this.success != null;
26754
    }
26755
 
26756
    public void setSuccessIsSet(boolean value) {
26757
      if (!value) {
26758
        this.success = null;
26759
      }
26760
    }
26761
 
26762
    public void setFieldValue(_Fields field, Object value) {
26763
      switch (field) {
26764
      case SUCCESS:
26765
        if (value == null) {
26766
          unsetSuccess();
26767
        } else {
26768
          setSuccess((List<Warehouse>)value);
26769
        }
26770
        break;
26771
 
26772
      }
26773
    }
26774
 
26775
    public Object getFieldValue(_Fields field) {
26776
      switch (field) {
26777
      case SUCCESS:
26778
        return getSuccess();
26779
 
26780
      }
26781
      throw new IllegalStateException();
26782
    }
26783
 
26784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26785
    public boolean isSet(_Fields field) {
26786
      if (field == null) {
26787
        throw new IllegalArgumentException();
26788
      }
26789
 
26790
      switch (field) {
26791
      case SUCCESS:
26792
        return isSetSuccess();
26793
      }
26794
      throw new IllegalStateException();
26795
    }
26796
 
26797
    @Override
26798
    public boolean equals(Object that) {
26799
      if (that == null)
26800
        return false;
26801
      if (that instanceof getShippingLocations_result)
26802
        return this.equals((getShippingLocations_result)that);
26803
      return false;
26804
    }
26805
 
26806
    public boolean equals(getShippingLocations_result that) {
26807
      if (that == null)
26808
        return false;
26809
 
26810
      boolean this_present_success = true && this.isSetSuccess();
26811
      boolean that_present_success = true && that.isSetSuccess();
26812
      if (this_present_success || that_present_success) {
26813
        if (!(this_present_success && that_present_success))
26814
          return false;
26815
        if (!this.success.equals(that.success))
26816
          return false;
26817
      }
26818
 
26819
      return true;
26820
    }
26821
 
26822
    @Override
26823
    public int hashCode() {
26824
      return 0;
26825
    }
26826
 
26827
    public int compareTo(getShippingLocations_result other) {
26828
      if (!getClass().equals(other.getClass())) {
26829
        return getClass().getName().compareTo(other.getClass().getName());
26830
      }
26831
 
26832
      int lastComparison = 0;
26833
      getShippingLocations_result typedOther = (getShippingLocations_result)other;
26834
 
26835
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26836
      if (lastComparison != 0) {
26837
        return lastComparison;
26838
      }
26839
      if (isSetSuccess()) {
26840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26841
        if (lastComparison != 0) {
26842
          return lastComparison;
26843
        }
26844
      }
26845
      return 0;
26846
    }
26847
 
26848
    public _Fields fieldForId(int fieldId) {
26849
      return _Fields.findByThriftId(fieldId);
26850
    }
26851
 
26852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26853
      org.apache.thrift.protocol.TField field;
26854
      iprot.readStructBegin();
26855
      while (true)
26856
      {
26857
        field = iprot.readFieldBegin();
26858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26859
          break;
26860
        }
26861
        switch (field.id) {
26862
          case 0: // SUCCESS
26863
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26864
              {
26865
                org.apache.thrift.protocol.TList _list66 = iprot.readListBegin();
26866
                this.success = new ArrayList<Warehouse>(_list66.size);
26867
                for (int _i67 = 0; _i67 < _list66.size; ++_i67)
26868
                {
26869
                  Warehouse _elem68; // required
26870
                  _elem68 = new Warehouse();
26871
                  _elem68.read(iprot);
26872
                  this.success.add(_elem68);
26873
                }
26874
                iprot.readListEnd();
26875
              }
26876
            } else { 
26877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26878
            }
26879
            break;
26880
          default:
26881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26882
        }
26883
        iprot.readFieldEnd();
26884
      }
26885
      iprot.readStructEnd();
26886
      validate();
26887
    }
26888
 
26889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26890
      oprot.writeStructBegin(STRUCT_DESC);
26891
 
26892
      if (this.isSetSuccess()) {
26893
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26894
        {
26895
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26896
          for (Warehouse _iter69 : this.success)
26897
          {
26898
            _iter69.write(oprot);
26899
          }
26900
          oprot.writeListEnd();
26901
        }
26902
        oprot.writeFieldEnd();
26903
      }
26904
      oprot.writeFieldStop();
26905
      oprot.writeStructEnd();
26906
    }
26907
 
26908
    @Override
26909
    public String toString() {
26910
      StringBuilder sb = new StringBuilder("getShippingLocations_result(");
26911
      boolean first = true;
26912
 
26913
      sb.append("success:");
26914
      if (this.success == null) {
26915
        sb.append("null");
26916
      } else {
26917
        sb.append(this.success);
26918
      }
26919
      first = false;
26920
      sb.append(")");
26921
      return sb.toString();
26922
    }
26923
 
26924
    public void validate() throws org.apache.thrift.TException {
26925
      // check for required fields
26926
    }
26927
 
26928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26929
      try {
26930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26931
      } catch (org.apache.thrift.TException te) {
26932
        throw new java.io.IOException(te);
26933
      }
26934
    }
26935
 
26936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26937
      try {
26938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26939
      } catch (org.apache.thrift.TException te) {
26940
        throw new java.io.IOException(te);
26941
      }
26942
    }
26943
 
26944
  }
26945
 
26946
  public static class getAllVendorItemMappings_args implements org.apache.thrift.TBase<getAllVendorItemMappings_args, getAllVendorItemMappings_args._Fields>, java.io.Serializable, Cloneable   {
26947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_args");
26948
 
26949
 
26950
 
26951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26953
;
26954
 
26955
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26956
 
26957
      static {
26958
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26959
          byName.put(field.getFieldName(), field);
26960
        }
26961
      }
26962
 
26963
      /**
26964
       * Find the _Fields constant that matches fieldId, or null if its not found.
26965
       */
26966
      public static _Fields findByThriftId(int fieldId) {
26967
        switch(fieldId) {
26968
          default:
26969
            return null;
26970
        }
26971
      }
26972
 
26973
      /**
26974
       * Find the _Fields constant that matches fieldId, throwing an exception
26975
       * if it is not found.
26976
       */
26977
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26978
        _Fields fields = findByThriftId(fieldId);
26979
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26980
        return fields;
26981
      }
26982
 
26983
      /**
26984
       * Find the _Fields constant that matches name, or null if its not found.
26985
       */
26986
      public static _Fields findByName(String name) {
26987
        return byName.get(name);
26988
      }
26989
 
26990
      private final short _thriftId;
26991
      private final String _fieldName;
26992
 
26993
      _Fields(short thriftId, String fieldName) {
26994
        _thriftId = thriftId;
26995
        _fieldName = fieldName;
26996
      }
26997
 
26998
      public short getThriftFieldId() {
26999
        return _thriftId;
27000
      }
27001
 
27002
      public String getFieldName() {
27003
        return _fieldName;
27004
      }
27005
    }
27006
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27007
    static {
27008
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27009
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27010
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_args.class, metaDataMap);
27011
    }
27012
 
27013
    public getAllVendorItemMappings_args() {
27014
    }
27015
 
27016
    /**
27017
     * Performs a deep copy on <i>other</i>.
27018
     */
27019
    public getAllVendorItemMappings_args(getAllVendorItemMappings_args other) {
27020
    }
27021
 
27022
    public getAllVendorItemMappings_args deepCopy() {
27023
      return new getAllVendorItemMappings_args(this);
27024
    }
27025
 
27026
    @Override
27027
    public void clear() {
27028
    }
27029
 
27030
    public void setFieldValue(_Fields field, Object value) {
27031
      switch (field) {
27032
      }
27033
    }
27034
 
27035
    public Object getFieldValue(_Fields field) {
27036
      switch (field) {
27037
      }
27038
      throw new IllegalStateException();
27039
    }
27040
 
27041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27042
    public boolean isSet(_Fields field) {
27043
      if (field == null) {
27044
        throw new IllegalArgumentException();
27045
      }
27046
 
27047
      switch (field) {
27048
      }
27049
      throw new IllegalStateException();
27050
    }
27051
 
27052
    @Override
27053
    public boolean equals(Object that) {
27054
      if (that == null)
27055
        return false;
27056
      if (that instanceof getAllVendorItemMappings_args)
27057
        return this.equals((getAllVendorItemMappings_args)that);
27058
      return false;
27059
    }
27060
 
27061
    public boolean equals(getAllVendorItemMappings_args that) {
27062
      if (that == null)
27063
        return false;
27064
 
27065
      return true;
27066
    }
27067
 
27068
    @Override
27069
    public int hashCode() {
27070
      return 0;
27071
    }
27072
 
27073
    public int compareTo(getAllVendorItemMappings_args other) {
27074
      if (!getClass().equals(other.getClass())) {
27075
        return getClass().getName().compareTo(other.getClass().getName());
27076
      }
27077
 
27078
      int lastComparison = 0;
27079
      getAllVendorItemMappings_args typedOther = (getAllVendorItemMappings_args)other;
27080
 
27081
      return 0;
27082
    }
27083
 
27084
    public _Fields fieldForId(int fieldId) {
27085
      return _Fields.findByThriftId(fieldId);
27086
    }
27087
 
27088
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27089
      org.apache.thrift.protocol.TField field;
27090
      iprot.readStructBegin();
27091
      while (true)
27092
      {
27093
        field = iprot.readFieldBegin();
27094
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27095
          break;
27096
        }
27097
        switch (field.id) {
27098
          default:
27099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27100
        }
27101
        iprot.readFieldEnd();
27102
      }
27103
      iprot.readStructEnd();
27104
      validate();
27105
    }
27106
 
27107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27108
      validate();
27109
 
27110
      oprot.writeStructBegin(STRUCT_DESC);
27111
      oprot.writeFieldStop();
27112
      oprot.writeStructEnd();
27113
    }
27114
 
27115
    @Override
27116
    public String toString() {
27117
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_args(");
27118
      boolean first = true;
27119
 
27120
      sb.append(")");
27121
      return sb.toString();
27122
    }
27123
 
27124
    public void validate() throws org.apache.thrift.TException {
27125
      // check for required fields
27126
    }
27127
 
27128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27129
      try {
27130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27131
      } catch (org.apache.thrift.TException te) {
27132
        throw new java.io.IOException(te);
27133
      }
27134
    }
27135
 
27136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27137
      try {
27138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27139
      } catch (org.apache.thrift.TException te) {
27140
        throw new java.io.IOException(te);
27141
      }
27142
    }
27143
 
27144
  }
27145
 
27146
  public static class getAllVendorItemMappings_result implements org.apache.thrift.TBase<getAllVendorItemMappings_result, getAllVendorItemMappings_result._Fields>, java.io.Serializable, Cloneable   {
27147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVendorItemMappings_result");
27148
 
27149
    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);
27150
 
27151
    private List<VendorItemMapping> success; // required
27152
 
27153
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27154
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27155
      SUCCESS((short)0, "success");
27156
 
27157
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27158
 
27159
      static {
27160
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27161
          byName.put(field.getFieldName(), field);
27162
        }
27163
      }
27164
 
27165
      /**
27166
       * Find the _Fields constant that matches fieldId, or null if its not found.
27167
       */
27168
      public static _Fields findByThriftId(int fieldId) {
27169
        switch(fieldId) {
27170
          case 0: // SUCCESS
27171
            return SUCCESS;
27172
          default:
27173
            return null;
27174
        }
27175
      }
27176
 
27177
      /**
27178
       * Find the _Fields constant that matches fieldId, throwing an exception
27179
       * if it is not found.
27180
       */
27181
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27182
        _Fields fields = findByThriftId(fieldId);
27183
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27184
        return fields;
27185
      }
27186
 
27187
      /**
27188
       * Find the _Fields constant that matches name, or null if its not found.
27189
       */
27190
      public static _Fields findByName(String name) {
27191
        return byName.get(name);
27192
      }
27193
 
27194
      private final short _thriftId;
27195
      private final String _fieldName;
27196
 
27197
      _Fields(short thriftId, String fieldName) {
27198
        _thriftId = thriftId;
27199
        _fieldName = fieldName;
27200
      }
27201
 
27202
      public short getThriftFieldId() {
27203
        return _thriftId;
27204
      }
27205
 
27206
      public String getFieldName() {
27207
        return _fieldName;
27208
      }
27209
    }
27210
 
27211
    // isset id assignments
27212
 
27213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27214
    static {
27215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27216
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27217
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27218
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, VendorItemMapping.class))));
27219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVendorItemMappings_result.class, metaDataMap);
27221
    }
27222
 
27223
    public getAllVendorItemMappings_result() {
27224
    }
27225
 
27226
    public getAllVendorItemMappings_result(
27227
      List<VendorItemMapping> success)
27228
    {
27229
      this();
27230
      this.success = success;
27231
    }
27232
 
27233
    /**
27234
     * Performs a deep copy on <i>other</i>.
27235
     */
27236
    public getAllVendorItemMappings_result(getAllVendorItemMappings_result other) {
27237
      if (other.isSetSuccess()) {
27238
        List<VendorItemMapping> __this__success = new ArrayList<VendorItemMapping>();
27239
        for (VendorItemMapping other_element : other.success) {
27240
          __this__success.add(new VendorItemMapping(other_element));
27241
        }
27242
        this.success = __this__success;
27243
      }
27244
    }
27245
 
27246
    public getAllVendorItemMappings_result deepCopy() {
27247
      return new getAllVendorItemMappings_result(this);
27248
    }
27249
 
27250
    @Override
27251
    public void clear() {
27252
      this.success = null;
27253
    }
27254
 
27255
    public int getSuccessSize() {
27256
      return (this.success == null) ? 0 : this.success.size();
27257
    }
27258
 
27259
    public java.util.Iterator<VendorItemMapping> getSuccessIterator() {
27260
      return (this.success == null) ? null : this.success.iterator();
27261
    }
27262
 
27263
    public void addToSuccess(VendorItemMapping elem) {
27264
      if (this.success == null) {
27265
        this.success = new ArrayList<VendorItemMapping>();
27266
      }
27267
      this.success.add(elem);
27268
    }
27269
 
27270
    public List<VendorItemMapping> getSuccess() {
27271
      return this.success;
27272
    }
27273
 
27274
    public void setSuccess(List<VendorItemMapping> success) {
27275
      this.success = success;
27276
    }
27277
 
27278
    public void unsetSuccess() {
27279
      this.success = null;
27280
    }
27281
 
27282
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27283
    public boolean isSetSuccess() {
27284
      return this.success != null;
27285
    }
27286
 
27287
    public void setSuccessIsSet(boolean value) {
27288
      if (!value) {
27289
        this.success = null;
27290
      }
27291
    }
27292
 
27293
    public void setFieldValue(_Fields field, Object value) {
27294
      switch (field) {
27295
      case SUCCESS:
27296
        if (value == null) {
27297
          unsetSuccess();
27298
        } else {
27299
          setSuccess((List<VendorItemMapping>)value);
27300
        }
27301
        break;
27302
 
27303
      }
27304
    }
27305
 
27306
    public Object getFieldValue(_Fields field) {
27307
      switch (field) {
27308
      case SUCCESS:
27309
        return getSuccess();
27310
 
27311
      }
27312
      throw new IllegalStateException();
27313
    }
27314
 
27315
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27316
    public boolean isSet(_Fields field) {
27317
      if (field == null) {
27318
        throw new IllegalArgumentException();
27319
      }
27320
 
27321
      switch (field) {
27322
      case SUCCESS:
27323
        return isSetSuccess();
27324
      }
27325
      throw new IllegalStateException();
27326
    }
27327
 
27328
    @Override
27329
    public boolean equals(Object that) {
27330
      if (that == null)
27331
        return false;
27332
      if (that instanceof getAllVendorItemMappings_result)
27333
        return this.equals((getAllVendorItemMappings_result)that);
27334
      return false;
27335
    }
27336
 
27337
    public boolean equals(getAllVendorItemMappings_result that) {
27338
      if (that == null)
27339
        return false;
27340
 
27341
      boolean this_present_success = true && this.isSetSuccess();
27342
      boolean that_present_success = true && that.isSetSuccess();
27343
      if (this_present_success || that_present_success) {
27344
        if (!(this_present_success && that_present_success))
27345
          return false;
27346
        if (!this.success.equals(that.success))
27347
          return false;
27348
      }
27349
 
27350
      return true;
27351
    }
27352
 
27353
    @Override
27354
    public int hashCode() {
27355
      return 0;
27356
    }
27357
 
27358
    public int compareTo(getAllVendorItemMappings_result other) {
27359
      if (!getClass().equals(other.getClass())) {
27360
        return getClass().getName().compareTo(other.getClass().getName());
27361
      }
27362
 
27363
      int lastComparison = 0;
27364
      getAllVendorItemMappings_result typedOther = (getAllVendorItemMappings_result)other;
27365
 
27366
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27367
      if (lastComparison != 0) {
27368
        return lastComparison;
27369
      }
27370
      if (isSetSuccess()) {
27371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27372
        if (lastComparison != 0) {
27373
          return lastComparison;
27374
        }
27375
      }
27376
      return 0;
27377
    }
27378
 
27379
    public _Fields fieldForId(int fieldId) {
27380
      return _Fields.findByThriftId(fieldId);
27381
    }
27382
 
27383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27384
      org.apache.thrift.protocol.TField field;
27385
      iprot.readStructBegin();
27386
      while (true)
27387
      {
27388
        field = iprot.readFieldBegin();
27389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27390
          break;
27391
        }
27392
        switch (field.id) {
27393
          case 0: // SUCCESS
27394
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27395
              {
27396
                org.apache.thrift.protocol.TList _list70 = iprot.readListBegin();
27397
                this.success = new ArrayList<VendorItemMapping>(_list70.size);
27398
                for (int _i71 = 0; _i71 < _list70.size; ++_i71)
27399
                {
27400
                  VendorItemMapping _elem72; // required
27401
                  _elem72 = new VendorItemMapping();
27402
                  _elem72.read(iprot);
27403
                  this.success.add(_elem72);
27404
                }
27405
                iprot.readListEnd();
27406
              }
27407
            } else { 
27408
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27409
            }
27410
            break;
27411
          default:
27412
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27413
        }
27414
        iprot.readFieldEnd();
27415
      }
27416
      iprot.readStructEnd();
27417
      validate();
27418
    }
27419
 
27420
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27421
      oprot.writeStructBegin(STRUCT_DESC);
27422
 
27423
      if (this.isSetSuccess()) {
27424
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27425
        {
27426
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27427
          for (VendorItemMapping _iter73 : this.success)
27428
          {
27429
            _iter73.write(oprot);
27430
          }
27431
          oprot.writeListEnd();
27432
        }
27433
        oprot.writeFieldEnd();
27434
      }
27435
      oprot.writeFieldStop();
27436
      oprot.writeStructEnd();
27437
    }
27438
 
27439
    @Override
27440
    public String toString() {
27441
      StringBuilder sb = new StringBuilder("getAllVendorItemMappings_result(");
27442
      boolean first = true;
27443
 
27444
      sb.append("success:");
27445
      if (this.success == null) {
27446
        sb.append("null");
27447
      } else {
27448
        sb.append(this.success);
27449
      }
27450
      first = false;
27451
      sb.append(")");
27452
      return sb.toString();
27453
    }
27454
 
27455
    public void validate() throws org.apache.thrift.TException {
27456
      // check for required fields
27457
    }
27458
 
27459
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27460
      try {
27461
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27462
      } catch (org.apache.thrift.TException te) {
27463
        throw new java.io.IOException(te);
27464
      }
27465
    }
27466
 
27467
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27468
      try {
27469
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27470
      } catch (org.apache.thrift.TException te) {
27471
        throw new java.io.IOException(te);
27472
      }
27473
    }
27474
 
27475
  }
27476
 
27477
  public static class getInventorySnapshot_args implements org.apache.thrift.TBase<getInventorySnapshot_args, getInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable   {
27478
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_args");
27479
 
27480
    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);
27481
 
27482
    private long warehouseId; // required
27483
 
27484
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27485
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27486
      WAREHOUSE_ID((short)1, "warehouseId");
27487
 
27488
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27489
 
27490
      static {
27491
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27492
          byName.put(field.getFieldName(), field);
27493
        }
27494
      }
27495
 
27496
      /**
27497
       * Find the _Fields constant that matches fieldId, or null if its not found.
27498
       */
27499
      public static _Fields findByThriftId(int fieldId) {
27500
        switch(fieldId) {
27501
          case 1: // WAREHOUSE_ID
27502
            return WAREHOUSE_ID;
27503
          default:
27504
            return null;
27505
        }
27506
      }
27507
 
27508
      /**
27509
       * Find the _Fields constant that matches fieldId, throwing an exception
27510
       * if it is not found.
27511
       */
27512
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27513
        _Fields fields = findByThriftId(fieldId);
27514
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27515
        return fields;
27516
      }
27517
 
27518
      /**
27519
       * Find the _Fields constant that matches name, or null if its not found.
27520
       */
27521
      public static _Fields findByName(String name) {
27522
        return byName.get(name);
27523
      }
27524
 
27525
      private final short _thriftId;
27526
      private final String _fieldName;
27527
 
27528
      _Fields(short thriftId, String fieldName) {
27529
        _thriftId = thriftId;
27530
        _fieldName = fieldName;
27531
      }
27532
 
27533
      public short getThriftFieldId() {
27534
        return _thriftId;
27535
      }
27536
 
27537
      public String getFieldName() {
27538
        return _fieldName;
27539
      }
27540
    }
27541
 
27542
    // isset id assignments
27543
    private static final int __WAREHOUSEID_ISSET_ID = 0;
27544
    private BitSet __isset_bit_vector = new BitSet(1);
27545
 
27546
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27547
    static {
27548
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27549
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27550
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_args.class, metaDataMap);
27553
    }
27554
 
27555
    public getInventorySnapshot_args() {
27556
    }
27557
 
27558
    public getInventorySnapshot_args(
27559
      long warehouseId)
27560
    {
27561
      this();
27562
      this.warehouseId = warehouseId;
27563
      setWarehouseIdIsSet(true);
27564
    }
27565
 
27566
    /**
27567
     * Performs a deep copy on <i>other</i>.
27568
     */
27569
    public getInventorySnapshot_args(getInventorySnapshot_args other) {
27570
      __isset_bit_vector.clear();
27571
      __isset_bit_vector.or(other.__isset_bit_vector);
27572
      this.warehouseId = other.warehouseId;
27573
    }
27574
 
27575
    public getInventorySnapshot_args deepCopy() {
27576
      return new getInventorySnapshot_args(this);
27577
    }
27578
 
27579
    @Override
27580
    public void clear() {
27581
      setWarehouseIdIsSet(false);
27582
      this.warehouseId = 0;
27583
    }
27584
 
27585
    public long getWarehouseId() {
27586
      return this.warehouseId;
27587
    }
27588
 
27589
    public void setWarehouseId(long warehouseId) {
27590
      this.warehouseId = warehouseId;
27591
      setWarehouseIdIsSet(true);
27592
    }
27593
 
27594
    public void unsetWarehouseId() {
27595
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
27596
    }
27597
 
27598
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
27599
    public boolean isSetWarehouseId() {
27600
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
27601
    }
27602
 
27603
    public void setWarehouseIdIsSet(boolean value) {
27604
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
27605
    }
27606
 
27607
    public void setFieldValue(_Fields field, Object value) {
27608
      switch (field) {
27609
      case WAREHOUSE_ID:
27610
        if (value == null) {
27611
          unsetWarehouseId();
27612
        } else {
27613
          setWarehouseId((Long)value);
27614
        }
27615
        break;
27616
 
27617
      }
27618
    }
27619
 
27620
    public Object getFieldValue(_Fields field) {
27621
      switch (field) {
27622
      case WAREHOUSE_ID:
27623
        return Long.valueOf(getWarehouseId());
27624
 
27625
      }
27626
      throw new IllegalStateException();
27627
    }
27628
 
27629
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27630
    public boolean isSet(_Fields field) {
27631
      if (field == null) {
27632
        throw new IllegalArgumentException();
27633
      }
27634
 
27635
      switch (field) {
27636
      case WAREHOUSE_ID:
27637
        return isSetWarehouseId();
27638
      }
27639
      throw new IllegalStateException();
27640
    }
27641
 
27642
    @Override
27643
    public boolean equals(Object that) {
27644
      if (that == null)
27645
        return false;
27646
      if (that instanceof getInventorySnapshot_args)
27647
        return this.equals((getInventorySnapshot_args)that);
27648
      return false;
27649
    }
27650
 
27651
    public boolean equals(getInventorySnapshot_args that) {
27652
      if (that == null)
27653
        return false;
27654
 
27655
      boolean this_present_warehouseId = true;
27656
      boolean that_present_warehouseId = true;
27657
      if (this_present_warehouseId || that_present_warehouseId) {
27658
        if (!(this_present_warehouseId && that_present_warehouseId))
27659
          return false;
27660
        if (this.warehouseId != that.warehouseId)
27661
          return false;
27662
      }
27663
 
27664
      return true;
27665
    }
27666
 
27667
    @Override
27668
    public int hashCode() {
27669
      return 0;
27670
    }
27671
 
27672
    public int compareTo(getInventorySnapshot_args other) {
27673
      if (!getClass().equals(other.getClass())) {
27674
        return getClass().getName().compareTo(other.getClass().getName());
27675
      }
27676
 
27677
      int lastComparison = 0;
27678
      getInventorySnapshot_args typedOther = (getInventorySnapshot_args)other;
27679
 
27680
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
27681
      if (lastComparison != 0) {
27682
        return lastComparison;
27683
      }
27684
      if (isSetWarehouseId()) {
27685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
27686
        if (lastComparison != 0) {
27687
          return lastComparison;
27688
        }
27689
      }
27690
      return 0;
27691
    }
27692
 
27693
    public _Fields fieldForId(int fieldId) {
27694
      return _Fields.findByThriftId(fieldId);
27695
    }
27696
 
27697
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27698
      org.apache.thrift.protocol.TField field;
27699
      iprot.readStructBegin();
27700
      while (true)
27701
      {
27702
        field = iprot.readFieldBegin();
27703
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27704
          break;
27705
        }
27706
        switch (field.id) {
27707
          case 1: // WAREHOUSE_ID
27708
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27709
              this.warehouseId = iprot.readI64();
27710
              setWarehouseIdIsSet(true);
27711
            } else { 
27712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27713
            }
27714
            break;
27715
          default:
27716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27717
        }
27718
        iprot.readFieldEnd();
27719
      }
27720
      iprot.readStructEnd();
27721
      validate();
27722
    }
27723
 
27724
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27725
      validate();
27726
 
27727
      oprot.writeStructBegin(STRUCT_DESC);
27728
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
27729
      oprot.writeI64(this.warehouseId);
27730
      oprot.writeFieldEnd();
27731
      oprot.writeFieldStop();
27732
      oprot.writeStructEnd();
27733
    }
27734
 
27735
    @Override
27736
    public String toString() {
27737
      StringBuilder sb = new StringBuilder("getInventorySnapshot_args(");
27738
      boolean first = true;
27739
 
27740
      sb.append("warehouseId:");
27741
      sb.append(this.warehouseId);
27742
      first = false;
27743
      sb.append(")");
27744
      return sb.toString();
27745
    }
27746
 
27747
    public void validate() throws org.apache.thrift.TException {
27748
      // check for required fields
27749
    }
27750
 
27751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27752
      try {
27753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27754
      } catch (org.apache.thrift.TException te) {
27755
        throw new java.io.IOException(te);
27756
      }
27757
    }
27758
 
27759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27760
      try {
27761
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27762
        __isset_bit_vector = new BitSet(1);
27763
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27764
      } catch (org.apache.thrift.TException te) {
27765
        throw new java.io.IOException(te);
27766
      }
27767
    }
27768
 
27769
  }
27770
 
27771
  public static class getInventorySnapshot_result implements org.apache.thrift.TBase<getInventorySnapshot_result, getInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable   {
27772
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventorySnapshot_result");
27773
 
27774
    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);
27775
 
27776
    private Map<Long,ItemInventory> success; // required
27777
 
27778
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27779
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27780
      SUCCESS((short)0, "success");
27781
 
27782
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27783
 
27784
      static {
27785
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27786
          byName.put(field.getFieldName(), field);
27787
        }
27788
      }
27789
 
27790
      /**
27791
       * Find the _Fields constant that matches fieldId, or null if its not found.
27792
       */
27793
      public static _Fields findByThriftId(int fieldId) {
27794
        switch(fieldId) {
27795
          case 0: // SUCCESS
27796
            return SUCCESS;
27797
          default:
27798
            return null;
27799
        }
27800
      }
27801
 
27802
      /**
27803
       * Find the _Fields constant that matches fieldId, throwing an exception
27804
       * if it is not found.
27805
       */
27806
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27807
        _Fields fields = findByThriftId(fieldId);
27808
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27809
        return fields;
27810
      }
27811
 
27812
      /**
27813
       * Find the _Fields constant that matches name, or null if its not found.
27814
       */
27815
      public static _Fields findByName(String name) {
27816
        return byName.get(name);
27817
      }
27818
 
27819
      private final short _thriftId;
27820
      private final String _fieldName;
27821
 
27822
      _Fields(short thriftId, String fieldName) {
27823
        _thriftId = thriftId;
27824
        _fieldName = fieldName;
27825
      }
27826
 
27827
      public short getThriftFieldId() {
27828
        return _thriftId;
27829
      }
27830
 
27831
      public String getFieldName() {
27832
        return _fieldName;
27833
      }
27834
    }
27835
 
27836
    // isset id assignments
27837
 
27838
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27839
    static {
27840
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27841
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27842
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
27843
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
27844
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemInventory.class))));
27845
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27846
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventorySnapshot_result.class, metaDataMap);
27847
    }
27848
 
27849
    public getInventorySnapshot_result() {
27850
    }
27851
 
27852
    public getInventorySnapshot_result(
27853
      Map<Long,ItemInventory> success)
27854
    {
27855
      this();
27856
      this.success = success;
27857
    }
27858
 
27859
    /**
27860
     * Performs a deep copy on <i>other</i>.
27861
     */
27862
    public getInventorySnapshot_result(getInventorySnapshot_result other) {
27863
      if (other.isSetSuccess()) {
27864
        Map<Long,ItemInventory> __this__success = new HashMap<Long,ItemInventory>();
27865
        for (Map.Entry<Long, ItemInventory> other_element : other.success.entrySet()) {
27866
 
27867
          Long other_element_key = other_element.getKey();
27868
          ItemInventory other_element_value = other_element.getValue();
27869
 
27870
          Long __this__success_copy_key = other_element_key;
27871
 
27872
          ItemInventory __this__success_copy_value = new ItemInventory(other_element_value);
27873
 
27874
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
27875
        }
27876
        this.success = __this__success;
27877
      }
27878
    }
27879
 
27880
    public getInventorySnapshot_result deepCopy() {
27881
      return new getInventorySnapshot_result(this);
27882
    }
27883
 
27884
    @Override
27885
    public void clear() {
27886
      this.success = null;
27887
    }
27888
 
27889
    public int getSuccessSize() {
27890
      return (this.success == null) ? 0 : this.success.size();
27891
    }
27892
 
27893
    public void putToSuccess(long key, ItemInventory val) {
27894
      if (this.success == null) {
27895
        this.success = new HashMap<Long,ItemInventory>();
27896
      }
27897
      this.success.put(key, val);
27898
    }
27899
 
27900
    public Map<Long,ItemInventory> getSuccess() {
27901
      return this.success;
27902
    }
27903
 
27904
    public void setSuccess(Map<Long,ItemInventory> success) {
27905
      this.success = success;
27906
    }
27907
 
27908
    public void unsetSuccess() {
27909
      this.success = null;
27910
    }
27911
 
27912
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27913
    public boolean isSetSuccess() {
27914
      return this.success != null;
27915
    }
27916
 
27917
    public void setSuccessIsSet(boolean value) {
27918
      if (!value) {
27919
        this.success = null;
27920
      }
27921
    }
27922
 
27923
    public void setFieldValue(_Fields field, Object value) {
27924
      switch (field) {
27925
      case SUCCESS:
27926
        if (value == null) {
27927
          unsetSuccess();
27928
        } else {
27929
          setSuccess((Map<Long,ItemInventory>)value);
27930
        }
27931
        break;
27932
 
27933
      }
27934
    }
27935
 
27936
    public Object getFieldValue(_Fields field) {
27937
      switch (field) {
27938
      case SUCCESS:
27939
        return getSuccess();
27940
 
27941
      }
27942
      throw new IllegalStateException();
27943
    }
27944
 
27945
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27946
    public boolean isSet(_Fields field) {
27947
      if (field == null) {
27948
        throw new IllegalArgumentException();
27949
      }
27950
 
27951
      switch (field) {
27952
      case SUCCESS:
27953
        return isSetSuccess();
27954
      }
27955
      throw new IllegalStateException();
27956
    }
27957
 
27958
    @Override
27959
    public boolean equals(Object that) {
27960
      if (that == null)
27961
        return false;
27962
      if (that instanceof getInventorySnapshot_result)
27963
        return this.equals((getInventorySnapshot_result)that);
27964
      return false;
27965
    }
27966
 
27967
    public boolean equals(getInventorySnapshot_result that) {
27968
      if (that == null)
27969
        return false;
27970
 
27971
      boolean this_present_success = true && this.isSetSuccess();
27972
      boolean that_present_success = true && that.isSetSuccess();
27973
      if (this_present_success || that_present_success) {
27974
        if (!(this_present_success && that_present_success))
27975
          return false;
27976
        if (!this.success.equals(that.success))
27977
          return false;
27978
      }
27979
 
27980
      return true;
27981
    }
27982
 
27983
    @Override
27984
    public int hashCode() {
27985
      return 0;
27986
    }
27987
 
27988
    public int compareTo(getInventorySnapshot_result other) {
27989
      if (!getClass().equals(other.getClass())) {
27990
        return getClass().getName().compareTo(other.getClass().getName());
27991
      }
27992
 
27993
      int lastComparison = 0;
27994
      getInventorySnapshot_result typedOther = (getInventorySnapshot_result)other;
27995
 
27996
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27997
      if (lastComparison != 0) {
27998
        return lastComparison;
27999
      }
28000
      if (isSetSuccess()) {
28001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28002
        if (lastComparison != 0) {
28003
          return lastComparison;
28004
        }
28005
      }
28006
      return 0;
28007
    }
28008
 
28009
    public _Fields fieldForId(int fieldId) {
28010
      return _Fields.findByThriftId(fieldId);
28011
    }
28012
 
28013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28014
      org.apache.thrift.protocol.TField field;
28015
      iprot.readStructBegin();
28016
      while (true)
28017
      {
28018
        field = iprot.readFieldBegin();
28019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28020
          break;
28021
        }
28022
        switch (field.id) {
28023
          case 0: // SUCCESS
28024
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
28025
              {
28026
                org.apache.thrift.protocol.TMap _map74 = iprot.readMapBegin();
28027
                this.success = new HashMap<Long,ItemInventory>(2*_map74.size);
28028
                for (int _i75 = 0; _i75 < _map74.size; ++_i75)
28029
                {
28030
                  long _key76; // required
28031
                  ItemInventory _val77; // required
28032
                  _key76 = iprot.readI64();
28033
                  _val77 = new ItemInventory();
28034
                  _val77.read(iprot);
28035
                  this.success.put(_key76, _val77);
28036
                }
28037
                iprot.readMapEnd();
28038
              }
28039
            } else { 
28040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28041
            }
28042
            break;
28043
          default:
28044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28045
        }
28046
        iprot.readFieldEnd();
28047
      }
28048
      iprot.readStructEnd();
28049
      validate();
28050
    }
28051
 
28052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28053
      oprot.writeStructBegin(STRUCT_DESC);
28054
 
28055
      if (this.isSetSuccess()) {
28056
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28057
        {
28058
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
28059
          for (Map.Entry<Long, ItemInventory> _iter78 : this.success.entrySet())
28060
          {
28061
            oprot.writeI64(_iter78.getKey());
28062
            _iter78.getValue().write(oprot);
28063
          }
28064
          oprot.writeMapEnd();
28065
        }
28066
        oprot.writeFieldEnd();
28067
      }
28068
      oprot.writeFieldStop();
28069
      oprot.writeStructEnd();
28070
    }
28071
 
28072
    @Override
28073
    public String toString() {
28074
      StringBuilder sb = new StringBuilder("getInventorySnapshot_result(");
28075
      boolean first = true;
28076
 
28077
      sb.append("success:");
28078
      if (this.success == null) {
28079
        sb.append("null");
28080
      } else {
28081
        sb.append(this.success);
28082
      }
28083
      first = false;
28084
      sb.append(")");
28085
      return sb.toString();
28086
    }
28087
 
28088
    public void validate() throws org.apache.thrift.TException {
28089
      // check for required fields
28090
    }
28091
 
28092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28093
      try {
28094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28095
      } catch (org.apache.thrift.TException te) {
28096
        throw new java.io.IOException(te);
28097
      }
28098
    }
28099
 
28100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28101
      try {
28102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28103
      } catch (org.apache.thrift.TException te) {
28104
        throw new java.io.IOException(te);
28105
      }
28106
    }
28107
 
28108
  }
28109
 
28110
  public static class clearItemAvailabilityCache_args implements org.apache.thrift.TBase<clearItemAvailabilityCache_args, clearItemAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
28111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_args");
28112
 
28113
 
28114
 
28115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28117
;
28118
 
28119
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28120
 
28121
      static {
28122
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28123
          byName.put(field.getFieldName(), field);
28124
        }
28125
      }
28126
 
28127
      /**
28128
       * Find the _Fields constant that matches fieldId, or null if its not found.
28129
       */
28130
      public static _Fields findByThriftId(int fieldId) {
28131
        switch(fieldId) {
28132
          default:
28133
            return null;
28134
        }
28135
      }
28136
 
28137
      /**
28138
       * Find the _Fields constant that matches fieldId, throwing an exception
28139
       * if it is not found.
28140
       */
28141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28142
        _Fields fields = findByThriftId(fieldId);
28143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28144
        return fields;
28145
      }
28146
 
28147
      /**
28148
       * Find the _Fields constant that matches name, or null if its not found.
28149
       */
28150
      public static _Fields findByName(String name) {
28151
        return byName.get(name);
28152
      }
28153
 
28154
      private final short _thriftId;
28155
      private final String _fieldName;
28156
 
28157
      _Fields(short thriftId, String fieldName) {
28158
        _thriftId = thriftId;
28159
        _fieldName = fieldName;
28160
      }
28161
 
28162
      public short getThriftFieldId() {
28163
        return _thriftId;
28164
      }
28165
 
28166
      public String getFieldName() {
28167
        return _fieldName;
28168
      }
28169
    }
28170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28171
    static {
28172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_args.class, metaDataMap);
28175
    }
28176
 
28177
    public clearItemAvailabilityCache_args() {
28178
    }
28179
 
28180
    /**
28181
     * Performs a deep copy on <i>other</i>.
28182
     */
28183
    public clearItemAvailabilityCache_args(clearItemAvailabilityCache_args other) {
28184
    }
28185
 
28186
    public clearItemAvailabilityCache_args deepCopy() {
28187
      return new clearItemAvailabilityCache_args(this);
28188
    }
28189
 
28190
    @Override
28191
    public void clear() {
28192
    }
28193
 
28194
    public void setFieldValue(_Fields field, Object value) {
28195
      switch (field) {
28196
      }
28197
    }
28198
 
28199
    public Object getFieldValue(_Fields field) {
28200
      switch (field) {
28201
      }
28202
      throw new IllegalStateException();
28203
    }
28204
 
28205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28206
    public boolean isSet(_Fields field) {
28207
      if (field == null) {
28208
        throw new IllegalArgumentException();
28209
      }
28210
 
28211
      switch (field) {
28212
      }
28213
      throw new IllegalStateException();
28214
    }
28215
 
28216
    @Override
28217
    public boolean equals(Object that) {
28218
      if (that == null)
28219
        return false;
28220
      if (that instanceof clearItemAvailabilityCache_args)
28221
        return this.equals((clearItemAvailabilityCache_args)that);
28222
      return false;
28223
    }
28224
 
28225
    public boolean equals(clearItemAvailabilityCache_args that) {
28226
      if (that == null)
28227
        return false;
28228
 
28229
      return true;
28230
    }
28231
 
28232
    @Override
28233
    public int hashCode() {
28234
      return 0;
28235
    }
28236
 
28237
    public int compareTo(clearItemAvailabilityCache_args other) {
28238
      if (!getClass().equals(other.getClass())) {
28239
        return getClass().getName().compareTo(other.getClass().getName());
28240
      }
28241
 
28242
      int lastComparison = 0;
28243
      clearItemAvailabilityCache_args typedOther = (clearItemAvailabilityCache_args)other;
28244
 
28245
      return 0;
28246
    }
28247
 
28248
    public _Fields fieldForId(int fieldId) {
28249
      return _Fields.findByThriftId(fieldId);
28250
    }
28251
 
28252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28253
      org.apache.thrift.protocol.TField field;
28254
      iprot.readStructBegin();
28255
      while (true)
28256
      {
28257
        field = iprot.readFieldBegin();
28258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28259
          break;
28260
        }
28261
        switch (field.id) {
28262
          default:
28263
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28264
        }
28265
        iprot.readFieldEnd();
28266
      }
28267
      iprot.readStructEnd();
28268
      validate();
28269
    }
28270
 
28271
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28272
      validate();
28273
 
28274
      oprot.writeStructBegin(STRUCT_DESC);
28275
      oprot.writeFieldStop();
28276
      oprot.writeStructEnd();
28277
    }
28278
 
28279
    @Override
28280
    public String toString() {
28281
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_args(");
28282
      boolean first = true;
28283
 
28284
      sb.append(")");
28285
      return sb.toString();
28286
    }
28287
 
28288
    public void validate() throws org.apache.thrift.TException {
28289
      // check for required fields
28290
    }
28291
 
28292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28293
      try {
28294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28295
      } catch (org.apache.thrift.TException te) {
28296
        throw new java.io.IOException(te);
28297
      }
28298
    }
28299
 
28300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28301
      try {
28302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28303
      } catch (org.apache.thrift.TException te) {
28304
        throw new java.io.IOException(te);
28305
      }
28306
    }
28307
 
28308
  }
28309
 
28310
  public static class clearItemAvailabilityCache_result implements org.apache.thrift.TBase<clearItemAvailabilityCache_result, clearItemAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
28311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCache_result");
28312
 
28313
 
28314
 
28315
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28316
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28317
;
28318
 
28319
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28320
 
28321
      static {
28322
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28323
          byName.put(field.getFieldName(), field);
28324
        }
28325
      }
28326
 
28327
      /**
28328
       * Find the _Fields constant that matches fieldId, or null if its not found.
28329
       */
28330
      public static _Fields findByThriftId(int fieldId) {
28331
        switch(fieldId) {
28332
          default:
28333
            return null;
28334
        }
28335
      }
28336
 
28337
      /**
28338
       * Find the _Fields constant that matches fieldId, throwing an exception
28339
       * if it is not found.
28340
       */
28341
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28342
        _Fields fields = findByThriftId(fieldId);
28343
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28344
        return fields;
28345
      }
28346
 
28347
      /**
28348
       * Find the _Fields constant that matches name, or null if its not found.
28349
       */
28350
      public static _Fields findByName(String name) {
28351
        return byName.get(name);
28352
      }
28353
 
28354
      private final short _thriftId;
28355
      private final String _fieldName;
28356
 
28357
      _Fields(short thriftId, String fieldName) {
28358
        _thriftId = thriftId;
28359
        _fieldName = fieldName;
28360
      }
28361
 
28362
      public short getThriftFieldId() {
28363
        return _thriftId;
28364
      }
28365
 
28366
      public String getFieldName() {
28367
        return _fieldName;
28368
      }
28369
    }
28370
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28371
    static {
28372
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28373
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28374
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCache_result.class, metaDataMap);
28375
    }
28376
 
28377
    public clearItemAvailabilityCache_result() {
28378
    }
28379
 
28380
    /**
28381
     * Performs a deep copy on <i>other</i>.
28382
     */
28383
    public clearItemAvailabilityCache_result(clearItemAvailabilityCache_result other) {
28384
    }
28385
 
28386
    public clearItemAvailabilityCache_result deepCopy() {
28387
      return new clearItemAvailabilityCache_result(this);
28388
    }
28389
 
28390
    @Override
28391
    public void clear() {
28392
    }
28393
 
28394
    public void setFieldValue(_Fields field, Object value) {
28395
      switch (field) {
28396
      }
28397
    }
28398
 
28399
    public Object getFieldValue(_Fields field) {
28400
      switch (field) {
28401
      }
28402
      throw new IllegalStateException();
28403
    }
28404
 
28405
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28406
    public boolean isSet(_Fields field) {
28407
      if (field == null) {
28408
        throw new IllegalArgumentException();
28409
      }
28410
 
28411
      switch (field) {
28412
      }
28413
      throw new IllegalStateException();
28414
    }
28415
 
28416
    @Override
28417
    public boolean equals(Object that) {
28418
      if (that == null)
28419
        return false;
28420
      if (that instanceof clearItemAvailabilityCache_result)
28421
        return this.equals((clearItemAvailabilityCache_result)that);
28422
      return false;
28423
    }
28424
 
28425
    public boolean equals(clearItemAvailabilityCache_result that) {
28426
      if (that == null)
28427
        return false;
28428
 
28429
      return true;
28430
    }
28431
 
28432
    @Override
28433
    public int hashCode() {
28434
      return 0;
28435
    }
28436
 
28437
    public int compareTo(clearItemAvailabilityCache_result other) {
28438
      if (!getClass().equals(other.getClass())) {
28439
        return getClass().getName().compareTo(other.getClass().getName());
28440
      }
28441
 
28442
      int lastComparison = 0;
28443
      clearItemAvailabilityCache_result typedOther = (clearItemAvailabilityCache_result)other;
28444
 
28445
      return 0;
28446
    }
28447
 
28448
    public _Fields fieldForId(int fieldId) {
28449
      return _Fields.findByThriftId(fieldId);
28450
    }
28451
 
28452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28453
      org.apache.thrift.protocol.TField field;
28454
      iprot.readStructBegin();
28455
      while (true)
28456
      {
28457
        field = iprot.readFieldBegin();
28458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28459
          break;
28460
        }
28461
        switch (field.id) {
28462
          default:
28463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28464
        }
28465
        iprot.readFieldEnd();
28466
      }
28467
      iprot.readStructEnd();
28468
      validate();
28469
    }
28470
 
28471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28472
      oprot.writeStructBegin(STRUCT_DESC);
28473
 
28474
      oprot.writeFieldStop();
28475
      oprot.writeStructEnd();
28476
    }
28477
 
28478
    @Override
28479
    public String toString() {
28480
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCache_result(");
28481
      boolean first = true;
28482
 
28483
      sb.append(")");
28484
      return sb.toString();
28485
    }
28486
 
28487
    public void validate() throws org.apache.thrift.TException {
28488
      // check for required fields
28489
    }
28490
 
28491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28492
      try {
28493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28494
      } catch (org.apache.thrift.TException te) {
28495
        throw new java.io.IOException(te);
28496
      }
28497
    }
28498
 
28499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28500
      try {
28501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28502
      } catch (org.apache.thrift.TException te) {
28503
        throw new java.io.IOException(te);
28504
      }
28505
    }
28506
 
28507
  }
28508
 
28509
  public static class updateVendorString_args implements org.apache.thrift.TBase<updateVendorString_args, updateVendorString_args._Fields>, java.io.Serializable, Cloneable   {
28510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_args");
28511
 
28512
    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);
28513
    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);
28514
 
28515
    private long warehouseId; // required
28516
    private String vendorString; // required
28517
 
28518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28520
      WAREHOUSE_ID((short)1, "warehouseId"),
28521
      VENDOR_STRING((short)2, "vendorString");
28522
 
28523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28524
 
28525
      static {
28526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28527
          byName.put(field.getFieldName(), field);
28528
        }
28529
      }
28530
 
28531
      /**
28532
       * Find the _Fields constant that matches fieldId, or null if its not found.
28533
       */
28534
      public static _Fields findByThriftId(int fieldId) {
28535
        switch(fieldId) {
28536
          case 1: // WAREHOUSE_ID
28537
            return WAREHOUSE_ID;
28538
          case 2: // VENDOR_STRING
28539
            return VENDOR_STRING;
28540
          default:
28541
            return null;
28542
        }
28543
      }
28544
 
28545
      /**
28546
       * Find the _Fields constant that matches fieldId, throwing an exception
28547
       * if it is not found.
28548
       */
28549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28550
        _Fields fields = findByThriftId(fieldId);
28551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28552
        return fields;
28553
      }
28554
 
28555
      /**
28556
       * Find the _Fields constant that matches name, or null if its not found.
28557
       */
28558
      public static _Fields findByName(String name) {
28559
        return byName.get(name);
28560
      }
28561
 
28562
      private final short _thriftId;
28563
      private final String _fieldName;
28564
 
28565
      _Fields(short thriftId, String fieldName) {
28566
        _thriftId = thriftId;
28567
        _fieldName = fieldName;
28568
      }
28569
 
28570
      public short getThriftFieldId() {
28571
        return _thriftId;
28572
      }
28573
 
28574
      public String getFieldName() {
28575
        return _fieldName;
28576
      }
28577
    }
28578
 
28579
    // isset id assignments
28580
    private static final int __WAREHOUSEID_ISSET_ID = 0;
28581
    private BitSet __isset_bit_vector = new BitSet(1);
28582
 
28583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28584
    static {
28585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28586
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28588
      tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_args.class, metaDataMap);
28592
    }
28593
 
28594
    public updateVendorString_args() {
28595
    }
28596
 
28597
    public updateVendorString_args(
28598
      long warehouseId,
28599
      String vendorString)
28600
    {
28601
      this();
28602
      this.warehouseId = warehouseId;
28603
      setWarehouseIdIsSet(true);
28604
      this.vendorString = vendorString;
28605
    }
28606
 
28607
    /**
28608
     * Performs a deep copy on <i>other</i>.
28609
     */
28610
    public updateVendorString_args(updateVendorString_args other) {
28611
      __isset_bit_vector.clear();
28612
      __isset_bit_vector.or(other.__isset_bit_vector);
28613
      this.warehouseId = other.warehouseId;
28614
      if (other.isSetVendorString()) {
28615
        this.vendorString = other.vendorString;
28616
      }
28617
    }
28618
 
28619
    public updateVendorString_args deepCopy() {
28620
      return new updateVendorString_args(this);
28621
    }
28622
 
28623
    @Override
28624
    public void clear() {
28625
      setWarehouseIdIsSet(false);
28626
      this.warehouseId = 0;
28627
      this.vendorString = null;
28628
    }
28629
 
28630
    public long getWarehouseId() {
28631
      return this.warehouseId;
28632
    }
28633
 
28634
    public void setWarehouseId(long warehouseId) {
28635
      this.warehouseId = warehouseId;
28636
      setWarehouseIdIsSet(true);
28637
    }
28638
 
28639
    public void unsetWarehouseId() {
28640
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
28641
    }
28642
 
28643
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
28644
    public boolean isSetWarehouseId() {
28645
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
28646
    }
28647
 
28648
    public void setWarehouseIdIsSet(boolean value) {
28649
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
28650
    }
28651
 
28652
    public String getVendorString() {
28653
      return this.vendorString;
28654
    }
28655
 
28656
    public void setVendorString(String vendorString) {
28657
      this.vendorString = vendorString;
28658
    }
28659
 
28660
    public void unsetVendorString() {
28661
      this.vendorString = null;
28662
    }
28663
 
28664
    /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
28665
    public boolean isSetVendorString() {
28666
      return this.vendorString != null;
28667
    }
28668
 
28669
    public void setVendorStringIsSet(boolean value) {
28670
      if (!value) {
28671
        this.vendorString = null;
28672
      }
28673
    }
28674
 
28675
    public void setFieldValue(_Fields field, Object value) {
28676
      switch (field) {
28677
      case WAREHOUSE_ID:
28678
        if (value == null) {
28679
          unsetWarehouseId();
28680
        } else {
28681
          setWarehouseId((Long)value);
28682
        }
28683
        break;
28684
 
28685
      case VENDOR_STRING:
28686
        if (value == null) {
28687
          unsetVendorString();
28688
        } else {
28689
          setVendorString((String)value);
28690
        }
28691
        break;
28692
 
28693
      }
28694
    }
28695
 
28696
    public Object getFieldValue(_Fields field) {
28697
      switch (field) {
28698
      case WAREHOUSE_ID:
28699
        return Long.valueOf(getWarehouseId());
28700
 
28701
      case VENDOR_STRING:
28702
        return getVendorString();
28703
 
28704
      }
28705
      throw new IllegalStateException();
28706
    }
28707
 
28708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28709
    public boolean isSet(_Fields field) {
28710
      if (field == null) {
28711
        throw new IllegalArgumentException();
28712
      }
28713
 
28714
      switch (field) {
28715
      case WAREHOUSE_ID:
28716
        return isSetWarehouseId();
28717
      case VENDOR_STRING:
28718
        return isSetVendorString();
28719
      }
28720
      throw new IllegalStateException();
28721
    }
28722
 
28723
    @Override
28724
    public boolean equals(Object that) {
28725
      if (that == null)
28726
        return false;
28727
      if (that instanceof updateVendorString_args)
28728
        return this.equals((updateVendorString_args)that);
28729
      return false;
28730
    }
28731
 
28732
    public boolean equals(updateVendorString_args that) {
28733
      if (that == null)
28734
        return false;
28735
 
28736
      boolean this_present_warehouseId = true;
28737
      boolean that_present_warehouseId = true;
28738
      if (this_present_warehouseId || that_present_warehouseId) {
28739
        if (!(this_present_warehouseId && that_present_warehouseId))
28740
          return false;
28741
        if (this.warehouseId != that.warehouseId)
28742
          return false;
28743
      }
28744
 
28745
      boolean this_present_vendorString = true && this.isSetVendorString();
28746
      boolean that_present_vendorString = true && that.isSetVendorString();
28747
      if (this_present_vendorString || that_present_vendorString) {
28748
        if (!(this_present_vendorString && that_present_vendorString))
28749
          return false;
28750
        if (!this.vendorString.equals(that.vendorString))
28751
          return false;
28752
      }
28753
 
28754
      return true;
28755
    }
28756
 
28757
    @Override
28758
    public int hashCode() {
28759
      return 0;
28760
    }
28761
 
28762
    public int compareTo(updateVendorString_args other) {
28763
      if (!getClass().equals(other.getClass())) {
28764
        return getClass().getName().compareTo(other.getClass().getName());
28765
      }
28766
 
28767
      int lastComparison = 0;
28768
      updateVendorString_args typedOther = (updateVendorString_args)other;
28769
 
28770
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
28771
      if (lastComparison != 0) {
28772
        return lastComparison;
28773
      }
28774
      if (isSetWarehouseId()) {
28775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
28776
        if (lastComparison != 0) {
28777
          return lastComparison;
28778
        }
28779
      }
28780
      lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
28781
      if (lastComparison != 0) {
28782
        return lastComparison;
28783
      }
28784
      if (isSetVendorString()) {
28785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
28786
        if (lastComparison != 0) {
28787
          return lastComparison;
28788
        }
28789
      }
28790
      return 0;
28791
    }
28792
 
28793
    public _Fields fieldForId(int fieldId) {
28794
      return _Fields.findByThriftId(fieldId);
28795
    }
28796
 
28797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28798
      org.apache.thrift.protocol.TField field;
28799
      iprot.readStructBegin();
28800
      while (true)
28801
      {
28802
        field = iprot.readFieldBegin();
28803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28804
          break;
28805
        }
28806
        switch (field.id) {
28807
          case 1: // WAREHOUSE_ID
28808
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28809
              this.warehouseId = iprot.readI64();
28810
              setWarehouseIdIsSet(true);
28811
            } else { 
28812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28813
            }
28814
            break;
28815
          case 2: // VENDOR_STRING
28816
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28817
              this.vendorString = iprot.readString();
28818
            } else { 
28819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28820
            }
28821
            break;
28822
          default:
28823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28824
        }
28825
        iprot.readFieldEnd();
28826
      }
28827
      iprot.readStructEnd();
28828
      validate();
28829
    }
28830
 
28831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28832
      validate();
28833
 
28834
      oprot.writeStructBegin(STRUCT_DESC);
28835
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
28836
      oprot.writeI64(this.warehouseId);
28837
      oprot.writeFieldEnd();
28838
      if (this.vendorString != null) {
28839
        oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
28840
        oprot.writeString(this.vendorString);
28841
        oprot.writeFieldEnd();
28842
      }
28843
      oprot.writeFieldStop();
28844
      oprot.writeStructEnd();
28845
    }
28846
 
28847
    @Override
28848
    public String toString() {
28849
      StringBuilder sb = new StringBuilder("updateVendorString_args(");
28850
      boolean first = true;
28851
 
28852
      sb.append("warehouseId:");
28853
      sb.append(this.warehouseId);
28854
      first = false;
28855
      if (!first) sb.append(", ");
28856
      sb.append("vendorString:");
28857
      if (this.vendorString == null) {
28858
        sb.append("null");
28859
      } else {
28860
        sb.append(this.vendorString);
28861
      }
28862
      first = false;
28863
      sb.append(")");
28864
      return sb.toString();
28865
    }
28866
 
28867
    public void validate() throws org.apache.thrift.TException {
28868
      // check for required fields
28869
    }
28870
 
28871
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28872
      try {
28873
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28874
      } catch (org.apache.thrift.TException te) {
28875
        throw new java.io.IOException(te);
28876
      }
28877
    }
28878
 
28879
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28880
      try {
5967 rajveer 28881
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28882
        __isset_bit_vector = new BitSet(1);
5945 mandeep.dh 28883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28884
      } catch (org.apache.thrift.TException te) {
28885
        throw new java.io.IOException(te);
28886
      }
28887
    }
28888
 
28889
  }
28890
 
28891
  public static class updateVendorString_result implements org.apache.thrift.TBase<updateVendorString_result, updateVendorString_result._Fields>, java.io.Serializable, Cloneable   {
28892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateVendorString_result");
28893
 
28894
 
28895
 
28896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28898
;
28899
 
28900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28901
 
28902
      static {
28903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28904
          byName.put(field.getFieldName(), field);
28905
        }
28906
      }
28907
 
28908
      /**
28909
       * Find the _Fields constant that matches fieldId, or null if its not found.
28910
       */
28911
      public static _Fields findByThriftId(int fieldId) {
28912
        switch(fieldId) {
28913
          default:
28914
            return null;
28915
        }
28916
      }
28917
 
28918
      /**
28919
       * Find the _Fields constant that matches fieldId, throwing an exception
28920
       * if it is not found.
28921
       */
28922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28923
        _Fields fields = findByThriftId(fieldId);
28924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28925
        return fields;
28926
      }
28927
 
28928
      /**
28929
       * Find the _Fields constant that matches name, or null if its not found.
28930
       */
28931
      public static _Fields findByName(String name) {
28932
        return byName.get(name);
28933
      }
28934
 
28935
      private final short _thriftId;
28936
      private final String _fieldName;
28937
 
28938
      _Fields(short thriftId, String fieldName) {
28939
        _thriftId = thriftId;
28940
        _fieldName = fieldName;
28941
      }
28942
 
28943
      public short getThriftFieldId() {
28944
        return _thriftId;
28945
      }
28946
 
28947
      public String getFieldName() {
28948
        return _fieldName;
28949
      }
28950
    }
28951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28952
    static {
28953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateVendorString_result.class, metaDataMap);
28956
    }
28957
 
28958
    public updateVendorString_result() {
28959
    }
28960
 
28961
    /**
28962
     * Performs a deep copy on <i>other</i>.
28963
     */
28964
    public updateVendorString_result(updateVendorString_result other) {
28965
    }
28966
 
28967
    public updateVendorString_result deepCopy() {
28968
      return new updateVendorString_result(this);
28969
    }
28970
 
28971
    @Override
28972
    public void clear() {
28973
    }
28974
 
28975
    public void setFieldValue(_Fields field, Object value) {
28976
      switch (field) {
28977
      }
28978
    }
28979
 
28980
    public Object getFieldValue(_Fields field) {
28981
      switch (field) {
28982
      }
28983
      throw new IllegalStateException();
28984
    }
28985
 
28986
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28987
    public boolean isSet(_Fields field) {
28988
      if (field == null) {
28989
        throw new IllegalArgumentException();
28990
      }
28991
 
28992
      switch (field) {
28993
      }
28994
      throw new IllegalStateException();
28995
    }
28996
 
28997
    @Override
28998
    public boolean equals(Object that) {
28999
      if (that == null)
29000
        return false;
29001
      if (that instanceof updateVendorString_result)
29002
        return this.equals((updateVendorString_result)that);
29003
      return false;
29004
    }
29005
 
29006
    public boolean equals(updateVendorString_result that) {
29007
      if (that == null)
29008
        return false;
29009
 
29010
      return true;
29011
    }
29012
 
29013
    @Override
29014
    public int hashCode() {
29015
      return 0;
29016
    }
29017
 
29018
    public int compareTo(updateVendorString_result other) {
29019
      if (!getClass().equals(other.getClass())) {
29020
        return getClass().getName().compareTo(other.getClass().getName());
29021
      }
29022
 
29023
      int lastComparison = 0;
29024
      updateVendorString_result typedOther = (updateVendorString_result)other;
29025
 
29026
      return 0;
29027
    }
29028
 
29029
    public _Fields fieldForId(int fieldId) {
29030
      return _Fields.findByThriftId(fieldId);
29031
    }
29032
 
29033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29034
      org.apache.thrift.protocol.TField field;
29035
      iprot.readStructBegin();
29036
      while (true)
29037
      {
29038
        field = iprot.readFieldBegin();
29039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29040
          break;
29041
        }
29042
        switch (field.id) {
29043
          default:
29044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29045
        }
29046
        iprot.readFieldEnd();
29047
      }
29048
      iprot.readStructEnd();
29049
      validate();
29050
    }
29051
 
29052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29053
      oprot.writeStructBegin(STRUCT_DESC);
29054
 
29055
      oprot.writeFieldStop();
29056
      oprot.writeStructEnd();
29057
    }
29058
 
29059
    @Override
29060
    public String toString() {
29061
      StringBuilder sb = new StringBuilder("updateVendorString_result(");
29062
      boolean first = true;
29063
 
29064
      sb.append(")");
29065
      return sb.toString();
29066
    }
29067
 
29068
    public void validate() throws org.apache.thrift.TException {
29069
      // check for required fields
29070
    }
29071
 
29072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29073
      try {
29074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29075
      } catch (org.apache.thrift.TException te) {
29076
        throw new java.io.IOException(te);
29077
      }
29078
    }
29079
 
29080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29081
      try {
29082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29083
      } catch (org.apache.thrift.TException te) {
29084
        throw new java.io.IOException(te);
29085
      }
29086
    }
29087
 
29088
  }
29089
 
6096 amit.gupta 29090
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
29091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
29092
 
29093
    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);
29094
 
29095
    private long item_id; // required
29096
 
29097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29099
      ITEM_ID((short)1, "item_id");
29100
 
29101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29102
 
29103
      static {
29104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29105
          byName.put(field.getFieldName(), field);
29106
        }
29107
      }
29108
 
29109
      /**
29110
       * Find the _Fields constant that matches fieldId, or null if its not found.
29111
       */
29112
      public static _Fields findByThriftId(int fieldId) {
29113
        switch(fieldId) {
29114
          case 1: // ITEM_ID
29115
            return ITEM_ID;
29116
          default:
29117
            return null;
29118
        }
29119
      }
29120
 
29121
      /**
29122
       * Find the _Fields constant that matches fieldId, throwing an exception
29123
       * if it is not found.
29124
       */
29125
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29126
        _Fields fields = findByThriftId(fieldId);
29127
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29128
        return fields;
29129
      }
29130
 
29131
      /**
29132
       * Find the _Fields constant that matches name, or null if its not found.
29133
       */
29134
      public static _Fields findByName(String name) {
29135
        return byName.get(name);
29136
      }
29137
 
29138
      private final short _thriftId;
29139
      private final String _fieldName;
29140
 
29141
      _Fields(short thriftId, String fieldName) {
29142
        _thriftId = thriftId;
29143
        _fieldName = fieldName;
29144
      }
29145
 
29146
      public short getThriftFieldId() {
29147
        return _thriftId;
29148
      }
29149
 
29150
      public String getFieldName() {
29151
        return _fieldName;
29152
      }
29153
    }
29154
 
29155
    // isset id assignments
29156
    private static final int __ITEM_ID_ISSET_ID = 0;
29157
    private BitSet __isset_bit_vector = new BitSet(1);
29158
 
29159
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29160
    static {
29161
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29162
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29163
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29164
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29165
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
29166
    }
29167
 
29168
    public clearItemAvailabilityCacheForItem_args() {
29169
    }
29170
 
29171
    public clearItemAvailabilityCacheForItem_args(
29172
      long item_id)
29173
    {
29174
      this();
29175
      this.item_id = item_id;
29176
      setItem_idIsSet(true);
29177
    }
29178
 
29179
    /**
29180
     * Performs a deep copy on <i>other</i>.
29181
     */
29182
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
29183
      __isset_bit_vector.clear();
29184
      __isset_bit_vector.or(other.__isset_bit_vector);
29185
      this.item_id = other.item_id;
29186
    }
29187
 
29188
    public clearItemAvailabilityCacheForItem_args deepCopy() {
29189
      return new clearItemAvailabilityCacheForItem_args(this);
29190
    }
29191
 
29192
    @Override
29193
    public void clear() {
29194
      setItem_idIsSet(false);
29195
      this.item_id = 0;
29196
    }
29197
 
29198
    public long getItem_id() {
29199
      return this.item_id;
29200
    }
29201
 
29202
    public void setItem_id(long item_id) {
29203
      this.item_id = item_id;
29204
      setItem_idIsSet(true);
29205
    }
29206
 
29207
    public void unsetItem_id() {
29208
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
29209
    }
29210
 
29211
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
29212
    public boolean isSetItem_id() {
29213
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
29214
    }
29215
 
29216
    public void setItem_idIsSet(boolean value) {
29217
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
29218
    }
29219
 
29220
    public void setFieldValue(_Fields field, Object value) {
29221
      switch (field) {
29222
      case ITEM_ID:
29223
        if (value == null) {
29224
          unsetItem_id();
29225
        } else {
29226
          setItem_id((Long)value);
29227
        }
29228
        break;
29229
 
29230
      }
29231
    }
29232
 
29233
    public Object getFieldValue(_Fields field) {
29234
      switch (field) {
29235
      case ITEM_ID:
29236
        return Long.valueOf(getItem_id());
29237
 
29238
      }
29239
      throw new IllegalStateException();
29240
    }
29241
 
29242
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29243
    public boolean isSet(_Fields field) {
29244
      if (field == null) {
29245
        throw new IllegalArgumentException();
29246
      }
29247
 
29248
      switch (field) {
29249
      case ITEM_ID:
29250
        return isSetItem_id();
29251
      }
29252
      throw new IllegalStateException();
29253
    }
29254
 
29255
    @Override
29256
    public boolean equals(Object that) {
29257
      if (that == null)
29258
        return false;
29259
      if (that instanceof clearItemAvailabilityCacheForItem_args)
29260
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
29261
      return false;
29262
    }
29263
 
29264
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
29265
      if (that == null)
29266
        return false;
29267
 
29268
      boolean this_present_item_id = true;
29269
      boolean that_present_item_id = true;
29270
      if (this_present_item_id || that_present_item_id) {
29271
        if (!(this_present_item_id && that_present_item_id))
29272
          return false;
29273
        if (this.item_id != that.item_id)
29274
          return false;
29275
      }
29276
 
29277
      return true;
29278
    }
29279
 
29280
    @Override
29281
    public int hashCode() {
29282
      return 0;
29283
    }
29284
 
29285
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
29286
      if (!getClass().equals(other.getClass())) {
29287
        return getClass().getName().compareTo(other.getClass().getName());
29288
      }
29289
 
29290
      int lastComparison = 0;
29291
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
29292
 
29293
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
29294
      if (lastComparison != 0) {
29295
        return lastComparison;
29296
      }
29297
      if (isSetItem_id()) {
29298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
29299
        if (lastComparison != 0) {
29300
          return lastComparison;
29301
        }
29302
      }
29303
      return 0;
29304
    }
29305
 
29306
    public _Fields fieldForId(int fieldId) {
29307
      return _Fields.findByThriftId(fieldId);
29308
    }
29309
 
29310
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29311
      org.apache.thrift.protocol.TField field;
29312
      iprot.readStructBegin();
29313
      while (true)
29314
      {
29315
        field = iprot.readFieldBegin();
29316
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29317
          break;
29318
        }
29319
        switch (field.id) {
29320
          case 1: // ITEM_ID
29321
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29322
              this.item_id = iprot.readI64();
29323
              setItem_idIsSet(true);
29324
            } else { 
29325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29326
            }
29327
            break;
29328
          default:
29329
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29330
        }
29331
        iprot.readFieldEnd();
29332
      }
29333
      iprot.readStructEnd();
29334
      validate();
29335
    }
29336
 
29337
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29338
      validate();
29339
 
29340
      oprot.writeStructBegin(STRUCT_DESC);
29341
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
29342
      oprot.writeI64(this.item_id);
29343
      oprot.writeFieldEnd();
29344
      oprot.writeFieldStop();
29345
      oprot.writeStructEnd();
29346
    }
29347
 
29348
    @Override
29349
    public String toString() {
29350
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
29351
      boolean first = true;
29352
 
29353
      sb.append("item_id:");
29354
      sb.append(this.item_id);
29355
      first = false;
29356
      sb.append(")");
29357
      return sb.toString();
29358
    }
29359
 
29360
    public void validate() throws org.apache.thrift.TException {
29361
      // check for required fields
29362
    }
29363
 
29364
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29365
      try {
29366
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29367
      } catch (org.apache.thrift.TException te) {
29368
        throw new java.io.IOException(te);
29369
      }
29370
    }
29371
 
29372
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29373
      try {
29374
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29375
        __isset_bit_vector = new BitSet(1);
29376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29377
      } catch (org.apache.thrift.TException te) {
29378
        throw new java.io.IOException(te);
29379
      }
29380
    }
29381
 
29382
  }
29383
 
29384
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
29385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
29386
 
29387
 
29388
 
29389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29390
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29391
;
29392
 
29393
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29394
 
29395
      static {
29396
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29397
          byName.put(field.getFieldName(), field);
29398
        }
29399
      }
29400
 
29401
      /**
29402
       * Find the _Fields constant that matches fieldId, or null if its not found.
29403
       */
29404
      public static _Fields findByThriftId(int fieldId) {
29405
        switch(fieldId) {
29406
          default:
29407
            return null;
29408
        }
29409
      }
29410
 
29411
      /**
29412
       * Find the _Fields constant that matches fieldId, throwing an exception
29413
       * if it is not found.
29414
       */
29415
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29416
        _Fields fields = findByThriftId(fieldId);
29417
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29418
        return fields;
29419
      }
29420
 
29421
      /**
29422
       * Find the _Fields constant that matches name, or null if its not found.
29423
       */
29424
      public static _Fields findByName(String name) {
29425
        return byName.get(name);
29426
      }
29427
 
29428
      private final short _thriftId;
29429
      private final String _fieldName;
29430
 
29431
      _Fields(short thriftId, String fieldName) {
29432
        _thriftId = thriftId;
29433
        _fieldName = fieldName;
29434
      }
29435
 
29436
      public short getThriftFieldId() {
29437
        return _thriftId;
29438
      }
29439
 
29440
      public String getFieldName() {
29441
        return _fieldName;
29442
      }
29443
    }
29444
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29445
    static {
29446
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29447
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29448
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
29449
    }
29450
 
29451
    public clearItemAvailabilityCacheForItem_result() {
29452
    }
29453
 
29454
    /**
29455
     * Performs a deep copy on <i>other</i>.
29456
     */
29457
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
29458
    }
29459
 
29460
    public clearItemAvailabilityCacheForItem_result deepCopy() {
29461
      return new clearItemAvailabilityCacheForItem_result(this);
29462
    }
29463
 
29464
    @Override
29465
    public void clear() {
29466
    }
29467
 
29468
    public void setFieldValue(_Fields field, Object value) {
29469
      switch (field) {
29470
      }
29471
    }
29472
 
29473
    public Object getFieldValue(_Fields field) {
29474
      switch (field) {
29475
      }
29476
      throw new IllegalStateException();
29477
    }
29478
 
29479
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29480
    public boolean isSet(_Fields field) {
29481
      if (field == null) {
29482
        throw new IllegalArgumentException();
29483
      }
29484
 
29485
      switch (field) {
29486
      }
29487
      throw new IllegalStateException();
29488
    }
29489
 
29490
    @Override
29491
    public boolean equals(Object that) {
29492
      if (that == null)
29493
        return false;
29494
      if (that instanceof clearItemAvailabilityCacheForItem_result)
29495
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
29496
      return false;
29497
    }
29498
 
29499
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
29500
      if (that == null)
29501
        return false;
29502
 
29503
      return true;
29504
    }
29505
 
29506
    @Override
29507
    public int hashCode() {
29508
      return 0;
29509
    }
29510
 
29511
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
29512
      if (!getClass().equals(other.getClass())) {
29513
        return getClass().getName().compareTo(other.getClass().getName());
29514
      }
29515
 
29516
      int lastComparison = 0;
29517
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
29518
 
29519
      return 0;
29520
    }
29521
 
29522
    public _Fields fieldForId(int fieldId) {
29523
      return _Fields.findByThriftId(fieldId);
29524
    }
29525
 
29526
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29527
      org.apache.thrift.protocol.TField field;
29528
      iprot.readStructBegin();
29529
      while (true)
29530
      {
29531
        field = iprot.readFieldBegin();
29532
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29533
          break;
29534
        }
29535
        switch (field.id) {
29536
          default:
29537
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29538
        }
29539
        iprot.readFieldEnd();
29540
      }
29541
      iprot.readStructEnd();
29542
      validate();
29543
    }
29544
 
29545
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29546
      oprot.writeStructBegin(STRUCT_DESC);
29547
 
29548
      oprot.writeFieldStop();
29549
      oprot.writeStructEnd();
29550
    }
29551
 
29552
    @Override
29553
    public String toString() {
29554
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
29555
      boolean first = true;
29556
 
29557
      sb.append(")");
29558
      return sb.toString();
29559
    }
29560
 
29561
    public void validate() throws org.apache.thrift.TException {
29562
      // check for required fields
29563
    }
29564
 
29565
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29566
      try {
29567
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29568
      } catch (org.apache.thrift.TException te) {
29569
        throw new java.io.IOException(te);
29570
      }
29571
    }
29572
 
29573
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29574
      try {
29575
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29576
      } catch (org.apache.thrift.TException te) {
29577
        throw new java.io.IOException(te);
29578
      }
29579
    }
29580
 
29581
  }
29582
 
6467 amar.kumar 29583
  public static class getOurWarehouseIdForVendor_args implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_args, getOurWarehouseIdForVendor_args._Fields>, java.io.Serializable, Cloneable   {
29584
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_args");
29585
 
29586
    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);
29587
 
29588
    private long vendorId; // required
29589
 
29590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29592
      VENDOR_ID((short)1, "vendorId");
29593
 
29594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29595
 
29596
      static {
29597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29598
          byName.put(field.getFieldName(), field);
29599
        }
29600
      }
29601
 
29602
      /**
29603
       * Find the _Fields constant that matches fieldId, or null if its not found.
29604
       */
29605
      public static _Fields findByThriftId(int fieldId) {
29606
        switch(fieldId) {
29607
          case 1: // VENDOR_ID
29608
            return VENDOR_ID;
29609
          default:
29610
            return null;
29611
        }
29612
      }
29613
 
29614
      /**
29615
       * Find the _Fields constant that matches fieldId, throwing an exception
29616
       * if it is not found.
29617
       */
29618
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29619
        _Fields fields = findByThriftId(fieldId);
29620
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29621
        return fields;
29622
      }
29623
 
29624
      /**
29625
       * Find the _Fields constant that matches name, or null if its not found.
29626
       */
29627
      public static _Fields findByName(String name) {
29628
        return byName.get(name);
29629
      }
29630
 
29631
      private final short _thriftId;
29632
      private final String _fieldName;
29633
 
29634
      _Fields(short thriftId, String fieldName) {
29635
        _thriftId = thriftId;
29636
        _fieldName = fieldName;
29637
      }
29638
 
29639
      public short getThriftFieldId() {
29640
        return _thriftId;
29641
      }
29642
 
29643
      public String getFieldName() {
29644
        return _fieldName;
29645
      }
29646
    }
29647
 
29648
    // isset id assignments
29649
    private static final int __VENDORID_ISSET_ID = 0;
29650
    private BitSet __isset_bit_vector = new BitSet(1);
29651
 
29652
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29653
    static {
29654
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29655
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29656
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29657
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29658
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_args.class, metaDataMap);
29659
    }
29660
 
29661
    public getOurWarehouseIdForVendor_args() {
29662
    }
29663
 
29664
    public getOurWarehouseIdForVendor_args(
29665
      long vendorId)
29666
    {
29667
      this();
29668
      this.vendorId = vendorId;
29669
      setVendorIdIsSet(true);
29670
    }
29671
 
29672
    /**
29673
     * Performs a deep copy on <i>other</i>.
29674
     */
29675
    public getOurWarehouseIdForVendor_args(getOurWarehouseIdForVendor_args other) {
29676
      __isset_bit_vector.clear();
29677
      __isset_bit_vector.or(other.__isset_bit_vector);
29678
      this.vendorId = other.vendorId;
29679
    }
29680
 
29681
    public getOurWarehouseIdForVendor_args deepCopy() {
29682
      return new getOurWarehouseIdForVendor_args(this);
29683
    }
29684
 
29685
    @Override
29686
    public void clear() {
29687
      setVendorIdIsSet(false);
29688
      this.vendorId = 0;
29689
    }
29690
 
29691
    public long getVendorId() {
29692
      return this.vendorId;
29693
    }
29694
 
29695
    public void setVendorId(long vendorId) {
29696
      this.vendorId = vendorId;
29697
      setVendorIdIsSet(true);
29698
    }
29699
 
29700
    public void unsetVendorId() {
29701
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
29702
    }
29703
 
29704
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
29705
    public boolean isSetVendorId() {
29706
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
29707
    }
29708
 
29709
    public void setVendorIdIsSet(boolean value) {
29710
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
29711
    }
29712
 
29713
    public void setFieldValue(_Fields field, Object value) {
29714
      switch (field) {
29715
      case VENDOR_ID:
29716
        if (value == null) {
29717
          unsetVendorId();
29718
        } else {
29719
          setVendorId((Long)value);
29720
        }
29721
        break;
29722
 
29723
      }
29724
    }
29725
 
29726
    public Object getFieldValue(_Fields field) {
29727
      switch (field) {
29728
      case VENDOR_ID:
29729
        return Long.valueOf(getVendorId());
29730
 
29731
      }
29732
      throw new IllegalStateException();
29733
    }
29734
 
29735
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29736
    public boolean isSet(_Fields field) {
29737
      if (field == null) {
29738
        throw new IllegalArgumentException();
29739
      }
29740
 
29741
      switch (field) {
29742
      case VENDOR_ID:
29743
        return isSetVendorId();
29744
      }
29745
      throw new IllegalStateException();
29746
    }
29747
 
29748
    @Override
29749
    public boolean equals(Object that) {
29750
      if (that == null)
29751
        return false;
29752
      if (that instanceof getOurWarehouseIdForVendor_args)
29753
        return this.equals((getOurWarehouseIdForVendor_args)that);
29754
      return false;
29755
    }
29756
 
29757
    public boolean equals(getOurWarehouseIdForVendor_args that) {
29758
      if (that == null)
29759
        return false;
29760
 
29761
      boolean this_present_vendorId = true;
29762
      boolean that_present_vendorId = true;
29763
      if (this_present_vendorId || that_present_vendorId) {
29764
        if (!(this_present_vendorId && that_present_vendorId))
29765
          return false;
29766
        if (this.vendorId != that.vendorId)
29767
          return false;
29768
      }
29769
 
29770
      return true;
29771
    }
29772
 
29773
    @Override
29774
    public int hashCode() {
29775
      return 0;
29776
    }
29777
 
29778
    public int compareTo(getOurWarehouseIdForVendor_args other) {
29779
      if (!getClass().equals(other.getClass())) {
29780
        return getClass().getName().compareTo(other.getClass().getName());
29781
      }
29782
 
29783
      int lastComparison = 0;
29784
      getOurWarehouseIdForVendor_args typedOther = (getOurWarehouseIdForVendor_args)other;
29785
 
29786
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
29787
      if (lastComparison != 0) {
29788
        return lastComparison;
29789
      }
29790
      if (isSetVendorId()) {
29791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
29792
        if (lastComparison != 0) {
29793
          return lastComparison;
29794
        }
29795
      }
29796
      return 0;
29797
    }
29798
 
29799
    public _Fields fieldForId(int fieldId) {
29800
      return _Fields.findByThriftId(fieldId);
29801
    }
29802
 
29803
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29804
      org.apache.thrift.protocol.TField field;
29805
      iprot.readStructBegin();
29806
      while (true)
29807
      {
29808
        field = iprot.readFieldBegin();
29809
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29810
          break;
29811
        }
29812
        switch (field.id) {
29813
          case 1: // VENDOR_ID
29814
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29815
              this.vendorId = iprot.readI64();
29816
              setVendorIdIsSet(true);
29817
            } else { 
29818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29819
            }
29820
            break;
29821
          default:
29822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29823
        }
29824
        iprot.readFieldEnd();
29825
      }
29826
      iprot.readStructEnd();
29827
      validate();
29828
    }
29829
 
29830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29831
      validate();
29832
 
29833
      oprot.writeStructBegin(STRUCT_DESC);
29834
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
29835
      oprot.writeI64(this.vendorId);
29836
      oprot.writeFieldEnd();
29837
      oprot.writeFieldStop();
29838
      oprot.writeStructEnd();
29839
    }
29840
 
29841
    @Override
29842
    public String toString() {
29843
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_args(");
29844
      boolean first = true;
29845
 
29846
      sb.append("vendorId:");
29847
      sb.append(this.vendorId);
29848
      first = false;
29849
      sb.append(")");
29850
      return sb.toString();
29851
    }
29852
 
29853
    public void validate() throws org.apache.thrift.TException {
29854
      // check for required fields
29855
    }
29856
 
29857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29858
      try {
29859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29860
      } catch (org.apache.thrift.TException te) {
29861
        throw new java.io.IOException(te);
29862
      }
29863
    }
29864
 
29865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29866
      try {
29867
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29868
        __isset_bit_vector = new BitSet(1);
29869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29870
      } catch (org.apache.thrift.TException te) {
29871
        throw new java.io.IOException(te);
29872
      }
29873
    }
29874
 
29875
  }
29876
 
29877
  public static class getOurWarehouseIdForVendor_result implements org.apache.thrift.TBase<getOurWarehouseIdForVendor_result, getOurWarehouseIdForVendor_result._Fields>, java.io.Serializable, Cloneable   {
29878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOurWarehouseIdForVendor_result");
29879
 
29880
    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);
29881
 
29882
    private long success; // required
29883
 
29884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29886
      SUCCESS((short)0, "success");
29887
 
29888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29889
 
29890
      static {
29891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29892
          byName.put(field.getFieldName(), field);
29893
        }
29894
      }
29895
 
29896
      /**
29897
       * Find the _Fields constant that matches fieldId, or null if its not found.
29898
       */
29899
      public static _Fields findByThriftId(int fieldId) {
29900
        switch(fieldId) {
29901
          case 0: // SUCCESS
29902
            return SUCCESS;
29903
          default:
29904
            return null;
29905
        }
29906
      }
29907
 
29908
      /**
29909
       * Find the _Fields constant that matches fieldId, throwing an exception
29910
       * if it is not found.
29911
       */
29912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29913
        _Fields fields = findByThriftId(fieldId);
29914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29915
        return fields;
29916
      }
29917
 
29918
      /**
29919
       * Find the _Fields constant that matches name, or null if its not found.
29920
       */
29921
      public static _Fields findByName(String name) {
29922
        return byName.get(name);
29923
      }
29924
 
29925
      private final short _thriftId;
29926
      private final String _fieldName;
29927
 
29928
      _Fields(short thriftId, String fieldName) {
29929
        _thriftId = thriftId;
29930
        _fieldName = fieldName;
29931
      }
29932
 
29933
      public short getThriftFieldId() {
29934
        return _thriftId;
29935
      }
29936
 
29937
      public String getFieldName() {
29938
        return _fieldName;
29939
      }
29940
    }
29941
 
29942
    // isset id assignments
29943
    private static final int __SUCCESS_ISSET_ID = 0;
29944
    private BitSet __isset_bit_vector = new BitSet(1);
29945
 
29946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29947
    static {
29948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29949
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOurWarehouseIdForVendor_result.class, metaDataMap);
29953
    }
29954
 
29955
    public getOurWarehouseIdForVendor_result() {
29956
    }
29957
 
29958
    public getOurWarehouseIdForVendor_result(
29959
      long success)
29960
    {
29961
      this();
29962
      this.success = success;
29963
      setSuccessIsSet(true);
29964
    }
29965
 
29966
    /**
29967
     * Performs a deep copy on <i>other</i>.
29968
     */
29969
    public getOurWarehouseIdForVendor_result(getOurWarehouseIdForVendor_result other) {
29970
      __isset_bit_vector.clear();
29971
      __isset_bit_vector.or(other.__isset_bit_vector);
29972
      this.success = other.success;
29973
    }
29974
 
29975
    public getOurWarehouseIdForVendor_result deepCopy() {
29976
      return new getOurWarehouseIdForVendor_result(this);
29977
    }
29978
 
29979
    @Override
29980
    public void clear() {
29981
      setSuccessIsSet(false);
29982
      this.success = 0;
29983
    }
29984
 
29985
    public long getSuccess() {
29986
      return this.success;
29987
    }
29988
 
29989
    public void setSuccess(long success) {
29990
      this.success = success;
29991
      setSuccessIsSet(true);
29992
    }
29993
 
29994
    public void unsetSuccess() {
29995
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
29996
    }
29997
 
29998
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29999
    public boolean isSetSuccess() {
30000
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
30001
    }
30002
 
30003
    public void setSuccessIsSet(boolean value) {
30004
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
30005
    }
30006
 
30007
    public void setFieldValue(_Fields field, Object value) {
30008
      switch (field) {
30009
      case SUCCESS:
30010
        if (value == null) {
30011
          unsetSuccess();
30012
        } else {
30013
          setSuccess((Long)value);
30014
        }
30015
        break;
30016
 
30017
      }
30018
    }
30019
 
30020
    public Object getFieldValue(_Fields field) {
30021
      switch (field) {
30022
      case SUCCESS:
30023
        return Long.valueOf(getSuccess());
30024
 
30025
      }
30026
      throw new IllegalStateException();
30027
    }
30028
 
30029
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30030
    public boolean isSet(_Fields field) {
30031
      if (field == null) {
30032
        throw new IllegalArgumentException();
30033
      }
30034
 
30035
      switch (field) {
30036
      case SUCCESS:
30037
        return isSetSuccess();
30038
      }
30039
      throw new IllegalStateException();
30040
    }
30041
 
30042
    @Override
30043
    public boolean equals(Object that) {
30044
      if (that == null)
30045
        return false;
30046
      if (that instanceof getOurWarehouseIdForVendor_result)
30047
        return this.equals((getOurWarehouseIdForVendor_result)that);
30048
      return false;
30049
    }
30050
 
30051
    public boolean equals(getOurWarehouseIdForVendor_result that) {
30052
      if (that == null)
30053
        return false;
30054
 
30055
      boolean this_present_success = true;
30056
      boolean that_present_success = true;
30057
      if (this_present_success || that_present_success) {
30058
        if (!(this_present_success && that_present_success))
30059
          return false;
30060
        if (this.success != that.success)
30061
          return false;
30062
      }
30063
 
30064
      return true;
30065
    }
30066
 
30067
    @Override
30068
    public int hashCode() {
30069
      return 0;
30070
    }
30071
 
30072
    public int compareTo(getOurWarehouseIdForVendor_result other) {
30073
      if (!getClass().equals(other.getClass())) {
30074
        return getClass().getName().compareTo(other.getClass().getName());
30075
      }
30076
 
30077
      int lastComparison = 0;
30078
      getOurWarehouseIdForVendor_result typedOther = (getOurWarehouseIdForVendor_result)other;
30079
 
30080
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30081
      if (lastComparison != 0) {
30082
        return lastComparison;
30083
      }
30084
      if (isSetSuccess()) {
30085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30086
        if (lastComparison != 0) {
30087
          return lastComparison;
30088
        }
30089
      }
30090
      return 0;
30091
    }
30092
 
30093
    public _Fields fieldForId(int fieldId) {
30094
      return _Fields.findByThriftId(fieldId);
30095
    }
30096
 
30097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30098
      org.apache.thrift.protocol.TField field;
30099
      iprot.readStructBegin();
30100
      while (true)
30101
      {
30102
        field = iprot.readFieldBegin();
30103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30104
          break;
30105
        }
30106
        switch (field.id) {
30107
          case 0: // SUCCESS
30108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30109
              this.success = iprot.readI64();
30110
              setSuccessIsSet(true);
30111
            } else { 
30112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30113
            }
30114
            break;
30115
          default:
30116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30117
        }
30118
        iprot.readFieldEnd();
30119
      }
30120
      iprot.readStructEnd();
30121
      validate();
30122
    }
30123
 
30124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30125
      oprot.writeStructBegin(STRUCT_DESC);
30126
 
30127
      if (this.isSetSuccess()) {
30128
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30129
        oprot.writeI64(this.success);
30130
        oprot.writeFieldEnd();
30131
      }
30132
      oprot.writeFieldStop();
30133
      oprot.writeStructEnd();
30134
    }
30135
 
30136
    @Override
30137
    public String toString() {
30138
      StringBuilder sb = new StringBuilder("getOurWarehouseIdForVendor_result(");
30139
      boolean first = true;
30140
 
30141
      sb.append("success:");
30142
      sb.append(this.success);
30143
      first = false;
30144
      sb.append(")");
30145
      return sb.toString();
30146
    }
30147
 
30148
    public void validate() throws org.apache.thrift.TException {
30149
      // check for required fields
30150
    }
30151
 
30152
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30153
      try {
30154
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30155
      } catch (org.apache.thrift.TException te) {
30156
        throw new java.io.IOException(te);
30157
      }
30158
    }
30159
 
30160
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30161
      try {
7322 vikram.rag 30162
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30163
        __isset_bit_vector = new BitSet(1);
6467 amar.kumar 30164
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30165
      } catch (org.apache.thrift.TException te) {
30166
        throw new java.io.IOException(te);
30167
      }
30168
    }
30169
 
30170
  }
30171
 
6484 amar.kumar 30172
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
30173
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
30174
 
30175
    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);
30176
 
30177
    private List<Long> item_ids; // required
30178
 
30179
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30180
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30181
      ITEM_IDS((short)1, "item_ids");
30182
 
30183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30184
 
30185
      static {
30186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30187
          byName.put(field.getFieldName(), field);
30188
        }
30189
      }
30190
 
30191
      /**
30192
       * Find the _Fields constant that matches fieldId, or null if its not found.
30193
       */
30194
      public static _Fields findByThriftId(int fieldId) {
30195
        switch(fieldId) {
30196
          case 1: // ITEM_IDS
30197
            return ITEM_IDS;
30198
          default:
30199
            return null;
30200
        }
30201
      }
30202
 
30203
      /**
30204
       * Find the _Fields constant that matches fieldId, throwing an exception
30205
       * if it is not found.
30206
       */
30207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30208
        _Fields fields = findByThriftId(fieldId);
30209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30210
        return fields;
30211
      }
30212
 
30213
      /**
30214
       * Find the _Fields constant that matches name, or null if its not found.
30215
       */
30216
      public static _Fields findByName(String name) {
30217
        return byName.get(name);
30218
      }
30219
 
30220
      private final short _thriftId;
30221
      private final String _fieldName;
30222
 
30223
      _Fields(short thriftId, String fieldName) {
30224
        _thriftId = thriftId;
30225
        _fieldName = fieldName;
30226
      }
30227
 
30228
      public short getThriftFieldId() {
30229
        return _thriftId;
30230
      }
30231
 
30232
      public String getFieldName() {
30233
        return _fieldName;
30234
      }
30235
    }
30236
 
30237
    // isset id assignments
30238
 
30239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30240
    static {
30241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30242
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30243
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30244
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30245
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30246
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
30247
    }
30248
 
30249
    public getItemAvailabilitiesAtOurWarehouses_args() {
30250
    }
30251
 
30252
    public getItemAvailabilitiesAtOurWarehouses_args(
30253
      List<Long> item_ids)
30254
    {
30255
      this();
30256
      this.item_ids = item_ids;
30257
    }
30258
 
30259
    /**
30260
     * Performs a deep copy on <i>other</i>.
30261
     */
30262
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
30263
      if (other.isSetItem_ids()) {
30264
        List<Long> __this__item_ids = new ArrayList<Long>();
30265
        for (Long other_element : other.item_ids) {
30266
          __this__item_ids.add(other_element);
30267
        }
30268
        this.item_ids = __this__item_ids;
30269
      }
30270
    }
30271
 
30272
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
30273
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
30274
    }
30275
 
30276
    @Override
30277
    public void clear() {
30278
      this.item_ids = null;
30279
    }
30280
 
30281
    public int getItem_idsSize() {
30282
      return (this.item_ids == null) ? 0 : this.item_ids.size();
30283
    }
30284
 
30285
    public java.util.Iterator<Long> getItem_idsIterator() {
30286
      return (this.item_ids == null) ? null : this.item_ids.iterator();
30287
    }
30288
 
30289
    public void addToItem_ids(long elem) {
30290
      if (this.item_ids == null) {
30291
        this.item_ids = new ArrayList<Long>();
30292
      }
30293
      this.item_ids.add(elem);
30294
    }
30295
 
30296
    public List<Long> getItem_ids() {
30297
      return this.item_ids;
30298
    }
30299
 
30300
    public void setItem_ids(List<Long> item_ids) {
30301
      this.item_ids = item_ids;
30302
    }
30303
 
30304
    public void unsetItem_ids() {
30305
      this.item_ids = null;
30306
    }
30307
 
30308
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
30309
    public boolean isSetItem_ids() {
30310
      return this.item_ids != null;
30311
    }
30312
 
30313
    public void setItem_idsIsSet(boolean value) {
30314
      if (!value) {
30315
        this.item_ids = null;
30316
      }
30317
    }
30318
 
30319
    public void setFieldValue(_Fields field, Object value) {
30320
      switch (field) {
30321
      case ITEM_IDS:
30322
        if (value == null) {
30323
          unsetItem_ids();
30324
        } else {
30325
          setItem_ids((List<Long>)value);
30326
        }
30327
        break;
30328
 
30329
      }
30330
    }
30331
 
30332
    public Object getFieldValue(_Fields field) {
30333
      switch (field) {
30334
      case ITEM_IDS:
30335
        return getItem_ids();
30336
 
30337
      }
30338
      throw new IllegalStateException();
30339
    }
30340
 
30341
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30342
    public boolean isSet(_Fields field) {
30343
      if (field == null) {
30344
        throw new IllegalArgumentException();
30345
      }
30346
 
30347
      switch (field) {
30348
      case ITEM_IDS:
30349
        return isSetItem_ids();
30350
      }
30351
      throw new IllegalStateException();
30352
    }
30353
 
30354
    @Override
30355
    public boolean equals(Object that) {
30356
      if (that == null)
30357
        return false;
30358
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
30359
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
30360
      return false;
30361
    }
30362
 
30363
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
30364
      if (that == null)
30365
        return false;
30366
 
30367
      boolean this_present_item_ids = true && this.isSetItem_ids();
30368
      boolean that_present_item_ids = true && that.isSetItem_ids();
30369
      if (this_present_item_ids || that_present_item_ids) {
30370
        if (!(this_present_item_ids && that_present_item_ids))
30371
          return false;
30372
        if (!this.item_ids.equals(that.item_ids))
30373
          return false;
30374
      }
30375
 
30376
      return true;
30377
    }
30378
 
30379
    @Override
30380
    public int hashCode() {
30381
      return 0;
30382
    }
30383
 
30384
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
30385
      if (!getClass().equals(other.getClass())) {
30386
        return getClass().getName().compareTo(other.getClass().getName());
30387
      }
30388
 
30389
      int lastComparison = 0;
30390
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
30391
 
30392
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
30393
      if (lastComparison != 0) {
30394
        return lastComparison;
30395
      }
30396
      if (isSetItem_ids()) {
30397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
30398
        if (lastComparison != 0) {
30399
          return lastComparison;
30400
        }
30401
      }
30402
      return 0;
30403
    }
30404
 
30405
    public _Fields fieldForId(int fieldId) {
30406
      return _Fields.findByThriftId(fieldId);
30407
    }
30408
 
30409
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30410
      org.apache.thrift.protocol.TField field;
30411
      iprot.readStructBegin();
30412
      while (true)
30413
      {
30414
        field = iprot.readFieldBegin();
30415
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30416
          break;
30417
        }
30418
        switch (field.id) {
30419
          case 1: // ITEM_IDS
30420
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30421
              {
30422
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
30423
                this.item_ids = new ArrayList<Long>(_list79.size);
30424
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
30425
                {
30426
                  long _elem81; // required
30427
                  _elem81 = iprot.readI64();
30428
                  this.item_ids.add(_elem81);
30429
                }
30430
                iprot.readListEnd();
30431
              }
30432
            } else { 
30433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30434
            }
30435
            break;
30436
          default:
30437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30438
        }
30439
        iprot.readFieldEnd();
30440
      }
30441
      iprot.readStructEnd();
30442
      validate();
30443
    }
30444
 
30445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30446
      validate();
30447
 
30448
      oprot.writeStructBegin(STRUCT_DESC);
30449
      if (this.item_ids != null) {
30450
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
30451
        {
30452
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
30453
          for (long _iter82 : this.item_ids)
30454
          {
30455
            oprot.writeI64(_iter82);
30456
          }
30457
          oprot.writeListEnd();
30458
        }
30459
        oprot.writeFieldEnd();
30460
      }
30461
      oprot.writeFieldStop();
30462
      oprot.writeStructEnd();
30463
    }
30464
 
30465
    @Override
30466
    public String toString() {
30467
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
30468
      boolean first = true;
30469
 
30470
      sb.append("item_ids:");
30471
      if (this.item_ids == null) {
30472
        sb.append("null");
30473
      } else {
30474
        sb.append(this.item_ids);
30475
      }
30476
      first = false;
30477
      sb.append(")");
30478
      return sb.toString();
30479
    }
30480
 
30481
    public void validate() throws org.apache.thrift.TException {
30482
      // check for required fields
30483
    }
30484
 
30485
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30486
      try {
30487
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30488
      } catch (org.apache.thrift.TException te) {
30489
        throw new java.io.IOException(te);
30490
      }
30491
    }
30492
 
30493
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30494
      try {
30495
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30496
      } catch (org.apache.thrift.TException te) {
30497
        throw new java.io.IOException(te);
30498
      }
30499
    }
30500
 
30501
  }
30502
 
30503
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
30504
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
30505
 
30506
    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);
30507
 
30508
    private Map<Long,Long> success; // required
30509
 
30510
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30511
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30512
      SUCCESS((short)0, "success");
30513
 
30514
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30515
 
30516
      static {
30517
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30518
          byName.put(field.getFieldName(), field);
30519
        }
30520
      }
30521
 
30522
      /**
30523
       * Find the _Fields constant that matches fieldId, or null if its not found.
30524
       */
30525
      public static _Fields findByThriftId(int fieldId) {
30526
        switch(fieldId) {
30527
          case 0: // SUCCESS
30528
            return SUCCESS;
30529
          default:
30530
            return null;
30531
        }
30532
      }
30533
 
30534
      /**
30535
       * Find the _Fields constant that matches fieldId, throwing an exception
30536
       * if it is not found.
30537
       */
30538
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30539
        _Fields fields = findByThriftId(fieldId);
30540
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30541
        return fields;
30542
      }
30543
 
30544
      /**
30545
       * Find the _Fields constant that matches name, or null if its not found.
30546
       */
30547
      public static _Fields findByName(String name) {
30548
        return byName.get(name);
30549
      }
30550
 
30551
      private final short _thriftId;
30552
      private final String _fieldName;
30553
 
30554
      _Fields(short thriftId, String fieldName) {
30555
        _thriftId = thriftId;
30556
        _fieldName = fieldName;
30557
      }
30558
 
30559
      public short getThriftFieldId() {
30560
        return _thriftId;
30561
      }
30562
 
30563
      public String getFieldName() {
30564
        return _fieldName;
30565
      }
30566
    }
30567
 
30568
    // isset id assignments
30569
 
30570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30571
    static {
30572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30573
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30574
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
30575
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
30576
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30577
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30578
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
30579
    }
30580
 
30581
    public getItemAvailabilitiesAtOurWarehouses_result() {
30582
    }
30583
 
30584
    public getItemAvailabilitiesAtOurWarehouses_result(
30585
      Map<Long,Long> success)
30586
    {
30587
      this();
30588
      this.success = success;
30589
    }
30590
 
30591
    /**
30592
     * Performs a deep copy on <i>other</i>.
30593
     */
30594
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
30595
      if (other.isSetSuccess()) {
30596
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
30597
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
30598
 
30599
          Long other_element_key = other_element.getKey();
30600
          Long other_element_value = other_element.getValue();
30601
 
30602
          Long __this__success_copy_key = other_element_key;
30603
 
30604
          Long __this__success_copy_value = other_element_value;
30605
 
30606
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
30607
        }
30608
        this.success = __this__success;
30609
      }
30610
    }
30611
 
30612
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
30613
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
30614
    }
30615
 
30616
    @Override
30617
    public void clear() {
30618
      this.success = null;
30619
    }
30620
 
30621
    public int getSuccessSize() {
30622
      return (this.success == null) ? 0 : this.success.size();
30623
    }
30624
 
30625
    public void putToSuccess(long key, long val) {
30626
      if (this.success == null) {
30627
        this.success = new HashMap<Long,Long>();
30628
      }
30629
      this.success.put(key, val);
30630
    }
30631
 
30632
    public Map<Long,Long> getSuccess() {
30633
      return this.success;
30634
    }
30635
 
30636
    public void setSuccess(Map<Long,Long> success) {
30637
      this.success = success;
30638
    }
30639
 
30640
    public void unsetSuccess() {
30641
      this.success = null;
30642
    }
30643
 
30644
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30645
    public boolean isSetSuccess() {
30646
      return this.success != null;
30647
    }
30648
 
30649
    public void setSuccessIsSet(boolean value) {
30650
      if (!value) {
30651
        this.success = null;
30652
      }
30653
    }
30654
 
30655
    public void setFieldValue(_Fields field, Object value) {
30656
      switch (field) {
30657
      case SUCCESS:
30658
        if (value == null) {
30659
          unsetSuccess();
30660
        } else {
30661
          setSuccess((Map<Long,Long>)value);
30662
        }
30663
        break;
30664
 
30665
      }
30666
    }
30667
 
30668
    public Object getFieldValue(_Fields field) {
30669
      switch (field) {
30670
      case SUCCESS:
30671
        return getSuccess();
30672
 
30673
      }
30674
      throw new IllegalStateException();
30675
    }
30676
 
30677
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30678
    public boolean isSet(_Fields field) {
30679
      if (field == null) {
30680
        throw new IllegalArgumentException();
30681
      }
30682
 
30683
      switch (field) {
30684
      case SUCCESS:
30685
        return isSetSuccess();
30686
      }
30687
      throw new IllegalStateException();
30688
    }
30689
 
30690
    @Override
30691
    public boolean equals(Object that) {
30692
      if (that == null)
30693
        return false;
30694
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
30695
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
30696
      return false;
30697
    }
30698
 
30699
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
30700
      if (that == null)
30701
        return false;
30702
 
30703
      boolean this_present_success = true && this.isSetSuccess();
30704
      boolean that_present_success = true && that.isSetSuccess();
30705
      if (this_present_success || that_present_success) {
30706
        if (!(this_present_success && that_present_success))
30707
          return false;
30708
        if (!this.success.equals(that.success))
30709
          return false;
30710
      }
30711
 
30712
      return true;
30713
    }
30714
 
30715
    @Override
30716
    public int hashCode() {
30717
      return 0;
30718
    }
30719
 
30720
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
30721
      if (!getClass().equals(other.getClass())) {
30722
        return getClass().getName().compareTo(other.getClass().getName());
30723
      }
30724
 
30725
      int lastComparison = 0;
30726
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
30727
 
30728
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30729
      if (lastComparison != 0) {
30730
        return lastComparison;
30731
      }
30732
      if (isSetSuccess()) {
30733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30734
        if (lastComparison != 0) {
30735
          return lastComparison;
30736
        }
30737
      }
30738
      return 0;
30739
    }
30740
 
30741
    public _Fields fieldForId(int fieldId) {
30742
      return _Fields.findByThriftId(fieldId);
30743
    }
30744
 
30745
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30746
      org.apache.thrift.protocol.TField field;
30747
      iprot.readStructBegin();
30748
      while (true)
30749
      {
30750
        field = iprot.readFieldBegin();
30751
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30752
          break;
30753
        }
30754
        switch (field.id) {
30755
          case 0: // SUCCESS
30756
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
30757
              {
30758
                org.apache.thrift.protocol.TMap _map83 = iprot.readMapBegin();
30759
                this.success = new HashMap<Long,Long>(2*_map83.size);
30760
                for (int _i84 = 0; _i84 < _map83.size; ++_i84)
30761
                {
30762
                  long _key85; // required
30763
                  long _val86; // required
30764
                  _key85 = iprot.readI64();
30765
                  _val86 = iprot.readI64();
30766
                  this.success.put(_key85, _val86);
30767
                }
30768
                iprot.readMapEnd();
30769
              }
30770
            } else { 
30771
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30772
            }
30773
            break;
30774
          default:
30775
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30776
        }
30777
        iprot.readFieldEnd();
30778
      }
30779
      iprot.readStructEnd();
30780
      validate();
30781
    }
30782
 
30783
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30784
      oprot.writeStructBegin(STRUCT_DESC);
30785
 
30786
      if (this.isSetSuccess()) {
30787
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30788
        {
30789
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
30790
          for (Map.Entry<Long, Long> _iter87 : this.success.entrySet())
30791
          {
30792
            oprot.writeI64(_iter87.getKey());
30793
            oprot.writeI64(_iter87.getValue());
30794
          }
30795
          oprot.writeMapEnd();
30796
        }
30797
        oprot.writeFieldEnd();
30798
      }
30799
      oprot.writeFieldStop();
30800
      oprot.writeStructEnd();
30801
    }
30802
 
30803
    @Override
30804
    public String toString() {
30805
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
30806
      boolean first = true;
30807
 
30808
      sb.append("success:");
30809
      if (this.success == null) {
30810
        sb.append("null");
30811
      } else {
30812
        sb.append(this.success);
30813
      }
30814
      first = false;
30815
      sb.append(")");
30816
      return sb.toString();
30817
    }
30818
 
30819
    public void validate() throws org.apache.thrift.TException {
30820
      // check for required fields
30821
    }
30822
 
30823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30824
      try {
30825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30826
      } catch (org.apache.thrift.TException te) {
30827
        throw new java.io.IOException(te);
30828
      }
30829
    }
30830
 
30831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30832
      try {
30833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30834
      } catch (org.apache.thrift.TException te) {
30835
        throw new java.io.IOException(te);
30836
      }
30837
    }
30838
 
30839
  }
30840
 
6531 vikram.rag 30841
  public static class getMonitoredWarehouseForVendors_args implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_args, getMonitoredWarehouseForVendors_args._Fields>, java.io.Serializable, Cloneable   {
30842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_args");
30843
 
30844
    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);
30845
 
30846
    private List<Long> vendorIds; // required
30847
 
30848
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30849
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30850
      VENDOR_IDS((short)1, "vendorIds");
30851
 
30852
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30853
 
30854
      static {
30855
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30856
          byName.put(field.getFieldName(), field);
30857
        }
30858
      }
30859
 
30860
      /**
30861
       * Find the _Fields constant that matches fieldId, or null if its not found.
30862
       */
30863
      public static _Fields findByThriftId(int fieldId) {
30864
        switch(fieldId) {
30865
          case 1: // VENDOR_IDS
30866
            return VENDOR_IDS;
30867
          default:
30868
            return null;
30869
        }
30870
      }
30871
 
30872
      /**
30873
       * Find the _Fields constant that matches fieldId, throwing an exception
30874
       * if it is not found.
30875
       */
30876
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30877
        _Fields fields = findByThriftId(fieldId);
30878
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30879
        return fields;
30880
      }
30881
 
30882
      /**
30883
       * Find the _Fields constant that matches name, or null if its not found.
30884
       */
30885
      public static _Fields findByName(String name) {
30886
        return byName.get(name);
30887
      }
30888
 
30889
      private final short _thriftId;
30890
      private final String _fieldName;
30891
 
30892
      _Fields(short thriftId, String fieldName) {
30893
        _thriftId = thriftId;
30894
        _fieldName = fieldName;
30895
      }
30896
 
30897
      public short getThriftFieldId() {
30898
        return _thriftId;
30899
      }
30900
 
30901
      public String getFieldName() {
30902
        return _fieldName;
30903
      }
30904
    }
30905
 
30906
    // isset id assignments
30907
 
30908
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30909
    static {
30910
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30911
      tmpMap.put(_Fields.VENDOR_IDS, new org.apache.thrift.meta_data.FieldMetaData("vendorIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30912
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30913
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30914
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30915
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_args.class, metaDataMap);
30916
    }
30917
 
30918
    public getMonitoredWarehouseForVendors_args() {
30919
    }
30920
 
30921
    public getMonitoredWarehouseForVendors_args(
30922
      List<Long> vendorIds)
30923
    {
30924
      this();
30925
      this.vendorIds = vendorIds;
30926
    }
30927
 
30928
    /**
30929
     * Performs a deep copy on <i>other</i>.
30930
     */
30931
    public getMonitoredWarehouseForVendors_args(getMonitoredWarehouseForVendors_args other) {
30932
      if (other.isSetVendorIds()) {
30933
        List<Long> __this__vendorIds = new ArrayList<Long>();
30934
        for (Long other_element : other.vendorIds) {
30935
          __this__vendorIds.add(other_element);
30936
        }
30937
        this.vendorIds = __this__vendorIds;
30938
      }
30939
    }
30940
 
30941
    public getMonitoredWarehouseForVendors_args deepCopy() {
30942
      return new getMonitoredWarehouseForVendors_args(this);
30943
    }
30944
 
30945
    @Override
30946
    public void clear() {
30947
      this.vendorIds = null;
30948
    }
30949
 
30950
    public int getVendorIdsSize() {
30951
      return (this.vendorIds == null) ? 0 : this.vendorIds.size();
30952
    }
30953
 
30954
    public java.util.Iterator<Long> getVendorIdsIterator() {
30955
      return (this.vendorIds == null) ? null : this.vendorIds.iterator();
30956
    }
30957
 
30958
    public void addToVendorIds(long elem) {
30959
      if (this.vendorIds == null) {
30960
        this.vendorIds = new ArrayList<Long>();
30961
      }
30962
      this.vendorIds.add(elem);
30963
    }
30964
 
30965
    public List<Long> getVendorIds() {
30966
      return this.vendorIds;
30967
    }
30968
 
30969
    public void setVendorIds(List<Long> vendorIds) {
30970
      this.vendorIds = vendorIds;
30971
    }
30972
 
30973
    public void unsetVendorIds() {
30974
      this.vendorIds = null;
30975
    }
30976
 
30977
    /** Returns true if field vendorIds is set (has been assigned a value) and false otherwise */
30978
    public boolean isSetVendorIds() {
30979
      return this.vendorIds != null;
30980
    }
30981
 
30982
    public void setVendorIdsIsSet(boolean value) {
30983
      if (!value) {
30984
        this.vendorIds = null;
30985
      }
30986
    }
30987
 
30988
    public void setFieldValue(_Fields field, Object value) {
30989
      switch (field) {
30990
      case VENDOR_IDS:
30991
        if (value == null) {
30992
          unsetVendorIds();
30993
        } else {
30994
          setVendorIds((List<Long>)value);
30995
        }
30996
        break;
30997
 
30998
      }
30999
    }
31000
 
31001
    public Object getFieldValue(_Fields field) {
31002
      switch (field) {
31003
      case VENDOR_IDS:
31004
        return getVendorIds();
31005
 
31006
      }
31007
      throw new IllegalStateException();
31008
    }
31009
 
31010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31011
    public boolean isSet(_Fields field) {
31012
      if (field == null) {
31013
        throw new IllegalArgumentException();
31014
      }
31015
 
31016
      switch (field) {
31017
      case VENDOR_IDS:
31018
        return isSetVendorIds();
31019
      }
31020
      throw new IllegalStateException();
31021
    }
31022
 
31023
    @Override
31024
    public boolean equals(Object that) {
31025
      if (that == null)
31026
        return false;
31027
      if (that instanceof getMonitoredWarehouseForVendors_args)
31028
        return this.equals((getMonitoredWarehouseForVendors_args)that);
31029
      return false;
31030
    }
31031
 
31032
    public boolean equals(getMonitoredWarehouseForVendors_args that) {
31033
      if (that == null)
31034
        return false;
31035
 
31036
      boolean this_present_vendorIds = true && this.isSetVendorIds();
31037
      boolean that_present_vendorIds = true && that.isSetVendorIds();
31038
      if (this_present_vendorIds || that_present_vendorIds) {
31039
        if (!(this_present_vendorIds && that_present_vendorIds))
31040
          return false;
31041
        if (!this.vendorIds.equals(that.vendorIds))
31042
          return false;
31043
      }
31044
 
31045
      return true;
31046
    }
31047
 
31048
    @Override
31049
    public int hashCode() {
31050
      return 0;
31051
    }
31052
 
31053
    public int compareTo(getMonitoredWarehouseForVendors_args other) {
31054
      if (!getClass().equals(other.getClass())) {
31055
        return getClass().getName().compareTo(other.getClass().getName());
31056
      }
31057
 
31058
      int lastComparison = 0;
31059
      getMonitoredWarehouseForVendors_args typedOther = (getMonitoredWarehouseForVendors_args)other;
31060
 
31061
      lastComparison = Boolean.valueOf(isSetVendorIds()).compareTo(typedOther.isSetVendorIds());
31062
      if (lastComparison != 0) {
31063
        return lastComparison;
31064
      }
31065
      if (isSetVendorIds()) {
31066
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorIds, typedOther.vendorIds);
31067
        if (lastComparison != 0) {
31068
          return lastComparison;
31069
        }
31070
      }
31071
      return 0;
31072
    }
31073
 
31074
    public _Fields fieldForId(int fieldId) {
31075
      return _Fields.findByThriftId(fieldId);
31076
    }
31077
 
31078
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31079
      org.apache.thrift.protocol.TField field;
31080
      iprot.readStructBegin();
31081
      while (true)
31082
      {
31083
        field = iprot.readFieldBegin();
31084
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31085
          break;
31086
        }
31087
        switch (field.id) {
31088
          case 1: // VENDOR_IDS
31089
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31090
              {
31091
                org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();
31092
                this.vendorIds = new ArrayList<Long>(_list88.size);
31093
                for (int _i89 = 0; _i89 < _list88.size; ++_i89)
31094
                {
31095
                  long _elem90; // required
31096
                  _elem90 = iprot.readI64();
31097
                  this.vendorIds.add(_elem90);
31098
                }
31099
                iprot.readListEnd();
31100
              }
31101
            } else { 
31102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31103
            }
31104
            break;
31105
          default:
31106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31107
        }
31108
        iprot.readFieldEnd();
31109
      }
31110
      iprot.readStructEnd();
31111
      validate();
31112
    }
31113
 
31114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31115
      validate();
31116
 
31117
      oprot.writeStructBegin(STRUCT_DESC);
31118
      if (this.vendorIds != null) {
31119
        oprot.writeFieldBegin(VENDOR_IDS_FIELD_DESC);
31120
        {
31121
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.vendorIds.size()));
31122
          for (long _iter91 : this.vendorIds)
31123
          {
31124
            oprot.writeI64(_iter91);
31125
          }
31126
          oprot.writeListEnd();
31127
        }
31128
        oprot.writeFieldEnd();
31129
      }
31130
      oprot.writeFieldStop();
31131
      oprot.writeStructEnd();
31132
    }
31133
 
31134
    @Override
31135
    public String toString() {
31136
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_args(");
31137
      boolean first = true;
31138
 
31139
      sb.append("vendorIds:");
31140
      if (this.vendorIds == null) {
31141
        sb.append("null");
31142
      } else {
31143
        sb.append(this.vendorIds);
31144
      }
31145
      first = false;
31146
      sb.append(")");
31147
      return sb.toString();
31148
    }
31149
 
31150
    public void validate() throws org.apache.thrift.TException {
31151
      // check for required fields
31152
    }
31153
 
31154
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31155
      try {
31156
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31157
      } catch (org.apache.thrift.TException te) {
31158
        throw new java.io.IOException(te);
31159
      }
31160
    }
31161
 
31162
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31163
      try {
31164
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31165
      } catch (org.apache.thrift.TException te) {
31166
        throw new java.io.IOException(te);
31167
      }
31168
    }
31169
 
31170
  }
31171
 
31172
  public static class getMonitoredWarehouseForVendors_result implements org.apache.thrift.TBase<getMonitoredWarehouseForVendors_result, getMonitoredWarehouseForVendors_result._Fields>, java.io.Serializable, Cloneable   {
31173
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMonitoredWarehouseForVendors_result");
31174
 
31175
    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);
31176
 
31177
    private List<Long> success; // required
31178
 
31179
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31180
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31181
      SUCCESS((short)0, "success");
31182
 
31183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31184
 
31185
      static {
31186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31187
          byName.put(field.getFieldName(), field);
31188
        }
31189
      }
31190
 
31191
      /**
31192
       * Find the _Fields constant that matches fieldId, or null if its not found.
31193
       */
31194
      public static _Fields findByThriftId(int fieldId) {
31195
        switch(fieldId) {
31196
          case 0: // SUCCESS
31197
            return SUCCESS;
31198
          default:
31199
            return null;
31200
        }
31201
      }
31202
 
31203
      /**
31204
       * Find the _Fields constant that matches fieldId, throwing an exception
31205
       * if it is not found.
31206
       */
31207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31208
        _Fields fields = findByThriftId(fieldId);
31209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31210
        return fields;
31211
      }
31212
 
31213
      /**
31214
       * Find the _Fields constant that matches name, or null if its not found.
31215
       */
31216
      public static _Fields findByName(String name) {
31217
        return byName.get(name);
31218
      }
31219
 
31220
      private final short _thriftId;
31221
      private final String _fieldName;
31222
 
31223
      _Fields(short thriftId, String fieldName) {
31224
        _thriftId = thriftId;
31225
        _fieldName = fieldName;
31226
      }
31227
 
31228
      public short getThriftFieldId() {
31229
        return _thriftId;
31230
      }
31231
 
31232
      public String getFieldName() {
31233
        return _fieldName;
31234
      }
31235
    }
31236
 
31237
    // isset id assignments
31238
 
31239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31240
    static {
31241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31242
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31243
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31244
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
31245
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31246
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMonitoredWarehouseForVendors_result.class, metaDataMap);
31247
    }
31248
 
31249
    public getMonitoredWarehouseForVendors_result() {
31250
    }
31251
 
31252
    public getMonitoredWarehouseForVendors_result(
31253
      List<Long> success)
31254
    {
31255
      this();
31256
      this.success = success;
31257
    }
31258
 
31259
    /**
31260
     * Performs a deep copy on <i>other</i>.
31261
     */
31262
    public getMonitoredWarehouseForVendors_result(getMonitoredWarehouseForVendors_result other) {
31263
      if (other.isSetSuccess()) {
31264
        List<Long> __this__success = new ArrayList<Long>();
31265
        for (Long other_element : other.success) {
31266
          __this__success.add(other_element);
31267
        }
31268
        this.success = __this__success;
31269
      }
31270
    }
31271
 
31272
    public getMonitoredWarehouseForVendors_result deepCopy() {
31273
      return new getMonitoredWarehouseForVendors_result(this);
31274
    }
31275
 
31276
    @Override
31277
    public void clear() {
31278
      this.success = null;
31279
    }
31280
 
31281
    public int getSuccessSize() {
31282
      return (this.success == null) ? 0 : this.success.size();
31283
    }
31284
 
31285
    public java.util.Iterator<Long> getSuccessIterator() {
31286
      return (this.success == null) ? null : this.success.iterator();
31287
    }
31288
 
31289
    public void addToSuccess(long elem) {
31290
      if (this.success == null) {
31291
        this.success = new ArrayList<Long>();
31292
      }
31293
      this.success.add(elem);
31294
    }
31295
 
31296
    public List<Long> getSuccess() {
31297
      return this.success;
31298
    }
31299
 
31300
    public void setSuccess(List<Long> success) {
31301
      this.success = success;
31302
    }
31303
 
31304
    public void unsetSuccess() {
31305
      this.success = null;
31306
    }
31307
 
31308
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31309
    public boolean isSetSuccess() {
31310
      return this.success != null;
31311
    }
31312
 
31313
    public void setSuccessIsSet(boolean value) {
31314
      if (!value) {
31315
        this.success = null;
31316
      }
31317
    }
31318
 
31319
    public void setFieldValue(_Fields field, Object value) {
31320
      switch (field) {
31321
      case SUCCESS:
31322
        if (value == null) {
31323
          unsetSuccess();
31324
        } else {
31325
          setSuccess((List<Long>)value);
31326
        }
31327
        break;
31328
 
31329
      }
31330
    }
31331
 
31332
    public Object getFieldValue(_Fields field) {
31333
      switch (field) {
31334
      case SUCCESS:
31335
        return getSuccess();
31336
 
31337
      }
31338
      throw new IllegalStateException();
31339
    }
31340
 
31341
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31342
    public boolean isSet(_Fields field) {
31343
      if (field == null) {
31344
        throw new IllegalArgumentException();
31345
      }
31346
 
31347
      switch (field) {
31348
      case SUCCESS:
31349
        return isSetSuccess();
31350
      }
31351
      throw new IllegalStateException();
31352
    }
31353
 
31354
    @Override
31355
    public boolean equals(Object that) {
31356
      if (that == null)
31357
        return false;
31358
      if (that instanceof getMonitoredWarehouseForVendors_result)
31359
        return this.equals((getMonitoredWarehouseForVendors_result)that);
31360
      return false;
31361
    }
31362
 
31363
    public boolean equals(getMonitoredWarehouseForVendors_result that) {
31364
      if (that == null)
31365
        return false;
31366
 
31367
      boolean this_present_success = true && this.isSetSuccess();
31368
      boolean that_present_success = true && that.isSetSuccess();
31369
      if (this_present_success || that_present_success) {
31370
        if (!(this_present_success && that_present_success))
31371
          return false;
31372
        if (!this.success.equals(that.success))
31373
          return false;
31374
      }
31375
 
31376
      return true;
31377
    }
31378
 
31379
    @Override
31380
    public int hashCode() {
31381
      return 0;
31382
    }
31383
 
31384
    public int compareTo(getMonitoredWarehouseForVendors_result other) {
31385
      if (!getClass().equals(other.getClass())) {
31386
        return getClass().getName().compareTo(other.getClass().getName());
31387
      }
31388
 
31389
      int lastComparison = 0;
31390
      getMonitoredWarehouseForVendors_result typedOther = (getMonitoredWarehouseForVendors_result)other;
31391
 
31392
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31393
      if (lastComparison != 0) {
31394
        return lastComparison;
31395
      }
31396
      if (isSetSuccess()) {
31397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31398
        if (lastComparison != 0) {
31399
          return lastComparison;
31400
        }
31401
      }
31402
      return 0;
31403
    }
31404
 
31405
    public _Fields fieldForId(int fieldId) {
31406
      return _Fields.findByThriftId(fieldId);
31407
    }
31408
 
31409
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31410
      org.apache.thrift.protocol.TField field;
31411
      iprot.readStructBegin();
31412
      while (true)
31413
      {
31414
        field = iprot.readFieldBegin();
31415
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31416
          break;
31417
        }
31418
        switch (field.id) {
31419
          case 0: // SUCCESS
31420
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31421
              {
31422
                org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();
31423
                this.success = new ArrayList<Long>(_list92.size);
31424
                for (int _i93 = 0; _i93 < _list92.size; ++_i93)
31425
                {
31426
                  long _elem94; // required
31427
                  _elem94 = iprot.readI64();
31428
                  this.success.add(_elem94);
31429
                }
31430
                iprot.readListEnd();
31431
              }
31432
            } else { 
31433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31434
            }
31435
            break;
31436
          default:
31437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31438
        }
31439
        iprot.readFieldEnd();
31440
      }
31441
      iprot.readStructEnd();
31442
      validate();
31443
    }
31444
 
31445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31446
      oprot.writeStructBegin(STRUCT_DESC);
31447
 
31448
      if (this.isSetSuccess()) {
31449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31450
        {
31451
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
31452
          for (long _iter95 : this.success)
31453
          {
31454
            oprot.writeI64(_iter95);
31455
          }
31456
          oprot.writeListEnd();
31457
        }
31458
        oprot.writeFieldEnd();
31459
      }
31460
      oprot.writeFieldStop();
31461
      oprot.writeStructEnd();
31462
    }
31463
 
31464
    @Override
31465
    public String toString() {
31466
      StringBuilder sb = new StringBuilder("getMonitoredWarehouseForVendors_result(");
31467
      boolean first = true;
31468
 
31469
      sb.append("success:");
31470
      if (this.success == null) {
31471
        sb.append("null");
31472
      } else {
31473
        sb.append(this.success);
31474
      }
31475
      first = false;
31476
      sb.append(")");
31477
      return sb.toString();
31478
    }
31479
 
31480
    public void validate() throws org.apache.thrift.TException {
31481
      // check for required fields
31482
    }
31483
 
31484
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31485
      try {
31486
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31487
      } catch (org.apache.thrift.TException te) {
31488
        throw new java.io.IOException(te);
31489
      }
31490
    }
31491
 
31492
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31493
      try {
31494
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31495
      } catch (org.apache.thrift.TException te) {
31496
        throw new java.io.IOException(te);
31497
      }
31498
    }
31499
 
31500
  }
31501
 
31502
  public static class getIgnoredWarehouseidsAndItemids_args implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_args, getIgnoredWarehouseidsAndItemids_args._Fields>, java.io.Serializable, Cloneable   {
31503
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_args");
31504
 
31505
 
31506
 
31507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31509
;
31510
 
31511
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31512
 
31513
      static {
31514
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31515
          byName.put(field.getFieldName(), field);
31516
        }
31517
      }
31518
 
31519
      /**
31520
       * Find the _Fields constant that matches fieldId, or null if its not found.
31521
       */
31522
      public static _Fields findByThriftId(int fieldId) {
31523
        switch(fieldId) {
31524
          default:
31525
            return null;
31526
        }
31527
      }
31528
 
31529
      /**
31530
       * Find the _Fields constant that matches fieldId, throwing an exception
31531
       * if it is not found.
31532
       */
31533
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31534
        _Fields fields = findByThriftId(fieldId);
31535
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31536
        return fields;
31537
      }
31538
 
31539
      /**
31540
       * Find the _Fields constant that matches name, or null if its not found.
31541
       */
31542
      public static _Fields findByName(String name) {
31543
        return byName.get(name);
31544
      }
31545
 
31546
      private final short _thriftId;
31547
      private final String _fieldName;
31548
 
31549
      _Fields(short thriftId, String fieldName) {
31550
        _thriftId = thriftId;
31551
        _fieldName = fieldName;
31552
      }
31553
 
31554
      public short getThriftFieldId() {
31555
        return _thriftId;
31556
      }
31557
 
31558
      public String getFieldName() {
31559
        return _fieldName;
31560
      }
31561
    }
31562
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31563
    static {
31564
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31565
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31566
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_args.class, metaDataMap);
31567
    }
31568
 
31569
    public getIgnoredWarehouseidsAndItemids_args() {
31570
    }
31571
 
31572
    /**
31573
     * Performs a deep copy on <i>other</i>.
31574
     */
31575
    public getIgnoredWarehouseidsAndItemids_args(getIgnoredWarehouseidsAndItemids_args other) {
31576
    }
31577
 
31578
    public getIgnoredWarehouseidsAndItemids_args deepCopy() {
31579
      return new getIgnoredWarehouseidsAndItemids_args(this);
31580
    }
31581
 
31582
    @Override
31583
    public void clear() {
31584
    }
31585
 
31586
    public void setFieldValue(_Fields field, Object value) {
31587
      switch (field) {
31588
      }
31589
    }
31590
 
31591
    public Object getFieldValue(_Fields field) {
31592
      switch (field) {
31593
      }
31594
      throw new IllegalStateException();
31595
    }
31596
 
31597
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31598
    public boolean isSet(_Fields field) {
31599
      if (field == null) {
31600
        throw new IllegalArgumentException();
31601
      }
31602
 
31603
      switch (field) {
31604
      }
31605
      throw new IllegalStateException();
31606
    }
31607
 
31608
    @Override
31609
    public boolean equals(Object that) {
31610
      if (that == null)
31611
        return false;
31612
      if (that instanceof getIgnoredWarehouseidsAndItemids_args)
31613
        return this.equals((getIgnoredWarehouseidsAndItemids_args)that);
31614
      return false;
31615
    }
31616
 
31617
    public boolean equals(getIgnoredWarehouseidsAndItemids_args that) {
31618
      if (that == null)
31619
        return false;
31620
 
31621
      return true;
31622
    }
31623
 
31624
    @Override
31625
    public int hashCode() {
31626
      return 0;
31627
    }
31628
 
31629
    public int compareTo(getIgnoredWarehouseidsAndItemids_args other) {
31630
      if (!getClass().equals(other.getClass())) {
31631
        return getClass().getName().compareTo(other.getClass().getName());
31632
      }
31633
 
31634
      int lastComparison = 0;
31635
      getIgnoredWarehouseidsAndItemids_args typedOther = (getIgnoredWarehouseidsAndItemids_args)other;
31636
 
31637
      return 0;
31638
    }
31639
 
31640
    public _Fields fieldForId(int fieldId) {
31641
      return _Fields.findByThriftId(fieldId);
31642
    }
31643
 
31644
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31645
      org.apache.thrift.protocol.TField field;
31646
      iprot.readStructBegin();
31647
      while (true)
31648
      {
31649
        field = iprot.readFieldBegin();
31650
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31651
          break;
31652
        }
31653
        switch (field.id) {
31654
          default:
31655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31656
        }
31657
        iprot.readFieldEnd();
31658
      }
31659
      iprot.readStructEnd();
31660
      validate();
31661
    }
31662
 
31663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31664
      validate();
31665
 
31666
      oprot.writeStructBegin(STRUCT_DESC);
31667
      oprot.writeFieldStop();
31668
      oprot.writeStructEnd();
31669
    }
31670
 
31671
    @Override
31672
    public String toString() {
31673
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_args(");
31674
      boolean first = true;
31675
 
31676
      sb.append(")");
31677
      return sb.toString();
31678
    }
31679
 
31680
    public void validate() throws org.apache.thrift.TException {
31681
      // check for required fields
31682
    }
31683
 
31684
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31685
      try {
31686
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31687
      } catch (org.apache.thrift.TException te) {
31688
        throw new java.io.IOException(te);
31689
      }
31690
    }
31691
 
31692
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31693
      try {
31694
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31695
      } catch (org.apache.thrift.TException te) {
31696
        throw new java.io.IOException(te);
31697
      }
31698
    }
31699
 
31700
  }
31701
 
31702
  public static class getIgnoredWarehouseidsAndItemids_result implements org.apache.thrift.TBase<getIgnoredWarehouseidsAndItemids_result, getIgnoredWarehouseidsAndItemids_result._Fields>, java.io.Serializable, Cloneable   {
31703
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredWarehouseidsAndItemids_result");
31704
 
31705
    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);
31706
 
31707
    private List<IgnoredInventoryUpdateItems> success; // required
31708
 
31709
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31710
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31711
      SUCCESS((short)0, "success");
31712
 
31713
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31714
 
31715
      static {
31716
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31717
          byName.put(field.getFieldName(), field);
31718
        }
31719
      }
31720
 
31721
      /**
31722
       * Find the _Fields constant that matches fieldId, or null if its not found.
31723
       */
31724
      public static _Fields findByThriftId(int fieldId) {
31725
        switch(fieldId) {
31726
          case 0: // SUCCESS
31727
            return SUCCESS;
31728
          default:
31729
            return null;
31730
        }
31731
      }
31732
 
31733
      /**
31734
       * Find the _Fields constant that matches fieldId, throwing an exception
31735
       * if it is not found.
31736
       */
31737
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31738
        _Fields fields = findByThriftId(fieldId);
31739
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31740
        return fields;
31741
      }
31742
 
31743
      /**
31744
       * Find the _Fields constant that matches name, or null if its not found.
31745
       */
31746
      public static _Fields findByName(String name) {
31747
        return byName.get(name);
31748
      }
31749
 
31750
      private final short _thriftId;
31751
      private final String _fieldName;
31752
 
31753
      _Fields(short thriftId, String fieldName) {
31754
        _thriftId = thriftId;
31755
        _fieldName = fieldName;
31756
      }
31757
 
31758
      public short getThriftFieldId() {
31759
        return _thriftId;
31760
      }
31761
 
31762
      public String getFieldName() {
31763
        return _fieldName;
31764
      }
31765
    }
31766
 
31767
    // isset id assignments
31768
 
31769
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31770
    static {
31771
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31772
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31773
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31774
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IgnoredInventoryUpdateItems.class))));
31775
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31776
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredWarehouseidsAndItemids_result.class, metaDataMap);
31777
    }
31778
 
31779
    public getIgnoredWarehouseidsAndItemids_result() {
31780
    }
31781
 
31782
    public getIgnoredWarehouseidsAndItemids_result(
31783
      List<IgnoredInventoryUpdateItems> success)
31784
    {
31785
      this();
31786
      this.success = success;
31787
    }
31788
 
31789
    /**
31790
     * Performs a deep copy on <i>other</i>.
31791
     */
31792
    public getIgnoredWarehouseidsAndItemids_result(getIgnoredWarehouseidsAndItemids_result other) {
31793
      if (other.isSetSuccess()) {
31794
        List<IgnoredInventoryUpdateItems> __this__success = new ArrayList<IgnoredInventoryUpdateItems>();
31795
        for (IgnoredInventoryUpdateItems other_element : other.success) {
31796
          __this__success.add(new IgnoredInventoryUpdateItems(other_element));
31797
        }
31798
        this.success = __this__success;
31799
      }
31800
    }
31801
 
31802
    public getIgnoredWarehouseidsAndItemids_result deepCopy() {
31803
      return new getIgnoredWarehouseidsAndItemids_result(this);
31804
    }
31805
 
31806
    @Override
31807
    public void clear() {
31808
      this.success = null;
31809
    }
31810
 
31811
    public int getSuccessSize() {
31812
      return (this.success == null) ? 0 : this.success.size();
31813
    }
31814
 
31815
    public java.util.Iterator<IgnoredInventoryUpdateItems> getSuccessIterator() {
31816
      return (this.success == null) ? null : this.success.iterator();
31817
    }
31818
 
31819
    public void addToSuccess(IgnoredInventoryUpdateItems elem) {
31820
      if (this.success == null) {
31821
        this.success = new ArrayList<IgnoredInventoryUpdateItems>();
31822
      }
31823
      this.success.add(elem);
31824
    }
31825
 
31826
    public List<IgnoredInventoryUpdateItems> getSuccess() {
31827
      return this.success;
31828
    }
31829
 
31830
    public void setSuccess(List<IgnoredInventoryUpdateItems> success) {
31831
      this.success = success;
31832
    }
31833
 
31834
    public void unsetSuccess() {
31835
      this.success = null;
31836
    }
31837
 
31838
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31839
    public boolean isSetSuccess() {
31840
      return this.success != null;
31841
    }
31842
 
31843
    public void setSuccessIsSet(boolean value) {
31844
      if (!value) {
31845
        this.success = null;
31846
      }
31847
    }
31848
 
31849
    public void setFieldValue(_Fields field, Object value) {
31850
      switch (field) {
31851
      case SUCCESS:
31852
        if (value == null) {
31853
          unsetSuccess();
31854
        } else {
31855
          setSuccess((List<IgnoredInventoryUpdateItems>)value);
31856
        }
31857
        break;
31858
 
31859
      }
31860
    }
31861
 
31862
    public Object getFieldValue(_Fields field) {
31863
      switch (field) {
31864
      case SUCCESS:
31865
        return getSuccess();
31866
 
31867
      }
31868
      throw new IllegalStateException();
31869
    }
31870
 
31871
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31872
    public boolean isSet(_Fields field) {
31873
      if (field == null) {
31874
        throw new IllegalArgumentException();
31875
      }
31876
 
31877
      switch (field) {
31878
      case SUCCESS:
31879
        return isSetSuccess();
31880
      }
31881
      throw new IllegalStateException();
31882
    }
31883
 
31884
    @Override
31885
    public boolean equals(Object that) {
31886
      if (that == null)
31887
        return false;
31888
      if (that instanceof getIgnoredWarehouseidsAndItemids_result)
31889
        return this.equals((getIgnoredWarehouseidsAndItemids_result)that);
31890
      return false;
31891
    }
31892
 
31893
    public boolean equals(getIgnoredWarehouseidsAndItemids_result that) {
31894
      if (that == null)
31895
        return false;
31896
 
31897
      boolean this_present_success = true && this.isSetSuccess();
31898
      boolean that_present_success = true && that.isSetSuccess();
31899
      if (this_present_success || that_present_success) {
31900
        if (!(this_present_success && that_present_success))
31901
          return false;
31902
        if (!this.success.equals(that.success))
31903
          return false;
31904
      }
31905
 
31906
      return true;
31907
    }
31908
 
31909
    @Override
31910
    public int hashCode() {
31911
      return 0;
31912
    }
31913
 
31914
    public int compareTo(getIgnoredWarehouseidsAndItemids_result other) {
31915
      if (!getClass().equals(other.getClass())) {
31916
        return getClass().getName().compareTo(other.getClass().getName());
31917
      }
31918
 
31919
      int lastComparison = 0;
31920
      getIgnoredWarehouseidsAndItemids_result typedOther = (getIgnoredWarehouseidsAndItemids_result)other;
31921
 
31922
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31923
      if (lastComparison != 0) {
31924
        return lastComparison;
31925
      }
31926
      if (isSetSuccess()) {
31927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31928
        if (lastComparison != 0) {
31929
          return lastComparison;
31930
        }
31931
      }
31932
      return 0;
31933
    }
31934
 
31935
    public _Fields fieldForId(int fieldId) {
31936
      return _Fields.findByThriftId(fieldId);
31937
    }
31938
 
31939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31940
      org.apache.thrift.protocol.TField field;
31941
      iprot.readStructBegin();
31942
      while (true)
31943
      {
31944
        field = iprot.readFieldBegin();
31945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31946
          break;
31947
        }
31948
        switch (field.id) {
31949
          case 0: // SUCCESS
31950
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31951
              {
31952
                org.apache.thrift.protocol.TList _list96 = iprot.readListBegin();
31953
                this.success = new ArrayList<IgnoredInventoryUpdateItems>(_list96.size);
31954
                for (int _i97 = 0; _i97 < _list96.size; ++_i97)
31955
                {
31956
                  IgnoredInventoryUpdateItems _elem98; // required
31957
                  _elem98 = new IgnoredInventoryUpdateItems();
31958
                  _elem98.read(iprot);
31959
                  this.success.add(_elem98);
31960
                }
31961
                iprot.readListEnd();
31962
              }
31963
            } else { 
31964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31965
            }
31966
            break;
31967
          default:
31968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31969
        }
31970
        iprot.readFieldEnd();
31971
      }
31972
      iprot.readStructEnd();
31973
      validate();
31974
    }
31975
 
31976
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31977
      oprot.writeStructBegin(STRUCT_DESC);
31978
 
31979
      if (this.isSetSuccess()) {
31980
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31981
        {
31982
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
31983
          for (IgnoredInventoryUpdateItems _iter99 : this.success)
31984
          {
31985
            _iter99.write(oprot);
31986
          }
31987
          oprot.writeListEnd();
31988
        }
31989
        oprot.writeFieldEnd();
31990
      }
31991
      oprot.writeFieldStop();
31992
      oprot.writeStructEnd();
31993
    }
31994
 
31995
    @Override
31996
    public String toString() {
31997
      StringBuilder sb = new StringBuilder("getIgnoredWarehouseidsAndItemids_result(");
31998
      boolean first = true;
31999
 
32000
      sb.append("success:");
32001
      if (this.success == null) {
32002
        sb.append("null");
32003
      } else {
32004
        sb.append(this.success);
32005
      }
32006
      first = false;
32007
      sb.append(")");
32008
      return sb.toString();
32009
    }
32010
 
32011
    public void validate() throws org.apache.thrift.TException {
32012
      // check for required fields
32013
    }
32014
 
32015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32016
      try {
32017
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32018
      } catch (org.apache.thrift.TException te) {
32019
        throw new java.io.IOException(te);
32020
      }
32021
    }
32022
 
32023
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32024
      try {
32025
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32026
      } catch (org.apache.thrift.TException te) {
32027
        throw new java.io.IOException(te);
32028
      }
32029
    }
32030
 
32031
  }
32032
 
32033
  public static class insertItemtoIgnoreInventoryUpdatelist_args implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_args, insertItemtoIgnoreInventoryUpdatelist_args._Fields>, java.io.Serializable, Cloneable   {
32034
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_args");
32035
 
32036
    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);
32037
    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);
32038
 
32039
    private long item_id; // required
32040
    private long warehouse_id; // required
32041
 
32042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32044
      ITEM_ID((short)1, "item_id"),
32045
      WAREHOUSE_ID((short)2, "warehouse_id");
32046
 
32047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32048
 
32049
      static {
32050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32051
          byName.put(field.getFieldName(), field);
32052
        }
32053
      }
32054
 
32055
      /**
32056
       * Find the _Fields constant that matches fieldId, or null if its not found.
32057
       */
32058
      public static _Fields findByThriftId(int fieldId) {
32059
        switch(fieldId) {
32060
          case 1: // ITEM_ID
32061
            return ITEM_ID;
32062
          case 2: // WAREHOUSE_ID
32063
            return WAREHOUSE_ID;
32064
          default:
32065
            return null;
32066
        }
32067
      }
32068
 
32069
      /**
32070
       * Find the _Fields constant that matches fieldId, throwing an exception
32071
       * if it is not found.
32072
       */
32073
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32074
        _Fields fields = findByThriftId(fieldId);
32075
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32076
        return fields;
32077
      }
32078
 
32079
      /**
32080
       * Find the _Fields constant that matches name, or null if its not found.
32081
       */
32082
      public static _Fields findByName(String name) {
32083
        return byName.get(name);
32084
      }
32085
 
32086
      private final short _thriftId;
32087
      private final String _fieldName;
32088
 
32089
      _Fields(short thriftId, String fieldName) {
32090
        _thriftId = thriftId;
32091
        _fieldName = fieldName;
32092
      }
32093
 
32094
      public short getThriftFieldId() {
32095
        return _thriftId;
32096
      }
32097
 
32098
      public String getFieldName() {
32099
        return _fieldName;
32100
      }
32101
    }
32102
 
32103
    // isset id assignments
32104
    private static final int __ITEM_ID_ISSET_ID = 0;
32105
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
32106
    private BitSet __isset_bit_vector = new BitSet(2);
32107
 
32108
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32109
    static {
32110
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32111
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32113
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_args.class, metaDataMap);
32117
    }
32118
 
32119
    public insertItemtoIgnoreInventoryUpdatelist_args() {
32120
    }
32121
 
32122
    public insertItemtoIgnoreInventoryUpdatelist_args(
32123
      long item_id,
32124
      long warehouse_id)
32125
    {
32126
      this();
32127
      this.item_id = item_id;
32128
      setItem_idIsSet(true);
32129
      this.warehouse_id = warehouse_id;
32130
      setWarehouse_idIsSet(true);
32131
    }
32132
 
32133
    /**
32134
     * Performs a deep copy on <i>other</i>.
32135
     */
32136
    public insertItemtoIgnoreInventoryUpdatelist_args(insertItemtoIgnoreInventoryUpdatelist_args other) {
32137
      __isset_bit_vector.clear();
32138
      __isset_bit_vector.or(other.__isset_bit_vector);
32139
      this.item_id = other.item_id;
32140
      this.warehouse_id = other.warehouse_id;
32141
    }
32142
 
32143
    public insertItemtoIgnoreInventoryUpdatelist_args deepCopy() {
32144
      return new insertItemtoIgnoreInventoryUpdatelist_args(this);
32145
    }
32146
 
32147
    @Override
32148
    public void clear() {
32149
      setItem_idIsSet(false);
32150
      this.item_id = 0;
32151
      setWarehouse_idIsSet(false);
32152
      this.warehouse_id = 0;
32153
    }
32154
 
32155
    public long getItem_id() {
32156
      return this.item_id;
32157
    }
32158
 
32159
    public void setItem_id(long item_id) {
32160
      this.item_id = item_id;
32161
      setItem_idIsSet(true);
32162
    }
32163
 
32164
    public void unsetItem_id() {
32165
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
32166
    }
32167
 
32168
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
32169
    public boolean isSetItem_id() {
32170
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
32171
    }
32172
 
32173
    public void setItem_idIsSet(boolean value) {
32174
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
32175
    }
32176
 
32177
    public long getWarehouse_id() {
32178
      return this.warehouse_id;
32179
    }
32180
 
32181
    public void setWarehouse_id(long warehouse_id) {
32182
      this.warehouse_id = warehouse_id;
32183
      setWarehouse_idIsSet(true);
32184
    }
32185
 
32186
    public void unsetWarehouse_id() {
32187
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
32188
    }
32189
 
32190
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
32191
    public boolean isSetWarehouse_id() {
32192
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
32193
    }
32194
 
32195
    public void setWarehouse_idIsSet(boolean value) {
32196
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
32197
    }
32198
 
32199
    public void setFieldValue(_Fields field, Object value) {
32200
      switch (field) {
32201
      case ITEM_ID:
32202
        if (value == null) {
32203
          unsetItem_id();
32204
        } else {
32205
          setItem_id((Long)value);
32206
        }
32207
        break;
32208
 
32209
      case WAREHOUSE_ID:
32210
        if (value == null) {
32211
          unsetWarehouse_id();
32212
        } else {
32213
          setWarehouse_id((Long)value);
32214
        }
32215
        break;
32216
 
32217
      }
32218
    }
32219
 
32220
    public Object getFieldValue(_Fields field) {
32221
      switch (field) {
32222
      case ITEM_ID:
32223
        return Long.valueOf(getItem_id());
32224
 
32225
      case WAREHOUSE_ID:
32226
        return Long.valueOf(getWarehouse_id());
32227
 
32228
      }
32229
      throw new IllegalStateException();
32230
    }
32231
 
32232
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32233
    public boolean isSet(_Fields field) {
32234
      if (field == null) {
32235
        throw new IllegalArgumentException();
32236
      }
32237
 
32238
      switch (field) {
32239
      case ITEM_ID:
32240
        return isSetItem_id();
32241
      case WAREHOUSE_ID:
32242
        return isSetWarehouse_id();
32243
      }
32244
      throw new IllegalStateException();
32245
    }
32246
 
32247
    @Override
32248
    public boolean equals(Object that) {
32249
      if (that == null)
32250
        return false;
32251
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_args)
32252
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_args)that);
32253
      return false;
32254
    }
32255
 
32256
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_args that) {
32257
      if (that == null)
32258
        return false;
32259
 
32260
      boolean this_present_item_id = true;
32261
      boolean that_present_item_id = true;
32262
      if (this_present_item_id || that_present_item_id) {
32263
        if (!(this_present_item_id && that_present_item_id))
32264
          return false;
32265
        if (this.item_id != that.item_id)
32266
          return false;
32267
      }
32268
 
32269
      boolean this_present_warehouse_id = true;
32270
      boolean that_present_warehouse_id = true;
32271
      if (this_present_warehouse_id || that_present_warehouse_id) {
32272
        if (!(this_present_warehouse_id && that_present_warehouse_id))
32273
          return false;
32274
        if (this.warehouse_id != that.warehouse_id)
32275
          return false;
32276
      }
32277
 
32278
      return true;
32279
    }
32280
 
32281
    @Override
32282
    public int hashCode() {
32283
      return 0;
32284
    }
32285
 
32286
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_args other) {
32287
      if (!getClass().equals(other.getClass())) {
32288
        return getClass().getName().compareTo(other.getClass().getName());
32289
      }
32290
 
32291
      int lastComparison = 0;
32292
      insertItemtoIgnoreInventoryUpdatelist_args typedOther = (insertItemtoIgnoreInventoryUpdatelist_args)other;
32293
 
32294
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
32295
      if (lastComparison != 0) {
32296
        return lastComparison;
32297
      }
32298
      if (isSetItem_id()) {
32299
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
32300
        if (lastComparison != 0) {
32301
          return lastComparison;
32302
        }
32303
      }
32304
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
32305
      if (lastComparison != 0) {
32306
        return lastComparison;
32307
      }
32308
      if (isSetWarehouse_id()) {
32309
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
32310
        if (lastComparison != 0) {
32311
          return lastComparison;
32312
        }
32313
      }
32314
      return 0;
32315
    }
32316
 
32317
    public _Fields fieldForId(int fieldId) {
32318
      return _Fields.findByThriftId(fieldId);
32319
    }
32320
 
32321
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32322
      org.apache.thrift.protocol.TField field;
32323
      iprot.readStructBegin();
32324
      while (true)
32325
      {
32326
        field = iprot.readFieldBegin();
32327
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32328
          break;
32329
        }
32330
        switch (field.id) {
32331
          case 1: // ITEM_ID
32332
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32333
              this.item_id = iprot.readI64();
32334
              setItem_idIsSet(true);
32335
            } else { 
32336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32337
            }
32338
            break;
32339
          case 2: // WAREHOUSE_ID
32340
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32341
              this.warehouse_id = iprot.readI64();
32342
              setWarehouse_idIsSet(true);
32343
            } else { 
32344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32345
            }
32346
            break;
32347
          default:
32348
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32349
        }
32350
        iprot.readFieldEnd();
32351
      }
32352
      iprot.readStructEnd();
32353
      validate();
32354
    }
32355
 
32356
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32357
      validate();
32358
 
32359
      oprot.writeStructBegin(STRUCT_DESC);
32360
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
32361
      oprot.writeI64(this.item_id);
32362
      oprot.writeFieldEnd();
32363
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
32364
      oprot.writeI64(this.warehouse_id);
32365
      oprot.writeFieldEnd();
32366
      oprot.writeFieldStop();
32367
      oprot.writeStructEnd();
32368
    }
32369
 
32370
    @Override
32371
    public String toString() {
32372
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_args(");
32373
      boolean first = true;
32374
 
32375
      sb.append("item_id:");
32376
      sb.append(this.item_id);
32377
      first = false;
32378
      if (!first) sb.append(", ");
32379
      sb.append("warehouse_id:");
32380
      sb.append(this.warehouse_id);
32381
      first = false;
32382
      sb.append(")");
32383
      return sb.toString();
32384
    }
32385
 
32386
    public void validate() throws org.apache.thrift.TException {
32387
      // check for required fields
32388
    }
32389
 
32390
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32391
      try {
32392
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32393
      } catch (org.apache.thrift.TException te) {
32394
        throw new java.io.IOException(te);
32395
      }
32396
    }
32397
 
32398
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32399
      try {
32400
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32401
        __isset_bit_vector = new BitSet(1);
32402
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32403
      } catch (org.apache.thrift.TException te) {
32404
        throw new java.io.IOException(te);
32405
      }
32406
    }
32407
 
32408
  }
32409
 
32410
  public static class insertItemtoIgnoreInventoryUpdatelist_result implements org.apache.thrift.TBase<insertItemtoIgnoreInventoryUpdatelist_result, insertItemtoIgnoreInventoryUpdatelist_result._Fields>, java.io.Serializable, Cloneable   {
32411
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertItemtoIgnoreInventoryUpdatelist_result");
32412
 
32413
    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);
32414
 
32415
    private boolean success; // required
32416
 
32417
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32418
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32419
      SUCCESS((short)0, "success");
32420
 
32421
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32422
 
32423
      static {
32424
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32425
          byName.put(field.getFieldName(), field);
32426
        }
32427
      }
32428
 
32429
      /**
32430
       * Find the _Fields constant that matches fieldId, or null if its not found.
32431
       */
32432
      public static _Fields findByThriftId(int fieldId) {
32433
        switch(fieldId) {
32434
          case 0: // SUCCESS
32435
            return SUCCESS;
32436
          default:
32437
            return null;
32438
        }
32439
      }
32440
 
32441
      /**
32442
       * Find the _Fields constant that matches fieldId, throwing an exception
32443
       * if it is not found.
32444
       */
32445
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32446
        _Fields fields = findByThriftId(fieldId);
32447
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32448
        return fields;
32449
      }
32450
 
32451
      /**
32452
       * Find the _Fields constant that matches name, or null if its not found.
32453
       */
32454
      public static _Fields findByName(String name) {
32455
        return byName.get(name);
32456
      }
32457
 
32458
      private final short _thriftId;
32459
      private final String _fieldName;
32460
 
32461
      _Fields(short thriftId, String fieldName) {
32462
        _thriftId = thriftId;
32463
        _fieldName = fieldName;
32464
      }
32465
 
32466
      public short getThriftFieldId() {
32467
        return _thriftId;
32468
      }
32469
 
32470
      public String getFieldName() {
32471
        return _fieldName;
32472
      }
32473
    }
32474
 
32475
    // isset id assignments
32476
    private static final int __SUCCESS_ISSET_ID = 0;
32477
    private BitSet __isset_bit_vector = new BitSet(1);
32478
 
32479
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32480
    static {
32481
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32482
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32483
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32484
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32485
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertItemtoIgnoreInventoryUpdatelist_result.class, metaDataMap);
32486
    }
32487
 
32488
    public insertItemtoIgnoreInventoryUpdatelist_result() {
32489
    }
32490
 
32491
    public insertItemtoIgnoreInventoryUpdatelist_result(
32492
      boolean success)
32493
    {
32494
      this();
32495
      this.success = success;
32496
      setSuccessIsSet(true);
32497
    }
32498
 
32499
    /**
32500
     * Performs a deep copy on <i>other</i>.
32501
     */
32502
    public insertItemtoIgnoreInventoryUpdatelist_result(insertItemtoIgnoreInventoryUpdatelist_result other) {
32503
      __isset_bit_vector.clear();
32504
      __isset_bit_vector.or(other.__isset_bit_vector);
32505
      this.success = other.success;
32506
    }
32507
 
32508
    public insertItemtoIgnoreInventoryUpdatelist_result deepCopy() {
32509
      return new insertItemtoIgnoreInventoryUpdatelist_result(this);
32510
    }
32511
 
32512
    @Override
32513
    public void clear() {
32514
      setSuccessIsSet(false);
32515
      this.success = false;
32516
    }
32517
 
32518
    public boolean isSuccess() {
32519
      return this.success;
32520
    }
32521
 
32522
    public void setSuccess(boolean success) {
32523
      this.success = success;
32524
      setSuccessIsSet(true);
32525
    }
32526
 
32527
    public void unsetSuccess() {
32528
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32529
    }
32530
 
32531
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32532
    public boolean isSetSuccess() {
32533
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32534
    }
32535
 
32536
    public void setSuccessIsSet(boolean value) {
32537
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32538
    }
32539
 
32540
    public void setFieldValue(_Fields field, Object value) {
32541
      switch (field) {
32542
      case SUCCESS:
32543
        if (value == null) {
32544
          unsetSuccess();
32545
        } else {
32546
          setSuccess((Boolean)value);
32547
        }
32548
        break;
32549
 
32550
      }
32551
    }
32552
 
32553
    public Object getFieldValue(_Fields field) {
32554
      switch (field) {
32555
      case SUCCESS:
32556
        return Boolean.valueOf(isSuccess());
32557
 
32558
      }
32559
      throw new IllegalStateException();
32560
    }
32561
 
32562
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32563
    public boolean isSet(_Fields field) {
32564
      if (field == null) {
32565
        throw new IllegalArgumentException();
32566
      }
32567
 
32568
      switch (field) {
32569
      case SUCCESS:
32570
        return isSetSuccess();
32571
      }
32572
      throw new IllegalStateException();
32573
    }
32574
 
32575
    @Override
32576
    public boolean equals(Object that) {
32577
      if (that == null)
32578
        return false;
32579
      if (that instanceof insertItemtoIgnoreInventoryUpdatelist_result)
32580
        return this.equals((insertItemtoIgnoreInventoryUpdatelist_result)that);
32581
      return false;
32582
    }
32583
 
32584
    public boolean equals(insertItemtoIgnoreInventoryUpdatelist_result that) {
32585
      if (that == null)
32586
        return false;
32587
 
32588
      boolean this_present_success = true;
32589
      boolean that_present_success = true;
32590
      if (this_present_success || that_present_success) {
32591
        if (!(this_present_success && that_present_success))
32592
          return false;
32593
        if (this.success != that.success)
32594
          return false;
32595
      }
32596
 
32597
      return true;
32598
    }
32599
 
32600
    @Override
32601
    public int hashCode() {
32602
      return 0;
32603
    }
32604
 
32605
    public int compareTo(insertItemtoIgnoreInventoryUpdatelist_result other) {
32606
      if (!getClass().equals(other.getClass())) {
32607
        return getClass().getName().compareTo(other.getClass().getName());
32608
      }
32609
 
32610
      int lastComparison = 0;
32611
      insertItemtoIgnoreInventoryUpdatelist_result typedOther = (insertItemtoIgnoreInventoryUpdatelist_result)other;
32612
 
32613
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32614
      if (lastComparison != 0) {
32615
        return lastComparison;
32616
      }
32617
      if (isSetSuccess()) {
32618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32619
        if (lastComparison != 0) {
32620
          return lastComparison;
32621
        }
32622
      }
32623
      return 0;
32624
    }
32625
 
32626
    public _Fields fieldForId(int fieldId) {
32627
      return _Fields.findByThriftId(fieldId);
32628
    }
32629
 
32630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32631
      org.apache.thrift.protocol.TField field;
32632
      iprot.readStructBegin();
32633
      while (true)
32634
      {
32635
        field = iprot.readFieldBegin();
32636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32637
          break;
32638
        }
32639
        switch (field.id) {
32640
          case 0: // SUCCESS
32641
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32642
              this.success = iprot.readBool();
32643
              setSuccessIsSet(true);
32644
            } else { 
32645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32646
            }
32647
            break;
32648
          default:
32649
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32650
        }
32651
        iprot.readFieldEnd();
32652
      }
32653
      iprot.readStructEnd();
32654
      validate();
32655
    }
32656
 
32657
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32658
      oprot.writeStructBegin(STRUCT_DESC);
32659
 
32660
      if (this.isSetSuccess()) {
32661
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32662
        oprot.writeBool(this.success);
32663
        oprot.writeFieldEnd();
32664
      }
32665
      oprot.writeFieldStop();
32666
      oprot.writeStructEnd();
32667
    }
32668
 
32669
    @Override
32670
    public String toString() {
32671
      StringBuilder sb = new StringBuilder("insertItemtoIgnoreInventoryUpdatelist_result(");
32672
      boolean first = true;
32673
 
32674
      sb.append("success:");
32675
      sb.append(this.success);
32676
      first = false;
32677
      sb.append(")");
32678
      return sb.toString();
32679
    }
32680
 
32681
    public void validate() throws org.apache.thrift.TException {
32682
      // check for required fields
32683
    }
32684
 
32685
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32686
      try {
32687
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32688
      } catch (org.apache.thrift.TException te) {
32689
        throw new java.io.IOException(te);
32690
      }
32691
    }
32692
 
32693
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32694
      try {
7322 vikram.rag 32695
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32696
        __isset_bit_vector = new BitSet(1);
6531 vikram.rag 32697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32698
      } catch (org.apache.thrift.TException te) {
32699
        throw new java.io.IOException(te);
32700
      }
32701
    }
32702
 
32703
  }
32704
 
32705
  public static class deleteItemFromIgnoredInventoryUpdateList_args implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_args, deleteItemFromIgnoredInventoryUpdateList_args._Fields>, java.io.Serializable, Cloneable   {
32706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_args");
32707
 
32708
    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);
32709
    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);
32710
 
32711
    private long item_id; // required
32712
    private long warehouse_id; // required
32713
 
32714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32716
      ITEM_ID((short)1, "item_id"),
32717
      WAREHOUSE_ID((short)2, "warehouse_id");
32718
 
32719
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32720
 
32721
      static {
32722
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32723
          byName.put(field.getFieldName(), field);
32724
        }
32725
      }
32726
 
32727
      /**
32728
       * Find the _Fields constant that matches fieldId, or null if its not found.
32729
       */
32730
      public static _Fields findByThriftId(int fieldId) {
32731
        switch(fieldId) {
32732
          case 1: // ITEM_ID
32733
            return ITEM_ID;
32734
          case 2: // WAREHOUSE_ID
32735
            return WAREHOUSE_ID;
32736
          default:
32737
            return null;
32738
        }
32739
      }
32740
 
32741
      /**
32742
       * Find the _Fields constant that matches fieldId, throwing an exception
32743
       * if it is not found.
32744
       */
32745
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32746
        _Fields fields = findByThriftId(fieldId);
32747
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32748
        return fields;
32749
      }
32750
 
32751
      /**
32752
       * Find the _Fields constant that matches name, or null if its not found.
32753
       */
32754
      public static _Fields findByName(String name) {
32755
        return byName.get(name);
32756
      }
32757
 
32758
      private final short _thriftId;
32759
      private final String _fieldName;
32760
 
32761
      _Fields(short thriftId, String fieldName) {
32762
        _thriftId = thriftId;
32763
        _fieldName = fieldName;
32764
      }
32765
 
32766
      public short getThriftFieldId() {
32767
        return _thriftId;
32768
      }
32769
 
32770
      public String getFieldName() {
32771
        return _fieldName;
32772
      }
32773
    }
32774
 
32775
    // isset id assignments
32776
    private static final int __ITEM_ID_ISSET_ID = 0;
32777
    private static final int __WAREHOUSE_ID_ISSET_ID = 1;
32778
    private BitSet __isset_bit_vector = new BitSet(2);
32779
 
32780
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32781
    static {
32782
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32783
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32784
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32785
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_args.class, metaDataMap);
32789
    }
32790
 
32791
    public deleteItemFromIgnoredInventoryUpdateList_args() {
32792
    }
32793
 
32794
    public deleteItemFromIgnoredInventoryUpdateList_args(
32795
      long item_id,
32796
      long warehouse_id)
32797
    {
32798
      this();
32799
      this.item_id = item_id;
32800
      setItem_idIsSet(true);
32801
      this.warehouse_id = warehouse_id;
32802
      setWarehouse_idIsSet(true);
32803
    }
32804
 
32805
    /**
32806
     * Performs a deep copy on <i>other</i>.
32807
     */
32808
    public deleteItemFromIgnoredInventoryUpdateList_args(deleteItemFromIgnoredInventoryUpdateList_args other) {
32809
      __isset_bit_vector.clear();
32810
      __isset_bit_vector.or(other.__isset_bit_vector);
32811
      this.item_id = other.item_id;
32812
      this.warehouse_id = other.warehouse_id;
32813
    }
32814
 
32815
    public deleteItemFromIgnoredInventoryUpdateList_args deepCopy() {
32816
      return new deleteItemFromIgnoredInventoryUpdateList_args(this);
32817
    }
32818
 
32819
    @Override
32820
    public void clear() {
32821
      setItem_idIsSet(false);
32822
      this.item_id = 0;
32823
      setWarehouse_idIsSet(false);
32824
      this.warehouse_id = 0;
32825
    }
32826
 
32827
    public long getItem_id() {
32828
      return this.item_id;
32829
    }
32830
 
32831
    public void setItem_id(long item_id) {
32832
      this.item_id = item_id;
32833
      setItem_idIsSet(true);
32834
    }
32835
 
32836
    public void unsetItem_id() {
32837
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
32838
    }
32839
 
32840
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
32841
    public boolean isSetItem_id() {
32842
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
32843
    }
32844
 
32845
    public void setItem_idIsSet(boolean value) {
32846
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
32847
    }
32848
 
32849
    public long getWarehouse_id() {
32850
      return this.warehouse_id;
32851
    }
32852
 
32853
    public void setWarehouse_id(long warehouse_id) {
32854
      this.warehouse_id = warehouse_id;
32855
      setWarehouse_idIsSet(true);
32856
    }
32857
 
32858
    public void unsetWarehouse_id() {
32859
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
32860
    }
32861
 
32862
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
32863
    public boolean isSetWarehouse_id() {
32864
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
32865
    }
32866
 
32867
    public void setWarehouse_idIsSet(boolean value) {
32868
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
32869
    }
32870
 
32871
    public void setFieldValue(_Fields field, Object value) {
32872
      switch (field) {
32873
      case ITEM_ID:
32874
        if (value == null) {
32875
          unsetItem_id();
32876
        } else {
32877
          setItem_id((Long)value);
32878
        }
32879
        break;
32880
 
32881
      case WAREHOUSE_ID:
32882
        if (value == null) {
32883
          unsetWarehouse_id();
32884
        } else {
32885
          setWarehouse_id((Long)value);
32886
        }
32887
        break;
32888
 
32889
      }
32890
    }
32891
 
32892
    public Object getFieldValue(_Fields field) {
32893
      switch (field) {
32894
      case ITEM_ID:
32895
        return Long.valueOf(getItem_id());
32896
 
32897
      case WAREHOUSE_ID:
32898
        return Long.valueOf(getWarehouse_id());
32899
 
32900
      }
32901
      throw new IllegalStateException();
32902
    }
32903
 
32904
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32905
    public boolean isSet(_Fields field) {
32906
      if (field == null) {
32907
        throw new IllegalArgumentException();
32908
      }
32909
 
32910
      switch (field) {
32911
      case ITEM_ID:
32912
        return isSetItem_id();
32913
      case WAREHOUSE_ID:
32914
        return isSetWarehouse_id();
32915
      }
32916
      throw new IllegalStateException();
32917
    }
32918
 
32919
    @Override
32920
    public boolean equals(Object that) {
32921
      if (that == null)
32922
        return false;
32923
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_args)
32924
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_args)that);
32925
      return false;
32926
    }
32927
 
32928
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_args that) {
32929
      if (that == null)
32930
        return false;
32931
 
32932
      boolean this_present_item_id = true;
32933
      boolean that_present_item_id = true;
32934
      if (this_present_item_id || that_present_item_id) {
32935
        if (!(this_present_item_id && that_present_item_id))
32936
          return false;
32937
        if (this.item_id != that.item_id)
32938
          return false;
32939
      }
32940
 
32941
      boolean this_present_warehouse_id = true;
32942
      boolean that_present_warehouse_id = true;
32943
      if (this_present_warehouse_id || that_present_warehouse_id) {
32944
        if (!(this_present_warehouse_id && that_present_warehouse_id))
32945
          return false;
32946
        if (this.warehouse_id != that.warehouse_id)
32947
          return false;
32948
      }
32949
 
32950
      return true;
32951
    }
32952
 
32953
    @Override
32954
    public int hashCode() {
32955
      return 0;
32956
    }
32957
 
32958
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_args other) {
32959
      if (!getClass().equals(other.getClass())) {
32960
        return getClass().getName().compareTo(other.getClass().getName());
32961
      }
32962
 
32963
      int lastComparison = 0;
32964
      deleteItemFromIgnoredInventoryUpdateList_args typedOther = (deleteItemFromIgnoredInventoryUpdateList_args)other;
32965
 
32966
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
32967
      if (lastComparison != 0) {
32968
        return lastComparison;
32969
      }
32970
      if (isSetItem_id()) {
32971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
32972
        if (lastComparison != 0) {
32973
          return lastComparison;
32974
        }
32975
      }
32976
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
32977
      if (lastComparison != 0) {
32978
        return lastComparison;
32979
      }
32980
      if (isSetWarehouse_id()) {
32981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
32982
        if (lastComparison != 0) {
32983
          return lastComparison;
32984
        }
32985
      }
32986
      return 0;
32987
    }
32988
 
32989
    public _Fields fieldForId(int fieldId) {
32990
      return _Fields.findByThriftId(fieldId);
32991
    }
32992
 
32993
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32994
      org.apache.thrift.protocol.TField field;
32995
      iprot.readStructBegin();
32996
      while (true)
32997
      {
32998
        field = iprot.readFieldBegin();
32999
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33000
          break;
33001
        }
33002
        switch (field.id) {
33003
          case 1: // ITEM_ID
33004
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33005
              this.item_id = iprot.readI64();
33006
              setItem_idIsSet(true);
33007
            } else { 
33008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33009
            }
33010
            break;
33011
          case 2: // WAREHOUSE_ID
33012
            if (field.type == org.apache.thrift.protocol.TType.I64) {
33013
              this.warehouse_id = iprot.readI64();
33014
              setWarehouse_idIsSet(true);
33015
            } else { 
33016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33017
            }
33018
            break;
33019
          default:
33020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33021
        }
33022
        iprot.readFieldEnd();
33023
      }
33024
      iprot.readStructEnd();
33025
      validate();
33026
    }
33027
 
33028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33029
      validate();
33030
 
33031
      oprot.writeStructBegin(STRUCT_DESC);
33032
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
33033
      oprot.writeI64(this.item_id);
33034
      oprot.writeFieldEnd();
33035
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
33036
      oprot.writeI64(this.warehouse_id);
33037
      oprot.writeFieldEnd();
33038
      oprot.writeFieldStop();
33039
      oprot.writeStructEnd();
33040
    }
33041
 
33042
    @Override
33043
    public String toString() {
33044
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_args(");
33045
      boolean first = true;
33046
 
33047
      sb.append("item_id:");
33048
      sb.append(this.item_id);
33049
      first = false;
33050
      if (!first) sb.append(", ");
33051
      sb.append("warehouse_id:");
33052
      sb.append(this.warehouse_id);
33053
      first = false;
33054
      sb.append(")");
33055
      return sb.toString();
33056
    }
33057
 
33058
    public void validate() throws org.apache.thrift.TException {
33059
      // check for required fields
33060
    }
33061
 
33062
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33063
      try {
33064
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33065
      } catch (org.apache.thrift.TException te) {
33066
        throw new java.io.IOException(te);
33067
      }
33068
    }
33069
 
33070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33071
      try {
33072
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33073
        __isset_bit_vector = new BitSet(1);
33074
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33075
      } catch (org.apache.thrift.TException te) {
33076
        throw new java.io.IOException(te);
33077
      }
33078
    }
33079
 
33080
  }
33081
 
33082
  public static class deleteItemFromIgnoredInventoryUpdateList_result implements org.apache.thrift.TBase<deleteItemFromIgnoredInventoryUpdateList_result, deleteItemFromIgnoredInventoryUpdateList_result._Fields>, java.io.Serializable, Cloneable   {
33083
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteItemFromIgnoredInventoryUpdateList_result");
33084
 
33085
    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);
33086
 
33087
    private boolean success; // required
33088
 
33089
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33090
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33091
      SUCCESS((short)0, "success");
33092
 
33093
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33094
 
33095
      static {
33096
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33097
          byName.put(field.getFieldName(), field);
33098
        }
33099
      }
33100
 
33101
      /**
33102
       * Find the _Fields constant that matches fieldId, or null if its not found.
33103
       */
33104
      public static _Fields findByThriftId(int fieldId) {
33105
        switch(fieldId) {
33106
          case 0: // SUCCESS
33107
            return SUCCESS;
33108
          default:
33109
            return null;
33110
        }
33111
      }
33112
 
33113
      /**
33114
       * Find the _Fields constant that matches fieldId, throwing an exception
33115
       * if it is not found.
33116
       */
33117
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33118
        _Fields fields = findByThriftId(fieldId);
33119
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33120
        return fields;
33121
      }
33122
 
33123
      /**
33124
       * Find the _Fields constant that matches name, or null if its not found.
33125
       */
33126
      public static _Fields findByName(String name) {
33127
        return byName.get(name);
33128
      }
33129
 
33130
      private final short _thriftId;
33131
      private final String _fieldName;
33132
 
33133
      _Fields(short thriftId, String fieldName) {
33134
        _thriftId = thriftId;
33135
        _fieldName = fieldName;
33136
      }
33137
 
33138
      public short getThriftFieldId() {
33139
        return _thriftId;
33140
      }
33141
 
33142
      public String getFieldName() {
33143
        return _fieldName;
33144
      }
33145
    }
33146
 
33147
    // isset id assignments
33148
    private static final int __SUCCESS_ISSET_ID = 0;
33149
    private BitSet __isset_bit_vector = new BitSet(1);
33150
 
33151
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33152
    static {
33153
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33154
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33155
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
33156
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33157
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteItemFromIgnoredInventoryUpdateList_result.class, metaDataMap);
33158
    }
33159
 
33160
    public deleteItemFromIgnoredInventoryUpdateList_result() {
33161
    }
33162
 
33163
    public deleteItemFromIgnoredInventoryUpdateList_result(
33164
      boolean success)
33165
    {
33166
      this();
33167
      this.success = success;
33168
      setSuccessIsSet(true);
33169
    }
33170
 
33171
    /**
33172
     * Performs a deep copy on <i>other</i>.
33173
     */
33174
    public deleteItemFromIgnoredInventoryUpdateList_result(deleteItemFromIgnoredInventoryUpdateList_result other) {
33175
      __isset_bit_vector.clear();
33176
      __isset_bit_vector.or(other.__isset_bit_vector);
33177
      this.success = other.success;
33178
    }
33179
 
33180
    public deleteItemFromIgnoredInventoryUpdateList_result deepCopy() {
33181
      return new deleteItemFromIgnoredInventoryUpdateList_result(this);
33182
    }
33183
 
33184
    @Override
33185
    public void clear() {
33186
      setSuccessIsSet(false);
33187
      this.success = false;
33188
    }
33189
 
33190
    public boolean isSuccess() {
33191
      return this.success;
33192
    }
33193
 
33194
    public void setSuccess(boolean success) {
33195
      this.success = success;
33196
      setSuccessIsSet(true);
33197
    }
33198
 
33199
    public void unsetSuccess() {
33200
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
33201
    }
33202
 
33203
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33204
    public boolean isSetSuccess() {
33205
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
33206
    }
33207
 
33208
    public void setSuccessIsSet(boolean value) {
33209
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
33210
    }
33211
 
33212
    public void setFieldValue(_Fields field, Object value) {
33213
      switch (field) {
33214
      case SUCCESS:
33215
        if (value == null) {
33216
          unsetSuccess();
33217
        } else {
33218
          setSuccess((Boolean)value);
33219
        }
33220
        break;
33221
 
33222
      }
33223
    }
33224
 
33225
    public Object getFieldValue(_Fields field) {
33226
      switch (field) {
33227
      case SUCCESS:
33228
        return Boolean.valueOf(isSuccess());
33229
 
33230
      }
33231
      throw new IllegalStateException();
33232
    }
33233
 
33234
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33235
    public boolean isSet(_Fields field) {
33236
      if (field == null) {
33237
        throw new IllegalArgumentException();
33238
      }
33239
 
33240
      switch (field) {
33241
      case SUCCESS:
33242
        return isSetSuccess();
33243
      }
33244
      throw new IllegalStateException();
33245
    }
33246
 
33247
    @Override
33248
    public boolean equals(Object that) {
33249
      if (that == null)
33250
        return false;
33251
      if (that instanceof deleteItemFromIgnoredInventoryUpdateList_result)
33252
        return this.equals((deleteItemFromIgnoredInventoryUpdateList_result)that);
33253
      return false;
33254
    }
33255
 
33256
    public boolean equals(deleteItemFromIgnoredInventoryUpdateList_result that) {
33257
      if (that == null)
33258
        return false;
33259
 
33260
      boolean this_present_success = true;
33261
      boolean that_present_success = true;
33262
      if (this_present_success || that_present_success) {
33263
        if (!(this_present_success && that_present_success))
33264
          return false;
33265
        if (this.success != that.success)
33266
          return false;
33267
      }
33268
 
33269
      return true;
33270
    }
33271
 
33272
    @Override
33273
    public int hashCode() {
33274
      return 0;
33275
    }
33276
 
33277
    public int compareTo(deleteItemFromIgnoredInventoryUpdateList_result other) {
33278
      if (!getClass().equals(other.getClass())) {
33279
        return getClass().getName().compareTo(other.getClass().getName());
33280
      }
33281
 
33282
      int lastComparison = 0;
33283
      deleteItemFromIgnoredInventoryUpdateList_result typedOther = (deleteItemFromIgnoredInventoryUpdateList_result)other;
33284
 
33285
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33286
      if (lastComparison != 0) {
33287
        return lastComparison;
33288
      }
33289
      if (isSetSuccess()) {
33290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33291
        if (lastComparison != 0) {
33292
          return lastComparison;
33293
        }
33294
      }
33295
      return 0;
33296
    }
33297
 
33298
    public _Fields fieldForId(int fieldId) {
33299
      return _Fields.findByThriftId(fieldId);
33300
    }
33301
 
33302
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33303
      org.apache.thrift.protocol.TField field;
33304
      iprot.readStructBegin();
33305
      while (true)
33306
      {
33307
        field = iprot.readFieldBegin();
33308
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33309
          break;
33310
        }
33311
        switch (field.id) {
33312
          case 0: // SUCCESS
33313
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
33314
              this.success = iprot.readBool();
33315
              setSuccessIsSet(true);
33316
            } else { 
33317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33318
            }
33319
            break;
33320
          default:
33321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33322
        }
33323
        iprot.readFieldEnd();
33324
      }
33325
      iprot.readStructEnd();
33326
      validate();
33327
    }
33328
 
33329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33330
      oprot.writeStructBegin(STRUCT_DESC);
33331
 
33332
      if (this.isSetSuccess()) {
33333
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33334
        oprot.writeBool(this.success);
33335
        oprot.writeFieldEnd();
33336
      }
33337
      oprot.writeFieldStop();
33338
      oprot.writeStructEnd();
33339
    }
33340
 
33341
    @Override
33342
    public String toString() {
33343
      StringBuilder sb = new StringBuilder("deleteItemFromIgnoredInventoryUpdateList_result(");
33344
      boolean first = true;
33345
 
33346
      sb.append("success:");
33347
      sb.append(this.success);
33348
      first = false;
33349
      sb.append(")");
33350
      return sb.toString();
33351
    }
33352
 
33353
    public void validate() throws org.apache.thrift.TException {
33354
      // check for required fields
33355
    }
33356
 
33357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33358
      try {
33359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33360
      } catch (org.apache.thrift.TException te) {
33361
        throw new java.io.IOException(te);
33362
      }
33363
    }
33364
 
33365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33366
      try {
7322 vikram.rag 33367
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33368
        __isset_bit_vector = new BitSet(1);
6531 vikram.rag 33369
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33370
      } catch (org.apache.thrift.TException te) {
33371
        throw new java.io.IOException(te);
33372
      }
33373
    }
33374
 
33375
  }
33376
 
33377
  public static class getAllIgnoredInventoryupdateItemsCount_args implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_args, getAllIgnoredInventoryupdateItemsCount_args._Fields>, java.io.Serializable, Cloneable   {
33378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_args");
33379
 
33380
 
33381
 
33382
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33383
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33384
;
33385
 
33386
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33387
 
33388
      static {
33389
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33390
          byName.put(field.getFieldName(), field);
33391
        }
33392
      }
33393
 
33394
      /**
33395
       * Find the _Fields constant that matches fieldId, or null if its not found.
33396
       */
33397
      public static _Fields findByThriftId(int fieldId) {
33398
        switch(fieldId) {
33399
          default:
33400
            return null;
33401
        }
33402
      }
33403
 
33404
      /**
33405
       * Find the _Fields constant that matches fieldId, throwing an exception
33406
       * if it is not found.
33407
       */
33408
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33409
        _Fields fields = findByThriftId(fieldId);
33410
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33411
        return fields;
33412
      }
33413
 
33414
      /**
33415
       * Find the _Fields constant that matches name, or null if its not found.
33416
       */
33417
      public static _Fields findByName(String name) {
33418
        return byName.get(name);
33419
      }
33420
 
33421
      private final short _thriftId;
33422
      private final String _fieldName;
33423
 
33424
      _Fields(short thriftId, String fieldName) {
33425
        _thriftId = thriftId;
33426
        _fieldName = fieldName;
33427
      }
33428
 
33429
      public short getThriftFieldId() {
33430
        return _thriftId;
33431
      }
33432
 
33433
      public String getFieldName() {
33434
        return _fieldName;
33435
      }
33436
    }
33437
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33438
    static {
33439
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33440
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33441
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_args.class, metaDataMap);
33442
    }
33443
 
33444
    public getAllIgnoredInventoryupdateItemsCount_args() {
33445
    }
33446
 
33447
    /**
33448
     * Performs a deep copy on <i>other</i>.
33449
     */
33450
    public getAllIgnoredInventoryupdateItemsCount_args(getAllIgnoredInventoryupdateItemsCount_args other) {
33451
    }
33452
 
33453
    public getAllIgnoredInventoryupdateItemsCount_args deepCopy() {
33454
      return new getAllIgnoredInventoryupdateItemsCount_args(this);
33455
    }
33456
 
33457
    @Override
33458
    public void clear() {
33459
    }
33460
 
33461
    public void setFieldValue(_Fields field, Object value) {
33462
      switch (field) {
33463
      }
33464
    }
33465
 
33466
    public Object getFieldValue(_Fields field) {
33467
      switch (field) {
33468
      }
33469
      throw new IllegalStateException();
33470
    }
33471
 
33472
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33473
    public boolean isSet(_Fields field) {
33474
      if (field == null) {
33475
        throw new IllegalArgumentException();
33476
      }
33477
 
33478
      switch (field) {
33479
      }
33480
      throw new IllegalStateException();
33481
    }
33482
 
33483
    @Override
33484
    public boolean equals(Object that) {
33485
      if (that == null)
33486
        return false;
33487
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_args)
33488
        return this.equals((getAllIgnoredInventoryupdateItemsCount_args)that);
33489
      return false;
33490
    }
33491
 
33492
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_args that) {
33493
      if (that == null)
33494
        return false;
33495
 
33496
      return true;
33497
    }
33498
 
33499
    @Override
33500
    public int hashCode() {
33501
      return 0;
33502
    }
33503
 
33504
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_args other) {
33505
      if (!getClass().equals(other.getClass())) {
33506
        return getClass().getName().compareTo(other.getClass().getName());
33507
      }
33508
 
33509
      int lastComparison = 0;
33510
      getAllIgnoredInventoryupdateItemsCount_args typedOther = (getAllIgnoredInventoryupdateItemsCount_args)other;
33511
 
33512
      return 0;
33513
    }
33514
 
33515
    public _Fields fieldForId(int fieldId) {
33516
      return _Fields.findByThriftId(fieldId);
33517
    }
33518
 
33519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33520
      org.apache.thrift.protocol.TField field;
33521
      iprot.readStructBegin();
33522
      while (true)
33523
      {
33524
        field = iprot.readFieldBegin();
33525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33526
          break;
33527
        }
33528
        switch (field.id) {
33529
          default:
33530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33531
        }
33532
        iprot.readFieldEnd();
33533
      }
33534
      iprot.readStructEnd();
33535
      validate();
33536
    }
33537
 
33538
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33539
      validate();
33540
 
33541
      oprot.writeStructBegin(STRUCT_DESC);
33542
      oprot.writeFieldStop();
33543
      oprot.writeStructEnd();
33544
    }
33545
 
33546
    @Override
33547
    public String toString() {
33548
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_args(");
33549
      boolean first = true;
33550
 
33551
      sb.append(")");
33552
      return sb.toString();
33553
    }
33554
 
33555
    public void validate() throws org.apache.thrift.TException {
33556
      // check for required fields
33557
    }
33558
 
33559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33560
      try {
33561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33562
      } catch (org.apache.thrift.TException te) {
33563
        throw new java.io.IOException(te);
33564
      }
33565
    }
33566
 
33567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33568
      try {
33569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33570
      } catch (org.apache.thrift.TException te) {
33571
        throw new java.io.IOException(te);
33572
      }
33573
    }
33574
 
33575
  }
33576
 
33577
  public static class getAllIgnoredInventoryupdateItemsCount_result implements org.apache.thrift.TBase<getAllIgnoredInventoryupdateItemsCount_result, getAllIgnoredInventoryupdateItemsCount_result._Fields>, java.io.Serializable, Cloneable   {
33578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllIgnoredInventoryupdateItemsCount_result");
33579
 
33580
    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);
33581
 
33582
    private int success; // required
33583
 
33584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33586
      SUCCESS((short)0, "success");
33587
 
33588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33589
 
33590
      static {
33591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33592
          byName.put(field.getFieldName(), field);
33593
        }
33594
      }
33595
 
33596
      /**
33597
       * Find the _Fields constant that matches fieldId, or null if its not found.
33598
       */
33599
      public static _Fields findByThriftId(int fieldId) {
33600
        switch(fieldId) {
33601
          case 0: // SUCCESS
33602
            return SUCCESS;
33603
          default:
33604
            return null;
33605
        }
33606
      }
33607
 
33608
      /**
33609
       * Find the _Fields constant that matches fieldId, throwing an exception
33610
       * if it is not found.
33611
       */
33612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33613
        _Fields fields = findByThriftId(fieldId);
33614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33615
        return fields;
33616
      }
33617
 
33618
      /**
33619
       * Find the _Fields constant that matches name, or null if its not found.
33620
       */
33621
      public static _Fields findByName(String name) {
33622
        return byName.get(name);
33623
      }
33624
 
33625
      private final short _thriftId;
33626
      private final String _fieldName;
33627
 
33628
      _Fields(short thriftId, String fieldName) {
33629
        _thriftId = thriftId;
33630
        _fieldName = fieldName;
33631
      }
33632
 
33633
      public short getThriftFieldId() {
33634
        return _thriftId;
33635
      }
33636
 
33637
      public String getFieldName() {
33638
        return _fieldName;
33639
      }
33640
    }
33641
 
33642
    // isset id assignments
33643
    private static final int __SUCCESS_ISSET_ID = 0;
33644
    private BitSet __isset_bit_vector = new BitSet(1);
33645
 
33646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33647
    static {
33648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33649
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllIgnoredInventoryupdateItemsCount_result.class, metaDataMap);
33653
    }
33654
 
33655
    public getAllIgnoredInventoryupdateItemsCount_result() {
33656
    }
33657
 
33658
    public getAllIgnoredInventoryupdateItemsCount_result(
33659
      int success)
33660
    {
33661
      this();
33662
      this.success = success;
33663
      setSuccessIsSet(true);
33664
    }
33665
 
33666
    /**
33667
     * Performs a deep copy on <i>other</i>.
33668
     */
33669
    public getAllIgnoredInventoryupdateItemsCount_result(getAllIgnoredInventoryupdateItemsCount_result other) {
33670
      __isset_bit_vector.clear();
33671
      __isset_bit_vector.or(other.__isset_bit_vector);
33672
      this.success = other.success;
33673
    }
33674
 
33675
    public getAllIgnoredInventoryupdateItemsCount_result deepCopy() {
33676
      return new getAllIgnoredInventoryupdateItemsCount_result(this);
33677
    }
33678
 
33679
    @Override
33680
    public void clear() {
33681
      setSuccessIsSet(false);
33682
      this.success = 0;
33683
    }
33684
 
33685
    public int getSuccess() {
33686
      return this.success;
33687
    }
33688
 
33689
    public void setSuccess(int success) {
33690
      this.success = success;
33691
      setSuccessIsSet(true);
33692
    }
33693
 
33694
    public void unsetSuccess() {
33695
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
33696
    }
33697
 
33698
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33699
    public boolean isSetSuccess() {
33700
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
33701
    }
33702
 
33703
    public void setSuccessIsSet(boolean value) {
33704
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
33705
    }
33706
 
33707
    public void setFieldValue(_Fields field, Object value) {
33708
      switch (field) {
33709
      case SUCCESS:
33710
        if (value == null) {
33711
          unsetSuccess();
33712
        } else {
33713
          setSuccess((Integer)value);
33714
        }
33715
        break;
33716
 
33717
      }
33718
    }
33719
 
33720
    public Object getFieldValue(_Fields field) {
33721
      switch (field) {
33722
      case SUCCESS:
33723
        return Integer.valueOf(getSuccess());
33724
 
33725
      }
33726
      throw new IllegalStateException();
33727
    }
33728
 
33729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33730
    public boolean isSet(_Fields field) {
33731
      if (field == null) {
33732
        throw new IllegalArgumentException();
33733
      }
33734
 
33735
      switch (field) {
33736
      case SUCCESS:
33737
        return isSetSuccess();
33738
      }
33739
      throw new IllegalStateException();
33740
    }
33741
 
33742
    @Override
33743
    public boolean equals(Object that) {
33744
      if (that == null)
33745
        return false;
33746
      if (that instanceof getAllIgnoredInventoryupdateItemsCount_result)
33747
        return this.equals((getAllIgnoredInventoryupdateItemsCount_result)that);
33748
      return false;
33749
    }
33750
 
33751
    public boolean equals(getAllIgnoredInventoryupdateItemsCount_result that) {
33752
      if (that == null)
33753
        return false;
33754
 
33755
      boolean this_present_success = true;
33756
      boolean that_present_success = true;
33757
      if (this_present_success || that_present_success) {
33758
        if (!(this_present_success && that_present_success))
33759
          return false;
33760
        if (this.success != that.success)
33761
          return false;
33762
      }
33763
 
33764
      return true;
33765
    }
33766
 
33767
    @Override
33768
    public int hashCode() {
33769
      return 0;
33770
    }
33771
 
33772
    public int compareTo(getAllIgnoredInventoryupdateItemsCount_result other) {
33773
      if (!getClass().equals(other.getClass())) {
33774
        return getClass().getName().compareTo(other.getClass().getName());
33775
      }
33776
 
33777
      int lastComparison = 0;
33778
      getAllIgnoredInventoryupdateItemsCount_result typedOther = (getAllIgnoredInventoryupdateItemsCount_result)other;
33779
 
33780
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33781
      if (lastComparison != 0) {
33782
        return lastComparison;
33783
      }
33784
      if (isSetSuccess()) {
33785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33786
        if (lastComparison != 0) {
33787
          return lastComparison;
33788
        }
33789
      }
33790
      return 0;
33791
    }
33792
 
33793
    public _Fields fieldForId(int fieldId) {
33794
      return _Fields.findByThriftId(fieldId);
33795
    }
33796
 
33797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33798
      org.apache.thrift.protocol.TField field;
33799
      iprot.readStructBegin();
33800
      while (true)
33801
      {
33802
        field = iprot.readFieldBegin();
33803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33804
          break;
33805
        }
33806
        switch (field.id) {
33807
          case 0: // SUCCESS
33808
            if (field.type == org.apache.thrift.protocol.TType.I32) {
33809
              this.success = iprot.readI32();
33810
              setSuccessIsSet(true);
33811
            } else { 
33812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33813
            }
33814
            break;
33815
          default:
33816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33817
        }
33818
        iprot.readFieldEnd();
33819
      }
33820
      iprot.readStructEnd();
33821
      validate();
33822
    }
33823
 
33824
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33825
      oprot.writeStructBegin(STRUCT_DESC);
33826
 
33827
      if (this.isSetSuccess()) {
33828
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33829
        oprot.writeI32(this.success);
33830
        oprot.writeFieldEnd();
33831
      }
33832
      oprot.writeFieldStop();
33833
      oprot.writeStructEnd();
33834
    }
33835
 
33836
    @Override
33837
    public String toString() {
33838
      StringBuilder sb = new StringBuilder("getAllIgnoredInventoryupdateItemsCount_result(");
33839
      boolean first = true;
33840
 
33841
      sb.append("success:");
33842
      sb.append(this.success);
33843
      first = false;
33844
      sb.append(")");
33845
      return sb.toString();
33846
    }
33847
 
33848
    public void validate() throws org.apache.thrift.TException {
33849
      // check for required fields
33850
    }
33851
 
33852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33853
      try {
33854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33855
      } catch (org.apache.thrift.TException te) {
33856
        throw new java.io.IOException(te);
33857
      }
33858
    }
33859
 
33860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33861
      try {
7322 vikram.rag 33862
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33863
        __isset_bit_vector = new BitSet(1);
6531 vikram.rag 33864
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33865
      } catch (org.apache.thrift.TException te) {
33866
        throw new java.io.IOException(te);
33867
      }
33868
    }
33869
 
33870
  }
33871
 
33872
  public static class getIgnoredInventoryUpdateItemids_args implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_args, getIgnoredInventoryUpdateItemids_args._Fields>, java.io.Serializable, Cloneable   {
33873
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_args");
33874
 
33875
    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);
33876
    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);
33877
 
33878
    private int offset; // required
33879
    private int limit; // required
33880
 
33881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33883
      OFFSET((short)1, "offset"),
33884
      LIMIT((short)2, "limit");
33885
 
33886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33887
 
33888
      static {
33889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33890
          byName.put(field.getFieldName(), field);
33891
        }
33892
      }
33893
 
33894
      /**
33895
       * Find the _Fields constant that matches fieldId, or null if its not found.
33896
       */
33897
      public static _Fields findByThriftId(int fieldId) {
33898
        switch(fieldId) {
33899
          case 1: // OFFSET
33900
            return OFFSET;
33901
          case 2: // LIMIT
33902
            return LIMIT;
33903
          default:
33904
            return null;
33905
        }
33906
      }
33907
 
33908
      /**
33909
       * Find the _Fields constant that matches fieldId, throwing an exception
33910
       * if it is not found.
33911
       */
33912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33913
        _Fields fields = findByThriftId(fieldId);
33914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33915
        return fields;
33916
      }
33917
 
33918
      /**
33919
       * Find the _Fields constant that matches name, or null if its not found.
33920
       */
33921
      public static _Fields findByName(String name) {
33922
        return byName.get(name);
33923
      }
33924
 
33925
      private final short _thriftId;
33926
      private final String _fieldName;
33927
 
33928
      _Fields(short thriftId, String fieldName) {
33929
        _thriftId = thriftId;
33930
        _fieldName = fieldName;
33931
      }
33932
 
33933
      public short getThriftFieldId() {
33934
        return _thriftId;
33935
      }
33936
 
33937
      public String getFieldName() {
33938
        return _fieldName;
33939
      }
33940
    }
33941
 
33942
    // isset id assignments
33943
    private static final int __OFFSET_ISSET_ID = 0;
33944
    private static final int __LIMIT_ISSET_ID = 1;
33945
    private BitSet __isset_bit_vector = new BitSet(2);
33946
 
33947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33948
    static {
33949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33950
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33952
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
33954
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33955
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_args.class, metaDataMap);
33956
    }
33957
 
33958
    public getIgnoredInventoryUpdateItemids_args() {
33959
    }
33960
 
33961
    public getIgnoredInventoryUpdateItemids_args(
33962
      int offset,
33963
      int limit)
33964
    {
33965
      this();
33966
      this.offset = offset;
33967
      setOffsetIsSet(true);
33968
      this.limit = limit;
33969
      setLimitIsSet(true);
33970
    }
33971
 
33972
    /**
33973
     * Performs a deep copy on <i>other</i>.
33974
     */
33975
    public getIgnoredInventoryUpdateItemids_args(getIgnoredInventoryUpdateItemids_args other) {
33976
      __isset_bit_vector.clear();
33977
      __isset_bit_vector.or(other.__isset_bit_vector);
33978
      this.offset = other.offset;
33979
      this.limit = other.limit;
33980
    }
33981
 
33982
    public getIgnoredInventoryUpdateItemids_args deepCopy() {
33983
      return new getIgnoredInventoryUpdateItemids_args(this);
33984
    }
33985
 
33986
    @Override
33987
    public void clear() {
33988
      setOffsetIsSet(false);
33989
      this.offset = 0;
33990
      setLimitIsSet(false);
33991
      this.limit = 0;
33992
    }
33993
 
33994
    public int getOffset() {
33995
      return this.offset;
33996
    }
33997
 
33998
    public void setOffset(int offset) {
33999
      this.offset = offset;
34000
      setOffsetIsSet(true);
34001
    }
34002
 
34003
    public void unsetOffset() {
34004
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
34005
    }
34006
 
34007
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
34008
    public boolean isSetOffset() {
34009
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
34010
    }
34011
 
34012
    public void setOffsetIsSet(boolean value) {
34013
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
34014
    }
34015
 
34016
    public int getLimit() {
34017
      return this.limit;
34018
    }
34019
 
34020
    public void setLimit(int limit) {
34021
      this.limit = limit;
34022
      setLimitIsSet(true);
34023
    }
34024
 
34025
    public void unsetLimit() {
34026
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
34027
    }
34028
 
34029
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
34030
    public boolean isSetLimit() {
34031
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
34032
    }
34033
 
34034
    public void setLimitIsSet(boolean value) {
34035
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
34036
    }
34037
 
34038
    public void setFieldValue(_Fields field, Object value) {
34039
      switch (field) {
34040
      case OFFSET:
34041
        if (value == null) {
34042
          unsetOffset();
34043
        } else {
34044
          setOffset((Integer)value);
34045
        }
34046
        break;
34047
 
34048
      case LIMIT:
34049
        if (value == null) {
34050
          unsetLimit();
34051
        } else {
34052
          setLimit((Integer)value);
34053
        }
34054
        break;
34055
 
34056
      }
34057
    }
34058
 
34059
    public Object getFieldValue(_Fields field) {
34060
      switch (field) {
34061
      case OFFSET:
34062
        return Integer.valueOf(getOffset());
34063
 
34064
      case LIMIT:
34065
        return Integer.valueOf(getLimit());
34066
 
34067
      }
34068
      throw new IllegalStateException();
34069
    }
34070
 
34071
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34072
    public boolean isSet(_Fields field) {
34073
      if (field == null) {
34074
        throw new IllegalArgumentException();
34075
      }
34076
 
34077
      switch (field) {
34078
      case OFFSET:
34079
        return isSetOffset();
34080
      case LIMIT:
34081
        return isSetLimit();
34082
      }
34083
      throw new IllegalStateException();
34084
    }
34085
 
34086
    @Override
34087
    public boolean equals(Object that) {
34088
      if (that == null)
34089
        return false;
34090
      if (that instanceof getIgnoredInventoryUpdateItemids_args)
34091
        return this.equals((getIgnoredInventoryUpdateItemids_args)that);
34092
      return false;
34093
    }
34094
 
34095
    public boolean equals(getIgnoredInventoryUpdateItemids_args that) {
34096
      if (that == null)
34097
        return false;
34098
 
34099
      boolean this_present_offset = true;
34100
      boolean that_present_offset = true;
34101
      if (this_present_offset || that_present_offset) {
34102
        if (!(this_present_offset && that_present_offset))
34103
          return false;
34104
        if (this.offset != that.offset)
34105
          return false;
34106
      }
34107
 
34108
      boolean this_present_limit = true;
34109
      boolean that_present_limit = true;
34110
      if (this_present_limit || that_present_limit) {
34111
        if (!(this_present_limit && that_present_limit))
34112
          return false;
34113
        if (this.limit != that.limit)
34114
          return false;
34115
      }
34116
 
34117
      return true;
34118
    }
34119
 
34120
    @Override
34121
    public int hashCode() {
34122
      return 0;
34123
    }
34124
 
34125
    public int compareTo(getIgnoredInventoryUpdateItemids_args other) {
34126
      if (!getClass().equals(other.getClass())) {
34127
        return getClass().getName().compareTo(other.getClass().getName());
34128
      }
34129
 
34130
      int lastComparison = 0;
34131
      getIgnoredInventoryUpdateItemids_args typedOther = (getIgnoredInventoryUpdateItemids_args)other;
34132
 
34133
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
34134
      if (lastComparison != 0) {
34135
        return lastComparison;
34136
      }
34137
      if (isSetOffset()) {
34138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
34139
        if (lastComparison != 0) {
34140
          return lastComparison;
34141
        }
34142
      }
34143
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
34144
      if (lastComparison != 0) {
34145
        return lastComparison;
34146
      }
34147
      if (isSetLimit()) {
34148
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
34149
        if (lastComparison != 0) {
34150
          return lastComparison;
34151
        }
34152
      }
34153
      return 0;
34154
    }
34155
 
34156
    public _Fields fieldForId(int fieldId) {
34157
      return _Fields.findByThriftId(fieldId);
34158
    }
34159
 
34160
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34161
      org.apache.thrift.protocol.TField field;
34162
      iprot.readStructBegin();
34163
      while (true)
34164
      {
34165
        field = iprot.readFieldBegin();
34166
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34167
          break;
34168
        }
34169
        switch (field.id) {
34170
          case 1: // OFFSET
34171
            if (field.type == org.apache.thrift.protocol.TType.I32) {
34172
              this.offset = iprot.readI32();
34173
              setOffsetIsSet(true);
34174
            } else { 
34175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34176
            }
34177
            break;
34178
          case 2: // LIMIT
34179
            if (field.type == org.apache.thrift.protocol.TType.I32) {
34180
              this.limit = iprot.readI32();
34181
              setLimitIsSet(true);
34182
            } else { 
34183
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34184
            }
34185
            break;
34186
          default:
34187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34188
        }
34189
        iprot.readFieldEnd();
34190
      }
34191
      iprot.readStructEnd();
34192
      validate();
34193
    }
34194
 
34195
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34196
      validate();
34197
 
34198
      oprot.writeStructBegin(STRUCT_DESC);
34199
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
34200
      oprot.writeI32(this.offset);
34201
      oprot.writeFieldEnd();
34202
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
34203
      oprot.writeI32(this.limit);
34204
      oprot.writeFieldEnd();
34205
      oprot.writeFieldStop();
34206
      oprot.writeStructEnd();
34207
    }
34208
 
34209
    @Override
34210
    public String toString() {
34211
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_args(");
34212
      boolean first = true;
34213
 
34214
      sb.append("offset:");
34215
      sb.append(this.offset);
34216
      first = false;
34217
      if (!first) sb.append(", ");
34218
      sb.append("limit:");
34219
      sb.append(this.limit);
34220
      first = false;
34221
      sb.append(")");
34222
      return sb.toString();
34223
    }
34224
 
34225
    public void validate() throws org.apache.thrift.TException {
34226
      // check for required fields
34227
    }
34228
 
34229
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34230
      try {
34231
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34232
      } catch (org.apache.thrift.TException te) {
34233
        throw new java.io.IOException(te);
34234
      }
34235
    }
34236
 
34237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34238
      try {
34239
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
34240
        __isset_bit_vector = new BitSet(1);
34241
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34242
      } catch (org.apache.thrift.TException te) {
34243
        throw new java.io.IOException(te);
34244
      }
34245
    }
34246
 
34247
  }
34248
 
34249
  public static class getIgnoredInventoryUpdateItemids_result implements org.apache.thrift.TBase<getIgnoredInventoryUpdateItemids_result, getIgnoredInventoryUpdateItemids_result._Fields>, java.io.Serializable, Cloneable   {
34250
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getIgnoredInventoryUpdateItemids_result");
34251
 
34252
    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);
34253
 
34254
    private List<Long> success; // required
34255
 
34256
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34257
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34258
      SUCCESS((short)0, "success");
34259
 
34260
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34261
 
34262
      static {
34263
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34264
          byName.put(field.getFieldName(), field);
34265
        }
34266
      }
34267
 
34268
      /**
34269
       * Find the _Fields constant that matches fieldId, or null if its not found.
34270
       */
34271
      public static _Fields findByThriftId(int fieldId) {
34272
        switch(fieldId) {
34273
          case 0: // SUCCESS
34274
            return SUCCESS;
34275
          default:
34276
            return null;
34277
        }
34278
      }
34279
 
34280
      /**
34281
       * Find the _Fields constant that matches fieldId, throwing an exception
34282
       * if it is not found.
34283
       */
34284
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34285
        _Fields fields = findByThriftId(fieldId);
34286
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34287
        return fields;
34288
      }
34289
 
34290
      /**
34291
       * Find the _Fields constant that matches name, or null if its not found.
34292
       */
34293
      public static _Fields findByName(String name) {
34294
        return byName.get(name);
34295
      }
34296
 
34297
      private final short _thriftId;
34298
      private final String _fieldName;
34299
 
34300
      _Fields(short thriftId, String fieldName) {
34301
        _thriftId = thriftId;
34302
        _fieldName = fieldName;
34303
      }
34304
 
34305
      public short getThriftFieldId() {
34306
        return _thriftId;
34307
      }
34308
 
34309
      public String getFieldName() {
34310
        return _fieldName;
34311
      }
34312
    }
34313
 
34314
    // isset id assignments
34315
 
34316
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34317
    static {
34318
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34319
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34320
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
34321
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
34322
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34323
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getIgnoredInventoryUpdateItemids_result.class, metaDataMap);
34324
    }
34325
 
34326
    public getIgnoredInventoryUpdateItemids_result() {
34327
    }
34328
 
34329
    public getIgnoredInventoryUpdateItemids_result(
34330
      List<Long> success)
34331
    {
34332
      this();
34333
      this.success = success;
34334
    }
34335
 
34336
    /**
34337
     * Performs a deep copy on <i>other</i>.
34338
     */
34339
    public getIgnoredInventoryUpdateItemids_result(getIgnoredInventoryUpdateItemids_result other) {
34340
      if (other.isSetSuccess()) {
34341
        List<Long> __this__success = new ArrayList<Long>();
34342
        for (Long other_element : other.success) {
34343
          __this__success.add(other_element);
34344
        }
34345
        this.success = __this__success;
34346
      }
34347
    }
34348
 
34349
    public getIgnoredInventoryUpdateItemids_result deepCopy() {
34350
      return new getIgnoredInventoryUpdateItemids_result(this);
34351
    }
34352
 
34353
    @Override
34354
    public void clear() {
34355
      this.success = null;
34356
    }
34357
 
34358
    public int getSuccessSize() {
34359
      return (this.success == null) ? 0 : this.success.size();
34360
    }
34361
 
34362
    public java.util.Iterator<Long> getSuccessIterator() {
34363
      return (this.success == null) ? null : this.success.iterator();
34364
    }
34365
 
34366
    public void addToSuccess(long elem) {
34367
      if (this.success == null) {
34368
        this.success = new ArrayList<Long>();
34369
      }
34370
      this.success.add(elem);
34371
    }
34372
 
34373
    public List<Long> getSuccess() {
34374
      return this.success;
34375
    }
34376
 
34377
    public void setSuccess(List<Long> success) {
34378
      this.success = success;
34379
    }
34380
 
34381
    public void unsetSuccess() {
34382
      this.success = null;
34383
    }
34384
 
34385
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
34386
    public boolean isSetSuccess() {
34387
      return this.success != null;
34388
    }
34389
 
34390
    public void setSuccessIsSet(boolean value) {
34391
      if (!value) {
34392
        this.success = null;
34393
      }
34394
    }
34395
 
34396
    public void setFieldValue(_Fields field, Object value) {
34397
      switch (field) {
34398
      case SUCCESS:
34399
        if (value == null) {
34400
          unsetSuccess();
34401
        } else {
34402
          setSuccess((List<Long>)value);
34403
        }
34404
        break;
34405
 
34406
      }
34407
    }
34408
 
34409
    public Object getFieldValue(_Fields field) {
34410
      switch (field) {
34411
      case SUCCESS:
34412
        return getSuccess();
34413
 
34414
      }
34415
      throw new IllegalStateException();
34416
    }
34417
 
34418
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34419
    public boolean isSet(_Fields field) {
34420
      if (field == null) {
34421
        throw new IllegalArgumentException();
34422
      }
34423
 
34424
      switch (field) {
34425
      case SUCCESS:
34426
        return isSetSuccess();
34427
      }
34428
      throw new IllegalStateException();
34429
    }
34430
 
34431
    @Override
34432
    public boolean equals(Object that) {
34433
      if (that == null)
34434
        return false;
34435
      if (that instanceof getIgnoredInventoryUpdateItemids_result)
34436
        return this.equals((getIgnoredInventoryUpdateItemids_result)that);
34437
      return false;
34438
    }
34439
 
34440
    public boolean equals(getIgnoredInventoryUpdateItemids_result that) {
34441
      if (that == null)
34442
        return false;
34443
 
34444
      boolean this_present_success = true && this.isSetSuccess();
34445
      boolean that_present_success = true && that.isSetSuccess();
34446
      if (this_present_success || that_present_success) {
34447
        if (!(this_present_success && that_present_success))
34448
          return false;
34449
        if (!this.success.equals(that.success))
34450
          return false;
34451
      }
34452
 
34453
      return true;
34454
    }
34455
 
34456
    @Override
34457
    public int hashCode() {
34458
      return 0;
34459
    }
34460
 
34461
    public int compareTo(getIgnoredInventoryUpdateItemids_result other) {
34462
      if (!getClass().equals(other.getClass())) {
34463
        return getClass().getName().compareTo(other.getClass().getName());
34464
      }
34465
 
34466
      int lastComparison = 0;
34467
      getIgnoredInventoryUpdateItemids_result typedOther = (getIgnoredInventoryUpdateItemids_result)other;
34468
 
34469
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
34470
      if (lastComparison != 0) {
34471
        return lastComparison;
34472
      }
34473
      if (isSetSuccess()) {
34474
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
34475
        if (lastComparison != 0) {
34476
          return lastComparison;
34477
        }
34478
      }
34479
      return 0;
34480
    }
34481
 
34482
    public _Fields fieldForId(int fieldId) {
34483
      return _Fields.findByThriftId(fieldId);
34484
    }
34485
 
34486
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34487
      org.apache.thrift.protocol.TField field;
34488
      iprot.readStructBegin();
34489
      while (true)
34490
      {
34491
        field = iprot.readFieldBegin();
34492
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34493
          break;
34494
        }
34495
        switch (field.id) {
34496
          case 0: // SUCCESS
34497
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
34498
              {
34499
                org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();
34500
                this.success = new ArrayList<Long>(_list100.size);
34501
                for (int _i101 = 0; _i101 < _list100.size; ++_i101)
34502
                {
34503
                  long _elem102; // required
34504
                  _elem102 = iprot.readI64();
34505
                  this.success.add(_elem102);
34506
                }
34507
                iprot.readListEnd();
34508
              }
34509
            } else { 
34510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34511
            }
34512
            break;
34513
          default:
34514
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34515
        }
34516
        iprot.readFieldEnd();
34517
      }
34518
      iprot.readStructEnd();
34519
      validate();
34520
    }
34521
 
34522
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34523
      oprot.writeStructBegin(STRUCT_DESC);
34524
 
34525
      if (this.isSetSuccess()) {
34526
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
34527
        {
34528
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
34529
          for (long _iter103 : this.success)
34530
          {
34531
            oprot.writeI64(_iter103);
34532
          }
34533
          oprot.writeListEnd();
34534
        }
34535
        oprot.writeFieldEnd();
34536
      }
34537
      oprot.writeFieldStop();
34538
      oprot.writeStructEnd();
34539
    }
34540
 
34541
    @Override
34542
    public String toString() {
34543
      StringBuilder sb = new StringBuilder("getIgnoredInventoryUpdateItemids_result(");
34544
      boolean first = true;
34545
 
34546
      sb.append("success:");
34547
      if (this.success == null) {
34548
        sb.append("null");
34549
      } else {
34550
        sb.append(this.success);
34551
      }
34552
      first = false;
34553
      sb.append(")");
34554
      return sb.toString();
34555
    }
34556
 
34557
    public void validate() throws org.apache.thrift.TException {
34558
      // check for required fields
34559
    }
34560
 
34561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
34562
      try {
34563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
34564
      } catch (org.apache.thrift.TException te) {
34565
        throw new java.io.IOException(te);
34566
      }
34567
    }
34568
 
34569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
34570
      try {
34571
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
34572
      } catch (org.apache.thrift.TException te) {
34573
        throw new java.io.IOException(te);
34574
      }
34575
    }
34576
 
34577
  }
34578
 
6821 amar.kumar 34579
  public static class updateItemStockPurchaseParams_args implements org.apache.thrift.TBase<updateItemStockPurchaseParams_args, updateItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
34580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_args");
34581
 
34582
    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);
34583
    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);
34584
    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);
34585
 
34586
    private long item_id; // required
34587
    private int numOfDaysStock; // required
34588
    private long minStockLevel; // required
34589
 
34590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
34591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
34592
      ITEM_ID((short)1, "item_id"),
34593
      NUM_OF_DAYS_STOCK((short)2, "numOfDaysStock"),
34594
      MIN_STOCK_LEVEL((short)3, "minStockLevel");
34595
 
34596
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
34597
 
34598
      static {
34599
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
34600
          byName.put(field.getFieldName(), field);
34601
        }
34602
      }
34603
 
34604
      /**
34605
       * Find the _Fields constant that matches fieldId, or null if its not found.
34606
       */
34607
      public static _Fields findByThriftId(int fieldId) {
34608
        switch(fieldId) {
34609
          case 1: // ITEM_ID
34610
            return ITEM_ID;
34611
          case 2: // NUM_OF_DAYS_STOCK
34612
            return NUM_OF_DAYS_STOCK;
34613
          case 3: // MIN_STOCK_LEVEL
34614
            return MIN_STOCK_LEVEL;
34615
          default:
34616
            return null;
34617
        }
34618
      }
34619
 
34620
      /**
34621
       * Find the _Fields constant that matches fieldId, throwing an exception
34622
       * if it is not found.
34623
       */
34624
      public static _Fields findByThriftIdOrThrow(int fieldId) {
34625
        _Fields fields = findByThriftId(fieldId);
34626
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
34627
        return fields;
34628
      }
34629
 
34630
      /**
34631
       * Find the _Fields constant that matches name, or null if its not found.
34632
       */
34633
      public static _Fields findByName(String name) {
34634
        return byName.get(name);
34635
      }
34636
 
34637
      private final short _thriftId;
34638
      private final String _fieldName;
34639
 
34640
      _Fields(short thriftId, String fieldName) {
34641
        _thriftId = thriftId;
34642
        _fieldName = fieldName;
34643
      }
34644
 
34645
      public short getThriftFieldId() {
34646
        return _thriftId;
34647
      }
34648
 
34649
      public String getFieldName() {
34650
        return _fieldName;
34651
      }
34652
    }
34653
 
34654
    // isset id assignments
34655
    private static final int __ITEM_ID_ISSET_ID = 0;
34656
    private static final int __NUMOFDAYSSTOCK_ISSET_ID = 1;
34657
    private static final int __MINSTOCKLEVEL_ISSET_ID = 2;
34658
    private BitSet __isset_bit_vector = new BitSet(3);
34659
 
34660
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
34661
    static {
34662
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
34663
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34664
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34665
      tmpMap.put(_Fields.NUM_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34666
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
34667
      tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
34668
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
34669
      metaDataMap = Collections.unmodifiableMap(tmpMap);
34670
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_args.class, metaDataMap);
34671
    }
34672
 
34673
    public updateItemStockPurchaseParams_args() {
34674
    }
34675
 
34676
    public updateItemStockPurchaseParams_args(
34677
      long item_id,
34678
      int numOfDaysStock,
34679
      long minStockLevel)
34680
    {
34681
      this();
34682
      this.item_id = item_id;
34683
      setItem_idIsSet(true);
34684
      this.numOfDaysStock = numOfDaysStock;
34685
      setNumOfDaysStockIsSet(true);
34686
      this.minStockLevel = minStockLevel;
34687
      setMinStockLevelIsSet(true);
34688
    }
34689
 
34690
    /**
34691
     * Performs a deep copy on <i>other</i>.
34692
     */
34693
    public updateItemStockPurchaseParams_args(updateItemStockPurchaseParams_args other) {
34694
      __isset_bit_vector.clear();
34695
      __isset_bit_vector.or(other.__isset_bit_vector);
34696
      this.item_id = other.item_id;
34697
      this.numOfDaysStock = other.numOfDaysStock;
34698
      this.minStockLevel = other.minStockLevel;
34699
    }
34700
 
34701
    public updateItemStockPurchaseParams_args deepCopy() {
34702
      return new updateItemStockPurchaseParams_args(this);
34703
    }
34704
 
34705
    @Override
34706
    public void clear() {
34707
      setItem_idIsSet(false);
34708
      this.item_id = 0;
34709
      setNumOfDaysStockIsSet(false);
34710
      this.numOfDaysStock = 0;
34711
      setMinStockLevelIsSet(false);
34712
      this.minStockLevel = 0;
34713
    }
34714
 
34715
    public long getItem_id() {
34716
      return this.item_id;
34717
    }
34718
 
34719
    public void setItem_id(long item_id) {
34720
      this.item_id = item_id;
34721
      setItem_idIsSet(true);
34722
    }
34723
 
34724
    public void unsetItem_id() {
34725
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
34726
    }
34727
 
34728
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
34729
    public boolean isSetItem_id() {
34730
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
34731
    }
34732
 
34733
    public void setItem_idIsSet(boolean value) {
34734
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
34735
    }
34736
 
34737
    public int getNumOfDaysStock() {
34738
      return this.numOfDaysStock;
34739
    }
34740
 
34741
    public void setNumOfDaysStock(int numOfDaysStock) {
34742
      this.numOfDaysStock = numOfDaysStock;
34743
      setNumOfDaysStockIsSet(true);
34744
    }
34745
 
34746
    public void unsetNumOfDaysStock() {
34747
      __isset_bit_vector.clear(__NUMOFDAYSSTOCK_ISSET_ID);
34748
    }
34749
 
34750
    /** Returns true if field numOfDaysStock is set (has been assigned a value) and false otherwise */
34751
    public boolean isSetNumOfDaysStock() {
34752
      return __isset_bit_vector.get(__NUMOFDAYSSTOCK_ISSET_ID);
34753
    }
34754
 
34755
    public void setNumOfDaysStockIsSet(boolean value) {
34756
      __isset_bit_vector.set(__NUMOFDAYSSTOCK_ISSET_ID, value);
34757
    }
34758
 
34759
    public long getMinStockLevel() {
34760
      return this.minStockLevel;
34761
    }
34762
 
34763
    public void setMinStockLevel(long minStockLevel) {
34764
      this.minStockLevel = minStockLevel;
34765
      setMinStockLevelIsSet(true);
34766
    }
34767
 
34768
    public void unsetMinStockLevel() {
34769
      __isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
34770
    }
34771
 
34772
    /** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
34773
    public boolean isSetMinStockLevel() {
34774
      return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
34775
    }
34776
 
34777
    public void setMinStockLevelIsSet(boolean value) {
34778
      __isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
34779
    }
34780
 
34781
    public void setFieldValue(_Fields field, Object value) {
34782
      switch (field) {
34783
      case ITEM_ID:
34784
        if (value == null) {
34785
          unsetItem_id();
34786
        } else {
34787
          setItem_id((Long)value);
34788
        }
34789
        break;
34790
 
34791
      case NUM_OF_DAYS_STOCK:
34792
        if (value == null) {
34793
          unsetNumOfDaysStock();
34794
        } else {
34795
          setNumOfDaysStock((Integer)value);
34796
        }
34797
        break;
34798
 
34799
      case MIN_STOCK_LEVEL:
34800
        if (value == null) {
34801
          unsetMinStockLevel();
34802
        } else {
34803
          setMinStockLevel((Long)value);
34804
        }
34805
        break;
34806
 
34807
      }
34808
    }
34809
 
34810
    public Object getFieldValue(_Fields field) {
34811
      switch (field) {
34812
      case ITEM_ID:
34813
        return Long.valueOf(getItem_id());
34814
 
34815
      case NUM_OF_DAYS_STOCK:
34816
        return Integer.valueOf(getNumOfDaysStock());
34817
 
34818
      case MIN_STOCK_LEVEL:
34819
        return Long.valueOf(getMinStockLevel());
34820
 
34821
      }
34822
      throw new IllegalStateException();
34823
    }
34824
 
34825
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
34826
    public boolean isSet(_Fields field) {
34827
      if (field == null) {
34828
        throw new IllegalArgumentException();
34829
      }
34830
 
34831
      switch (field) {
34832
      case ITEM_ID:
34833
        return isSetItem_id();
34834
      case NUM_OF_DAYS_STOCK:
34835
        return isSetNumOfDaysStock();
34836
      case MIN_STOCK_LEVEL:
34837
        return isSetMinStockLevel();
34838
      }
34839
      throw new IllegalStateException();
34840
    }
34841
 
34842
    @Override
34843
    public boolean equals(Object that) {
34844
      if (that == null)
34845
        return false;
34846
      if (that instanceof updateItemStockPurchaseParams_args)
34847
        return this.equals((updateItemStockPurchaseParams_args)that);
34848
      return false;
34849
    }
34850
 
34851
    public boolean equals(updateItemStockPurchaseParams_args that) {
34852
      if (that == null)
34853
        return false;
34854
 
34855
      boolean this_present_item_id = true;
34856
      boolean that_present_item_id = true;
34857
      if (this_present_item_id || that_present_item_id) {
34858
        if (!(this_present_item_id && that_present_item_id))
34859
          return false;
34860
        if (this.item_id != that.item_id)
34861
          return false;
34862
      }
34863
 
34864
      boolean this_present_numOfDaysStock = true;
34865
      boolean that_present_numOfDaysStock = true;
34866
      if (this_present_numOfDaysStock || that_present_numOfDaysStock) {
34867
        if (!(this_present_numOfDaysStock && that_present_numOfDaysStock))
34868
          return false;
34869
        if (this.numOfDaysStock != that.numOfDaysStock)
34870
          return false;
34871
      }
34872
 
34873
      boolean this_present_minStockLevel = true;
34874
      boolean that_present_minStockLevel = true;
34875
      if (this_present_minStockLevel || that_present_minStockLevel) {
34876
        if (!(this_present_minStockLevel && that_present_minStockLevel))
34877
          return false;
34878
        if (this.minStockLevel != that.minStockLevel)
34879
          return false;
34880
      }
34881
 
34882
      return true;
34883
    }
34884
 
34885
    @Override
34886
    public int hashCode() {
34887
      return 0;
34888
    }
34889
 
34890
    public int compareTo(updateItemStockPurchaseParams_args other) {
34891
      if (!getClass().equals(other.getClass())) {
34892
        return getClass().getName().compareTo(other.getClass().getName());
34893
      }
34894
 
34895
      int lastComparison = 0;
34896
      updateItemStockPurchaseParams_args typedOther = (updateItemStockPurchaseParams_args)other;
34897
 
34898
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
34899
      if (lastComparison != 0) {
34900
        return lastComparison;
34901
      }
34902
      if (isSetItem_id()) {
34903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
34904
        if (lastComparison != 0) {
34905
          return lastComparison;
34906
        }
34907
      }
34908
      lastComparison = Boolean.valueOf(isSetNumOfDaysStock()).compareTo(typedOther.isSetNumOfDaysStock());
34909
      if (lastComparison != 0) {
34910
        return lastComparison;
34911
      }
34912
      if (isSetNumOfDaysStock()) {
34913
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numOfDaysStock, typedOther.numOfDaysStock);
34914
        if (lastComparison != 0) {
34915
          return lastComparison;
34916
        }
34917
      }
34918
      lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
34919
      if (lastComparison != 0) {
34920
        return lastComparison;
34921
      }
34922
      if (isSetMinStockLevel()) {
34923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
34924
        if (lastComparison != 0) {
34925
          return lastComparison;
34926
        }
34927
      }
34928
      return 0;
34929
    }
34930
 
34931
    public _Fields fieldForId(int fieldId) {
34932
      return _Fields.findByThriftId(fieldId);
34933
    }
34934
 
34935
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
34936
      org.apache.thrift.protocol.TField field;
34937
      iprot.readStructBegin();
34938
      while (true)
34939
      {
34940
        field = iprot.readFieldBegin();
34941
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
34942
          break;
34943
        }
34944
        switch (field.id) {
34945
          case 1: // ITEM_ID
34946
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34947
              this.item_id = iprot.readI64();
34948
              setItem_idIsSet(true);
34949
            } else { 
34950
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34951
            }
34952
            break;
34953
          case 2: // NUM_OF_DAYS_STOCK
34954
            if (field.type == org.apache.thrift.protocol.TType.I32) {
34955
              this.numOfDaysStock = iprot.readI32();
34956
              setNumOfDaysStockIsSet(true);
34957
            } else { 
34958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34959
            }
34960
            break;
34961
          case 3: // MIN_STOCK_LEVEL
34962
            if (field.type == org.apache.thrift.protocol.TType.I64) {
34963
              this.minStockLevel = iprot.readI64();
34964
              setMinStockLevelIsSet(true);
34965
            } else { 
34966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34967
            }
34968
            break;
34969
          default:
34970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
34971
        }
34972
        iprot.readFieldEnd();
34973
      }
34974
      iprot.readStructEnd();
34975
      validate();
34976
    }
34977
 
34978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
34979
      validate();
34980
 
34981
      oprot.writeStructBegin(STRUCT_DESC);
34982
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
34983
      oprot.writeI64(this.item_id);
34984
      oprot.writeFieldEnd();
34985
      oprot.writeFieldBegin(NUM_OF_DAYS_STOCK_FIELD_DESC);
34986
      oprot.writeI32(this.numOfDaysStock);
34987
      oprot.writeFieldEnd();
34988
      oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
34989
      oprot.writeI64(this.minStockLevel);
34990
      oprot.writeFieldEnd();
34991
      oprot.writeFieldStop();
34992
      oprot.writeStructEnd();
34993
    }
34994
 
34995
    @Override
34996
    public String toString() {
34997
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_args(");
34998
      boolean first = true;
34999
 
35000
      sb.append("item_id:");
35001
      sb.append(this.item_id);
35002
      first = false;
35003
      if (!first) sb.append(", ");
35004
      sb.append("numOfDaysStock:");
35005
      sb.append(this.numOfDaysStock);
35006
      first = false;
35007
      if (!first) sb.append(", ");
35008
      sb.append("minStockLevel:");
35009
      sb.append(this.minStockLevel);
35010
      first = false;
35011
      sb.append(")");
35012
      return sb.toString();
35013
    }
35014
 
35015
    public void validate() throws org.apache.thrift.TException {
35016
      // check for required fields
35017
    }
35018
 
35019
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35020
      try {
35021
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35022
      } catch (org.apache.thrift.TException te) {
35023
        throw new java.io.IOException(te);
35024
      }
35025
    }
35026
 
35027
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35028
      try {
35029
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35030
        __isset_bit_vector = new BitSet(1);
35031
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35032
      } catch (org.apache.thrift.TException te) {
35033
        throw new java.io.IOException(te);
35034
      }
35035
    }
35036
 
35037
  }
35038
 
35039
  public static class updateItemStockPurchaseParams_result implements org.apache.thrift.TBase<updateItemStockPurchaseParams_result, updateItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
35040
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemStockPurchaseParams_result");
35041
 
35042
 
35043
 
35044
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35045
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35046
;
35047
 
35048
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35049
 
35050
      static {
35051
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35052
          byName.put(field.getFieldName(), field);
35053
        }
35054
      }
35055
 
35056
      /**
35057
       * Find the _Fields constant that matches fieldId, or null if its not found.
35058
       */
35059
      public static _Fields findByThriftId(int fieldId) {
35060
        switch(fieldId) {
35061
          default:
35062
            return null;
35063
        }
35064
      }
35065
 
35066
      /**
35067
       * Find the _Fields constant that matches fieldId, throwing an exception
35068
       * if it is not found.
35069
       */
35070
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35071
        _Fields fields = findByThriftId(fieldId);
35072
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35073
        return fields;
35074
      }
35075
 
35076
      /**
35077
       * Find the _Fields constant that matches name, or null if its not found.
35078
       */
35079
      public static _Fields findByName(String name) {
35080
        return byName.get(name);
35081
      }
35082
 
35083
      private final short _thriftId;
35084
      private final String _fieldName;
35085
 
35086
      _Fields(short thriftId, String fieldName) {
35087
        _thriftId = thriftId;
35088
        _fieldName = fieldName;
35089
      }
35090
 
35091
      public short getThriftFieldId() {
35092
        return _thriftId;
35093
      }
35094
 
35095
      public String getFieldName() {
35096
        return _fieldName;
35097
      }
35098
    }
35099
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35100
    static {
35101
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35102
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35103
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemStockPurchaseParams_result.class, metaDataMap);
35104
    }
35105
 
35106
    public updateItemStockPurchaseParams_result() {
35107
    }
35108
 
35109
    /**
35110
     * Performs a deep copy on <i>other</i>.
35111
     */
35112
    public updateItemStockPurchaseParams_result(updateItemStockPurchaseParams_result other) {
35113
    }
35114
 
35115
    public updateItemStockPurchaseParams_result deepCopy() {
35116
      return new updateItemStockPurchaseParams_result(this);
35117
    }
35118
 
35119
    @Override
35120
    public void clear() {
35121
    }
35122
 
35123
    public void setFieldValue(_Fields field, Object value) {
35124
      switch (field) {
35125
      }
35126
    }
35127
 
35128
    public Object getFieldValue(_Fields field) {
35129
      switch (field) {
35130
      }
35131
      throw new IllegalStateException();
35132
    }
35133
 
35134
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35135
    public boolean isSet(_Fields field) {
35136
      if (field == null) {
35137
        throw new IllegalArgumentException();
35138
      }
35139
 
35140
      switch (field) {
35141
      }
35142
      throw new IllegalStateException();
35143
    }
35144
 
35145
    @Override
35146
    public boolean equals(Object that) {
35147
      if (that == null)
35148
        return false;
35149
      if (that instanceof updateItemStockPurchaseParams_result)
35150
        return this.equals((updateItemStockPurchaseParams_result)that);
35151
      return false;
35152
    }
35153
 
35154
    public boolean equals(updateItemStockPurchaseParams_result that) {
35155
      if (that == null)
35156
        return false;
35157
 
35158
      return true;
35159
    }
35160
 
35161
    @Override
35162
    public int hashCode() {
35163
      return 0;
35164
    }
35165
 
35166
    public int compareTo(updateItemStockPurchaseParams_result other) {
35167
      if (!getClass().equals(other.getClass())) {
35168
        return getClass().getName().compareTo(other.getClass().getName());
35169
      }
35170
 
35171
      int lastComparison = 0;
35172
      updateItemStockPurchaseParams_result typedOther = (updateItemStockPurchaseParams_result)other;
35173
 
35174
      return 0;
35175
    }
35176
 
35177
    public _Fields fieldForId(int fieldId) {
35178
      return _Fields.findByThriftId(fieldId);
35179
    }
35180
 
35181
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35182
      org.apache.thrift.protocol.TField field;
35183
      iprot.readStructBegin();
35184
      while (true)
35185
      {
35186
        field = iprot.readFieldBegin();
35187
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35188
          break;
35189
        }
35190
        switch (field.id) {
35191
          default:
35192
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35193
        }
35194
        iprot.readFieldEnd();
35195
      }
35196
      iprot.readStructEnd();
35197
      validate();
35198
    }
35199
 
35200
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35201
      oprot.writeStructBegin(STRUCT_DESC);
35202
 
35203
      oprot.writeFieldStop();
35204
      oprot.writeStructEnd();
35205
    }
35206
 
35207
    @Override
35208
    public String toString() {
35209
      StringBuilder sb = new StringBuilder("updateItemStockPurchaseParams_result(");
35210
      boolean first = true;
35211
 
35212
      sb.append(")");
35213
      return sb.toString();
35214
    }
35215
 
35216
    public void validate() throws org.apache.thrift.TException {
35217
      // check for required fields
35218
    }
35219
 
35220
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35221
      try {
35222
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35223
      } catch (org.apache.thrift.TException te) {
35224
        throw new java.io.IOException(te);
35225
      }
35226
    }
35227
 
35228
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35229
      try {
35230
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35231
      } catch (org.apache.thrift.TException te) {
35232
        throw new java.io.IOException(te);
35233
      }
35234
    }
35235
 
35236
  }
35237
 
35238
  public static class getItemStockPurchaseParams_args implements org.apache.thrift.TBase<getItemStockPurchaseParams_args, getItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
35239
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_args");
35240
 
35241
    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);
35242
 
35243
    private long itemId; // required
35244
 
35245
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35246
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35247
      ITEM_ID((short)1, "itemId");
35248
 
35249
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35250
 
35251
      static {
35252
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35253
          byName.put(field.getFieldName(), field);
35254
        }
35255
      }
35256
 
35257
      /**
35258
       * Find the _Fields constant that matches fieldId, or null if its not found.
35259
       */
35260
      public static _Fields findByThriftId(int fieldId) {
35261
        switch(fieldId) {
35262
          case 1: // ITEM_ID
35263
            return ITEM_ID;
35264
          default:
35265
            return null;
35266
        }
35267
      }
35268
 
35269
      /**
35270
       * Find the _Fields constant that matches fieldId, throwing an exception
35271
       * if it is not found.
35272
       */
35273
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35274
        _Fields fields = findByThriftId(fieldId);
35275
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35276
        return fields;
35277
      }
35278
 
35279
      /**
35280
       * Find the _Fields constant that matches name, or null if its not found.
35281
       */
35282
      public static _Fields findByName(String name) {
35283
        return byName.get(name);
35284
      }
35285
 
35286
      private final short _thriftId;
35287
      private final String _fieldName;
35288
 
35289
      _Fields(short thriftId, String fieldName) {
35290
        _thriftId = thriftId;
35291
        _fieldName = fieldName;
35292
      }
35293
 
35294
      public short getThriftFieldId() {
35295
        return _thriftId;
35296
      }
35297
 
35298
      public String getFieldName() {
35299
        return _fieldName;
35300
      }
35301
    }
35302
 
35303
    // isset id assignments
35304
    private static final int __ITEMID_ISSET_ID = 0;
35305
    private BitSet __isset_bit_vector = new BitSet(1);
35306
 
35307
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35308
    static {
35309
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35310
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_args.class, metaDataMap);
35314
    }
35315
 
35316
    public getItemStockPurchaseParams_args() {
35317
    }
35318
 
35319
    public getItemStockPurchaseParams_args(
35320
      long itemId)
35321
    {
35322
      this();
35323
      this.itemId = itemId;
35324
      setItemIdIsSet(true);
35325
    }
35326
 
35327
    /**
35328
     * Performs a deep copy on <i>other</i>.
35329
     */
35330
    public getItemStockPurchaseParams_args(getItemStockPurchaseParams_args other) {
35331
      __isset_bit_vector.clear();
35332
      __isset_bit_vector.or(other.__isset_bit_vector);
35333
      this.itemId = other.itemId;
35334
    }
35335
 
35336
    public getItemStockPurchaseParams_args deepCopy() {
35337
      return new getItemStockPurchaseParams_args(this);
35338
    }
35339
 
35340
    @Override
35341
    public void clear() {
35342
      setItemIdIsSet(false);
35343
      this.itemId = 0;
35344
    }
35345
 
35346
    public long getItemId() {
35347
      return this.itemId;
35348
    }
35349
 
35350
    public void setItemId(long itemId) {
35351
      this.itemId = itemId;
35352
      setItemIdIsSet(true);
35353
    }
35354
 
35355
    public void unsetItemId() {
35356
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
35357
    }
35358
 
35359
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
35360
    public boolean isSetItemId() {
35361
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
35362
    }
35363
 
35364
    public void setItemIdIsSet(boolean value) {
35365
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
35366
    }
35367
 
35368
    public void setFieldValue(_Fields field, Object value) {
35369
      switch (field) {
35370
      case ITEM_ID:
35371
        if (value == null) {
35372
          unsetItemId();
35373
        } else {
35374
          setItemId((Long)value);
35375
        }
35376
        break;
35377
 
35378
      }
35379
    }
35380
 
35381
    public Object getFieldValue(_Fields field) {
35382
      switch (field) {
35383
      case ITEM_ID:
35384
        return Long.valueOf(getItemId());
35385
 
35386
      }
35387
      throw new IllegalStateException();
35388
    }
35389
 
35390
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35391
    public boolean isSet(_Fields field) {
35392
      if (field == null) {
35393
        throw new IllegalArgumentException();
35394
      }
35395
 
35396
      switch (field) {
35397
      case ITEM_ID:
35398
        return isSetItemId();
35399
      }
35400
      throw new IllegalStateException();
35401
    }
35402
 
35403
    @Override
35404
    public boolean equals(Object that) {
35405
      if (that == null)
35406
        return false;
35407
      if (that instanceof getItemStockPurchaseParams_args)
35408
        return this.equals((getItemStockPurchaseParams_args)that);
35409
      return false;
35410
    }
35411
 
35412
    public boolean equals(getItemStockPurchaseParams_args that) {
35413
      if (that == null)
35414
        return false;
35415
 
35416
      boolean this_present_itemId = true;
35417
      boolean that_present_itemId = true;
35418
      if (this_present_itemId || that_present_itemId) {
35419
        if (!(this_present_itemId && that_present_itemId))
35420
          return false;
35421
        if (this.itemId != that.itemId)
35422
          return false;
35423
      }
35424
 
35425
      return true;
35426
    }
35427
 
35428
    @Override
35429
    public int hashCode() {
35430
      return 0;
35431
    }
35432
 
35433
    public int compareTo(getItemStockPurchaseParams_args other) {
35434
      if (!getClass().equals(other.getClass())) {
35435
        return getClass().getName().compareTo(other.getClass().getName());
35436
      }
35437
 
35438
      int lastComparison = 0;
35439
      getItemStockPurchaseParams_args typedOther = (getItemStockPurchaseParams_args)other;
35440
 
35441
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
35442
      if (lastComparison != 0) {
35443
        return lastComparison;
35444
      }
35445
      if (isSetItemId()) {
35446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
35447
        if (lastComparison != 0) {
35448
          return lastComparison;
35449
        }
35450
      }
35451
      return 0;
35452
    }
35453
 
35454
    public _Fields fieldForId(int fieldId) {
35455
      return _Fields.findByThriftId(fieldId);
35456
    }
35457
 
35458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35459
      org.apache.thrift.protocol.TField field;
35460
      iprot.readStructBegin();
35461
      while (true)
35462
      {
35463
        field = iprot.readFieldBegin();
35464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35465
          break;
35466
        }
35467
        switch (field.id) {
35468
          case 1: // ITEM_ID
35469
            if (field.type == org.apache.thrift.protocol.TType.I64) {
35470
              this.itemId = iprot.readI64();
35471
              setItemIdIsSet(true);
35472
            } else { 
35473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35474
            }
35475
            break;
35476
          default:
35477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35478
        }
35479
        iprot.readFieldEnd();
35480
      }
35481
      iprot.readStructEnd();
35482
      validate();
35483
    }
35484
 
35485
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35486
      validate();
35487
 
35488
      oprot.writeStructBegin(STRUCT_DESC);
35489
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
35490
      oprot.writeI64(this.itemId);
35491
      oprot.writeFieldEnd();
35492
      oprot.writeFieldStop();
35493
      oprot.writeStructEnd();
35494
    }
35495
 
35496
    @Override
35497
    public String toString() {
35498
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_args(");
35499
      boolean first = true;
35500
 
35501
      sb.append("itemId:");
35502
      sb.append(this.itemId);
35503
      first = false;
35504
      sb.append(")");
35505
      return sb.toString();
35506
    }
35507
 
35508
    public void validate() throws org.apache.thrift.TException {
35509
      // check for required fields
35510
    }
35511
 
35512
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35513
      try {
35514
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35515
      } catch (org.apache.thrift.TException te) {
35516
        throw new java.io.IOException(te);
35517
      }
35518
    }
35519
 
35520
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35521
      try {
35522
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
35523
        __isset_bit_vector = new BitSet(1);
35524
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35525
      } catch (org.apache.thrift.TException te) {
35526
        throw new java.io.IOException(te);
35527
      }
35528
    }
35529
 
35530
  }
35531
 
35532
  public static class getItemStockPurchaseParams_result implements org.apache.thrift.TBase<getItemStockPurchaseParams_result, getItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
35533
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemStockPurchaseParams_result");
35534
 
35535
    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);
35536
 
35537
    private ItemStockPurchaseParams success; // required
35538
 
35539
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35540
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35541
      SUCCESS((short)0, "success");
35542
 
35543
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35544
 
35545
      static {
35546
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35547
          byName.put(field.getFieldName(), field);
35548
        }
35549
      }
35550
 
35551
      /**
35552
       * Find the _Fields constant that matches fieldId, or null if its not found.
35553
       */
35554
      public static _Fields findByThriftId(int fieldId) {
35555
        switch(fieldId) {
35556
          case 0: // SUCCESS
35557
            return SUCCESS;
35558
          default:
35559
            return null;
35560
        }
35561
      }
35562
 
35563
      /**
35564
       * Find the _Fields constant that matches fieldId, throwing an exception
35565
       * if it is not found.
35566
       */
35567
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35568
        _Fields fields = findByThriftId(fieldId);
35569
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35570
        return fields;
35571
      }
35572
 
35573
      /**
35574
       * Find the _Fields constant that matches name, or null if its not found.
35575
       */
35576
      public static _Fields findByName(String name) {
35577
        return byName.get(name);
35578
      }
35579
 
35580
      private final short _thriftId;
35581
      private final String _fieldName;
35582
 
35583
      _Fields(short thriftId, String fieldName) {
35584
        _thriftId = thriftId;
35585
        _fieldName = fieldName;
35586
      }
35587
 
35588
      public short getThriftFieldId() {
35589
        return _thriftId;
35590
      }
35591
 
35592
      public String getFieldName() {
35593
        return _fieldName;
35594
      }
35595
    }
35596
 
35597
    // isset id assignments
35598
 
35599
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35600
    static {
35601
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35602
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35603
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class)));
35604
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35605
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemStockPurchaseParams_result.class, metaDataMap);
35606
    }
35607
 
35608
    public getItemStockPurchaseParams_result() {
35609
    }
35610
 
35611
    public getItemStockPurchaseParams_result(
35612
      ItemStockPurchaseParams success)
35613
    {
35614
      this();
35615
      this.success = success;
35616
    }
35617
 
35618
    /**
35619
     * Performs a deep copy on <i>other</i>.
35620
     */
35621
    public getItemStockPurchaseParams_result(getItemStockPurchaseParams_result other) {
35622
      if (other.isSetSuccess()) {
35623
        this.success = new ItemStockPurchaseParams(other.success);
35624
      }
35625
    }
35626
 
35627
    public getItemStockPurchaseParams_result deepCopy() {
35628
      return new getItemStockPurchaseParams_result(this);
35629
    }
35630
 
35631
    @Override
35632
    public void clear() {
35633
      this.success = null;
35634
    }
35635
 
35636
    public ItemStockPurchaseParams getSuccess() {
35637
      return this.success;
35638
    }
35639
 
35640
    public void setSuccess(ItemStockPurchaseParams success) {
35641
      this.success = success;
35642
    }
35643
 
35644
    public void unsetSuccess() {
35645
      this.success = null;
35646
    }
35647
 
35648
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
35649
    public boolean isSetSuccess() {
35650
      return this.success != null;
35651
    }
35652
 
35653
    public void setSuccessIsSet(boolean value) {
35654
      if (!value) {
35655
        this.success = null;
35656
      }
35657
    }
35658
 
35659
    public void setFieldValue(_Fields field, Object value) {
35660
      switch (field) {
35661
      case SUCCESS:
35662
        if (value == null) {
35663
          unsetSuccess();
35664
        } else {
35665
          setSuccess((ItemStockPurchaseParams)value);
35666
        }
35667
        break;
35668
 
35669
      }
35670
    }
35671
 
35672
    public Object getFieldValue(_Fields field) {
35673
      switch (field) {
35674
      case SUCCESS:
35675
        return getSuccess();
35676
 
35677
      }
35678
      throw new IllegalStateException();
35679
    }
35680
 
35681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
35682
    public boolean isSet(_Fields field) {
35683
      if (field == null) {
35684
        throw new IllegalArgumentException();
35685
      }
35686
 
35687
      switch (field) {
35688
      case SUCCESS:
35689
        return isSetSuccess();
35690
      }
35691
      throw new IllegalStateException();
35692
    }
35693
 
35694
    @Override
35695
    public boolean equals(Object that) {
35696
      if (that == null)
35697
        return false;
35698
      if (that instanceof getItemStockPurchaseParams_result)
35699
        return this.equals((getItemStockPurchaseParams_result)that);
35700
      return false;
35701
    }
35702
 
35703
    public boolean equals(getItemStockPurchaseParams_result that) {
35704
      if (that == null)
35705
        return false;
35706
 
35707
      boolean this_present_success = true && this.isSetSuccess();
35708
      boolean that_present_success = true && that.isSetSuccess();
35709
      if (this_present_success || that_present_success) {
35710
        if (!(this_present_success && that_present_success))
35711
          return false;
35712
        if (!this.success.equals(that.success))
35713
          return false;
35714
      }
35715
 
35716
      return true;
35717
    }
35718
 
35719
    @Override
35720
    public int hashCode() {
35721
      return 0;
35722
    }
35723
 
35724
    public int compareTo(getItemStockPurchaseParams_result other) {
35725
      if (!getClass().equals(other.getClass())) {
35726
        return getClass().getName().compareTo(other.getClass().getName());
35727
      }
35728
 
35729
      int lastComparison = 0;
35730
      getItemStockPurchaseParams_result typedOther = (getItemStockPurchaseParams_result)other;
35731
 
35732
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
35733
      if (lastComparison != 0) {
35734
        return lastComparison;
35735
      }
35736
      if (isSetSuccess()) {
35737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
35738
        if (lastComparison != 0) {
35739
          return lastComparison;
35740
        }
35741
      }
35742
      return 0;
35743
    }
35744
 
35745
    public _Fields fieldForId(int fieldId) {
35746
      return _Fields.findByThriftId(fieldId);
35747
    }
35748
 
35749
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
35750
      org.apache.thrift.protocol.TField field;
35751
      iprot.readStructBegin();
35752
      while (true)
35753
      {
35754
        field = iprot.readFieldBegin();
35755
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
35756
          break;
35757
        }
35758
        switch (field.id) {
35759
          case 0: // SUCCESS
35760
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
35761
              this.success = new ItemStockPurchaseParams();
35762
              this.success.read(iprot);
35763
            } else { 
35764
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35765
            }
35766
            break;
35767
          default:
35768
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
35769
        }
35770
        iprot.readFieldEnd();
35771
      }
35772
      iprot.readStructEnd();
35773
      validate();
35774
    }
35775
 
35776
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
35777
      oprot.writeStructBegin(STRUCT_DESC);
35778
 
35779
      if (this.isSetSuccess()) {
35780
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
35781
        this.success.write(oprot);
35782
        oprot.writeFieldEnd();
35783
      }
35784
      oprot.writeFieldStop();
35785
      oprot.writeStructEnd();
35786
    }
35787
 
35788
    @Override
35789
    public String toString() {
35790
      StringBuilder sb = new StringBuilder("getItemStockPurchaseParams_result(");
35791
      boolean first = true;
35792
 
35793
      sb.append("success:");
35794
      if (this.success == null) {
35795
        sb.append("null");
35796
      } else {
35797
        sb.append(this.success);
35798
      }
35799
      first = false;
35800
      sb.append(")");
35801
      return sb.toString();
35802
    }
35803
 
35804
    public void validate() throws org.apache.thrift.TException {
35805
      // check for required fields
35806
    }
35807
 
35808
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35809
      try {
35810
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
35811
      } catch (org.apache.thrift.TException te) {
35812
        throw new java.io.IOException(te);
35813
      }
35814
    }
35815
 
35816
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
35817
      try {
35818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
35819
      } catch (org.apache.thrift.TException te) {
35820
        throw new java.io.IOException(te);
35821
      }
35822
    }
35823
 
35824
  }
35825
 
35826
  public static class addOosStatusForItem_args implements org.apache.thrift.TBase<addOosStatusForItem_args, addOosStatusForItem_args._Fields>, java.io.Serializable, Cloneable   {
35827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_args");
35828
 
35829
    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);
35830
    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);
35831
 
35832
    private Map<Long,Boolean> oosStatusMap; // required
35833
    private long date; // required
35834
 
35835
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
35836
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
35837
      OOS_STATUS_MAP((short)1, "oosStatusMap"),
35838
      DATE((short)2, "date");
35839
 
35840
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
35841
 
35842
      static {
35843
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
35844
          byName.put(field.getFieldName(), field);
35845
        }
35846
      }
35847
 
35848
      /**
35849
       * Find the _Fields constant that matches fieldId, or null if its not found.
35850
       */
35851
      public static _Fields findByThriftId(int fieldId) {
35852
        switch(fieldId) {
35853
          case 1: // OOS_STATUS_MAP
35854
            return OOS_STATUS_MAP;
35855
          case 2: // DATE
35856
            return DATE;
35857
          default:
35858
            return null;
35859
        }
35860
      }
35861
 
35862
      /**
35863
       * Find the _Fields constant that matches fieldId, throwing an exception
35864
       * if it is not found.
35865
       */
35866
      public static _Fields findByThriftIdOrThrow(int fieldId) {
35867
        _Fields fields = findByThriftId(fieldId);
35868
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
35869
        return fields;
35870
      }
35871
 
35872
      /**
35873
       * Find the _Fields constant that matches name, or null if its not found.
35874
       */
35875
      public static _Fields findByName(String name) {
35876
        return byName.get(name);
35877
      }
35878
 
35879
      private final short _thriftId;
35880
      private final String _fieldName;
35881
 
35882
      _Fields(short thriftId, String fieldName) {
35883
        _thriftId = thriftId;
35884
        _fieldName = fieldName;
35885
      }
35886
 
35887
      public short getThriftFieldId() {
35888
        return _thriftId;
35889
      }
35890
 
35891
      public String getFieldName() {
35892
        return _fieldName;
35893
      }
35894
    }
35895
 
35896
    // isset id assignments
35897
    private static final int __DATE_ISSET_ID = 0;
35898
    private BitSet __isset_bit_vector = new BitSet(1);
35899
 
35900
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
35901
    static {
35902
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
35903
      tmpMap.put(_Fields.OOS_STATUS_MAP, new org.apache.thrift.meta_data.FieldMetaData("oosStatusMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35904
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
35905
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
35906
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))));
35907
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
35908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
35909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
35910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_args.class, metaDataMap);
35911
    }
35912
 
35913
    public addOosStatusForItem_args() {
35914
    }
35915
 
35916
    public addOosStatusForItem_args(
35917
      Map<Long,Boolean> oosStatusMap,
35918
      long date)
35919
    {
35920
      this();
35921
      this.oosStatusMap = oosStatusMap;
35922
      this.date = date;
35923
      setDateIsSet(true);
35924
    }
35925
 
35926
    /**
35927
     * Performs a deep copy on <i>other</i>.
35928
     */
35929
    public addOosStatusForItem_args(addOosStatusForItem_args other) {
35930
      __isset_bit_vector.clear();
35931
      __isset_bit_vector.or(other.__isset_bit_vector);
35932
      if (other.isSetOosStatusMap()) {
35933
        Map<Long,Boolean> __this__oosStatusMap = new HashMap<Long,Boolean>();
35934
        for (Map.Entry<Long, Boolean> other_element : other.oosStatusMap.entrySet()) {
35935
 
35936
          Long other_element_key = other_element.getKey();
35937
          Boolean other_element_value = other_element.getValue();
35938
 
35939
          Long __this__oosStatusMap_copy_key = other_element_key;
35940
 
35941
          Boolean __this__oosStatusMap_copy_value = other_element_value;
35942
 
35943
          __this__oosStatusMap.put(__this__oosStatusMap_copy_key, __this__oosStatusMap_copy_value);
35944
        }
35945
        this.oosStatusMap = __this__oosStatusMap;
35946
      }
35947
      this.date = other.date;
35948
    }
35949
 
35950
    public addOosStatusForItem_args deepCopy() {
35951
      return new addOosStatusForItem_args(this);
35952
    }
35953
 
35954
    @Override
35955
    public void clear() {
35956
      this.oosStatusMap = null;
35957
      setDateIsSet(false);
35958
      this.date = 0;
35959
    }
35960
 
35961
    public int getOosStatusMapSize() {
35962
      return (this.oosStatusMap == null) ? 0 : this.oosStatusMap.size();
35963
    }
35964
 
35965
    public void putToOosStatusMap(long key, boolean val) {
35966
      if (this.oosStatusMap == null) {
35967
        this.oosStatusMap = new HashMap<Long,Boolean>();
35968
      }
35969
      this.oosStatusMap.put(key, val);
35970
    }
35971
 
35972
    public Map<Long,Boolean> getOosStatusMap() {
35973
      return this.oosStatusMap;
35974
    }
35975
 
35976
    public void setOosStatusMap(Map<Long,Boolean> oosStatusMap) {
35977
      this.oosStatusMap = oosStatusMap;
35978
    }
35979
 
35980
    public void unsetOosStatusMap() {
35981
      this.oosStatusMap = null;
35982
    }
35983
 
35984
    /** Returns true if field oosStatusMap is set (has been assigned a value) and false otherwise */
35985
    public boolean isSetOosStatusMap() {
35986
      return this.oosStatusMap != null;
35987
    }
35988
 
35989
    public void setOosStatusMapIsSet(boolean value) {
35990
      if (!value) {
35991
        this.oosStatusMap = null;
35992
      }
35993
    }
35994
 
35995
    public long getDate() {
35996
      return this.date;
35997
    }
35998
 
35999
    public void setDate(long date) {
36000
      this.date = date;
36001
      setDateIsSet(true);
36002
    }
36003
 
36004
    public void unsetDate() {
36005
      __isset_bit_vector.clear(__DATE_ISSET_ID);
36006
    }
36007
 
36008
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
36009
    public boolean isSetDate() {
36010
      return __isset_bit_vector.get(__DATE_ISSET_ID);
36011
    }
36012
 
36013
    public void setDateIsSet(boolean value) {
36014
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
36015
    }
36016
 
36017
    public void setFieldValue(_Fields field, Object value) {
36018
      switch (field) {
36019
      case OOS_STATUS_MAP:
36020
        if (value == null) {
36021
          unsetOosStatusMap();
36022
        } else {
36023
          setOosStatusMap((Map<Long,Boolean>)value);
36024
        }
36025
        break;
36026
 
36027
      case DATE:
36028
        if (value == null) {
36029
          unsetDate();
36030
        } else {
36031
          setDate((Long)value);
36032
        }
36033
        break;
36034
 
36035
      }
36036
    }
36037
 
36038
    public Object getFieldValue(_Fields field) {
36039
      switch (field) {
36040
      case OOS_STATUS_MAP:
36041
        return getOosStatusMap();
36042
 
36043
      case DATE:
36044
        return Long.valueOf(getDate());
36045
 
36046
      }
36047
      throw new IllegalStateException();
36048
    }
36049
 
36050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36051
    public boolean isSet(_Fields field) {
36052
      if (field == null) {
36053
        throw new IllegalArgumentException();
36054
      }
36055
 
36056
      switch (field) {
36057
      case OOS_STATUS_MAP:
36058
        return isSetOosStatusMap();
36059
      case DATE:
36060
        return isSetDate();
36061
      }
36062
      throw new IllegalStateException();
36063
    }
36064
 
36065
    @Override
36066
    public boolean equals(Object that) {
36067
      if (that == null)
36068
        return false;
36069
      if (that instanceof addOosStatusForItem_args)
36070
        return this.equals((addOosStatusForItem_args)that);
36071
      return false;
36072
    }
36073
 
36074
    public boolean equals(addOosStatusForItem_args that) {
36075
      if (that == null)
36076
        return false;
36077
 
36078
      boolean this_present_oosStatusMap = true && this.isSetOosStatusMap();
36079
      boolean that_present_oosStatusMap = true && that.isSetOosStatusMap();
36080
      if (this_present_oosStatusMap || that_present_oosStatusMap) {
36081
        if (!(this_present_oosStatusMap && that_present_oosStatusMap))
36082
          return false;
36083
        if (!this.oosStatusMap.equals(that.oosStatusMap))
36084
          return false;
36085
      }
36086
 
36087
      boolean this_present_date = true;
36088
      boolean that_present_date = true;
36089
      if (this_present_date || that_present_date) {
36090
        if (!(this_present_date && that_present_date))
36091
          return false;
36092
        if (this.date != that.date)
36093
          return false;
36094
      }
36095
 
36096
      return true;
36097
    }
36098
 
36099
    @Override
36100
    public int hashCode() {
36101
      return 0;
36102
    }
36103
 
36104
    public int compareTo(addOosStatusForItem_args other) {
36105
      if (!getClass().equals(other.getClass())) {
36106
        return getClass().getName().compareTo(other.getClass().getName());
36107
      }
36108
 
36109
      int lastComparison = 0;
36110
      addOosStatusForItem_args typedOther = (addOosStatusForItem_args)other;
36111
 
36112
      lastComparison = Boolean.valueOf(isSetOosStatusMap()).compareTo(typedOther.isSetOosStatusMap());
36113
      if (lastComparison != 0) {
36114
        return lastComparison;
36115
      }
36116
      if (isSetOosStatusMap()) {
36117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oosStatusMap, typedOther.oosStatusMap);
36118
        if (lastComparison != 0) {
36119
          return lastComparison;
36120
        }
36121
      }
36122
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
36123
      if (lastComparison != 0) {
36124
        return lastComparison;
36125
      }
36126
      if (isSetDate()) {
36127
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
36128
        if (lastComparison != 0) {
36129
          return lastComparison;
36130
        }
36131
      }
36132
      return 0;
36133
    }
36134
 
36135
    public _Fields fieldForId(int fieldId) {
36136
      return _Fields.findByThriftId(fieldId);
36137
    }
36138
 
36139
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36140
      org.apache.thrift.protocol.TField field;
36141
      iprot.readStructBegin();
36142
      while (true)
36143
      {
36144
        field = iprot.readFieldBegin();
36145
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36146
          break;
36147
        }
36148
        switch (field.id) {
36149
          case 1: // OOS_STATUS_MAP
36150
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
36151
              {
36152
                org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin();
36153
                this.oosStatusMap = new HashMap<Long,Boolean>(2*_map104.size);
36154
                for (int _i105 = 0; _i105 < _map104.size; ++_i105)
36155
                {
36156
                  long _key106; // required
36157
                  boolean _val107; // required
36158
                  _key106 = iprot.readI64();
36159
                  _val107 = iprot.readBool();
36160
                  this.oosStatusMap.put(_key106, _val107);
36161
                }
36162
                iprot.readMapEnd();
36163
              }
36164
            } else { 
36165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36166
            }
36167
            break;
36168
          case 2: // DATE
36169
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36170
              this.date = iprot.readI64();
36171
              setDateIsSet(true);
36172
            } else { 
36173
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36174
            }
36175
            break;
36176
          default:
36177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36178
        }
36179
        iprot.readFieldEnd();
36180
      }
36181
      iprot.readStructEnd();
36182
      validate();
36183
    }
36184
 
36185
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36186
      validate();
36187
 
36188
      oprot.writeStructBegin(STRUCT_DESC);
36189
      if (this.oosStatusMap != null) {
36190
        oprot.writeFieldBegin(OOS_STATUS_MAP_FIELD_DESC);
36191
        {
36192
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, this.oosStatusMap.size()));
36193
          for (Map.Entry<Long, Boolean> _iter108 : this.oosStatusMap.entrySet())
36194
          {
36195
            oprot.writeI64(_iter108.getKey());
36196
            oprot.writeBool(_iter108.getValue());
36197
          }
36198
          oprot.writeMapEnd();
36199
        }
36200
        oprot.writeFieldEnd();
36201
      }
36202
      oprot.writeFieldBegin(DATE_FIELD_DESC);
36203
      oprot.writeI64(this.date);
36204
      oprot.writeFieldEnd();
36205
      oprot.writeFieldStop();
36206
      oprot.writeStructEnd();
36207
    }
36208
 
36209
    @Override
36210
    public String toString() {
36211
      StringBuilder sb = new StringBuilder("addOosStatusForItem_args(");
36212
      boolean first = true;
36213
 
36214
      sb.append("oosStatusMap:");
36215
      if (this.oosStatusMap == null) {
36216
        sb.append("null");
36217
      } else {
36218
        sb.append(this.oosStatusMap);
36219
      }
36220
      first = false;
36221
      if (!first) sb.append(", ");
36222
      sb.append("date:");
36223
      sb.append(this.date);
36224
      first = false;
36225
      sb.append(")");
36226
      return sb.toString();
36227
    }
36228
 
36229
    public void validate() throws org.apache.thrift.TException {
36230
      // check for required fields
36231
    }
36232
 
36233
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36234
      try {
36235
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36236
      } catch (org.apache.thrift.TException te) {
36237
        throw new java.io.IOException(te);
36238
      }
36239
    }
36240
 
36241
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36242
      try {
36243
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36244
        __isset_bit_vector = new BitSet(1);
36245
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36246
      } catch (org.apache.thrift.TException te) {
36247
        throw new java.io.IOException(te);
36248
      }
36249
    }
36250
 
36251
  }
36252
 
36253
  public static class addOosStatusForItem_result implements org.apache.thrift.TBase<addOosStatusForItem_result, addOosStatusForItem_result._Fields>, java.io.Serializable, Cloneable   {
36254
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOosStatusForItem_result");
36255
 
36256
 
36257
 
36258
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36259
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36260
;
36261
 
36262
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36263
 
36264
      static {
36265
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36266
          byName.put(field.getFieldName(), field);
36267
        }
36268
      }
36269
 
36270
      /**
36271
       * Find the _Fields constant that matches fieldId, or null if its not found.
36272
       */
36273
      public static _Fields findByThriftId(int fieldId) {
36274
        switch(fieldId) {
36275
          default:
36276
            return null;
36277
        }
36278
      }
36279
 
36280
      /**
36281
       * Find the _Fields constant that matches fieldId, throwing an exception
36282
       * if it is not found.
36283
       */
36284
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36285
        _Fields fields = findByThriftId(fieldId);
36286
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36287
        return fields;
36288
      }
36289
 
36290
      /**
36291
       * Find the _Fields constant that matches name, or null if its not found.
36292
       */
36293
      public static _Fields findByName(String name) {
36294
        return byName.get(name);
36295
      }
36296
 
36297
      private final short _thriftId;
36298
      private final String _fieldName;
36299
 
36300
      _Fields(short thriftId, String fieldName) {
36301
        _thriftId = thriftId;
36302
        _fieldName = fieldName;
36303
      }
36304
 
36305
      public short getThriftFieldId() {
36306
        return _thriftId;
36307
      }
36308
 
36309
      public String getFieldName() {
36310
        return _fieldName;
36311
      }
36312
    }
36313
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36314
    static {
36315
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36316
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36317
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOosStatusForItem_result.class, metaDataMap);
36318
    }
36319
 
36320
    public addOosStatusForItem_result() {
36321
    }
36322
 
36323
    /**
36324
     * Performs a deep copy on <i>other</i>.
36325
     */
36326
    public addOosStatusForItem_result(addOosStatusForItem_result other) {
36327
    }
36328
 
36329
    public addOosStatusForItem_result deepCopy() {
36330
      return new addOosStatusForItem_result(this);
36331
    }
36332
 
36333
    @Override
36334
    public void clear() {
36335
    }
36336
 
36337
    public void setFieldValue(_Fields field, Object value) {
36338
      switch (field) {
36339
      }
36340
    }
36341
 
36342
    public Object getFieldValue(_Fields field) {
36343
      switch (field) {
36344
      }
36345
      throw new IllegalStateException();
36346
    }
36347
 
36348
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36349
    public boolean isSet(_Fields field) {
36350
      if (field == null) {
36351
        throw new IllegalArgumentException();
36352
      }
36353
 
36354
      switch (field) {
36355
      }
36356
      throw new IllegalStateException();
36357
    }
36358
 
36359
    @Override
36360
    public boolean equals(Object that) {
36361
      if (that == null)
36362
        return false;
36363
      if (that instanceof addOosStatusForItem_result)
36364
        return this.equals((addOosStatusForItem_result)that);
36365
      return false;
36366
    }
36367
 
36368
    public boolean equals(addOosStatusForItem_result that) {
36369
      if (that == null)
36370
        return false;
36371
 
36372
      return true;
36373
    }
36374
 
36375
    @Override
36376
    public int hashCode() {
36377
      return 0;
36378
    }
36379
 
36380
    public int compareTo(addOosStatusForItem_result other) {
36381
      if (!getClass().equals(other.getClass())) {
36382
        return getClass().getName().compareTo(other.getClass().getName());
36383
      }
36384
 
36385
      int lastComparison = 0;
36386
      addOosStatusForItem_result typedOther = (addOosStatusForItem_result)other;
36387
 
36388
      return 0;
36389
    }
36390
 
36391
    public _Fields fieldForId(int fieldId) {
36392
      return _Fields.findByThriftId(fieldId);
36393
    }
36394
 
36395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36396
      org.apache.thrift.protocol.TField field;
36397
      iprot.readStructBegin();
36398
      while (true)
36399
      {
36400
        field = iprot.readFieldBegin();
36401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36402
          break;
36403
        }
36404
        switch (field.id) {
36405
          default:
36406
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36407
        }
36408
        iprot.readFieldEnd();
36409
      }
36410
      iprot.readStructEnd();
36411
      validate();
36412
    }
36413
 
36414
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36415
      oprot.writeStructBegin(STRUCT_DESC);
36416
 
36417
      oprot.writeFieldStop();
36418
      oprot.writeStructEnd();
36419
    }
36420
 
36421
    @Override
36422
    public String toString() {
36423
      StringBuilder sb = new StringBuilder("addOosStatusForItem_result(");
36424
      boolean first = true;
36425
 
36426
      sb.append(")");
36427
      return sb.toString();
36428
    }
36429
 
36430
    public void validate() throws org.apache.thrift.TException {
36431
      // check for required fields
36432
    }
36433
 
36434
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36435
      try {
36436
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36437
      } catch (org.apache.thrift.TException te) {
36438
        throw new java.io.IOException(te);
36439
      }
36440
    }
36441
 
36442
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36443
      try {
36444
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36445
      } catch (org.apache.thrift.TException te) {
36446
        throw new java.io.IOException(te);
36447
      }
36448
    }
36449
 
36450
  }
36451
 
6832 amar.kumar 36452
  public static class getOosStatusesForXDaysForItem_args implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_args, getOosStatusesForXDaysForItem_args._Fields>, java.io.Serializable, Cloneable   {
36453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_args");
36454
 
36455
    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);
36456
    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);
36457
 
36458
    private long itemId; // required
36459
    private int days; // required
36460
 
36461
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36462
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36463
      ITEM_ID((short)1, "itemId"),
36464
      DAYS((short)2, "days");
36465
 
36466
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36467
 
36468
      static {
36469
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36470
          byName.put(field.getFieldName(), field);
36471
        }
36472
      }
36473
 
36474
      /**
36475
       * Find the _Fields constant that matches fieldId, or null if its not found.
36476
       */
36477
      public static _Fields findByThriftId(int fieldId) {
36478
        switch(fieldId) {
36479
          case 1: // ITEM_ID
36480
            return ITEM_ID;
36481
          case 2: // DAYS
36482
            return DAYS;
36483
          default:
36484
            return null;
36485
        }
36486
      }
36487
 
36488
      /**
36489
       * Find the _Fields constant that matches fieldId, throwing an exception
36490
       * if it is not found.
36491
       */
36492
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36493
        _Fields fields = findByThriftId(fieldId);
36494
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36495
        return fields;
36496
      }
36497
 
36498
      /**
36499
       * Find the _Fields constant that matches name, or null if its not found.
36500
       */
36501
      public static _Fields findByName(String name) {
36502
        return byName.get(name);
36503
      }
36504
 
36505
      private final short _thriftId;
36506
      private final String _fieldName;
36507
 
36508
      _Fields(short thriftId, String fieldName) {
36509
        _thriftId = thriftId;
36510
        _fieldName = fieldName;
36511
      }
36512
 
36513
      public short getThriftFieldId() {
36514
        return _thriftId;
36515
      }
36516
 
36517
      public String getFieldName() {
36518
        return _fieldName;
36519
      }
36520
    }
36521
 
36522
    // isset id assignments
36523
    private static final int __ITEMID_ISSET_ID = 0;
36524
    private static final int __DAYS_ISSET_ID = 1;
36525
    private BitSet __isset_bit_vector = new BitSet(2);
36526
 
36527
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36528
    static {
36529
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36530
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
36532
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
36534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_args.class, metaDataMap);
36536
    }
36537
 
36538
    public getOosStatusesForXDaysForItem_args() {
36539
    }
36540
 
36541
    public getOosStatusesForXDaysForItem_args(
36542
      long itemId,
36543
      int days)
36544
    {
36545
      this();
36546
      this.itemId = itemId;
36547
      setItemIdIsSet(true);
36548
      this.days = days;
36549
      setDaysIsSet(true);
36550
    }
36551
 
36552
    /**
36553
     * Performs a deep copy on <i>other</i>.
36554
     */
36555
    public getOosStatusesForXDaysForItem_args(getOosStatusesForXDaysForItem_args other) {
36556
      __isset_bit_vector.clear();
36557
      __isset_bit_vector.or(other.__isset_bit_vector);
36558
      this.itemId = other.itemId;
36559
      this.days = other.days;
36560
    }
36561
 
36562
    public getOosStatusesForXDaysForItem_args deepCopy() {
36563
      return new getOosStatusesForXDaysForItem_args(this);
36564
    }
36565
 
36566
    @Override
36567
    public void clear() {
36568
      setItemIdIsSet(false);
36569
      this.itemId = 0;
36570
      setDaysIsSet(false);
36571
      this.days = 0;
36572
    }
36573
 
36574
    public long getItemId() {
36575
      return this.itemId;
36576
    }
36577
 
36578
    public void setItemId(long itemId) {
36579
      this.itemId = itemId;
36580
      setItemIdIsSet(true);
36581
    }
36582
 
36583
    public void unsetItemId() {
36584
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
36585
    }
36586
 
36587
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
36588
    public boolean isSetItemId() {
36589
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
36590
    }
36591
 
36592
    public void setItemIdIsSet(boolean value) {
36593
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
36594
    }
36595
 
36596
    public int getDays() {
36597
      return this.days;
36598
    }
36599
 
36600
    public void setDays(int days) {
36601
      this.days = days;
36602
      setDaysIsSet(true);
36603
    }
36604
 
36605
    public void unsetDays() {
36606
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
36607
    }
36608
 
36609
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
36610
    public boolean isSetDays() {
36611
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
36612
    }
36613
 
36614
    public void setDaysIsSet(boolean value) {
36615
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
36616
    }
36617
 
36618
    public void setFieldValue(_Fields field, Object value) {
36619
      switch (field) {
36620
      case ITEM_ID:
36621
        if (value == null) {
36622
          unsetItemId();
36623
        } else {
36624
          setItemId((Long)value);
36625
        }
36626
        break;
36627
 
36628
      case DAYS:
36629
        if (value == null) {
36630
          unsetDays();
36631
        } else {
36632
          setDays((Integer)value);
36633
        }
36634
        break;
36635
 
36636
      }
36637
    }
36638
 
36639
    public Object getFieldValue(_Fields field) {
36640
      switch (field) {
36641
      case ITEM_ID:
36642
        return Long.valueOf(getItemId());
36643
 
36644
      case DAYS:
36645
        return Integer.valueOf(getDays());
36646
 
36647
      }
36648
      throw new IllegalStateException();
36649
    }
36650
 
36651
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36652
    public boolean isSet(_Fields field) {
36653
      if (field == null) {
36654
        throw new IllegalArgumentException();
36655
      }
36656
 
36657
      switch (field) {
36658
      case ITEM_ID:
36659
        return isSetItemId();
36660
      case DAYS:
36661
        return isSetDays();
36662
      }
36663
      throw new IllegalStateException();
36664
    }
36665
 
36666
    @Override
36667
    public boolean equals(Object that) {
36668
      if (that == null)
36669
        return false;
36670
      if (that instanceof getOosStatusesForXDaysForItem_args)
36671
        return this.equals((getOosStatusesForXDaysForItem_args)that);
36672
      return false;
36673
    }
36674
 
36675
    public boolean equals(getOosStatusesForXDaysForItem_args that) {
36676
      if (that == null)
36677
        return false;
36678
 
36679
      boolean this_present_itemId = true;
36680
      boolean that_present_itemId = true;
36681
      if (this_present_itemId || that_present_itemId) {
36682
        if (!(this_present_itemId && that_present_itemId))
36683
          return false;
36684
        if (this.itemId != that.itemId)
36685
          return false;
36686
      }
36687
 
36688
      boolean this_present_days = true;
36689
      boolean that_present_days = true;
36690
      if (this_present_days || that_present_days) {
36691
        if (!(this_present_days && that_present_days))
36692
          return false;
36693
        if (this.days != that.days)
36694
          return false;
36695
      }
36696
 
36697
      return true;
36698
    }
36699
 
36700
    @Override
36701
    public int hashCode() {
36702
      return 0;
36703
    }
36704
 
36705
    public int compareTo(getOosStatusesForXDaysForItem_args other) {
36706
      if (!getClass().equals(other.getClass())) {
36707
        return getClass().getName().compareTo(other.getClass().getName());
36708
      }
36709
 
36710
      int lastComparison = 0;
36711
      getOosStatusesForXDaysForItem_args typedOther = (getOosStatusesForXDaysForItem_args)other;
36712
 
36713
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
36714
      if (lastComparison != 0) {
36715
        return lastComparison;
36716
      }
36717
      if (isSetItemId()) {
36718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
36719
        if (lastComparison != 0) {
36720
          return lastComparison;
36721
        }
36722
      }
36723
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
36724
      if (lastComparison != 0) {
36725
        return lastComparison;
36726
      }
36727
      if (isSetDays()) {
36728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
36729
        if (lastComparison != 0) {
36730
          return lastComparison;
36731
        }
36732
      }
36733
      return 0;
36734
    }
36735
 
36736
    public _Fields fieldForId(int fieldId) {
36737
      return _Fields.findByThriftId(fieldId);
36738
    }
36739
 
36740
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
36741
      org.apache.thrift.protocol.TField field;
36742
      iprot.readStructBegin();
36743
      while (true)
36744
      {
36745
        field = iprot.readFieldBegin();
36746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
36747
          break;
36748
        }
36749
        switch (field.id) {
36750
          case 1: // ITEM_ID
36751
            if (field.type == org.apache.thrift.protocol.TType.I64) {
36752
              this.itemId = iprot.readI64();
36753
              setItemIdIsSet(true);
36754
            } else { 
36755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36756
            }
36757
            break;
36758
          case 2: // DAYS
36759
            if (field.type == org.apache.thrift.protocol.TType.I32) {
36760
              this.days = iprot.readI32();
36761
              setDaysIsSet(true);
36762
            } else { 
36763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36764
            }
36765
            break;
36766
          default:
36767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
36768
        }
36769
        iprot.readFieldEnd();
36770
      }
36771
      iprot.readStructEnd();
36772
      validate();
36773
    }
36774
 
36775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
36776
      validate();
36777
 
36778
      oprot.writeStructBegin(STRUCT_DESC);
36779
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
36780
      oprot.writeI64(this.itemId);
36781
      oprot.writeFieldEnd();
36782
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
36783
      oprot.writeI32(this.days);
36784
      oprot.writeFieldEnd();
36785
      oprot.writeFieldStop();
36786
      oprot.writeStructEnd();
36787
    }
36788
 
36789
    @Override
36790
    public String toString() {
36791
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_args(");
36792
      boolean first = true;
36793
 
36794
      sb.append("itemId:");
36795
      sb.append(this.itemId);
36796
      first = false;
36797
      if (!first) sb.append(", ");
36798
      sb.append("days:");
36799
      sb.append(this.days);
36800
      first = false;
36801
      sb.append(")");
36802
      return sb.toString();
36803
    }
36804
 
36805
    public void validate() throws org.apache.thrift.TException {
36806
      // check for required fields
36807
    }
36808
 
36809
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36810
      try {
36811
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
36812
      } catch (org.apache.thrift.TException te) {
36813
        throw new java.io.IOException(te);
36814
      }
36815
    }
36816
 
36817
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
36818
      try {
36819
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
36820
        __isset_bit_vector = new BitSet(1);
36821
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
36822
      } catch (org.apache.thrift.TException te) {
36823
        throw new java.io.IOException(te);
36824
      }
36825
    }
36826
 
36827
  }
36828
 
36829
  public static class getOosStatusesForXDaysForItem_result implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_result, getOosStatusesForXDaysForItem_result._Fields>, java.io.Serializable, Cloneable   {
36830
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_result");
36831
 
36832
    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);
36833
 
36834
    private List<OOSStatus> success; // required
36835
 
36836
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36837
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
36838
      SUCCESS((short)0, "success");
36839
 
36840
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36841
 
36842
      static {
36843
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
36844
          byName.put(field.getFieldName(), field);
36845
        }
36846
      }
36847
 
36848
      /**
36849
       * Find the _Fields constant that matches fieldId, or null if its not found.
36850
       */
36851
      public static _Fields findByThriftId(int fieldId) {
36852
        switch(fieldId) {
36853
          case 0: // SUCCESS
36854
            return SUCCESS;
36855
          default:
36856
            return null;
36857
        }
36858
      }
36859
 
36860
      /**
36861
       * Find the _Fields constant that matches fieldId, throwing an exception
36862
       * if it is not found.
36863
       */
36864
      public static _Fields findByThriftIdOrThrow(int fieldId) {
36865
        _Fields fields = findByThriftId(fieldId);
36866
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
36867
        return fields;
36868
      }
36869
 
36870
      /**
36871
       * Find the _Fields constant that matches name, or null if its not found.
36872
       */
36873
      public static _Fields findByName(String name) {
36874
        return byName.get(name);
36875
      }
36876
 
36877
      private final short _thriftId;
36878
      private final String _fieldName;
36879
 
36880
      _Fields(short thriftId, String fieldName) {
36881
        _thriftId = thriftId;
36882
        _fieldName = fieldName;
36883
      }
36884
 
36885
      public short getThriftFieldId() {
36886
        return _thriftId;
36887
      }
36888
 
36889
      public String getFieldName() {
36890
        return _fieldName;
36891
      }
36892
    }
36893
 
36894
    // isset id assignments
36895
 
36896
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
36897
    static {
36898
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
36899
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
36900
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
36901
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OOSStatus.class))));
36902
      metaDataMap = Collections.unmodifiableMap(tmpMap);
36903
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_result.class, metaDataMap);
36904
    }
36905
 
36906
    public getOosStatusesForXDaysForItem_result() {
36907
    }
36908
 
36909
    public getOosStatusesForXDaysForItem_result(
36910
      List<OOSStatus> success)
36911
    {
36912
      this();
36913
      this.success = success;
36914
    }
36915
 
36916
    /**
36917
     * Performs a deep copy on <i>other</i>.
36918
     */
36919
    public getOosStatusesForXDaysForItem_result(getOosStatusesForXDaysForItem_result other) {
36920
      if (other.isSetSuccess()) {
36921
        List<OOSStatus> __this__success = new ArrayList<OOSStatus>();
36922
        for (OOSStatus other_element : other.success) {
36923
          __this__success.add(new OOSStatus(other_element));
36924
        }
36925
        this.success = __this__success;
36926
      }
36927
    }
36928
 
36929
    public getOosStatusesForXDaysForItem_result deepCopy() {
36930
      return new getOosStatusesForXDaysForItem_result(this);
36931
    }
36932
 
36933
    @Override
36934
    public void clear() {
36935
      this.success = null;
36936
    }
36937
 
36938
    public int getSuccessSize() {
36939
      return (this.success == null) ? 0 : this.success.size();
36940
    }
36941
 
36942
    public java.util.Iterator<OOSStatus> getSuccessIterator() {
36943
      return (this.success == null) ? null : this.success.iterator();
36944
    }
36945
 
36946
    public void addToSuccess(OOSStatus elem) {
36947
      if (this.success == null) {
36948
        this.success = new ArrayList<OOSStatus>();
36949
      }
36950
      this.success.add(elem);
36951
    }
36952
 
36953
    public List<OOSStatus> getSuccess() {
36954
      return this.success;
36955
    }
36956
 
36957
    public void setSuccess(List<OOSStatus> success) {
36958
      this.success = success;
36959
    }
36960
 
36961
    public void unsetSuccess() {
36962
      this.success = null;
36963
    }
36964
 
36965
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
36966
    public boolean isSetSuccess() {
36967
      return this.success != null;
36968
    }
36969
 
36970
    public void setSuccessIsSet(boolean value) {
36971
      if (!value) {
36972
        this.success = null;
36973
      }
36974
    }
36975
 
36976
    public void setFieldValue(_Fields field, Object value) {
36977
      switch (field) {
36978
      case SUCCESS:
36979
        if (value == null) {
36980
          unsetSuccess();
36981
        } else {
36982
          setSuccess((List<OOSStatus>)value);
36983
        }
36984
        break;
36985
 
36986
      }
36987
    }
36988
 
36989
    public Object getFieldValue(_Fields field) {
36990
      switch (field) {
36991
      case SUCCESS:
36992
        return getSuccess();
36993
 
36994
      }
36995
      throw new IllegalStateException();
36996
    }
36997
 
36998
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
36999
    public boolean isSet(_Fields field) {
37000
      if (field == null) {
37001
        throw new IllegalArgumentException();
37002
      }
37003
 
37004
      switch (field) {
37005
      case SUCCESS:
37006
        return isSetSuccess();
37007
      }
37008
      throw new IllegalStateException();
37009
    }
37010
 
37011
    @Override
37012
    public boolean equals(Object that) {
37013
      if (that == null)
37014
        return false;
37015
      if (that instanceof getOosStatusesForXDaysForItem_result)
37016
        return this.equals((getOosStatusesForXDaysForItem_result)that);
37017
      return false;
37018
    }
37019
 
37020
    public boolean equals(getOosStatusesForXDaysForItem_result that) {
37021
      if (that == null)
37022
        return false;
37023
 
37024
      boolean this_present_success = true && this.isSetSuccess();
37025
      boolean that_present_success = true && that.isSetSuccess();
37026
      if (this_present_success || that_present_success) {
37027
        if (!(this_present_success && that_present_success))
37028
          return false;
37029
        if (!this.success.equals(that.success))
37030
          return false;
37031
      }
37032
 
37033
      return true;
37034
    }
37035
 
37036
    @Override
37037
    public int hashCode() {
37038
      return 0;
37039
    }
37040
 
37041
    public int compareTo(getOosStatusesForXDaysForItem_result other) {
37042
      if (!getClass().equals(other.getClass())) {
37043
        return getClass().getName().compareTo(other.getClass().getName());
37044
      }
37045
 
37046
      int lastComparison = 0;
37047
      getOosStatusesForXDaysForItem_result typedOther = (getOosStatusesForXDaysForItem_result)other;
37048
 
37049
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37050
      if (lastComparison != 0) {
37051
        return lastComparison;
37052
      }
37053
      if (isSetSuccess()) {
37054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37055
        if (lastComparison != 0) {
37056
          return lastComparison;
37057
        }
37058
      }
37059
      return 0;
37060
    }
37061
 
37062
    public _Fields fieldForId(int fieldId) {
37063
      return _Fields.findByThriftId(fieldId);
37064
    }
37065
 
37066
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37067
      org.apache.thrift.protocol.TField field;
37068
      iprot.readStructBegin();
37069
      while (true)
37070
      {
37071
        field = iprot.readFieldBegin();
37072
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37073
          break;
37074
        }
37075
        switch (field.id) {
37076
          case 0: // SUCCESS
37077
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37078
              {
37079
                org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();
37080
                this.success = new ArrayList<OOSStatus>(_list109.size);
37081
                for (int _i110 = 0; _i110 < _list109.size; ++_i110)
37082
                {
37083
                  OOSStatus _elem111; // required
37084
                  _elem111 = new OOSStatus();
37085
                  _elem111.read(iprot);
37086
                  this.success.add(_elem111);
37087
                }
37088
                iprot.readListEnd();
37089
              }
37090
            } else { 
37091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37092
            }
37093
            break;
37094
          default:
37095
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37096
        }
37097
        iprot.readFieldEnd();
37098
      }
37099
      iprot.readStructEnd();
37100
      validate();
37101
    }
37102
 
37103
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37104
      oprot.writeStructBegin(STRUCT_DESC);
37105
 
37106
      if (this.isSetSuccess()) {
37107
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37108
        {
37109
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37110
          for (OOSStatus _iter112 : this.success)
37111
          {
37112
            _iter112.write(oprot);
37113
          }
37114
          oprot.writeListEnd();
37115
        }
37116
        oprot.writeFieldEnd();
37117
      }
37118
      oprot.writeFieldStop();
37119
      oprot.writeStructEnd();
37120
    }
37121
 
37122
    @Override
37123
    public String toString() {
37124
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_result(");
37125
      boolean first = true;
37126
 
37127
      sb.append("success:");
37128
      if (this.success == null) {
37129
        sb.append("null");
37130
      } else {
37131
        sb.append(this.success);
37132
      }
37133
      first = false;
37134
      sb.append(")");
37135
      return sb.toString();
37136
    }
37137
 
37138
    public void validate() throws org.apache.thrift.TException {
37139
      // check for required fields
37140
    }
37141
 
37142
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37143
      try {
37144
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37145
      } catch (org.apache.thrift.TException te) {
37146
        throw new java.io.IOException(te);
37147
      }
37148
    }
37149
 
37150
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37151
      try {
37152
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37153
      } catch (org.apache.thrift.TException te) {
37154
        throw new java.io.IOException(te);
37155
      }
37156
    }
37157
 
37158
  }
37159
 
6857 amar.kumar 37160
  public static class getNonZeroItemStockPurchaseParams_args implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_args, getNonZeroItemStockPurchaseParams_args._Fields>, java.io.Serializable, Cloneable   {
37161
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_args");
37162
 
37163
 
37164
 
37165
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37166
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37167
;
37168
 
37169
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37170
 
37171
      static {
37172
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37173
          byName.put(field.getFieldName(), field);
37174
        }
37175
      }
37176
 
37177
      /**
37178
       * Find the _Fields constant that matches fieldId, or null if its not found.
37179
       */
37180
      public static _Fields findByThriftId(int fieldId) {
37181
        switch(fieldId) {
37182
          default:
37183
            return null;
37184
        }
37185
      }
37186
 
37187
      /**
37188
       * Find the _Fields constant that matches fieldId, throwing an exception
37189
       * if it is not found.
37190
       */
37191
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37192
        _Fields fields = findByThriftId(fieldId);
37193
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37194
        return fields;
37195
      }
37196
 
37197
      /**
37198
       * Find the _Fields constant that matches name, or null if its not found.
37199
       */
37200
      public static _Fields findByName(String name) {
37201
        return byName.get(name);
37202
      }
37203
 
37204
      private final short _thriftId;
37205
      private final String _fieldName;
37206
 
37207
      _Fields(short thriftId, String fieldName) {
37208
        _thriftId = thriftId;
37209
        _fieldName = fieldName;
37210
      }
37211
 
37212
      public short getThriftFieldId() {
37213
        return _thriftId;
37214
      }
37215
 
37216
      public String getFieldName() {
37217
        return _fieldName;
37218
      }
37219
    }
37220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37221
    static {
37222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37223
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37224
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_args.class, metaDataMap);
37225
    }
37226
 
37227
    public getNonZeroItemStockPurchaseParams_args() {
37228
    }
37229
 
37230
    /**
37231
     * Performs a deep copy on <i>other</i>.
37232
     */
37233
    public getNonZeroItemStockPurchaseParams_args(getNonZeroItemStockPurchaseParams_args other) {
37234
    }
37235
 
37236
    public getNonZeroItemStockPurchaseParams_args deepCopy() {
37237
      return new getNonZeroItemStockPurchaseParams_args(this);
37238
    }
37239
 
37240
    @Override
37241
    public void clear() {
37242
    }
37243
 
37244
    public void setFieldValue(_Fields field, Object value) {
37245
      switch (field) {
37246
      }
37247
    }
37248
 
37249
    public Object getFieldValue(_Fields field) {
37250
      switch (field) {
37251
      }
37252
      throw new IllegalStateException();
37253
    }
37254
 
37255
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37256
    public boolean isSet(_Fields field) {
37257
      if (field == null) {
37258
        throw new IllegalArgumentException();
37259
      }
37260
 
37261
      switch (field) {
37262
      }
37263
      throw new IllegalStateException();
37264
    }
37265
 
37266
    @Override
37267
    public boolean equals(Object that) {
37268
      if (that == null)
37269
        return false;
37270
      if (that instanceof getNonZeroItemStockPurchaseParams_args)
37271
        return this.equals((getNonZeroItemStockPurchaseParams_args)that);
37272
      return false;
37273
    }
37274
 
37275
    public boolean equals(getNonZeroItemStockPurchaseParams_args that) {
37276
      if (that == null)
37277
        return false;
37278
 
37279
      return true;
37280
    }
37281
 
37282
    @Override
37283
    public int hashCode() {
37284
      return 0;
37285
    }
37286
 
37287
    public int compareTo(getNonZeroItemStockPurchaseParams_args other) {
37288
      if (!getClass().equals(other.getClass())) {
37289
        return getClass().getName().compareTo(other.getClass().getName());
37290
      }
37291
 
37292
      int lastComparison = 0;
37293
      getNonZeroItemStockPurchaseParams_args typedOther = (getNonZeroItemStockPurchaseParams_args)other;
37294
 
37295
      return 0;
37296
    }
37297
 
37298
    public _Fields fieldForId(int fieldId) {
37299
      return _Fields.findByThriftId(fieldId);
37300
    }
37301
 
37302
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37303
      org.apache.thrift.protocol.TField field;
37304
      iprot.readStructBegin();
37305
      while (true)
37306
      {
37307
        field = iprot.readFieldBegin();
37308
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37309
          break;
37310
        }
37311
        switch (field.id) {
37312
          default:
37313
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37314
        }
37315
        iprot.readFieldEnd();
37316
      }
37317
      iprot.readStructEnd();
37318
      validate();
37319
    }
37320
 
37321
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37322
      validate();
37323
 
37324
      oprot.writeStructBegin(STRUCT_DESC);
37325
      oprot.writeFieldStop();
37326
      oprot.writeStructEnd();
37327
    }
37328
 
37329
    @Override
37330
    public String toString() {
37331
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_args(");
37332
      boolean first = true;
37333
 
37334
      sb.append(")");
37335
      return sb.toString();
37336
    }
37337
 
37338
    public void validate() throws org.apache.thrift.TException {
37339
      // check for required fields
37340
    }
37341
 
37342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37343
      try {
37344
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37345
      } catch (org.apache.thrift.TException te) {
37346
        throw new java.io.IOException(te);
37347
      }
37348
    }
37349
 
37350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37351
      try {
37352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37353
      } catch (org.apache.thrift.TException te) {
37354
        throw new java.io.IOException(te);
37355
      }
37356
    }
37357
 
37358
  }
37359
 
37360
  public static class getNonZeroItemStockPurchaseParams_result implements org.apache.thrift.TBase<getNonZeroItemStockPurchaseParams_result, getNonZeroItemStockPurchaseParams_result._Fields>, java.io.Serializable, Cloneable   {
37361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonZeroItemStockPurchaseParams_result");
37362
 
37363
    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);
37364
 
37365
    private List<ItemStockPurchaseParams> success; // required
37366
 
37367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37369
      SUCCESS((short)0, "success");
37370
 
37371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37372
 
37373
      static {
37374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37375
          byName.put(field.getFieldName(), field);
37376
        }
37377
      }
37378
 
37379
      /**
37380
       * Find the _Fields constant that matches fieldId, or null if its not found.
37381
       */
37382
      public static _Fields findByThriftId(int fieldId) {
37383
        switch(fieldId) {
37384
          case 0: // SUCCESS
37385
            return SUCCESS;
37386
          default:
37387
            return null;
37388
        }
37389
      }
37390
 
37391
      /**
37392
       * Find the _Fields constant that matches fieldId, throwing an exception
37393
       * if it is not found.
37394
       */
37395
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37396
        _Fields fields = findByThriftId(fieldId);
37397
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37398
        return fields;
37399
      }
37400
 
37401
      /**
37402
       * Find the _Fields constant that matches name, or null if its not found.
37403
       */
37404
      public static _Fields findByName(String name) {
37405
        return byName.get(name);
37406
      }
37407
 
37408
      private final short _thriftId;
37409
      private final String _fieldName;
37410
 
37411
      _Fields(short thriftId, String fieldName) {
37412
        _thriftId = thriftId;
37413
        _fieldName = fieldName;
37414
      }
37415
 
37416
      public short getThriftFieldId() {
37417
        return _thriftId;
37418
      }
37419
 
37420
      public String getFieldName() {
37421
        return _fieldName;
37422
      }
37423
    }
37424
 
37425
    // isset id assignments
37426
 
37427
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37428
    static {
37429
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37430
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37431
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37432
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemStockPurchaseParams.class))));
37433
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37434
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonZeroItemStockPurchaseParams_result.class, metaDataMap);
37435
    }
37436
 
37437
    public getNonZeroItemStockPurchaseParams_result() {
37438
    }
37439
 
37440
    public getNonZeroItemStockPurchaseParams_result(
37441
      List<ItemStockPurchaseParams> success)
37442
    {
37443
      this();
37444
      this.success = success;
37445
    }
37446
 
37447
    /**
37448
     * Performs a deep copy on <i>other</i>.
37449
     */
37450
    public getNonZeroItemStockPurchaseParams_result(getNonZeroItemStockPurchaseParams_result other) {
37451
      if (other.isSetSuccess()) {
37452
        List<ItemStockPurchaseParams> __this__success = new ArrayList<ItemStockPurchaseParams>();
37453
        for (ItemStockPurchaseParams other_element : other.success) {
37454
          __this__success.add(new ItemStockPurchaseParams(other_element));
37455
        }
37456
        this.success = __this__success;
37457
      }
37458
    }
37459
 
37460
    public getNonZeroItemStockPurchaseParams_result deepCopy() {
37461
      return new getNonZeroItemStockPurchaseParams_result(this);
37462
    }
37463
 
37464
    @Override
37465
    public void clear() {
37466
      this.success = null;
37467
    }
37468
 
37469
    public int getSuccessSize() {
37470
      return (this.success == null) ? 0 : this.success.size();
37471
    }
37472
 
37473
    public java.util.Iterator<ItemStockPurchaseParams> getSuccessIterator() {
37474
      return (this.success == null) ? null : this.success.iterator();
37475
    }
37476
 
37477
    public void addToSuccess(ItemStockPurchaseParams elem) {
37478
      if (this.success == null) {
37479
        this.success = new ArrayList<ItemStockPurchaseParams>();
37480
      }
37481
      this.success.add(elem);
37482
    }
37483
 
37484
    public List<ItemStockPurchaseParams> getSuccess() {
37485
      return this.success;
37486
    }
37487
 
37488
    public void setSuccess(List<ItemStockPurchaseParams> success) {
37489
      this.success = success;
37490
    }
37491
 
37492
    public void unsetSuccess() {
37493
      this.success = null;
37494
    }
37495
 
37496
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
37497
    public boolean isSetSuccess() {
37498
      return this.success != null;
37499
    }
37500
 
37501
    public void setSuccessIsSet(boolean value) {
37502
      if (!value) {
37503
        this.success = null;
37504
      }
37505
    }
37506
 
37507
    public void setFieldValue(_Fields field, Object value) {
37508
      switch (field) {
37509
      case SUCCESS:
37510
        if (value == null) {
37511
          unsetSuccess();
37512
        } else {
37513
          setSuccess((List<ItemStockPurchaseParams>)value);
37514
        }
37515
        break;
37516
 
37517
      }
37518
    }
37519
 
37520
    public Object getFieldValue(_Fields field) {
37521
      switch (field) {
37522
      case SUCCESS:
37523
        return getSuccess();
37524
 
37525
      }
37526
      throw new IllegalStateException();
37527
    }
37528
 
37529
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37530
    public boolean isSet(_Fields field) {
37531
      if (field == null) {
37532
        throw new IllegalArgumentException();
37533
      }
37534
 
37535
      switch (field) {
37536
      case SUCCESS:
37537
        return isSetSuccess();
37538
      }
37539
      throw new IllegalStateException();
37540
    }
37541
 
37542
    @Override
37543
    public boolean equals(Object that) {
37544
      if (that == null)
37545
        return false;
37546
      if (that instanceof getNonZeroItemStockPurchaseParams_result)
37547
        return this.equals((getNonZeroItemStockPurchaseParams_result)that);
37548
      return false;
37549
    }
37550
 
37551
    public boolean equals(getNonZeroItemStockPurchaseParams_result that) {
37552
      if (that == null)
37553
        return false;
37554
 
37555
      boolean this_present_success = true && this.isSetSuccess();
37556
      boolean that_present_success = true && that.isSetSuccess();
37557
      if (this_present_success || that_present_success) {
37558
        if (!(this_present_success && that_present_success))
37559
          return false;
37560
        if (!this.success.equals(that.success))
37561
          return false;
37562
      }
37563
 
37564
      return true;
37565
    }
37566
 
37567
    @Override
37568
    public int hashCode() {
37569
      return 0;
37570
    }
37571
 
37572
    public int compareTo(getNonZeroItemStockPurchaseParams_result other) {
37573
      if (!getClass().equals(other.getClass())) {
37574
        return getClass().getName().compareTo(other.getClass().getName());
37575
      }
37576
 
37577
      int lastComparison = 0;
37578
      getNonZeroItemStockPurchaseParams_result typedOther = (getNonZeroItemStockPurchaseParams_result)other;
37579
 
37580
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
37581
      if (lastComparison != 0) {
37582
        return lastComparison;
37583
      }
37584
      if (isSetSuccess()) {
37585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
37586
        if (lastComparison != 0) {
37587
          return lastComparison;
37588
        }
37589
      }
37590
      return 0;
37591
    }
37592
 
37593
    public _Fields fieldForId(int fieldId) {
37594
      return _Fields.findByThriftId(fieldId);
37595
    }
37596
 
37597
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37598
      org.apache.thrift.protocol.TField field;
37599
      iprot.readStructBegin();
37600
      while (true)
37601
      {
37602
        field = iprot.readFieldBegin();
37603
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37604
          break;
37605
        }
37606
        switch (field.id) {
37607
          case 0: // SUCCESS
37608
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
37609
              {
37610
                org.apache.thrift.protocol.TList _list113 = iprot.readListBegin();
37611
                this.success = new ArrayList<ItemStockPurchaseParams>(_list113.size);
37612
                for (int _i114 = 0; _i114 < _list113.size; ++_i114)
37613
                {
37614
                  ItemStockPurchaseParams _elem115; // required
37615
                  _elem115 = new ItemStockPurchaseParams();
37616
                  _elem115.read(iprot);
37617
                  this.success.add(_elem115);
37618
                }
37619
                iprot.readListEnd();
37620
              }
37621
            } else { 
37622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37623
            }
37624
            break;
37625
          default:
37626
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37627
        }
37628
        iprot.readFieldEnd();
37629
      }
37630
      iprot.readStructEnd();
37631
      validate();
37632
    }
37633
 
37634
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37635
      oprot.writeStructBegin(STRUCT_DESC);
37636
 
37637
      if (this.isSetSuccess()) {
37638
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
37639
        {
37640
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
37641
          for (ItemStockPurchaseParams _iter116 : this.success)
37642
          {
37643
            _iter116.write(oprot);
37644
          }
37645
          oprot.writeListEnd();
37646
        }
37647
        oprot.writeFieldEnd();
37648
      }
37649
      oprot.writeFieldStop();
37650
      oprot.writeStructEnd();
37651
    }
37652
 
37653
    @Override
37654
    public String toString() {
37655
      StringBuilder sb = new StringBuilder("getNonZeroItemStockPurchaseParams_result(");
37656
      boolean first = true;
37657
 
37658
      sb.append("success:");
37659
      if (this.success == null) {
37660
        sb.append("null");
37661
      } else {
37662
        sb.append(this.success);
37663
      }
37664
      first = false;
37665
      sb.append(")");
37666
      return sb.toString();
37667
    }
37668
 
37669
    public void validate() throws org.apache.thrift.TException {
37670
      // check for required fields
37671
    }
37672
 
37673
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37674
      try {
37675
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37676
      } catch (org.apache.thrift.TException te) {
37677
        throw new java.io.IOException(te);
37678
      }
37679
    }
37680
 
37681
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37682
      try {
37683
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37684
      } catch (org.apache.thrift.TException te) {
37685
        throw new java.io.IOException(te);
37686
      }
37687
    }
37688
 
37689
  }
37690
 
7149 amar.kumar 37691
  public static class getBillableInventoryAndPendingOrders_args implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_args, getBillableInventoryAndPendingOrders_args._Fields>, java.io.Serializable, Cloneable   {
37692
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_args");
37693
 
37694
 
37695
 
37696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37698
;
37699
 
37700
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37701
 
37702
      static {
37703
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37704
          byName.put(field.getFieldName(), field);
37705
        }
37706
      }
37707
 
37708
      /**
37709
       * Find the _Fields constant that matches fieldId, or null if its not found.
37710
       */
37711
      public static _Fields findByThriftId(int fieldId) {
37712
        switch(fieldId) {
37713
          default:
37714
            return null;
37715
        }
37716
      }
37717
 
37718
      /**
37719
       * Find the _Fields constant that matches fieldId, throwing an exception
37720
       * if it is not found.
37721
       */
37722
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37723
        _Fields fields = findByThriftId(fieldId);
37724
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37725
        return fields;
37726
      }
37727
 
37728
      /**
37729
       * Find the _Fields constant that matches name, or null if its not found.
37730
       */
37731
      public static _Fields findByName(String name) {
37732
        return byName.get(name);
37733
      }
37734
 
37735
      private final short _thriftId;
37736
      private final String _fieldName;
37737
 
37738
      _Fields(short thriftId, String fieldName) {
37739
        _thriftId = thriftId;
37740
        _fieldName = fieldName;
37741
      }
37742
 
37743
      public short getThriftFieldId() {
37744
        return _thriftId;
37745
      }
37746
 
37747
      public String getFieldName() {
37748
        return _fieldName;
37749
      }
37750
    }
37751
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37752
    static {
37753
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37754
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37755
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_args.class, metaDataMap);
37756
    }
37757
 
37758
    public getBillableInventoryAndPendingOrders_args() {
37759
    }
37760
 
37761
    /**
37762
     * Performs a deep copy on <i>other</i>.
37763
     */
37764
    public getBillableInventoryAndPendingOrders_args(getBillableInventoryAndPendingOrders_args other) {
37765
    }
37766
 
37767
    public getBillableInventoryAndPendingOrders_args deepCopy() {
37768
      return new getBillableInventoryAndPendingOrders_args(this);
37769
    }
37770
 
37771
    @Override
37772
    public void clear() {
37773
    }
37774
 
37775
    public void setFieldValue(_Fields field, Object value) {
37776
      switch (field) {
37777
      }
37778
    }
37779
 
37780
    public Object getFieldValue(_Fields field) {
37781
      switch (field) {
37782
      }
37783
      throw new IllegalStateException();
37784
    }
37785
 
37786
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
37787
    public boolean isSet(_Fields field) {
37788
      if (field == null) {
37789
        throw new IllegalArgumentException();
37790
      }
37791
 
37792
      switch (field) {
37793
      }
37794
      throw new IllegalStateException();
37795
    }
37796
 
37797
    @Override
37798
    public boolean equals(Object that) {
37799
      if (that == null)
37800
        return false;
37801
      if (that instanceof getBillableInventoryAndPendingOrders_args)
37802
        return this.equals((getBillableInventoryAndPendingOrders_args)that);
37803
      return false;
37804
    }
37805
 
37806
    public boolean equals(getBillableInventoryAndPendingOrders_args that) {
37807
      if (that == null)
37808
        return false;
37809
 
37810
      return true;
37811
    }
37812
 
37813
    @Override
37814
    public int hashCode() {
37815
      return 0;
37816
    }
37817
 
37818
    public int compareTo(getBillableInventoryAndPendingOrders_args other) {
37819
      if (!getClass().equals(other.getClass())) {
37820
        return getClass().getName().compareTo(other.getClass().getName());
37821
      }
37822
 
37823
      int lastComparison = 0;
37824
      getBillableInventoryAndPendingOrders_args typedOther = (getBillableInventoryAndPendingOrders_args)other;
37825
 
37826
      return 0;
37827
    }
37828
 
37829
    public _Fields fieldForId(int fieldId) {
37830
      return _Fields.findByThriftId(fieldId);
37831
    }
37832
 
37833
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
37834
      org.apache.thrift.protocol.TField field;
37835
      iprot.readStructBegin();
37836
      while (true)
37837
      {
37838
        field = iprot.readFieldBegin();
37839
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
37840
          break;
37841
        }
37842
        switch (field.id) {
37843
          default:
37844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
37845
        }
37846
        iprot.readFieldEnd();
37847
      }
37848
      iprot.readStructEnd();
37849
      validate();
37850
    }
37851
 
37852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
37853
      validate();
37854
 
37855
      oprot.writeStructBegin(STRUCT_DESC);
37856
      oprot.writeFieldStop();
37857
      oprot.writeStructEnd();
37858
    }
37859
 
37860
    @Override
37861
    public String toString() {
37862
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_args(");
37863
      boolean first = true;
37864
 
37865
      sb.append(")");
37866
      return sb.toString();
37867
    }
37868
 
37869
    public void validate() throws org.apache.thrift.TException {
37870
      // check for required fields
37871
    }
37872
 
37873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
37874
      try {
37875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
37876
      } catch (org.apache.thrift.TException te) {
37877
        throw new java.io.IOException(te);
37878
      }
37879
    }
37880
 
37881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
37882
      try {
37883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
37884
      } catch (org.apache.thrift.TException te) {
37885
        throw new java.io.IOException(te);
37886
      }
37887
    }
37888
 
37889
  }
37890
 
37891
  public static class getBillableInventoryAndPendingOrders_result implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_result, getBillableInventoryAndPendingOrders_result._Fields>, java.io.Serializable, Cloneable   {
37892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_result");
37893
 
37894
    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);
37895
 
37896
    private List<AvailableAndReservedStock> success; // required
37897
 
37898
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
37899
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
37900
      SUCCESS((short)0, "success");
37901
 
37902
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
37903
 
37904
      static {
37905
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
37906
          byName.put(field.getFieldName(), field);
37907
        }
37908
      }
37909
 
37910
      /**
37911
       * Find the _Fields constant that matches fieldId, or null if its not found.
37912
       */
37913
      public static _Fields findByThriftId(int fieldId) {
37914
        switch(fieldId) {
37915
          case 0: // SUCCESS
37916
            return SUCCESS;
37917
          default:
37918
            return null;
37919
        }
37920
      }
37921
 
37922
      /**
37923
       * Find the _Fields constant that matches fieldId, throwing an exception
37924
       * if it is not found.
37925
       */
37926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
37927
        _Fields fields = findByThriftId(fieldId);
37928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
37929
        return fields;
37930
      }
37931
 
37932
      /**
37933
       * Find the _Fields constant that matches name, or null if its not found.
37934
       */
37935
      public static _Fields findByName(String name) {
37936
        return byName.get(name);
37937
      }
37938
 
37939
      private final short _thriftId;
37940
      private final String _fieldName;
37941
 
37942
      _Fields(short thriftId, String fieldName) {
37943
        _thriftId = thriftId;
37944
        _fieldName = fieldName;
37945
      }
37946
 
37947
      public short getThriftFieldId() {
37948
        return _thriftId;
37949
      }
37950
 
37951
      public String getFieldName() {
37952
        return _fieldName;
37953
      }
37954
    }
37955
 
37956
    // isset id assignments
37957
 
37958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
37959
    static {
37960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
37961
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
37962
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
37963
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
37964
      metaDataMap = Collections.unmodifiableMap(tmpMap);
37965
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_result.class, metaDataMap);
37966
    }
37967
 
37968
    public getBillableInventoryAndPendingOrders_result() {
37969
    }
37970
 
37971
    public getBillableInventoryAndPendingOrders_result(
37972
      List<AvailableAndReservedStock> success)
37973
    {
37974
      this();
37975
      this.success = success;
37976
    }
37977
 
37978
    /**
37979
     * Performs a deep copy on <i>other</i>.
37980
     */
37981
    public getBillableInventoryAndPendingOrders_result(getBillableInventoryAndPendingOrders_result other) {
37982
      if (other.isSetSuccess()) {
37983
        List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
37984
        for (AvailableAndReservedStock other_element : other.success) {
37985
          __this__success.add(new AvailableAndReservedStock(other_element));
37986
        }
37987
        this.success = __this__success;
37988
      }
37989
    }
37990
 
37991
    public getBillableInventoryAndPendingOrders_result deepCopy() {
37992
      return new getBillableInventoryAndPendingOrders_result(this);
37993
    }
37994
 
37995
    @Override
37996
    public void clear() {
37997
      this.success = null;
37998
    }
37999
 
38000
    public int getSuccessSize() {
38001
      return (this.success == null) ? 0 : this.success.size();
38002
    }
38003
 
38004
    public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
38005
      return (this.success == null) ? null : this.success.iterator();
38006
    }
38007
 
38008
    public void addToSuccess(AvailableAndReservedStock elem) {
38009
      if (this.success == null) {
38010
        this.success = new ArrayList<AvailableAndReservedStock>();
38011
      }
38012
      this.success.add(elem);
38013
    }
38014
 
38015
    public List<AvailableAndReservedStock> getSuccess() {
38016
      return this.success;
38017
    }
38018
 
38019
    public void setSuccess(List<AvailableAndReservedStock> success) {
38020
      this.success = success;
38021
    }
38022
 
38023
    public void unsetSuccess() {
38024
      this.success = null;
38025
    }
38026
 
38027
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
38028
    public boolean isSetSuccess() {
38029
      return this.success != null;
38030
    }
38031
 
38032
    public void setSuccessIsSet(boolean value) {
38033
      if (!value) {
38034
        this.success = null;
38035
      }
38036
    }
38037
 
38038
    public void setFieldValue(_Fields field, Object value) {
38039
      switch (field) {
38040
      case SUCCESS:
38041
        if (value == null) {
38042
          unsetSuccess();
38043
        } else {
38044
          setSuccess((List<AvailableAndReservedStock>)value);
38045
        }
38046
        break;
38047
 
38048
      }
38049
    }
38050
 
38051
    public Object getFieldValue(_Fields field) {
38052
      switch (field) {
38053
      case SUCCESS:
38054
        return getSuccess();
38055
 
38056
      }
38057
      throw new IllegalStateException();
38058
    }
38059
 
38060
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38061
    public boolean isSet(_Fields field) {
38062
      if (field == null) {
38063
        throw new IllegalArgumentException();
38064
      }
38065
 
38066
      switch (field) {
38067
      case SUCCESS:
38068
        return isSetSuccess();
38069
      }
38070
      throw new IllegalStateException();
38071
    }
38072
 
38073
    @Override
38074
    public boolean equals(Object that) {
38075
      if (that == null)
38076
        return false;
38077
      if (that instanceof getBillableInventoryAndPendingOrders_result)
38078
        return this.equals((getBillableInventoryAndPendingOrders_result)that);
38079
      return false;
38080
    }
38081
 
38082
    public boolean equals(getBillableInventoryAndPendingOrders_result that) {
38083
      if (that == null)
38084
        return false;
38085
 
38086
      boolean this_present_success = true && this.isSetSuccess();
38087
      boolean that_present_success = true && that.isSetSuccess();
38088
      if (this_present_success || that_present_success) {
38089
        if (!(this_present_success && that_present_success))
38090
          return false;
38091
        if (!this.success.equals(that.success))
38092
          return false;
38093
      }
38094
 
38095
      return true;
38096
    }
38097
 
38098
    @Override
38099
    public int hashCode() {
38100
      return 0;
38101
    }
38102
 
38103
    public int compareTo(getBillableInventoryAndPendingOrders_result other) {
38104
      if (!getClass().equals(other.getClass())) {
38105
        return getClass().getName().compareTo(other.getClass().getName());
38106
      }
38107
 
38108
      int lastComparison = 0;
38109
      getBillableInventoryAndPendingOrders_result typedOther = (getBillableInventoryAndPendingOrders_result)other;
38110
 
38111
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
38112
      if (lastComparison != 0) {
38113
        return lastComparison;
38114
      }
38115
      if (isSetSuccess()) {
38116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38117
        if (lastComparison != 0) {
38118
          return lastComparison;
38119
        }
38120
      }
38121
      return 0;
38122
    }
38123
 
38124
    public _Fields fieldForId(int fieldId) {
38125
      return _Fields.findByThriftId(fieldId);
38126
    }
38127
 
38128
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38129
      org.apache.thrift.protocol.TField field;
38130
      iprot.readStructBegin();
38131
      while (true)
38132
      {
38133
        field = iprot.readFieldBegin();
38134
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38135
          break;
38136
        }
38137
        switch (field.id) {
38138
          case 0: // SUCCESS
38139
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
38140
              {
38141
                org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
38142
                this.success = new ArrayList<AvailableAndReservedStock>(_list117.size);
38143
                for (int _i118 = 0; _i118 < _list117.size; ++_i118)
38144
                {
38145
                  AvailableAndReservedStock _elem119; // required
38146
                  _elem119 = new AvailableAndReservedStock();
38147
                  _elem119.read(iprot);
38148
                  this.success.add(_elem119);
38149
                }
38150
                iprot.readListEnd();
38151
              }
38152
            } else { 
38153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38154
            }
38155
            break;
38156
          default:
38157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38158
        }
38159
        iprot.readFieldEnd();
38160
      }
38161
      iprot.readStructEnd();
38162
      validate();
38163
    }
38164
 
38165
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38166
      oprot.writeStructBegin(STRUCT_DESC);
38167
 
38168
      if (this.isSetSuccess()) {
38169
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38170
        {
38171
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
38172
          for (AvailableAndReservedStock _iter120 : this.success)
38173
          {
38174
            _iter120.write(oprot);
38175
          }
38176
          oprot.writeListEnd();
38177
        }
38178
        oprot.writeFieldEnd();
38179
      }
38180
      oprot.writeFieldStop();
38181
      oprot.writeStructEnd();
38182
    }
38183
 
38184
    @Override
38185
    public String toString() {
38186
      StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_result(");
38187
      boolean first = true;
38188
 
38189
      sb.append("success:");
38190
      if (this.success == null) {
38191
        sb.append("null");
38192
      } else {
38193
        sb.append(this.success);
38194
      }
38195
      first = false;
38196
      sb.append(")");
38197
      return sb.toString();
38198
    }
38199
 
38200
    public void validate() throws org.apache.thrift.TException {
38201
      // check for required fields
38202
    }
38203
 
38204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38205
      try {
38206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38207
      } catch (org.apache.thrift.TException te) {
38208
        throw new java.io.IOException(te);
38209
      }
38210
    }
38211
 
38212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38213
      try {
38214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38215
      } catch (org.apache.thrift.TException te) {
38216
        throw new java.io.IOException(te);
38217
      }
38218
    }
38219
 
38220
  }
38221
 
7281 kshitij.so 38222
  public static class getWarehouseName_args implements org.apache.thrift.TBase<getWarehouseName_args, getWarehouseName_args._Fields>, java.io.Serializable, Cloneable   {
38223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_args");
38224
 
38225
    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);
38226
 
38227
    private long warehouse_id; // required
38228
 
38229
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38230
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38231
      WAREHOUSE_ID((short)1, "warehouse_id");
38232
 
38233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38234
 
38235
      static {
38236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38237
          byName.put(field.getFieldName(), field);
38238
        }
38239
      }
38240
 
38241
      /**
38242
       * Find the _Fields constant that matches fieldId, or null if its not found.
38243
       */
38244
      public static _Fields findByThriftId(int fieldId) {
38245
        switch(fieldId) {
38246
          case 1: // WAREHOUSE_ID
38247
            return WAREHOUSE_ID;
38248
          default:
38249
            return null;
38250
        }
38251
      }
38252
 
38253
      /**
38254
       * Find the _Fields constant that matches fieldId, throwing an exception
38255
       * if it is not found.
38256
       */
38257
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38258
        _Fields fields = findByThriftId(fieldId);
38259
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38260
        return fields;
38261
      }
38262
 
38263
      /**
38264
       * Find the _Fields constant that matches name, or null if its not found.
38265
       */
38266
      public static _Fields findByName(String name) {
38267
        return byName.get(name);
38268
      }
38269
 
38270
      private final short _thriftId;
38271
      private final String _fieldName;
38272
 
38273
      _Fields(short thriftId, String fieldName) {
38274
        _thriftId = thriftId;
38275
        _fieldName = fieldName;
38276
      }
38277
 
38278
      public short getThriftFieldId() {
38279
        return _thriftId;
38280
      }
38281
 
38282
      public String getFieldName() {
38283
        return _fieldName;
38284
      }
38285
    }
38286
 
38287
    // isset id assignments
38288
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
38289
    private BitSet __isset_bit_vector = new BitSet(1);
38290
 
38291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38292
    static {
38293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38294
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38295
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38296
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38297
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_args.class, metaDataMap);
38298
    }
38299
 
38300
    public getWarehouseName_args() {
38301
    }
38302
 
38303
    public getWarehouseName_args(
38304
      long warehouse_id)
38305
    {
38306
      this();
38307
      this.warehouse_id = warehouse_id;
38308
      setWarehouse_idIsSet(true);
38309
    }
38310
 
38311
    /**
38312
     * Performs a deep copy on <i>other</i>.
38313
     */
38314
    public getWarehouseName_args(getWarehouseName_args other) {
38315
      __isset_bit_vector.clear();
38316
      __isset_bit_vector.or(other.__isset_bit_vector);
38317
      this.warehouse_id = other.warehouse_id;
38318
    }
38319
 
38320
    public getWarehouseName_args deepCopy() {
38321
      return new getWarehouseName_args(this);
38322
    }
38323
 
38324
    @Override
38325
    public void clear() {
38326
      setWarehouse_idIsSet(false);
38327
      this.warehouse_id = 0;
38328
    }
38329
 
38330
    public long getWarehouse_id() {
38331
      return this.warehouse_id;
38332
    }
38333
 
38334
    public void setWarehouse_id(long warehouse_id) {
38335
      this.warehouse_id = warehouse_id;
38336
      setWarehouse_idIsSet(true);
38337
    }
38338
 
38339
    public void unsetWarehouse_id() {
38340
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
38341
    }
38342
 
38343
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
38344
    public boolean isSetWarehouse_id() {
38345
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
38346
    }
38347
 
38348
    public void setWarehouse_idIsSet(boolean value) {
38349
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
38350
    }
38351
 
38352
    public void setFieldValue(_Fields field, Object value) {
38353
      switch (field) {
38354
      case WAREHOUSE_ID:
38355
        if (value == null) {
38356
          unsetWarehouse_id();
38357
        } else {
38358
          setWarehouse_id((Long)value);
38359
        }
38360
        break;
38361
 
38362
      }
38363
    }
38364
 
38365
    public Object getFieldValue(_Fields field) {
38366
      switch (field) {
38367
      case WAREHOUSE_ID:
38368
        return Long.valueOf(getWarehouse_id());
38369
 
38370
      }
38371
      throw new IllegalStateException();
38372
    }
38373
 
38374
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38375
    public boolean isSet(_Fields field) {
38376
      if (field == null) {
38377
        throw new IllegalArgumentException();
38378
      }
38379
 
38380
      switch (field) {
38381
      case WAREHOUSE_ID:
38382
        return isSetWarehouse_id();
38383
      }
38384
      throw new IllegalStateException();
38385
    }
38386
 
38387
    @Override
38388
    public boolean equals(Object that) {
38389
      if (that == null)
38390
        return false;
38391
      if (that instanceof getWarehouseName_args)
38392
        return this.equals((getWarehouseName_args)that);
38393
      return false;
38394
    }
38395
 
38396
    public boolean equals(getWarehouseName_args that) {
38397
      if (that == null)
38398
        return false;
38399
 
38400
      boolean this_present_warehouse_id = true;
38401
      boolean that_present_warehouse_id = true;
38402
      if (this_present_warehouse_id || that_present_warehouse_id) {
38403
        if (!(this_present_warehouse_id && that_present_warehouse_id))
38404
          return false;
38405
        if (this.warehouse_id != that.warehouse_id)
38406
          return false;
38407
      }
38408
 
38409
      return true;
38410
    }
38411
 
38412
    @Override
38413
    public int hashCode() {
38414
      return 0;
38415
    }
38416
 
38417
    public int compareTo(getWarehouseName_args other) {
38418
      if (!getClass().equals(other.getClass())) {
38419
        return getClass().getName().compareTo(other.getClass().getName());
38420
      }
38421
 
38422
      int lastComparison = 0;
38423
      getWarehouseName_args typedOther = (getWarehouseName_args)other;
38424
 
38425
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
38426
      if (lastComparison != 0) {
38427
        return lastComparison;
38428
      }
38429
      if (isSetWarehouse_id()) {
38430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
38431
        if (lastComparison != 0) {
38432
          return lastComparison;
38433
        }
38434
      }
38435
      return 0;
38436
    }
38437
 
38438
    public _Fields fieldForId(int fieldId) {
38439
      return _Fields.findByThriftId(fieldId);
38440
    }
38441
 
38442
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38443
      org.apache.thrift.protocol.TField field;
38444
      iprot.readStructBegin();
38445
      while (true)
38446
      {
38447
        field = iprot.readFieldBegin();
38448
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38449
          break;
38450
        }
38451
        switch (field.id) {
38452
          case 1: // WAREHOUSE_ID
38453
            if (field.type == org.apache.thrift.protocol.TType.I64) {
38454
              this.warehouse_id = iprot.readI64();
38455
              setWarehouse_idIsSet(true);
38456
            } else { 
38457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38458
            }
38459
            break;
38460
          default:
38461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38462
        }
38463
        iprot.readFieldEnd();
38464
      }
38465
      iprot.readStructEnd();
38466
      validate();
38467
    }
38468
 
38469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38470
      validate();
38471
 
38472
      oprot.writeStructBegin(STRUCT_DESC);
38473
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
38474
      oprot.writeI64(this.warehouse_id);
38475
      oprot.writeFieldEnd();
38476
      oprot.writeFieldStop();
38477
      oprot.writeStructEnd();
38478
    }
38479
 
38480
    @Override
38481
    public String toString() {
38482
      StringBuilder sb = new StringBuilder("getWarehouseName_args(");
38483
      boolean first = true;
38484
 
38485
      sb.append("warehouse_id:");
38486
      sb.append(this.warehouse_id);
38487
      first = false;
38488
      sb.append(")");
38489
      return sb.toString();
38490
    }
38491
 
38492
    public void validate() throws org.apache.thrift.TException {
38493
      // check for required fields
38494
    }
38495
 
38496
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38497
      try {
38498
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38499
      } catch (org.apache.thrift.TException te) {
38500
        throw new java.io.IOException(te);
38501
      }
38502
    }
38503
 
38504
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38505
      try {
38506
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
38507
        __isset_bit_vector = new BitSet(1);
38508
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38509
      } catch (org.apache.thrift.TException te) {
38510
        throw new java.io.IOException(te);
38511
      }
38512
    }
38513
 
38514
  }
38515
 
38516
  public static class getWarehouseName_result implements org.apache.thrift.TBase<getWarehouseName_result, getWarehouseName_result._Fields>, java.io.Serializable, Cloneable   {
38517
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseName_result");
38518
 
38519
    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);
38520
 
38521
    private String success; // required
38522
 
38523
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38524
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38525
      SUCCESS((short)0, "success");
38526
 
38527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38528
 
38529
      static {
38530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38531
          byName.put(field.getFieldName(), field);
38532
        }
38533
      }
38534
 
38535
      /**
38536
       * Find the _Fields constant that matches fieldId, or null if its not found.
38537
       */
38538
      public static _Fields findByThriftId(int fieldId) {
38539
        switch(fieldId) {
38540
          case 0: // SUCCESS
38541
            return SUCCESS;
38542
          default:
38543
            return null;
38544
        }
38545
      }
38546
 
38547
      /**
38548
       * Find the _Fields constant that matches fieldId, throwing an exception
38549
       * if it is not found.
38550
       */
38551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38552
        _Fields fields = findByThriftId(fieldId);
38553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38554
        return fields;
38555
      }
38556
 
38557
      /**
38558
       * Find the _Fields constant that matches name, or null if its not found.
38559
       */
38560
      public static _Fields findByName(String name) {
38561
        return byName.get(name);
38562
      }
38563
 
38564
      private final short _thriftId;
38565
      private final String _fieldName;
38566
 
38567
      _Fields(short thriftId, String fieldName) {
38568
        _thriftId = thriftId;
38569
        _fieldName = fieldName;
38570
      }
38571
 
38572
      public short getThriftFieldId() {
38573
        return _thriftId;
38574
      }
38575
 
38576
      public String getFieldName() {
38577
        return _fieldName;
38578
      }
38579
    }
38580
 
38581
    // isset id assignments
38582
 
38583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38584
    static {
38585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38586
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
38588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseName_result.class, metaDataMap);
38590
    }
38591
 
38592
    public getWarehouseName_result() {
38593
    }
38594
 
38595
    public getWarehouseName_result(
38596
      String success)
38597
    {
38598
      this();
38599
      this.success = success;
38600
    }
38601
 
38602
    /**
38603
     * Performs a deep copy on <i>other</i>.
38604
     */
38605
    public getWarehouseName_result(getWarehouseName_result other) {
38606
      if (other.isSetSuccess()) {
38607
        this.success = other.success;
38608
      }
38609
    }
38610
 
38611
    public getWarehouseName_result deepCopy() {
38612
      return new getWarehouseName_result(this);
38613
    }
38614
 
38615
    @Override
38616
    public void clear() {
38617
      this.success = null;
38618
    }
38619
 
38620
    public String getSuccess() {
38621
      return this.success;
38622
    }
38623
 
38624
    public void setSuccess(String success) {
38625
      this.success = success;
38626
    }
38627
 
38628
    public void unsetSuccess() {
38629
      this.success = null;
38630
    }
38631
 
38632
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
38633
    public boolean isSetSuccess() {
38634
      return this.success != null;
38635
    }
38636
 
38637
    public void setSuccessIsSet(boolean value) {
38638
      if (!value) {
38639
        this.success = null;
38640
      }
38641
    }
38642
 
38643
    public void setFieldValue(_Fields field, Object value) {
38644
      switch (field) {
38645
      case SUCCESS:
38646
        if (value == null) {
38647
          unsetSuccess();
38648
        } else {
38649
          setSuccess((String)value);
38650
        }
38651
        break;
38652
 
38653
      }
38654
    }
38655
 
38656
    public Object getFieldValue(_Fields field) {
38657
      switch (field) {
38658
      case SUCCESS:
38659
        return getSuccess();
38660
 
38661
      }
38662
      throw new IllegalStateException();
38663
    }
38664
 
38665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38666
    public boolean isSet(_Fields field) {
38667
      if (field == null) {
38668
        throw new IllegalArgumentException();
38669
      }
38670
 
38671
      switch (field) {
38672
      case SUCCESS:
38673
        return isSetSuccess();
38674
      }
38675
      throw new IllegalStateException();
38676
    }
38677
 
38678
    @Override
38679
    public boolean equals(Object that) {
38680
      if (that == null)
38681
        return false;
38682
      if (that instanceof getWarehouseName_result)
38683
        return this.equals((getWarehouseName_result)that);
38684
      return false;
38685
    }
38686
 
38687
    public boolean equals(getWarehouseName_result that) {
38688
      if (that == null)
38689
        return false;
38690
 
38691
      boolean this_present_success = true && this.isSetSuccess();
38692
      boolean that_present_success = true && that.isSetSuccess();
38693
      if (this_present_success || that_present_success) {
38694
        if (!(this_present_success && that_present_success))
38695
          return false;
38696
        if (!this.success.equals(that.success))
38697
          return false;
38698
      }
38699
 
38700
      return true;
38701
    }
38702
 
38703
    @Override
38704
    public int hashCode() {
38705
      return 0;
38706
    }
38707
 
38708
    public int compareTo(getWarehouseName_result other) {
38709
      if (!getClass().equals(other.getClass())) {
38710
        return getClass().getName().compareTo(other.getClass().getName());
38711
      }
38712
 
38713
      int lastComparison = 0;
38714
      getWarehouseName_result typedOther = (getWarehouseName_result)other;
38715
 
38716
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
38717
      if (lastComparison != 0) {
38718
        return lastComparison;
38719
      }
38720
      if (isSetSuccess()) {
38721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
38722
        if (lastComparison != 0) {
38723
          return lastComparison;
38724
        }
38725
      }
38726
      return 0;
38727
    }
38728
 
38729
    public _Fields fieldForId(int fieldId) {
38730
      return _Fields.findByThriftId(fieldId);
38731
    }
38732
 
38733
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
38734
      org.apache.thrift.protocol.TField field;
38735
      iprot.readStructBegin();
38736
      while (true)
38737
      {
38738
        field = iprot.readFieldBegin();
38739
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
38740
          break;
38741
        }
38742
        switch (field.id) {
38743
          case 0: // SUCCESS
38744
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
38745
              this.success = iprot.readString();
38746
            } else { 
38747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38748
            }
38749
            break;
38750
          default:
38751
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
38752
        }
38753
        iprot.readFieldEnd();
38754
      }
38755
      iprot.readStructEnd();
38756
      validate();
38757
    }
38758
 
38759
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
38760
      oprot.writeStructBegin(STRUCT_DESC);
38761
 
38762
      if (this.isSetSuccess()) {
38763
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
38764
        oprot.writeString(this.success);
38765
        oprot.writeFieldEnd();
38766
      }
38767
      oprot.writeFieldStop();
38768
      oprot.writeStructEnd();
38769
    }
38770
 
38771
    @Override
38772
    public String toString() {
38773
      StringBuilder sb = new StringBuilder("getWarehouseName_result(");
38774
      boolean first = true;
38775
 
38776
      sb.append("success:");
38777
      if (this.success == null) {
38778
        sb.append("null");
38779
      } else {
38780
        sb.append(this.success);
38781
      }
38782
      first = false;
38783
      sb.append(")");
38784
      return sb.toString();
38785
    }
38786
 
38787
    public void validate() throws org.apache.thrift.TException {
38788
      // check for required fields
38789
    }
38790
 
38791
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
38792
      try {
38793
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
38794
      } catch (org.apache.thrift.TException te) {
38795
        throw new java.io.IOException(te);
38796
      }
38797
    }
38798
 
38799
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
38800
      try {
38801
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
38802
      } catch (org.apache.thrift.TException te) {
38803
        throw new java.io.IOException(te);
38804
      }
38805
    }
38806
 
38807
  }
38808
 
38809
  public static class getAmazonInventoryForItem_args implements org.apache.thrift.TBase<getAmazonInventoryForItem_args, getAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
38810
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_args");
38811
 
38812
    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);
38813
 
38814
    private long item_id; // required
38815
 
38816
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38817
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
38818
      ITEM_ID((short)1, "item_id");
38819
 
38820
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
38821
 
38822
      static {
38823
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
38824
          byName.put(field.getFieldName(), field);
38825
        }
38826
      }
38827
 
38828
      /**
38829
       * Find the _Fields constant that matches fieldId, or null if its not found.
38830
       */
38831
      public static _Fields findByThriftId(int fieldId) {
38832
        switch(fieldId) {
38833
          case 1: // ITEM_ID
38834
            return ITEM_ID;
38835
          default:
38836
            return null;
38837
        }
38838
      }
38839
 
38840
      /**
38841
       * Find the _Fields constant that matches fieldId, throwing an exception
38842
       * if it is not found.
38843
       */
38844
      public static _Fields findByThriftIdOrThrow(int fieldId) {
38845
        _Fields fields = findByThriftId(fieldId);
38846
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
38847
        return fields;
38848
      }
38849
 
38850
      /**
38851
       * Find the _Fields constant that matches name, or null if its not found.
38852
       */
38853
      public static _Fields findByName(String name) {
38854
        return byName.get(name);
38855
      }
38856
 
38857
      private final short _thriftId;
38858
      private final String _fieldName;
38859
 
38860
      _Fields(short thriftId, String fieldName) {
38861
        _thriftId = thriftId;
38862
        _fieldName = fieldName;
38863
      }
38864
 
38865
      public short getThriftFieldId() {
38866
        return _thriftId;
38867
      }
38868
 
38869
      public String getFieldName() {
38870
        return _fieldName;
38871
      }
38872
    }
38873
 
38874
    // isset id assignments
38875
    private static final int __ITEM_ID_ISSET_ID = 0;
38876
    private BitSet __isset_bit_vector = new BitSet(1);
38877
 
38878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
38879
    static {
38880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
38881
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
38882
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
38883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
38884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_args.class, metaDataMap);
38885
    }
38886
 
38887
    public getAmazonInventoryForItem_args() {
38888
    }
38889
 
38890
    public getAmazonInventoryForItem_args(
38891
      long item_id)
38892
    {
38893
      this();
38894
      this.item_id = item_id;
38895
      setItem_idIsSet(true);
38896
    }
38897
 
38898
    /**
38899
     * Performs a deep copy on <i>other</i>.
38900
     */
38901
    public getAmazonInventoryForItem_args(getAmazonInventoryForItem_args other) {
38902
      __isset_bit_vector.clear();
38903
      __isset_bit_vector.or(other.__isset_bit_vector);
38904
      this.item_id = other.item_id;
38905
    }
38906
 
38907
    public getAmazonInventoryForItem_args deepCopy() {
38908
      return new getAmazonInventoryForItem_args(this);
38909
    }
38910
 
38911
    @Override
38912
    public void clear() {
38913
      setItem_idIsSet(false);
38914
      this.item_id = 0;
38915
    }
38916
 
38917
    public long getItem_id() {
38918
      return this.item_id;
38919
    }
38920
 
38921
    public void setItem_id(long item_id) {
38922
      this.item_id = item_id;
38923
      setItem_idIsSet(true);
38924
    }
38925
 
38926
    public void unsetItem_id() {
38927
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
38928
    }
38929
 
38930
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
38931
    public boolean isSetItem_id() {
38932
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
38933
    }
38934
 
38935
    public void setItem_idIsSet(boolean value) {
38936
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
38937
    }
38938
 
38939
    public void setFieldValue(_Fields field, Object value) {
38940
      switch (field) {
38941
      case ITEM_ID:
38942
        if (value == null) {
38943
          unsetItem_id();
38944
        } else {
38945
          setItem_id((Long)value);
38946
        }
38947
        break;
38948
 
38949
      }
38950
    }
38951
 
38952
    public Object getFieldValue(_Fields field) {
38953
      switch (field) {
38954
      case ITEM_ID:
38955
        return Long.valueOf(getItem_id());
38956
 
38957
      }
38958
      throw new IllegalStateException();
38959
    }
38960
 
38961
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
38962
    public boolean isSet(_Fields field) {
38963
      if (field == null) {
38964
        throw new IllegalArgumentException();
38965
      }
38966
 
38967
      switch (field) {
38968
      case ITEM_ID:
38969
        return isSetItem_id();
38970
      }
38971
      throw new IllegalStateException();
38972
    }
38973
 
38974
    @Override
38975
    public boolean equals(Object that) {
38976
      if (that == null)
38977
        return false;
38978
      if (that instanceof getAmazonInventoryForItem_args)
38979
        return this.equals((getAmazonInventoryForItem_args)that);
38980
      return false;
38981
    }
38982
 
38983
    public boolean equals(getAmazonInventoryForItem_args that) {
38984
      if (that == null)
38985
        return false;
38986
 
38987
      boolean this_present_item_id = true;
38988
      boolean that_present_item_id = true;
38989
      if (this_present_item_id || that_present_item_id) {
38990
        if (!(this_present_item_id && that_present_item_id))
38991
          return false;
38992
        if (this.item_id != that.item_id)
38993
          return false;
38994
      }
38995
 
38996
      return true;
38997
    }
38998
 
38999
    @Override
39000
    public int hashCode() {
39001
      return 0;
39002
    }
39003
 
39004
    public int compareTo(getAmazonInventoryForItem_args other) {
39005
      if (!getClass().equals(other.getClass())) {
39006
        return getClass().getName().compareTo(other.getClass().getName());
39007
      }
39008
 
39009
      int lastComparison = 0;
39010
      getAmazonInventoryForItem_args typedOther = (getAmazonInventoryForItem_args)other;
39011
 
39012
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
39013
      if (lastComparison != 0) {
39014
        return lastComparison;
39015
      }
39016
      if (isSetItem_id()) {
39017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
39018
        if (lastComparison != 0) {
39019
          return lastComparison;
39020
        }
39021
      }
39022
      return 0;
39023
    }
39024
 
39025
    public _Fields fieldForId(int fieldId) {
39026
      return _Fields.findByThriftId(fieldId);
39027
    }
39028
 
39029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39030
      org.apache.thrift.protocol.TField field;
39031
      iprot.readStructBegin();
39032
      while (true)
39033
      {
39034
        field = iprot.readFieldBegin();
39035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39036
          break;
39037
        }
39038
        switch (field.id) {
39039
          case 1: // ITEM_ID
39040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
39041
              this.item_id = iprot.readI64();
39042
              setItem_idIsSet(true);
39043
            } else { 
39044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39045
            }
39046
            break;
39047
          default:
39048
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39049
        }
39050
        iprot.readFieldEnd();
39051
      }
39052
      iprot.readStructEnd();
39053
      validate();
39054
    }
39055
 
39056
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39057
      validate();
39058
 
39059
      oprot.writeStructBegin(STRUCT_DESC);
39060
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
39061
      oprot.writeI64(this.item_id);
39062
      oprot.writeFieldEnd();
39063
      oprot.writeFieldStop();
39064
      oprot.writeStructEnd();
39065
    }
39066
 
39067
    @Override
39068
    public String toString() {
39069
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_args(");
39070
      boolean first = true;
39071
 
39072
      sb.append("item_id:");
39073
      sb.append(this.item_id);
39074
      first = false;
39075
      sb.append(")");
39076
      return sb.toString();
39077
    }
39078
 
39079
    public void validate() throws org.apache.thrift.TException {
39080
      // check for required fields
39081
    }
39082
 
39083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39084
      try {
39085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39086
      } catch (org.apache.thrift.TException te) {
39087
        throw new java.io.IOException(te);
39088
      }
39089
    }
39090
 
39091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39092
      try {
39093
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
39094
        __isset_bit_vector = new BitSet(1);
39095
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39096
      } catch (org.apache.thrift.TException te) {
39097
        throw new java.io.IOException(te);
39098
      }
39099
    }
39100
 
39101
  }
39102
 
39103
  public static class getAmazonInventoryForItem_result implements org.apache.thrift.TBase<getAmazonInventoryForItem_result, getAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
39104
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonInventoryForItem_result");
39105
 
39106
    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);
39107
 
39108
    private AmazonInventorySnapshot success; // required
39109
 
39110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39112
      SUCCESS((short)0, "success");
39113
 
39114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39115
 
39116
      static {
39117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39118
          byName.put(field.getFieldName(), field);
39119
        }
39120
      }
39121
 
39122
      /**
39123
       * Find the _Fields constant that matches fieldId, or null if its not found.
39124
       */
39125
      public static _Fields findByThriftId(int fieldId) {
39126
        switch(fieldId) {
39127
          case 0: // SUCCESS
39128
            return SUCCESS;
39129
          default:
39130
            return null;
39131
        }
39132
      }
39133
 
39134
      /**
39135
       * Find the _Fields constant that matches fieldId, throwing an exception
39136
       * if it is not found.
39137
       */
39138
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39139
        _Fields fields = findByThriftId(fieldId);
39140
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39141
        return fields;
39142
      }
39143
 
39144
      /**
39145
       * Find the _Fields constant that matches name, or null if its not found.
39146
       */
39147
      public static _Fields findByName(String name) {
39148
        return byName.get(name);
39149
      }
39150
 
39151
      private final short _thriftId;
39152
      private final String _fieldName;
39153
 
39154
      _Fields(short thriftId, String fieldName) {
39155
        _thriftId = thriftId;
39156
        _fieldName = fieldName;
39157
      }
39158
 
39159
      public short getThriftFieldId() {
39160
        return _thriftId;
39161
      }
39162
 
39163
      public String getFieldName() {
39164
        return _fieldName;
39165
      }
39166
    }
39167
 
39168
    // isset id assignments
39169
 
39170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39171
    static {
39172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39173
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39174
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
39175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonInventoryForItem_result.class, metaDataMap);
39177
    }
39178
 
39179
    public getAmazonInventoryForItem_result() {
39180
    }
39181
 
39182
    public getAmazonInventoryForItem_result(
39183
      AmazonInventorySnapshot success)
39184
    {
39185
      this();
39186
      this.success = success;
39187
    }
39188
 
39189
    /**
39190
     * Performs a deep copy on <i>other</i>.
39191
     */
39192
    public getAmazonInventoryForItem_result(getAmazonInventoryForItem_result other) {
39193
      if (other.isSetSuccess()) {
39194
        this.success = new AmazonInventorySnapshot(other.success);
39195
      }
39196
    }
39197
 
39198
    public getAmazonInventoryForItem_result deepCopy() {
39199
      return new getAmazonInventoryForItem_result(this);
39200
    }
39201
 
39202
    @Override
39203
    public void clear() {
39204
      this.success = null;
39205
    }
39206
 
39207
    public AmazonInventorySnapshot getSuccess() {
39208
      return this.success;
39209
    }
39210
 
39211
    public void setSuccess(AmazonInventorySnapshot success) {
39212
      this.success = success;
39213
    }
39214
 
39215
    public void unsetSuccess() {
39216
      this.success = null;
39217
    }
39218
 
39219
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
39220
    public boolean isSetSuccess() {
39221
      return this.success != null;
39222
    }
39223
 
39224
    public void setSuccessIsSet(boolean value) {
39225
      if (!value) {
39226
        this.success = null;
39227
      }
39228
    }
39229
 
39230
    public void setFieldValue(_Fields field, Object value) {
39231
      switch (field) {
39232
      case SUCCESS:
39233
        if (value == null) {
39234
          unsetSuccess();
39235
        } else {
39236
          setSuccess((AmazonInventorySnapshot)value);
39237
        }
39238
        break;
39239
 
39240
      }
39241
    }
39242
 
39243
    public Object getFieldValue(_Fields field) {
39244
      switch (field) {
39245
      case SUCCESS:
39246
        return getSuccess();
39247
 
39248
      }
39249
      throw new IllegalStateException();
39250
    }
39251
 
39252
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39253
    public boolean isSet(_Fields field) {
39254
      if (field == null) {
39255
        throw new IllegalArgumentException();
39256
      }
39257
 
39258
      switch (field) {
39259
      case SUCCESS:
39260
        return isSetSuccess();
39261
      }
39262
      throw new IllegalStateException();
39263
    }
39264
 
39265
    @Override
39266
    public boolean equals(Object that) {
39267
      if (that == null)
39268
        return false;
39269
      if (that instanceof getAmazonInventoryForItem_result)
39270
        return this.equals((getAmazonInventoryForItem_result)that);
39271
      return false;
39272
    }
39273
 
39274
    public boolean equals(getAmazonInventoryForItem_result that) {
39275
      if (that == null)
39276
        return false;
39277
 
39278
      boolean this_present_success = true && this.isSetSuccess();
39279
      boolean that_present_success = true && that.isSetSuccess();
39280
      if (this_present_success || that_present_success) {
39281
        if (!(this_present_success && that_present_success))
39282
          return false;
39283
        if (!this.success.equals(that.success))
39284
          return false;
39285
      }
39286
 
39287
      return true;
39288
    }
39289
 
39290
    @Override
39291
    public int hashCode() {
39292
      return 0;
39293
    }
39294
 
39295
    public int compareTo(getAmazonInventoryForItem_result other) {
39296
      if (!getClass().equals(other.getClass())) {
39297
        return getClass().getName().compareTo(other.getClass().getName());
39298
      }
39299
 
39300
      int lastComparison = 0;
39301
      getAmazonInventoryForItem_result typedOther = (getAmazonInventoryForItem_result)other;
39302
 
39303
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
39304
      if (lastComparison != 0) {
39305
        return lastComparison;
39306
      }
39307
      if (isSetSuccess()) {
39308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39309
        if (lastComparison != 0) {
39310
          return lastComparison;
39311
        }
39312
      }
39313
      return 0;
39314
    }
39315
 
39316
    public _Fields fieldForId(int fieldId) {
39317
      return _Fields.findByThriftId(fieldId);
39318
    }
39319
 
39320
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39321
      org.apache.thrift.protocol.TField field;
39322
      iprot.readStructBegin();
39323
      while (true)
39324
      {
39325
        field = iprot.readFieldBegin();
39326
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39327
          break;
39328
        }
39329
        switch (field.id) {
39330
          case 0: // SUCCESS
39331
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
39332
              this.success = new AmazonInventorySnapshot();
39333
              this.success.read(iprot);
39334
            } else { 
39335
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39336
            }
39337
            break;
39338
          default:
39339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39340
        }
39341
        iprot.readFieldEnd();
39342
      }
39343
      iprot.readStructEnd();
39344
      validate();
39345
    }
39346
 
39347
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39348
      oprot.writeStructBegin(STRUCT_DESC);
39349
 
39350
      if (this.isSetSuccess()) {
39351
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39352
        this.success.write(oprot);
39353
        oprot.writeFieldEnd();
39354
      }
39355
      oprot.writeFieldStop();
39356
      oprot.writeStructEnd();
39357
    }
39358
 
39359
    @Override
39360
    public String toString() {
39361
      StringBuilder sb = new StringBuilder("getAmazonInventoryForItem_result(");
39362
      boolean first = true;
39363
 
39364
      sb.append("success:");
39365
      if (this.success == null) {
39366
        sb.append("null");
39367
      } else {
39368
        sb.append(this.success);
39369
      }
39370
      first = false;
39371
      sb.append(")");
39372
      return sb.toString();
39373
    }
39374
 
39375
    public void validate() throws org.apache.thrift.TException {
39376
      // check for required fields
39377
    }
39378
 
39379
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39380
      try {
39381
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39382
      } catch (org.apache.thrift.TException te) {
39383
        throw new java.io.IOException(te);
39384
      }
39385
    }
39386
 
39387
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39388
      try {
39389
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39390
      } catch (org.apache.thrift.TException te) {
39391
        throw new java.io.IOException(te);
39392
      }
39393
    }
39394
 
39395
  }
39396
 
39397
  public static class getAllAmazonInventory_args implements org.apache.thrift.TBase<getAllAmazonInventory_args, getAllAmazonInventory_args._Fields>, java.io.Serializable, Cloneable   {
39398
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_args");
39399
 
39400
 
39401
 
39402
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39403
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39404
;
39405
 
39406
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39407
 
39408
      static {
39409
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39410
          byName.put(field.getFieldName(), field);
39411
        }
39412
      }
39413
 
39414
      /**
39415
       * Find the _Fields constant that matches fieldId, or null if its not found.
39416
       */
39417
      public static _Fields findByThriftId(int fieldId) {
39418
        switch(fieldId) {
39419
          default:
39420
            return null;
39421
        }
39422
      }
39423
 
39424
      /**
39425
       * Find the _Fields constant that matches fieldId, throwing an exception
39426
       * if it is not found.
39427
       */
39428
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39429
        _Fields fields = findByThriftId(fieldId);
39430
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39431
        return fields;
39432
      }
39433
 
39434
      /**
39435
       * Find the _Fields constant that matches name, or null if its not found.
39436
       */
39437
      public static _Fields findByName(String name) {
39438
        return byName.get(name);
39439
      }
39440
 
39441
      private final short _thriftId;
39442
      private final String _fieldName;
39443
 
39444
      _Fields(short thriftId, String fieldName) {
39445
        _thriftId = thriftId;
39446
        _fieldName = fieldName;
39447
      }
39448
 
39449
      public short getThriftFieldId() {
39450
        return _thriftId;
39451
      }
39452
 
39453
      public String getFieldName() {
39454
        return _fieldName;
39455
      }
39456
    }
39457
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39458
    static {
39459
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39460
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39461
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_args.class, metaDataMap);
39462
    }
39463
 
39464
    public getAllAmazonInventory_args() {
39465
    }
39466
 
39467
    /**
39468
     * Performs a deep copy on <i>other</i>.
39469
     */
39470
    public getAllAmazonInventory_args(getAllAmazonInventory_args other) {
39471
    }
39472
 
39473
    public getAllAmazonInventory_args deepCopy() {
39474
      return new getAllAmazonInventory_args(this);
39475
    }
39476
 
39477
    @Override
39478
    public void clear() {
39479
    }
39480
 
39481
    public void setFieldValue(_Fields field, Object value) {
39482
      switch (field) {
39483
      }
39484
    }
39485
 
39486
    public Object getFieldValue(_Fields field) {
39487
      switch (field) {
39488
      }
39489
      throw new IllegalStateException();
39490
    }
39491
 
39492
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39493
    public boolean isSet(_Fields field) {
39494
      if (field == null) {
39495
        throw new IllegalArgumentException();
39496
      }
39497
 
39498
      switch (field) {
39499
      }
39500
      throw new IllegalStateException();
39501
    }
39502
 
39503
    @Override
39504
    public boolean equals(Object that) {
39505
      if (that == null)
39506
        return false;
39507
      if (that instanceof getAllAmazonInventory_args)
39508
        return this.equals((getAllAmazonInventory_args)that);
39509
      return false;
39510
    }
39511
 
39512
    public boolean equals(getAllAmazonInventory_args that) {
39513
      if (that == null)
39514
        return false;
39515
 
39516
      return true;
39517
    }
39518
 
39519
    @Override
39520
    public int hashCode() {
39521
      return 0;
39522
    }
39523
 
39524
    public int compareTo(getAllAmazonInventory_args other) {
39525
      if (!getClass().equals(other.getClass())) {
39526
        return getClass().getName().compareTo(other.getClass().getName());
39527
      }
39528
 
39529
      int lastComparison = 0;
39530
      getAllAmazonInventory_args typedOther = (getAllAmazonInventory_args)other;
39531
 
39532
      return 0;
39533
    }
39534
 
39535
    public _Fields fieldForId(int fieldId) {
39536
      return _Fields.findByThriftId(fieldId);
39537
    }
39538
 
39539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39540
      org.apache.thrift.protocol.TField field;
39541
      iprot.readStructBegin();
39542
      while (true)
39543
      {
39544
        field = iprot.readFieldBegin();
39545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39546
          break;
39547
        }
39548
        switch (field.id) {
39549
          default:
39550
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39551
        }
39552
        iprot.readFieldEnd();
39553
      }
39554
      iprot.readStructEnd();
39555
      validate();
39556
    }
39557
 
39558
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39559
      validate();
39560
 
39561
      oprot.writeStructBegin(STRUCT_DESC);
39562
      oprot.writeFieldStop();
39563
      oprot.writeStructEnd();
39564
    }
39565
 
39566
    @Override
39567
    public String toString() {
39568
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_args(");
39569
      boolean first = true;
39570
 
39571
      sb.append(")");
39572
      return sb.toString();
39573
    }
39574
 
39575
    public void validate() throws org.apache.thrift.TException {
39576
      // check for required fields
39577
    }
39578
 
39579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39580
      try {
39581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39582
      } catch (org.apache.thrift.TException te) {
39583
        throw new java.io.IOException(te);
39584
      }
39585
    }
39586
 
39587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39588
      try {
39589
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39590
      } catch (org.apache.thrift.TException te) {
39591
        throw new java.io.IOException(te);
39592
      }
39593
    }
39594
 
39595
  }
39596
 
39597
  public static class getAllAmazonInventory_result implements org.apache.thrift.TBase<getAllAmazonInventory_result, getAllAmazonInventory_result._Fields>, java.io.Serializable, Cloneable   {
39598
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAmazonInventory_result");
39599
 
39600
    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);
39601
 
39602
    private List<AmazonInventorySnapshot> success; // required
39603
 
39604
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39605
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39606
      SUCCESS((short)0, "success");
39607
 
39608
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39609
 
39610
      static {
39611
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39612
          byName.put(field.getFieldName(), field);
39613
        }
39614
      }
39615
 
39616
      /**
39617
       * Find the _Fields constant that matches fieldId, or null if its not found.
39618
       */
39619
      public static _Fields findByThriftId(int fieldId) {
39620
        switch(fieldId) {
39621
          case 0: // SUCCESS
39622
            return SUCCESS;
39623
          default:
39624
            return null;
39625
        }
39626
      }
39627
 
39628
      /**
39629
       * Find the _Fields constant that matches fieldId, throwing an exception
39630
       * if it is not found.
39631
       */
39632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39633
        _Fields fields = findByThriftId(fieldId);
39634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39635
        return fields;
39636
      }
39637
 
39638
      /**
39639
       * Find the _Fields constant that matches name, or null if its not found.
39640
       */
39641
      public static _Fields findByName(String name) {
39642
        return byName.get(name);
39643
      }
39644
 
39645
      private final short _thriftId;
39646
      private final String _fieldName;
39647
 
39648
      _Fields(short thriftId, String fieldName) {
39649
        _thriftId = thriftId;
39650
        _fieldName = fieldName;
39651
      }
39652
 
39653
      public short getThriftFieldId() {
39654
        return _thriftId;
39655
      }
39656
 
39657
      public String getFieldName() {
39658
        return _fieldName;
39659
      }
39660
    }
39661
 
39662
    // isset id assignments
39663
 
39664
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39665
    static {
39666
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39667
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39668
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
39669
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class))));
39670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
39671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAmazonInventory_result.class, metaDataMap);
39672
    }
39673
 
39674
    public getAllAmazonInventory_result() {
39675
    }
39676
 
39677
    public getAllAmazonInventory_result(
39678
      List<AmazonInventorySnapshot> success)
39679
    {
39680
      this();
39681
      this.success = success;
39682
    }
39683
 
39684
    /**
39685
     * Performs a deep copy on <i>other</i>.
39686
     */
39687
    public getAllAmazonInventory_result(getAllAmazonInventory_result other) {
39688
      if (other.isSetSuccess()) {
39689
        List<AmazonInventorySnapshot> __this__success = new ArrayList<AmazonInventorySnapshot>();
39690
        for (AmazonInventorySnapshot other_element : other.success) {
39691
          __this__success.add(new AmazonInventorySnapshot(other_element));
39692
        }
39693
        this.success = __this__success;
39694
      }
39695
    }
39696
 
39697
    public getAllAmazonInventory_result deepCopy() {
39698
      return new getAllAmazonInventory_result(this);
39699
    }
39700
 
39701
    @Override
39702
    public void clear() {
39703
      this.success = null;
39704
    }
39705
 
39706
    public int getSuccessSize() {
39707
      return (this.success == null) ? 0 : this.success.size();
39708
    }
39709
 
39710
    public java.util.Iterator<AmazonInventorySnapshot> getSuccessIterator() {
39711
      return (this.success == null) ? null : this.success.iterator();
39712
    }
39713
 
39714
    public void addToSuccess(AmazonInventorySnapshot elem) {
39715
      if (this.success == null) {
39716
        this.success = new ArrayList<AmazonInventorySnapshot>();
39717
      }
39718
      this.success.add(elem);
39719
    }
39720
 
39721
    public List<AmazonInventorySnapshot> getSuccess() {
39722
      return this.success;
39723
    }
39724
 
39725
    public void setSuccess(List<AmazonInventorySnapshot> success) {
39726
      this.success = success;
39727
    }
39728
 
39729
    public void unsetSuccess() {
39730
      this.success = null;
39731
    }
39732
 
39733
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
39734
    public boolean isSetSuccess() {
39735
      return this.success != null;
39736
    }
39737
 
39738
    public void setSuccessIsSet(boolean value) {
39739
      if (!value) {
39740
        this.success = null;
39741
      }
39742
    }
39743
 
39744
    public void setFieldValue(_Fields field, Object value) {
39745
      switch (field) {
39746
      case SUCCESS:
39747
        if (value == null) {
39748
          unsetSuccess();
39749
        } else {
39750
          setSuccess((List<AmazonInventorySnapshot>)value);
39751
        }
39752
        break;
39753
 
39754
      }
39755
    }
39756
 
39757
    public Object getFieldValue(_Fields field) {
39758
      switch (field) {
39759
      case SUCCESS:
39760
        return getSuccess();
39761
 
39762
      }
39763
      throw new IllegalStateException();
39764
    }
39765
 
39766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
39767
    public boolean isSet(_Fields field) {
39768
      if (field == null) {
39769
        throw new IllegalArgumentException();
39770
      }
39771
 
39772
      switch (field) {
39773
      case SUCCESS:
39774
        return isSetSuccess();
39775
      }
39776
      throw new IllegalStateException();
39777
    }
39778
 
39779
    @Override
39780
    public boolean equals(Object that) {
39781
      if (that == null)
39782
        return false;
39783
      if (that instanceof getAllAmazonInventory_result)
39784
        return this.equals((getAllAmazonInventory_result)that);
39785
      return false;
39786
    }
39787
 
39788
    public boolean equals(getAllAmazonInventory_result that) {
39789
      if (that == null)
39790
        return false;
39791
 
39792
      boolean this_present_success = true && this.isSetSuccess();
39793
      boolean that_present_success = true && that.isSetSuccess();
39794
      if (this_present_success || that_present_success) {
39795
        if (!(this_present_success && that_present_success))
39796
          return false;
39797
        if (!this.success.equals(that.success))
39798
          return false;
39799
      }
39800
 
39801
      return true;
39802
    }
39803
 
39804
    @Override
39805
    public int hashCode() {
39806
      return 0;
39807
    }
39808
 
39809
    public int compareTo(getAllAmazonInventory_result other) {
39810
      if (!getClass().equals(other.getClass())) {
39811
        return getClass().getName().compareTo(other.getClass().getName());
39812
      }
39813
 
39814
      int lastComparison = 0;
39815
      getAllAmazonInventory_result typedOther = (getAllAmazonInventory_result)other;
39816
 
39817
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
39818
      if (lastComparison != 0) {
39819
        return lastComparison;
39820
      }
39821
      if (isSetSuccess()) {
39822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
39823
        if (lastComparison != 0) {
39824
          return lastComparison;
39825
        }
39826
      }
39827
      return 0;
39828
    }
39829
 
39830
    public _Fields fieldForId(int fieldId) {
39831
      return _Fields.findByThriftId(fieldId);
39832
    }
39833
 
39834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
39835
      org.apache.thrift.protocol.TField field;
39836
      iprot.readStructBegin();
39837
      while (true)
39838
      {
39839
        field = iprot.readFieldBegin();
39840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
39841
          break;
39842
        }
39843
        switch (field.id) {
39844
          case 0: // SUCCESS
39845
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
39846
              {
39847
                org.apache.thrift.protocol.TList _list121 = iprot.readListBegin();
39848
                this.success = new ArrayList<AmazonInventorySnapshot>(_list121.size);
39849
                for (int _i122 = 0; _i122 < _list121.size; ++_i122)
39850
                {
39851
                  AmazonInventorySnapshot _elem123; // required
39852
                  _elem123 = new AmazonInventorySnapshot();
39853
                  _elem123.read(iprot);
39854
                  this.success.add(_elem123);
39855
                }
39856
                iprot.readListEnd();
39857
              }
39858
            } else { 
39859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39860
            }
39861
            break;
39862
          default:
39863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
39864
        }
39865
        iprot.readFieldEnd();
39866
      }
39867
      iprot.readStructEnd();
39868
      validate();
39869
    }
39870
 
39871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
39872
      oprot.writeStructBegin(STRUCT_DESC);
39873
 
39874
      if (this.isSetSuccess()) {
39875
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
39876
        {
39877
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
39878
          for (AmazonInventorySnapshot _iter124 : this.success)
39879
          {
39880
            _iter124.write(oprot);
39881
          }
39882
          oprot.writeListEnd();
39883
        }
39884
        oprot.writeFieldEnd();
39885
      }
39886
      oprot.writeFieldStop();
39887
      oprot.writeStructEnd();
39888
    }
39889
 
39890
    @Override
39891
    public String toString() {
39892
      StringBuilder sb = new StringBuilder("getAllAmazonInventory_result(");
39893
      boolean first = true;
39894
 
39895
      sb.append("success:");
39896
      if (this.success == null) {
39897
        sb.append("null");
39898
      } else {
39899
        sb.append(this.success);
39900
      }
39901
      first = false;
39902
      sb.append(")");
39903
      return sb.toString();
39904
    }
39905
 
39906
    public void validate() throws org.apache.thrift.TException {
39907
      // check for required fields
39908
    }
39909
 
39910
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
39911
      try {
39912
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
39913
      } catch (org.apache.thrift.TException te) {
39914
        throw new java.io.IOException(te);
39915
      }
39916
    }
39917
 
39918
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
39919
      try {
39920
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
39921
      } catch (org.apache.thrift.TException te) {
39922
        throw new java.io.IOException(te);
39923
      }
39924
    }
39925
 
39926
  }
39927
 
39928
  public static class addOrUpdateAmazonInventoryForItem_args implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_args, addOrUpdateAmazonInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
39929
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_args");
39930
 
39931
    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);
39932
 
39933
    private AmazonInventorySnapshot amazonInventorySnapshot; // required
39934
 
39935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
39937
      AMAZON_INVENTORY_SNAPSHOT((short)1, "amazonInventorySnapshot");
39938
 
39939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
39940
 
39941
      static {
39942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
39943
          byName.put(field.getFieldName(), field);
39944
        }
39945
      }
39946
 
39947
      /**
39948
       * Find the _Fields constant that matches fieldId, or null if its not found.
39949
       */
39950
      public static _Fields findByThriftId(int fieldId) {
39951
        switch(fieldId) {
39952
          case 1: // AMAZON_INVENTORY_SNAPSHOT
39953
            return AMAZON_INVENTORY_SNAPSHOT;
39954
          default:
39955
            return null;
39956
        }
39957
      }
39958
 
39959
      /**
39960
       * Find the _Fields constant that matches fieldId, throwing an exception
39961
       * if it is not found.
39962
       */
39963
      public static _Fields findByThriftIdOrThrow(int fieldId) {
39964
        _Fields fields = findByThriftId(fieldId);
39965
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
39966
        return fields;
39967
      }
39968
 
39969
      /**
39970
       * Find the _Fields constant that matches name, or null if its not found.
39971
       */
39972
      public static _Fields findByName(String name) {
39973
        return byName.get(name);
39974
      }
39975
 
39976
      private final short _thriftId;
39977
      private final String _fieldName;
39978
 
39979
      _Fields(short thriftId, String fieldName) {
39980
        _thriftId = thriftId;
39981
        _fieldName = fieldName;
39982
      }
39983
 
39984
      public short getThriftFieldId() {
39985
        return _thriftId;
39986
      }
39987
 
39988
      public String getFieldName() {
39989
        return _fieldName;
39990
      }
39991
    }
39992
 
39993
    // isset id assignments
39994
 
39995
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
39996
    static {
39997
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
39998
      tmpMap.put(_Fields.AMAZON_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT, 
39999
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonInventorySnapshot.class)));
40000
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40001
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_args.class, metaDataMap);
40002
    }
40003
 
40004
    public addOrUpdateAmazonInventoryForItem_args() {
40005
    }
40006
 
40007
    public addOrUpdateAmazonInventoryForItem_args(
40008
      AmazonInventorySnapshot amazonInventorySnapshot)
40009
    {
40010
      this();
40011
      this.amazonInventorySnapshot = amazonInventorySnapshot;
40012
    }
40013
 
40014
    /**
40015
     * Performs a deep copy on <i>other</i>.
40016
     */
40017
    public addOrUpdateAmazonInventoryForItem_args(addOrUpdateAmazonInventoryForItem_args other) {
40018
      if (other.isSetAmazonInventorySnapshot()) {
40019
        this.amazonInventorySnapshot = new AmazonInventorySnapshot(other.amazonInventorySnapshot);
40020
      }
40021
    }
40022
 
40023
    public addOrUpdateAmazonInventoryForItem_args deepCopy() {
40024
      return new addOrUpdateAmazonInventoryForItem_args(this);
40025
    }
40026
 
40027
    @Override
40028
    public void clear() {
40029
      this.amazonInventorySnapshot = null;
40030
    }
40031
 
40032
    public AmazonInventorySnapshot getAmazonInventorySnapshot() {
40033
      return this.amazonInventorySnapshot;
40034
    }
40035
 
40036
    public void setAmazonInventorySnapshot(AmazonInventorySnapshot amazonInventorySnapshot) {
40037
      this.amazonInventorySnapshot = amazonInventorySnapshot;
40038
    }
40039
 
40040
    public void unsetAmazonInventorySnapshot() {
40041
      this.amazonInventorySnapshot = null;
40042
    }
40043
 
40044
    /** Returns true if field amazonInventorySnapshot is set (has been assigned a value) and false otherwise */
40045
    public boolean isSetAmazonInventorySnapshot() {
40046
      return this.amazonInventorySnapshot != null;
40047
    }
40048
 
40049
    public void setAmazonInventorySnapshotIsSet(boolean value) {
40050
      if (!value) {
40051
        this.amazonInventorySnapshot = null;
40052
      }
40053
    }
40054
 
40055
    public void setFieldValue(_Fields field, Object value) {
40056
      switch (field) {
40057
      case AMAZON_INVENTORY_SNAPSHOT:
40058
        if (value == null) {
40059
          unsetAmazonInventorySnapshot();
40060
        } else {
40061
          setAmazonInventorySnapshot((AmazonInventorySnapshot)value);
40062
        }
40063
        break;
40064
 
40065
      }
40066
    }
40067
 
40068
    public Object getFieldValue(_Fields field) {
40069
      switch (field) {
40070
      case AMAZON_INVENTORY_SNAPSHOT:
40071
        return getAmazonInventorySnapshot();
40072
 
40073
      }
40074
      throw new IllegalStateException();
40075
    }
40076
 
40077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40078
    public boolean isSet(_Fields field) {
40079
      if (field == null) {
40080
        throw new IllegalArgumentException();
40081
      }
40082
 
40083
      switch (field) {
40084
      case AMAZON_INVENTORY_SNAPSHOT:
40085
        return isSetAmazonInventorySnapshot();
40086
      }
40087
      throw new IllegalStateException();
40088
    }
40089
 
40090
    @Override
40091
    public boolean equals(Object that) {
40092
      if (that == null)
40093
        return false;
40094
      if (that instanceof addOrUpdateAmazonInventoryForItem_args)
40095
        return this.equals((addOrUpdateAmazonInventoryForItem_args)that);
40096
      return false;
40097
    }
40098
 
40099
    public boolean equals(addOrUpdateAmazonInventoryForItem_args that) {
40100
      if (that == null)
40101
        return false;
40102
 
40103
      boolean this_present_amazonInventorySnapshot = true && this.isSetAmazonInventorySnapshot();
40104
      boolean that_present_amazonInventorySnapshot = true && that.isSetAmazonInventorySnapshot();
40105
      if (this_present_amazonInventorySnapshot || that_present_amazonInventorySnapshot) {
40106
        if (!(this_present_amazonInventorySnapshot && that_present_amazonInventorySnapshot))
40107
          return false;
40108
        if (!this.amazonInventorySnapshot.equals(that.amazonInventorySnapshot))
40109
          return false;
40110
      }
40111
 
40112
      return true;
40113
    }
40114
 
40115
    @Override
40116
    public int hashCode() {
40117
      return 0;
40118
    }
40119
 
40120
    public int compareTo(addOrUpdateAmazonInventoryForItem_args other) {
40121
      if (!getClass().equals(other.getClass())) {
40122
        return getClass().getName().compareTo(other.getClass().getName());
40123
      }
40124
 
40125
      int lastComparison = 0;
40126
      addOrUpdateAmazonInventoryForItem_args typedOther = (addOrUpdateAmazonInventoryForItem_args)other;
40127
 
40128
      lastComparison = Boolean.valueOf(isSetAmazonInventorySnapshot()).compareTo(typedOther.isSetAmazonInventorySnapshot());
40129
      if (lastComparison != 0) {
40130
        return lastComparison;
40131
      }
40132
      if (isSetAmazonInventorySnapshot()) {
40133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonInventorySnapshot, typedOther.amazonInventorySnapshot);
40134
        if (lastComparison != 0) {
40135
          return lastComparison;
40136
        }
40137
      }
40138
      return 0;
40139
    }
40140
 
40141
    public _Fields fieldForId(int fieldId) {
40142
      return _Fields.findByThriftId(fieldId);
40143
    }
40144
 
40145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40146
      org.apache.thrift.protocol.TField field;
40147
      iprot.readStructBegin();
40148
      while (true)
40149
      {
40150
        field = iprot.readFieldBegin();
40151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40152
          break;
40153
        }
40154
        switch (field.id) {
40155
          case 1: // AMAZON_INVENTORY_SNAPSHOT
40156
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
40157
              this.amazonInventorySnapshot = new AmazonInventorySnapshot();
40158
              this.amazonInventorySnapshot.read(iprot);
40159
            } else { 
40160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40161
            }
40162
            break;
40163
          default:
40164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40165
        }
40166
        iprot.readFieldEnd();
40167
      }
40168
      iprot.readStructEnd();
40169
      validate();
40170
    }
40171
 
40172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40173
      validate();
40174
 
40175
      oprot.writeStructBegin(STRUCT_DESC);
40176
      if (this.amazonInventorySnapshot != null) {
40177
        oprot.writeFieldBegin(AMAZON_INVENTORY_SNAPSHOT_FIELD_DESC);
40178
        this.amazonInventorySnapshot.write(oprot);
40179
        oprot.writeFieldEnd();
40180
      }
40181
      oprot.writeFieldStop();
40182
      oprot.writeStructEnd();
40183
    }
40184
 
40185
    @Override
40186
    public String toString() {
40187
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_args(");
40188
      boolean first = true;
40189
 
40190
      sb.append("amazonInventorySnapshot:");
40191
      if (this.amazonInventorySnapshot == null) {
40192
        sb.append("null");
40193
      } else {
40194
        sb.append(this.amazonInventorySnapshot);
40195
      }
40196
      first = false;
40197
      sb.append(")");
40198
      return sb.toString();
40199
    }
40200
 
40201
    public void validate() throws org.apache.thrift.TException {
40202
      // check for required fields
40203
    }
40204
 
40205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40206
      try {
40207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40208
      } catch (org.apache.thrift.TException te) {
40209
        throw new java.io.IOException(te);
40210
      }
40211
    }
40212
 
40213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40214
      try {
40215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40216
      } catch (org.apache.thrift.TException te) {
40217
        throw new java.io.IOException(te);
40218
      }
40219
    }
40220
 
40221
  }
40222
 
40223
  public static class addOrUpdateAmazonInventoryForItem_result implements org.apache.thrift.TBase<addOrUpdateAmazonInventoryForItem_result, addOrUpdateAmazonInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
40224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonInventoryForItem_result");
40225
 
40226
 
40227
 
40228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40230
;
40231
 
40232
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40233
 
40234
      static {
40235
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
40236
          byName.put(field.getFieldName(), field);
40237
        }
40238
      }
40239
 
40240
      /**
40241
       * Find the _Fields constant that matches fieldId, or null if its not found.
40242
       */
40243
      public static _Fields findByThriftId(int fieldId) {
40244
        switch(fieldId) {
40245
          default:
40246
            return null;
40247
        }
40248
      }
40249
 
40250
      /**
40251
       * Find the _Fields constant that matches fieldId, throwing an exception
40252
       * if it is not found.
40253
       */
40254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
40255
        _Fields fields = findByThriftId(fieldId);
40256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
40257
        return fields;
40258
      }
40259
 
40260
      /**
40261
       * Find the _Fields constant that matches name, or null if its not found.
40262
       */
40263
      public static _Fields findByName(String name) {
40264
        return byName.get(name);
40265
      }
40266
 
40267
      private final short _thriftId;
40268
      private final String _fieldName;
40269
 
40270
      _Fields(short thriftId, String fieldName) {
40271
        _thriftId = thriftId;
40272
        _fieldName = fieldName;
40273
      }
40274
 
40275
      public short getThriftFieldId() {
40276
        return _thriftId;
40277
      }
40278
 
40279
      public String getFieldName() {
40280
        return _fieldName;
40281
      }
40282
    }
40283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40284
    static {
40285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
40286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonInventoryForItem_result.class, metaDataMap);
40288
    }
40289
 
40290
    public addOrUpdateAmazonInventoryForItem_result() {
40291
    }
40292
 
40293
    /**
40294
     * Performs a deep copy on <i>other</i>.
40295
     */
40296
    public addOrUpdateAmazonInventoryForItem_result(addOrUpdateAmazonInventoryForItem_result other) {
40297
    }
40298
 
40299
    public addOrUpdateAmazonInventoryForItem_result deepCopy() {
40300
      return new addOrUpdateAmazonInventoryForItem_result(this);
40301
    }
40302
 
40303
    @Override
40304
    public void clear() {
40305
    }
40306
 
40307
    public void setFieldValue(_Fields field, Object value) {
40308
      switch (field) {
40309
      }
40310
    }
40311
 
40312
    public Object getFieldValue(_Fields field) {
40313
      switch (field) {
40314
      }
40315
      throw new IllegalStateException();
40316
    }
40317
 
40318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
40319
    public boolean isSet(_Fields field) {
40320
      if (field == null) {
40321
        throw new IllegalArgumentException();
40322
      }
40323
 
40324
      switch (field) {
40325
      }
40326
      throw new IllegalStateException();
40327
    }
40328
 
40329
    @Override
40330
    public boolean equals(Object that) {
40331
      if (that == null)
40332
        return false;
40333
      if (that instanceof addOrUpdateAmazonInventoryForItem_result)
40334
        return this.equals((addOrUpdateAmazonInventoryForItem_result)that);
40335
      return false;
40336
    }
40337
 
40338
    public boolean equals(addOrUpdateAmazonInventoryForItem_result that) {
40339
      if (that == null)
40340
        return false;
40341
 
40342
      return true;
40343
    }
40344
 
40345
    @Override
40346
    public int hashCode() {
40347
      return 0;
40348
    }
40349
 
40350
    public int compareTo(addOrUpdateAmazonInventoryForItem_result other) {
40351
      if (!getClass().equals(other.getClass())) {
40352
        return getClass().getName().compareTo(other.getClass().getName());
40353
      }
40354
 
40355
      int lastComparison = 0;
40356
      addOrUpdateAmazonInventoryForItem_result typedOther = (addOrUpdateAmazonInventoryForItem_result)other;
40357
 
40358
      return 0;
40359
    }
40360
 
40361
    public _Fields fieldForId(int fieldId) {
40362
      return _Fields.findByThriftId(fieldId);
40363
    }
40364
 
40365
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
40366
      org.apache.thrift.protocol.TField field;
40367
      iprot.readStructBegin();
40368
      while (true)
40369
      {
40370
        field = iprot.readFieldBegin();
40371
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40372
          break;
40373
        }
40374
        switch (field.id) {
40375
          default:
40376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40377
        }
40378
        iprot.readFieldEnd();
40379
      }
40380
      iprot.readStructEnd();
40381
      validate();
40382
    }
40383
 
40384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40385
      oprot.writeStructBegin(STRUCT_DESC);
40386
 
40387
      oprot.writeFieldStop();
40388
      oprot.writeStructEnd();
40389
    }
40390
 
40391
    @Override
40392
    public String toString() {
40393
      StringBuilder sb = new StringBuilder("addOrUpdateAmazonInventoryForItem_result(");
40394
      boolean first = true;
40395
 
40396
      sb.append(")");
40397
      return sb.toString();
40398
    }
40399
 
40400
    public void validate() throws org.apache.thrift.TException {
40401
      // check for required fields
40402
    }
40403
 
40404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
40405
      try {
40406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
40407
      } catch (org.apache.thrift.TException te) {
40408
        throw new java.io.IOException(te);
40409
      }
40410
    }
40411
 
40412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
40413
      try {
40414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
40415
      } catch (org.apache.thrift.TException te) {
40416
        throw new java.io.IOException(te);
40417
      }
40418
    }
40419
 
40420
  }
40421
 
5945 mandeep.dh 40422
}